/* ===================================================================
   Nawafeth Web — pages.css  v2.0
   Page-Specific Component Styles
   Covers all template classes not in app.css core
   =================================================================== */

/* ── Utility Classes ── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.hidden { display: none !important; }

.spinner-inline {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin: 0 4px;
}

body.nw-submit-overlay-open {
  overflow: hidden;
}

.nw-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nw-submit-overlay.visible {
  opacity: 1;
}

.nw-submit-overlay-card {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(219, 228, 238, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.96) 100%);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.nw-submit-overlay-spinner-wrap {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.12) 0%, rgba(103, 58, 183, 0.04) 100%);
  border: 1px solid rgba(103, 58, 183, 0.12);
}

.nw-submit-overlay-spinner.spinner-inline {
  width: 24px;
  height: 24px;
  margin: 0;
  border-width: 3px;
  border-color: rgba(103, 58, 183, 0.16);
  border-top-color: var(--color-primary);
}

.nw-submit-overlay-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.nw-submit-overlay-title {
  color: #1f2937;
  font-size: 16px;
  font-weight: 900;
}

.nw-submit-overlay-message {
  margin: 0;
  color: #52606d;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 700;
}

@media (max-width: 640px) {
  .nw-submit-overlay {
    padding: 16px;
  }

  .nw-submit-overlay-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 16px;
  }

  .nw-submit-overlay-copy {
    justify-items: center;
  }
}

.footer-brand { display: flex; flex-direction: column; }

.page-subtitle {
  font-size: 14px; color: var(--color-text-secondary);
  margin-top: var(--space-xs); line-height: 1.6;
}
@media (min-width: 768px) { .page-subtitle { font-size: 16px; } }

.page-header-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-subtle); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-md);
}

/* ====================================================================
   AUTH PAGES — Login, Signup, OTP
   ==================================================================== */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--navbar-height));
  padding: var(--space-xl);
  background: var(--color-bg);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
}
.auth-card-wide { max-width: 560px; }
.auth-card-tight { max-width: 380px; }
.auth-header { text-align: center; margin-bottom: var(--space-xl); }
.auth-logo {
  font-size: 32px; font-weight: 900;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  display: block;
}
.auth-title {
  font-size: 22px; font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.auth-desc {
  font-size: 14px; color: var(--color-text-secondary);
  line-height: 1.6;
}
.auth-card .btn-primary,
.auth-card .btn-secondary,
.auth-card .btn-primary-lg,
.auth-card .btn-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.auth-card .btn-primary .spinner,
.auth-card .btn-primary-lg .spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}
.auth-card .btn-secondary .spinner,
.auth-card .btn-outlined .spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-color: rgba(103, 58, 183, 0.25);
  border-top-color: var(--color-primary);
}
.auth-divider {
  display: flex; align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  font-size: 13px; color: var(--color-text-tertiary);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--color-border);
}
.auth-grid { display: grid; gap: var(--space-md); }
.auth-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 500px) { .auth-grid-2 { grid-template-columns: 1fr; } }

/* ── Login page specific polish (centered layout) ── */
body.page-login #top-navbar,
body.page-login #site-footer,
body.page-login #bottom-nav {
  display: none !important;
}

body.page-login .auth-page.auth-page-login {
  min-height: 100dvh;
  padding: clamp(18px, 3vw, 34px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(14, 116, 144, 0.15), transparent 32%),
    radial-gradient(circle at 96% 88%, rgba(103, 58, 183, 0.17), transparent 40%),
    linear-gradient(180deg, #eff4fb 0%, #f6f8fc 58%, #f3f5fb 100%);
}

body.page-login .auth-login-bg-shape {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

body.page-login .auth-login-bg-shape-a {
  width: min(46vw, 320px);
  height: min(46vw, 320px);
  top: -110px;
  inset-inline-end: -70px;
  background: radial-gradient(circle, rgba(103, 58, 183, 0.18), transparent 72%);
}

body.page-login .auth-login-bg-shape-b {
  width: min(52vw, 360px);
  height: min(52vw, 360px);
  bottom: -140px;
  inset-inline-start: -90px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.14), transparent 70%);
}

body.page-login .auth-login-container.container {
  width: min(100%, 460px);
  max-width: 460px;
  padding: 0;
  position: relative;
  z-index: 1;
}

body.page-login .auth-card.auth-card-login {
  border-radius: 30px;
  border: 1px solid rgba(77, 74, 138, 0.14);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.82), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 255, 0.96));
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.12);
  padding: clamp(20px, 3vw, 30px) clamp(16px, 2.8vw, 28px);
}

body.page-login .auth-header {
  margin-bottom: 18px;
}

body.page-login .auth-login-kicker {
  margin: 0 auto 10px;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid rgba(103, 58, 183, 0.2);
  background: rgba(255, 255, 255, 0.82);
  color: #5f3baa;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

body.page-login .auth-logo {
  margin-bottom: 6px;
  font-size: clamp(40px, 7vw, 52px);
  line-height: 1.04;
}

body.page-login .auth-title {
  margin: 0 0 8px;
  font-size: clamp(30px, 5.2vw, 38px);
  line-height: 1.2;
  color: #0f172a;
}

body.page-login .auth-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #52637a;
}

body.page-login .auth-card-login .form-label {
  color: #5b38a6;
  font-weight: 800;
}

body.page-login .auth-card-login .btn-primary,
body.page-login .auth-card-login .btn-secondary,
body.page-login .auth-card-login .btn-faceid-login {
  min-height: 52px;
  border-radius: 16px;
}

@media (max-width: 540px) {
  body.page-login .auth-page.auth-page-login {
    padding: 14px;
  }

  body.page-login .auth-card.auth-card-login {
    border-radius: 24px;
    padding: 20px 14px;
  }

  body.page-login .auth-title {
    font-size: 32px;
  }
}

body.page-twofa #top-navbar,
body.page-twofa #site-footer,
body.page-twofa #bottom-nav {
  display: none !important;
}

body.page-twofa .page-content {
  padding: 0;
}

body.page-twofa .auth-page.auth-page-twofa {
  min-height: 100dvh;
  padding: clamp(18px, 3vw, 34px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 10%, rgba(255,255,255,.16), transparent 30%),
    radial-gradient(circle at 88% 86%, rgba(241,165,89,.22), transparent 36%),
    linear-gradient(145deg,#2b175f 0%,#4a2d8f 48%,#673ab7 100%);
}

body.page-twofa .auth-twofa-bg-shape {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

body.page-twofa .auth-twofa-bg-shape-a {
  width: min(46vw, 320px);
  height: min(46vw, 320px);
  top: -110px;
  inset-inline-end: -72px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 72%);
}

body.page-twofa .auth-twofa-bg-shape-b {
  width: min(52vw, 360px);
  height: min(52vw, 360px);
  bottom: -150px;
  inset-inline-start: -96px;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 72%);
}

body.page-twofa .auth-twofa-container.container {
  width: min(100%, 460px);
  max-width: 460px;
  padding: 0;
  position: relative;
  z-index: 1;
}

body.page-twofa .auth-card.auth-card-twofa {
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.98), rgba(255,255,255,.86) 28%, rgba(249,246,255,.96) 100%);
  box-shadow: 0 30px 70px rgba(22,10,48,.34), inset 0 1px 0 rgba(255,255,255,.8);
  color: #1e1236;
  padding: clamp(20px, 3vw, 30px) clamp(16px, 2.8vw, 28px);
}

body.page-twofa .auth-header {
  margin-bottom: 18px;
}

body.page-twofa .auth-twofa-kicker {
  margin: 0 auto 10px;
  border-color: rgba(103,58,183,.28);
  background: #fff;
  color: #4a2d8f;
  box-shadow: 0 8px 18px rgba(74,45,143,.12);
}

body.page-twofa .twofa-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a2d8f;
  background: linear-gradient(145deg, #fff 0%, #f4ecff 100%);
  box-shadow: 0 16px 38px rgba(74,45,143,.24), inset 0 0 0 1px rgba(103,58,183,.16);
}

body.page-twofa .auth-twofa-logo {
  margin-bottom: 6px;
  font-size: clamp(40px, 7vw, 52px);
  line-height: 1.04;
}

body.page-twofa .auth-title {
  margin: 0 0 8px;
  font-size: clamp(30px, 5.2vw, 38px);
  line-height: 1.2;
  color: #1b1230;
  text-shadow: none;
}

body.page-twofa .auth-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #4f435f;
  font-weight: 700;
}

body.page-twofa .otp-info-card {
  margin-bottom: 18px;
  border-radius: 20px;
  border: 1px solid rgba(103,58,183,.18);
  background: rgba(255,255,255,.72);
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px rgba(74,45,143,.08);
}

body.page-twofa .otp-info-label {
  margin: 0;
  font-size: 12px;
  color: #6b5f7a;
  font-weight: 700;
}

body.page-twofa .otp-info-phone {
  margin: 6px 0 0;
  font-size: 20px;
  color: #241c46;
  font-weight: 900;
}

body.page-twofa .otp-boxes {
  gap: 10px;
  margin-bottom: 16px;
}

body.page-twofa .otp-box {
  width: 62px;
  height: 66px;
  border-radius: 18px;
  border: 2px solid rgba(103,58,183,.22);
  background: #fff;
  box-shadow: 0 10px 22px rgba(54,31,94,.08);
  font-size: 26px;
  font-weight: 800;
  color: #1f1633;
}

body.page-twofa .otp-box:focus {
  border-color: #4a2d8f;
  box-shadow: 0 0 0 4px rgba(103,58,183,.18), 0 14px 26px rgba(103,58,183,.12);
}

/* ====================================================================
   Shared small-screen polish
   ==================================================================== */
.auth-page {
  padding: clamp(14px, 4vw, var(--space-xl));
}

.auth-card {
  max-width: min(100%, 420px);
  padding: clamp(18px, 4vw, var(--space-2xl));
  overflow-x: clip;
}

.auth-card-wide {
  max-width: min(100%, 560px);
}

@media (max-width: 420px) {
  .auth-title {
    font-size: 20px;
  }

  .auth-desc,
  .page-subtitle {
    font-size: 13px;
  }

  .auth-divider {
    gap: 10px;
    margin-block: 18px;
  }
}

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

  .auth-card {
    border-radius: 20px;
    padding: 16px 14px;
  }

  .auth-grid-2 {
    grid-template-columns: 1fr;
  }

  .auth-card .btn-primary,
  .auth-card .btn-secondary,
  .auth-card .btn-primary-lg,
  .auth-card .btn-outlined {
    min-height: 50px;
    font-size: 14px;
  }
}

body.page-twofa .otp-box.is-filled {
  border-color: rgba(103,58,183,.48);
  background: linear-gradient(180deg, #fff 0%, rgba(244,239,255,.95) 100%);
}

body.page-twofa #otp-error {
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(211,47,47,.08);
  border: 1px solid rgba(211,47,47,.14);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #b42318;
  text-align: center;
}

body.page-twofa .auth-card-twofa .btn-primary,
body.page-twofa .auth-card-twofa .btn-faceid-login {
  min-height: 54px;
  border-radius: 16px;
}

body.page-twofa .auth-card-twofa .btn-primary {
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg,#4a2d8f 0%,#673ab7 58%,#7d55d1 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(74,45,143,.28);
  font-weight: 800;
}

body.page-twofa .auth-card-twofa .btn-faceid-login {
  border: 2px solid rgba(74,45,143,.42);
  background: #fff;
  color: #321b63;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(54,31,94,.08);
}

body.page-twofa .auth-card-twofa .btn-faceid-login:hover {
  border-color: #4a2d8f;
  background: #f7f2ff;
}

body.page-twofa .auth-divider {
  color: #5f526f;
  font-weight: 800;
}

body.page-twofa .auth-divider::before,
body.page-twofa .auth-divider::after {
  background: linear-gradient(90deg,transparent,rgba(74,45,143,.34),transparent);
}

body.page-twofa .twofa-faceid {
  margin-top: 4px;
}

body.page-twofa .twofa-resend-row {
  margin-top: 18px;
  gap: 10px 14px;
}

body.page-twofa .twofa-resend-row .btn-link {
  font-size: 13px;
  font-weight: 700;
  color: #4f435f;
}

body.page-twofa .otp-resend-btn {
  color: #4a2d8f;
  font-weight: 800;
}

body.page-twofa .twofa-countdown-pill {
  width: fit-content;
  min-height: 34px;
  margin: 4px auto 0;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(103,58,183,.22);
  background: rgba(103,58,183,.08);
  color: #4a2d8f;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 540px) {
  body.page-twofa .auth-page.auth-page-twofa {
    padding: 14px;
  }

  body.page-twofa .auth-card.auth-card-twofa {
    border-radius: 24px;
    padding: 20px 14px;
  }

  body.page-twofa .auth-title {
    font-size: 32px;
  }

  body.page-twofa .otp-box {
    width: calc(25vw - 8px);
    max-width: 62px;
    min-width: 56px;
    height: 62px;
  }
}

.terms-check {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  font-size: 13px; color: var(--color-text-secondary);
  margin-bottom: var(--space-lg); line-height: 1.5;
}
.terms-check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--color-primary);
  margin-top: 2px;
}
.terms-check a { color: var(--color-primary); text-decoration: underline; }

/* ── OTP ── */
.otp-info {
  text-align: center; font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg); line-height: 1.6;
}
.otp-phone-label {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}
.otp-boxes {
  display: flex; justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  direction: ltr;
}
.otp-box {
  width: 52px; height: 56px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-family: 'Cairo', sans-serif;
  font-size: 22px; font-weight: 700;
  text-align: center; color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast);
}
.otp-box:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-subtle); }
.otp-actions {
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
  flex-wrap: wrap;
}
.otp-resend-btn,
.otp-change-phone-link {
  white-space: nowrap;
}
.otp-resend-timer {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  min-width: 36px;
  text-align: center;
}

/* ── Auth gate text (alias for auth-gate-desc) ── */
.auth-gate-text {
  font-size: 14px; color: var(--color-text-secondary);
  max-width: 360px; line-height: 1.6; text-align: center;
}

/* ── Unified auth gate (login required) ── */
.auth-gate.auth-gate-unified {
  width: min(100%, 760px);
  margin-inline: auto;
  min-height: clamp(340px, 56vh, 540px);
  gap: 14px;
  padding: clamp(22px, 3vw, 34px) clamp(16px, 2.6vw, 26px);
  border-radius: 28px;
  border: 1px solid rgba(77, 74, 138, 0.2);
  background:
    radial-gradient(circle at 14% 8%, rgba(14, 116, 144, 0.16), transparent 42%),
    radial-gradient(circle at 90% 100%, rgba(103, 58, 183, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(244, 247, 255, 0.95));
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth-gate.auth-gate-unified::before {
  content: "";
  position: absolute;
  inset-inline: 18px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14, 116, 144, 0), rgba(14, 116, 144, 0.6), rgba(103, 58, 183, 0.62), rgba(103, 58, 183, 0));
  pointer-events: none;
}

.auth-gate.auth-gate-unified .auth-gate-unified-kicker {
  margin: 0;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid rgba(14, 116, 144, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #0c5f73;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.auth-gate.auth-gate-unified .auth-gate-unified-icon {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 18%, rgba(14, 116, 144, 0.22), rgba(14, 116, 144, 0.08)),
    linear-gradient(145deg, #ffffff, #eef5ff);
  border: 1px solid rgba(14, 116, 144, 0.2);
  color: #0f5e8a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 24px rgba(14, 116, 144, 0.16);
}

.auth-gate.auth-gate-unified .auth-gate-unified-title {
  margin: 0;
  color: #0f172a;
  font-family: 'Cairo', sans-serif;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.35;
}

.auth-gate.auth-gate-unified .auth-gate-unified-desc {
  margin: 0;
  color: #475569;
  font-family: 'Cairo', sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.8;
  max-width: 56ch;
}

.auth-gate.auth-gate-unified .auth-gate-unified-btn {
  min-width: 210px;
  min-height: 56px;
  border-radius: 16px;
  padding-inline: 28px;
  margin-top: 4px;
}

.auth-gate.auth-gate-unified .auth-gate-unified-note {
  margin: 2px 0 0;
  font-family: 'Cairo', sans-serif;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .auth-gate.auth-gate-unified {
    min-height: clamp(300px, 52vh, 420px);
    padding: 20px 14px;
    gap: 11px;
    border-radius: 22px;
  }

  .auth-gate.auth-gate-unified .auth-gate-unified-icon {
    width: 78px;
    height: 78px;
  }

  .auth-gate.auth-gate-unified .auth-gate-unified-kicker {
    min-height: 26px;
    font-size: 10.5px;
    padding-inline: 10px;
  }

  .auth-gate.auth-gate-unified .auth-gate-unified-title {
    font-size: 22px;
  }

  .auth-gate.auth-gate-unified .auth-gate-unified-desc {
    font-size: 14px;
  }

  .auth-gate.auth-gate-unified .auth-gate-unified-btn {
    min-width: 184px;
    min-height: 52px;
  }
}

/* ── Form extras ── */
.form-error {
  font-size: 12px; color: var(--color-error);
  margin-top: var(--space-xs); font-weight: 600;
}
.form-hint {
  font-size: 12px; color: var(--color-text-tertiary);
  margin-top: var(--space-xs);
}
.form-hint-link {
  margin-inline-start: 8px;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}
.form-hint-link:hover {
  text-decoration: underline;
}
.form-success {
  font-size: 12px; color: var(--color-success);
  margin-top: var(--space-xs); font-weight: 600;
}
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}
.form-card-title {
  font-size: 16px; font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.form-actions {
  display: flex; gap: var(--space-md);
  padding-top: var(--space-lg);
  flex-wrap: wrap;
}
.form-char-count {
  font-size: 11px; color: var(--color-text-tertiary);
  text-align: left; margin-top: var(--space-xs);
}
[dir="rtl"] .form-char-count { text-align: right; }

/* ── File Upload ── */
.file-upload-area {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: var(--color-bg);
}
.file-upload-area:hover { border-color: var(--color-primary); background: var(--color-primary-subtle); }
.file-upload-trigger {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-sm); color: var(--color-text-secondary);
  font-size: 14px;
}
.file-upload-trigger svg { color: var(--color-primary); }
.file-list {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  margin-top: var(--space-md);
}
.file-list .file-item {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
}

/* ── Success Overlay ── */
.success-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
.success-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.success-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.3s ease forwards;
}
.success-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-full);
  background: #E8F5E9; color: var(--color-success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-lg);
}
.success-title { font-size: 20px; font-weight: 800; color: var(--color-text); margin-bottom: var(--space-sm); }
.success-msg { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: var(--space-xl); }

/* ── Button Extras ── */
.btn-link {
  background: none; border: none;
  color: var(--color-primary);
  font-size: 14px; font-weight: 600;
  cursor: pointer; padding: var(--space-sm);
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  transition: opacity var(--transition-fast);
}
.btn-link:hover { opacity: 0.7; text-decoration: underline; }

.btn-outlined {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-family: 'Cairo', sans-serif;
  font-size: 14px; font-weight: 700;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-outlined:hover { background: var(--color-primary-subtle); }

.btn-primary-lg {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-lg);
  font-family: 'Cairo', sans-serif;
  font-size: 16px; font-weight: 700;
  background: var(--color-primary); color: #fff;
  border: none; cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-primary-lg:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-primary); }

.btn-orange {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-family: 'Cairo', sans-serif;
  font-size: 14px; font-weight: 700;
  background: var(--color-accent); color: #fff;
  border: none; cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-orange:hover { filter: brightness(1.05); box-shadow: 0 4px 16px rgba(241,165,89,.3); }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-family: 'Cairo', sans-serif;
  font-size: 14px; font-weight: 700;
  background: var(--color-error); color: #fff;
  border: none; cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-danger:hover { filter: brightness(1.1); }

.btn-danger-outline {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-family: 'Cairo', sans-serif;
  font-size: 14px; font-weight: 700;
  background: transparent;
  color: var(--color-error);
  border: 2px solid var(--color-error);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-danger-outline:hover { background: rgba(239,68,68,.06); }

/* ── Radio chips ── */
.radio-group {
  display: flex; flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.radio-chip-label {
  display: inline-flex; cursor: pointer;
}
.radio-chip-label input { display: none; }
.radio-chip {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}
.radio-chip-label input:checked + .radio-chip,
.radio-chip.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-primary);
}

/* ====================================================================
   URGENT + REQUEST QUOTE FORMS — mobile parity
   ==================================================================== */
body.page-urgent-request #top-navbar,
body.page-request-quote #top-navbar { display: none; }
body.page-urgent-request #site-footer,
body.page-request-quote #site-footer { display: none !important; }
body.page-urgent-request #bottom-nav,
body.page-request-quote #bottom-nav { display: flex !important; }

body.page-urgent-request .page-content,
body.page-request-quote .page-content {
  padding-top: 0;
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
}

.page-urgent-request .container,
.page-request-quote .container {
  max-width: 680px;
}

.mw-form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.mw-form-header h1 {
  margin: 0;
  flex: 1;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text);
}
.mw-form-back {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-primary-dark);
  background: var(--color-surface);
  border: 1px solid var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.mw-form-back svg {
  width: 18px;
  height: 18px;
}
.mw-form-head-icon {
  line-height: 0;
  display: inline-flex;
}
.mw-form-header-urgent .mw-form-head-icon { color: var(--color-accent); }
.mw-form-header-quote .mw-form-head-icon { color: var(--color-primary); }

.mw-form-subtitle {
  margin: 8px 2px 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.mw-form-card {
  border-radius: 14px;
  padding: 14px;
}

.page-urgent-request .mw-form-card .form-group,
.page-request-quote .mw-form-card .form-group {
  margin-bottom: 14px;
}

.page-urgent-request .mw-form-card .form-label,
.page-request-quote .mw-form-card .form-label {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.page-urgent-request .mw-form-card .form-select,
.page-request-quote .mw-form-card .form-select,
.page-urgent-request .mw-form-card .form-input,
.page-request-quote .mw-form-card .form-input {
  min-height: 42px;
  border-radius: 10px;
  font-size: 11px;
}

.page-urgent-request .mw-form-card .form-textarea,
.page-request-quote .mw-form-card .form-textarea {
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.55;
}

.page-urgent-request .mw-form-card .form-actions,
.page-request-quote .mw-form-card .form-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  padding-top: 10px;
}

.page-urgent-request .mw-form-card .btn-outlined,
.page-request-quote .mw-form-card .btn-outlined {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  font-size: 11px;
  border-width: 1px;
  border-radius: 10px;
}

.page-urgent-request .mw-form-card .btn-primary-lg,
.page-request-quote .mw-form-card .btn-primary-lg,
.page-urgent-request .mw-form-card .btn-orange {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 420px) {
  .page-urgent-request .mw-form-card .form-actions,
  .page-request-quote .mw-form-card .form-actions {
    grid-template-columns: 1fr;
  }
}

.city-clear-btn {
  margin-top: 6px;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--color-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.attach-section {
  width: 100%;
}

.attach-section + .attach-section {
  margin-top: 8px;
}

.attach-section-title {
  display: block;
  margin-bottom: 4px;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--color-text-secondary);
}

.attach-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.attach-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attach-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.attach-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.attach-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.attach-thumb-video-badge {
  position: absolute;
  inset-inline-end: 3px;
  bottom: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.attach-thumb-remove {
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.file-name {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-remove-btn {
  border: 0;
  border-radius: 8px;
  min-height: 24px;
  padding: 0 8px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.attach-empty {
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  color: var(--color-text-tertiary);
}

/* ====================================================================
   REQUEST QUOTE FORM — professional polish
   ==================================================================== */
body.page-request-quote {
  background:
    radial-gradient(1200px 420px at 50% -180px, rgba(103, 58, 183, 0.16), transparent 64%),
    #f6f7fc;
}

.page-request-quote .container {
  max-width: 980px;
}

.page-request-quote .rq-shell {
  max-width: 760px;
  margin-inline: auto;
}

.page-request-quote .rq-header {
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #e6e5f1;
  box-shadow: 0 4px 14px rgba(27, 25, 43, 0.06);
}

.page-request-quote .rq-header h1 {
  font-size: 16px;
}

.page-request-quote .rq-subtitle {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
}

.page-request-quote .rq-intro-card {
  border: 1px solid rgba(103, 58, 183, 0.2);
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.12) 0%, rgba(103, 58, 183, 0.04) 100%);
  margin-bottom: 12px;
}

.page-request-quote .rq-intro-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  border: 1px solid rgba(103, 58, 183, 0.2);
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.page-request-quote .rq-intro-card p {
  margin: 8px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.65;
  color: #4d4a5a;
}

.page-request-quote .rq-form {
  border-radius: 20px;
  padding: 16px;
  border: 1px solid #e5e7f0;
  box-shadow: 0 8px 24px rgba(24, 23, 36, 0.05);
}

.page-request-quote .rq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-request-quote .rq-form .rq-group {
  margin-bottom: 0;
}

.page-request-quote .rq-form .rq-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 7px;
  color: #2a2737;
  font-size: 12px;
  font-weight: 800;
}

.page-request-quote .rq-required {
  color: #d92d20;
}

.page-request-quote .rq-form .form-input,
.page-request-quote .rq-form .form-select,
.page-request-quote .rq-form .form-textarea {
  width: 100%;
  border: 1.5px solid #dde0ec;
  border-radius: 13px;
  background: #fcfcff;
  color: #1f1c2c;
  min-height: 48px;
  padding: 11px 13px;
  font-family: 'Cairo', sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.page-request-quote .rq-form .form-select {
  cursor: pointer;
}

.page-request-quote .rq-form .form-textarea {
  min-height: 142px;
  resize: vertical;
}

.page-request-quote .rq-form .form-input:focus,
.page-request-quote .rq-form .form-select:focus,
.page-request-quote .rq-form .form-textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(103, 58, 183, 0.12);
  outline: none;
}

.page-request-quote .rq-form .is-invalid {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.page-request-quote .rq-field-error {
  display: block;
  margin-top: 6px;
  color: #be123c;
  font-size: 11px;
  line-height: 1.7;
  font-weight: 800;
}

.page-request-quote .rq-form .form-char-count {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #8b8b9c;
  text-align: end;
  transition: color 0.18s ease, transform 0.18s ease;
}

.page-request-quote .rq-form .form-char-count.is-warning {
  color: #c77a12;
}

.page-request-quote .rq-form .form-char-count.is-limit {
  color: #c1121f;
  transform: translateY(-1px);
}

.page-request-quote .rq-hint {
  margin: 6px 2px 0;
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--color-text-tertiary);
}

.page-request-quote .city-clear-btn {
  margin-top: 8px;
  padding: 0;
  font-size: 11px;
  border-bottom: 1px dashed rgba(103, 58, 183, 0.35);
}

.page-request-quote .rq-upload-area {
  border: 1.5px dashed #cfd3e6;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafaff 0%, #f4f5ff 100%);
  padding: 12px;
}

.page-request-quote .rq-upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-request-quote .rq-upload-trigger {
  width: 100%;
  border: 1px dashed rgba(148, 163, 184, 0.34);
  border-radius: 16px;
  background: #ffffff;
  color: #334155;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.page-request-quote .rq-upload-trigger:hover {
  border-color: rgba(103, 58, 183, 0.42);
  color: var(--color-primary);
  background: rgba(103, 58, 183, 0.06);
}

.page-request-quote .rq-upload-trigger:active {
  transform: scale(0.995);
}

.page-request-quote .rq-upload-trigger--camera {
  background: rgba(3, 105, 161, 0.08);
  color: #0c4a6e;
}

.page-request-quote .rq-upload-trigger--camera:hover {
  background: rgba(3, 105, 161, 0.16);
}

.page-request-quote .rq-upload-trigger--audio {
  background: rgba(12, 166, 120, 0.09);
  color: #0f766e;
}

.page-request-quote .rq-upload-trigger--audio:hover {
  background: rgba(12, 166, 120, 0.16);
}

.page-request-quote .rq-upload-trigger--pdf {
  background: rgba(180, 35, 24, 0.08);
  color: #991b1b;
}

.page-request-quote .rq-upload-trigger--pdf:hover {
  background: rgba(180, 35, 24, 0.14);
  border-color: rgba(180, 35, 24, 0.32);
  color: #7f1d1d;
}

.page-request-quote .rq-upload-hint {
  margin: 8px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #6d6a79;
}

.page-request-quote .rq-file-summary {
  margin-top: 6px;
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--color-primary);
}

.page-request-quote .rq-attachment-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 154, 101, 0.18);
  background: linear-gradient(135deg, rgba(31, 154, 101, 0.1) 0%, rgba(65, 196, 130, 0.04) 100%);
  color: #1f6f4c;
  font-size: 10.5px;
  line-height: 1.7;
  font-weight: 800;
}

.page-request-quote .rq-attachment-note strong {
  color: #155239;
  font-size: 11px;
  font-weight: 900;
}

.page-request-quote .rq-attachment-note-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #1f9a65, #41c482);
  box-shadow: 0 8px 16px rgba(31, 154, 101, 0.18);
}

.page-request-quote .rq-attachment-note.hidden {
  display: none;
}

.page-request-quote .file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.page-request-quote .attach-section-title {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(103, 58, 183, 0.1);
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 800;
}

.page-request-quote .attach-image-grid {
  gap: 10px;
}

.page-request-quote .attach-thumb {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  border: 1px solid #d7d9e4;
}

.page-request-quote .attach-thumb-video-badge {
  width: 20px;
  height: 20px;
}

.page-request-quote .attach-thumb-remove {
  width: 18px;
  height: 18px;
  font-size: 13px;
}

.page-request-quote .file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dddff0;
  background: #fff;
  border-radius: 10px;
  padding: 7px 10px;
}

.page-request-quote .file-item--audio {
  align-items: flex-start;
}

.page-request-quote .file-audio-content {
  flex: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.page-request-quote .file-audio-preview {
  width: 100%;
  max-width: 360px;
  height: 34px;
}

.page-request-quote .file-name {
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #322f40;
}

.page-request-quote .file-remove-btn {
  min-height: 26px;
  padding: 0 10px;
  font-size: 10.5px;
}

/* ====================================================================
   URGENT REQUEST FORM — professional polish
   ==================================================================== */
body.page-urgent-request {
  background:
    radial-gradient(1100px 420px at 50% -180px, rgba(241, 165, 89, 0.18), transparent 62%),
    radial-gradient(780px 320px at 0% 10%, rgba(103, 58, 183, 0.08), transparent 58%),
    #f7f7fc;
}

.page-urgent-request .container {
  max-width: 980px;
}

.page-urgent-request .ur-shell {
  max-width: 800px;
  margin-inline: auto;
}

.page-urgent-request .ur-auth-gate {
  margin-inline: auto;
}

.page-urgent-request .ur-auth-gate-icon {
  background: linear-gradient(135deg, rgba(241, 165, 89, 0.16), rgba(241, 165, 89, 0.05));
  border: 1px solid rgba(241, 165, 89, 0.24);
  color: #b6641d;
}

.page-urgent-request .ur-header {
  border-radius: 18px;
  padding: 12px;
  border: 1px solid #ece4da;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(32, 21, 34, 0.06);
}

.page-urgent-request .ur-header h1 {
  font-size: 16px;
}

.page-urgent-request .ur-subtitle {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.page-urgent-request .ur-intro-card {
  border: 1px solid rgba(241, 165, 89, 0.28);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 247, 239, 0.96), rgba(255, 255, 255, 0.94));
  box-shadow: 0 10px 24px rgba(33, 22, 32, 0.05);
  margin-bottom: 14px;
}

.page-urgent-request .ur-intro-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(241, 165, 89, 0.28);
  color: #b6641d;
  font-size: 10.5px;
  font-weight: 900;
}

.page-urgent-request .ur-intro-card p {
  margin: 9px 0 0;
  color: #5a5161;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.75;
}

.page-urgent-request .ur-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.page-urgent-request .ur-overview-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(103, 58, 183, 0.08);
}

.page-urgent-request .ur-overview-item strong {
  color: #241f33;
  font-size: 11px;
  font-weight: 900;
}

.page-urgent-request .ur-overview-item span {
  color: #756f84;
  font-size: 10px;
  font-weight: 700;
}

.page-urgent-request .ur-form {
  border-radius: 22px;
  padding: 16px;
  border: 1px solid #ebe7f1;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(24, 21, 34, 0.06);
}

.page-urgent-request .ur-grid {
  display: grid;
  gap: 14px;
}

.page-urgent-request .ur-section {
  border: 1px solid #ece8f4;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
}

.page-urgent-request .ur-section-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.page-urgent-request .ur-section-step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(241, 165, 89, 0.95), rgba(234, 140, 57, 0.95));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 10px 18px rgba(234, 140, 57, 0.24);
}

.page-urgent-request .ur-section-head h2 {
  margin: 0;
  color: #221d31;
  font-size: 14px;
  font-weight: 900;
}

.page-urgent-request .ur-section-head p {
  margin: 3px 0 0;
  color: #7a7587;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.65;
}

.page-urgent-request .ur-fields-grid {
  display: grid;
  gap: 12px;
}

.page-urgent-request .ur-group {
  margin-bottom: 0;
}

.page-urgent-request .ur-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 7px;
  color: #28243a;
  font-size: 12px;
  font-weight: 900;
}

.page-urgent-request .ur-required {
  color: #d92d20;
}

.page-urgent-request .ur-form .form-input,
.page-urgent-request .ur-form .form-select,
.page-urgent-request .ur-form .form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1.5px solid #dfe2ed;
  border-radius: 14px;
  background: #fcfcff;
  color: #1f1c2c;
  font-size: 12.5px;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.page-urgent-request .ur-form .form-select {
  cursor: pointer;
}

.page-urgent-request .ur-form .form-textarea {
  min-height: 150px;
  resize: vertical;
}

.page-urgent-request .ur-form .form-input:focus,
.page-urgent-request .ur-form .form-select:focus,
.page-urgent-request .ur-form .form-textarea:focus {
  border-color: #ea8c39;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(241, 165, 89, 0.15);
  outline: none;
}

.page-urgent-request .ur-form .is-invalid {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.page-urgent-request .ur-field-error {
  display: block;
  margin-top: 6px;
  color: #be123c;
  font-size: 11px;
  line-height: 1.7;
  font-weight: 800;
}

.page-urgent-request .ur-form .form-char-count {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #8b8b9c;
  text-align: end;
  transition: color 0.18s ease, transform 0.18s ease;
}

.page-urgent-request .ur-form .form-char-count.is-warning {
  color: #c77a12;
}

.page-urgent-request .ur-form .form-char-count.is-limit {
  color: #c1121f;
  transform: translateY(-1px);
}

.page-urgent-request .ur-hint {
  margin: 7px 2px 0;
  color: #8a8498;
  font-size: 10.5px;
  line-height: 1.5;
  font-weight: 700;
}

.page-urgent-request .ur-radio-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.page-urgent-request .ur-mode-card {
  display: block;
}

.page-urgent-request .ur-mode-card .radio-chip {
  width: 100%;
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  border: 1.5px solid #e2e4ef;
  background: #fff;
  color: #312d3f;
}

.page-urgent-request .ur-mode-card .radio-chip strong {
  font-size: 12px;
  font-weight: 900;
}

.page-urgent-request .ur-mode-card .radio-chip small {
  font-size: 10px;
  font-weight: 700;
  color: #7e798c;
}

.page-urgent-request .radio-chip-label input:checked + .radio-chip,
.page-urgent-request .radio-chip.active {
  background: linear-gradient(135deg, rgba(241, 165, 89, 0.18), rgba(241, 165, 89, 0.08));
  color: #6e3f10;
  border-color: rgba(234, 140, 57, 0.45);
  box-shadow: 0 12px 24px rgba(234, 140, 57, 0.14);
}

.page-urgent-request .radio-chip-label input:checked + .radio-chip small,
.page-urgent-request .radio-chip.active small {
  color: #8a5a26;
}

.page-urgent-request .city-clear-btn {
  margin-top: 8px;
  padding: 0;
  font-size: 11px;
  border-bottom: 1px dashed rgba(103, 58, 183, 0.28);
}

.page-urgent-request .ur-city-hint {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.08), rgba(103, 58, 183, 0.03));
  border: 1px solid rgba(103, 58, 183, 0.12);
  color: #4c4562;
}

.page-urgent-request .ur-city-hint .form-hint-link {
  flex-shrink: 0;
  margin-inline-start: 0;
  font-size: 11px;
}

.page-urgent-request .ur-upload-area {
  border: 1.5px dashed #d7d7e7;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfb 0%, #f8f7ff 100%);
  padding: 12px;
}

.page-urgent-request .ur-upload-trigger {
  width: 100%;
  min-height: 98px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(241, 165, 89, 0.16), rgba(241, 165, 89, 0.08));
  color: #a45f1d;
  font-size: 12px;
  font-weight: 900;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.page-urgent-request .ur-upload-trigger:hover {
  background: linear-gradient(135deg, rgba(241, 165, 89, 0.22), rgba(241, 165, 89, 0.12));
  box-shadow: 0 10px 22px rgba(234, 140, 57, 0.12);
}

.page-urgent-request .ur-upload-trigger:active {
  transform: scale(0.996);
}

.page-urgent-request .ur-upload-hint {
  margin: 8px 0 0;
  color: #746d7e;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.55;
}

.page-urgent-request .ur-file-summary {
  margin-top: 7px;
  color: #c56e19;
  font-size: 10.5px;
  font-weight: 900;
}

.page-urgent-request .ur-attachment-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 154, 101, 0.18);
  background: linear-gradient(135deg, rgba(31, 154, 101, 0.1) 0%, rgba(65, 196, 130, 0.04) 100%);
  color: #1f6f4c;
  font-size: 10.5px;
  line-height: 1.7;
  font-weight: 800;
}

.page-urgent-request .ur-attachment-note strong {
  color: #155239;
  font-size: 11px;
  font-weight: 900;
}

.page-urgent-request .ur-attachment-note-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #1f9a65, #41c482);
  box-shadow: 0 8px 16px rgba(31, 154, 101, 0.18);
}

.page-urgent-request .ur-attachment-note.hidden {
  display: none;
}

.page-urgent-request .file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.page-urgent-request .attach-section-title {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(241, 165, 89, 0.12);
  color: #b6641d;
  font-size: 10px;
  font-weight: 900;
}

.page-urgent-request .attach-image-grid {
  gap: 10px;
}

.page-urgent-request .attach-thumb {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  border: 1px solid #dddbe7;
}

.page-urgent-request .file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4e2ee;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
}

.page-urgent-request .file-name {
  color: #2f2a3f;
  font-size: 11px;
  font-weight: 700;
}

.page-urgent-request .file-remove-btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 10.5px;
}

.page-urgent-request .attach-empty {
  color: #8b8698;
  font-size: 10.5px;
  font-weight: 700;
}

.page-urgent-request .ur-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
  padding-top: 0;
}

.page-urgent-request .ur-actions .btn-outlined,
.page-urgent-request .ur-actions .btn-primary-lg {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
}

.page-urgent-request .ur-actions .btn-primary-lg {
  box-shadow: 0 16px 28px rgba(234, 140, 57, 0.18);
}

.page-urgent-request .ur-toast {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(var(--bottom-nav-height, 84px) + 16px);
  z-index: 220;
  width: min(560px, calc(100vw - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 15px 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(234, 140, 57, 0.16);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 244, 0.92)),
    radial-gradient(circle at top right, rgba(241, 165, 89, 0.14), transparent 42%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 55px rgba(62, 37, 13, 0.16);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.page-urgent-request .ur-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.page-urgent-request .ur-toast.success {
  border-color: rgba(25, 135, 86, 0.16);
  background: linear-gradient(145deg, rgba(250, 255, 252, 0.96), rgba(236, 252, 245, 0.92));
}

.page-urgent-request .ur-toast.warning {
  border-color: rgba(199, 122, 18, 0.22);
  background: linear-gradient(145deg, rgba(255, 252, 245, 0.96), rgba(255, 246, 229, 0.94));
}

.page-urgent-request .ur-toast.error {
  border-color: rgba(186, 63, 83, 0.2);
  background: linear-gradient(145deg, rgba(255, 249, 250, 0.96), rgba(255, 239, 242, 0.94));
}

.page-urgent-request .ur-toast-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #ea8c39, #f5b25b);
  box-shadow: 0 12px 22px rgba(234, 140, 57, 0.22);
}

.page-urgent-request .ur-toast.success .ur-toast-icon {
  background: linear-gradient(135deg, #1f9a65, #41c482);
}

.page-urgent-request .ur-toast.warning .ur-toast-icon {
  background: linear-gradient(135deg, #c77a12, #e6a437);
}

.page-urgent-request .ur-toast.error .ur-toast-icon {
  background: linear-gradient(135deg, #ba3f53, #dc6277);
}

.page-urgent-request .ur-toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.page-urgent-request .ur-toast-copy strong {
  color: #1f2a44;
  font-size: 14px;
  font-weight: 900;
}

.page-urgent-request .ur-toast-copy p {
  margin: 0;
  color: #5d5874;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 700;
  white-space: pre-line;
}

.page-urgent-request .ur-toast-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(234, 140, 57, 0.08);
  color: #b6641d;
}

.page-urgent-request .ur-toast-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(234, 140, 57, 0.95), rgba(245, 178, 91, 0.95));
  transform-origin: right center;
  transform: scaleX(0);
}

.page-urgent-request .ur-toast.show .ur-toast-progress {
  animation: urToastTimer 4.6s linear forwards;
}

@keyframes urToastTimer {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.page-urgent-request #ur-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.14);
  font-size: 11px;
  font-weight: 800;
}

@media (min-width: 640px) {
  .page-urgent-request .ur-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-urgent-request .ur-fields-grid-two,
  .page-urgent-request .ur-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .page-urgent-request .ur-form {
    padding: 18px;
  }

  .page-urgent-request .ur-section {
    padding: 16px;
  }

  .page-urgent-request .ur-header h1 {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .page-urgent-request .ur-toast {
    grid-template-columns: auto 1fr;
    padding: 14px 14px 18px;
  }

  .page-urgent-request .ur-toast-close {
    grid-column: 2;
    justify-self: end;
    margin-top: -4px;
  }
}

.page-request-quote .attach-empty {
  font-size: 11px;
  font-weight: 700;
}

.page-request-quote .rq-actions {
  margin-top: 2px;
  border-top: 1px solid #eceef6;
  padding-top: 12px;
}

.page-request-quote .rq-actions .btn-outlined,
.page-request-quote .rq-actions .btn-primary-lg {
  min-height: 46px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.page-request-quote .rq-actions .btn-primary-lg {
  box-shadow: 0 8px 18px rgba(103, 58, 183, 0.26);
}

.page-request-quote .rq-actions .btn-primary-lg svg {
  display: inline-flex;
  margin-inline-end: 4px;
}

.page-request-quote #rq-error {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #be123c;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
}

.page-request-quote .rq-toast {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(var(--bottom-nav-height, 84px) + 16px);
  z-index: 220;
  width: min(560px, calc(100vw - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 15px 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(61, 90, 254, 0.12);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.9)),
    radial-gradient(circle at top right, rgba(67, 97, 238, 0.16), transparent 42%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 55px rgba(25, 38, 77, 0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.page-request-quote .rq-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.page-request-quote .rq-toast.success {
  border-color: rgba(25, 135, 86, 0.16);
  background: linear-gradient(145deg, rgba(250, 255, 252, 0.96), rgba(236, 252, 245, 0.92));
}

.page-request-quote .rq-toast.warning {
  border-color: rgba(199, 122, 18, 0.22);
  background: linear-gradient(145deg, rgba(255, 252, 245, 0.96), rgba(255, 246, 229, 0.94));
}

.page-request-quote .rq-toast.error {
  border-color: rgba(186, 63, 83, 0.2);
  background: linear-gradient(145deg, rgba(255, 249, 250, 0.96), rgba(255, 239, 242, 0.94));
}

.page-request-quote .rq-toast-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #4361ee, #5cc6ff);
  box-shadow: 0 12px 22px rgba(67, 97, 238, 0.22);
}

.page-request-quote .rq-toast.success .rq-toast-icon {
  background: linear-gradient(135deg, #1f9a65, #41c482);
}

.page-request-quote .rq-toast.warning .rq-toast-icon {
  background: linear-gradient(135deg, #c77a12, #e6a437);
}

.page-request-quote .rq-toast.error .rq-toast-icon {
  background: linear-gradient(135deg, #ba3f53, #dc6277);
}

.page-request-quote .rq-toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.page-request-quote .rq-toast-copy strong {
  color: #1f2a44;
  font-size: 14px;
  font-weight: 900;
}

.page-request-quote .rq-toast-copy p {
  margin: 0;
  color: #5d5874;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 700;
  white-space: pre-line;
}

.page-request-quote .rq-toast-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(67, 97, 238, 0.08);
  color: #3150d1;
}

.page-request-quote .rq-toast-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(67, 97, 238, 0.95), rgba(92, 198, 255, 0.95));
  transform-origin: right center;
  transform: scaleX(0);
}

.page-request-quote .rq-toast.show .rq-toast-progress {
  animation: rqToastTimer 4.6s linear forwards;
}

.page-request-quote .rq-submit-state {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 18, 34, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.page-request-quote .rq-submit-state.visible {
  opacity: 1;
  pointer-events: auto;
}

.page-request-quote .rq-submit-state-card {
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.94)),
    radial-gradient(circle at top right, rgba(67, 97, 238, 0.2), transparent 42%);
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.24);
}

.page-request-quote .rq-submit-state-orb {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(135deg, #4361ee, #5cc6ff);
  box-shadow: 0 16px 28px rgba(67, 97, 238, 0.24);
  position: relative;
}

.page-request-quote .rq-submit-state-orb::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  animation: rqSubmitSpin 0.9s linear infinite;
}

.page-request-quote .rq-submit-state-copy {
  display: grid;
  gap: 10px;
}

.page-request-quote .rq-submit-state-copy strong {
  color: #14213d;
  font-size: 18px;
  font-weight: 900;
}

.page-request-quote .rq-submit-state-copy p {
  margin: 0;
  color: #44506b;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 700;
}

.page-request-quote .rq-submit-state-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #3150d1;
  font-size: 13px;
  font-weight: 800;
}

.page-request-quote .rq-submit-state-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(67, 97, 238, 0.1);
  overflow: hidden;
}

.page-request-quote .rq-submit-state-progress span {
  display: block;
  width: 6%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4361ee, #5cc6ff);
  box-shadow: 0 8px 18px rgba(67, 97, 238, 0.18);
  transition: width 0.18s ease;
}

.page-request-quote .rq-actions .btn-primary-lg.is-loading {
  opacity: 0.96;
}

@keyframes rqToastTimer {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes rqSubmitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 860px) {
  .page-request-quote .rq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 12px;
  }

  .page-request-quote .rq-span-full {
    grid-column: 1 / -1;
  }

  .page-request-quote .rq-form {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .page-request-quote .rq-form .form-input,
  .page-request-quote .rq-form .form-select,
  .page-request-quote .rq-form .form-textarea {
    font-size: 12px;
  }

  .page-request-quote .rq-upload-trigger {
    min-height: 84px;
  }

  .page-request-quote .rq-toast {
    grid-template-columns: auto 1fr;
    padding: 14px 14px 18px;
  }

  .page-request-quote .rq-toast-close {
    grid-column: 2;
    justify-self: end;
    margin-top: -4px;
  }

  .page-request-quote .rq-submit-state {
    padding: 18px;
  }

  .page-request-quote .rq-submit-state-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .page-request-quote .rq-submit-state-orb {
    width: 48px;
    height: 48px;
  }
}

/* ====================================================================
   PROVIDER DETAIL PAGE — Redesigned to match mobile app
   ==================================================================== */

/* ── Hero section ── */
.pd-page {
  padding-bottom: var(--space-2xl);
  background:
    radial-gradient(1200px 360px at 50% -80px, rgba(103, 58, 183, 0.12), transparent 62%),
    var(--color-bg);
}
.pd-hero { position: relative; isolation: isolate; }
.pd-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 88px;
  background: linear-gradient(180deg, rgba(245, 245, 250, 0) 0%, rgba(245, 245, 250, 0.92) 72%, var(--color-bg) 100%);
  pointer-events: none;
  z-index: 4;
}
.pd-cover {
  height: clamp(210px, 32vw, 360px);
  background: linear-gradient(135deg, #412a7a 0%, #5e3ba0 42%, #8968c4 100%);
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .pd-cover {
    height: 200px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
}
@media (min-width: 1180px) { .pd-cover { height: 340px; } }
.pd-cover .pd-cover-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  z-index: 2;
}
.pd-cover .pd-cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: blur(18px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.72;
  z-index: 1;
}
.pd-cover.has-media {
  background: #2e1a58;
}
.pd-cover.has-gallery {
  box-shadow: inset 0 -32px 56px rgba(9, 6, 17, 0.18);
}
.pd-cover-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(9, 6, 17, 0.56) 0%, rgba(9, 6, 17, 0.12) 58%, transparent 100%);
  z-index: 3;
}

.pd-cover-actions {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 8px; z-index: 6;
}
[dir="rtl"] .pd-cover-actions { left: auto; right: 12px; }
.pd-cover-actions-right {
  left: auto; right: 12px;
}
[dir="rtl"] .pd-cover-actions-right { right: auto; left: 12px; }
.pd-cover-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition-fast);
}
.pd-cover-btn:hover { background: rgba(255,255,255,0.3); }
.pd-cover-btn.bookmarked svg { fill: #fff; }
.pd-cover-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(9, 6, 17, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pd-cover-gallery-dots.hidden {
  display: none;
}
.pd-cover-gallery-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}
.pd-cover-gallery-dot.is-active {
  width: 22px;
  background: linear-gradient(135deg, #f3c96b, #ffffff);
}

/* ── Avatar centered (RTL-safe) ── */
/* pd-avatar-area: sits between hero and identity, pulls up to overlap cover */
.pd-avatar-area {
  display: flex;
  justify-content: center;
  margin-top: -44px;
  position: relative;
  z-index: 12;
}
/* pd-avatar-wrap: RELATIVE positioning — badges are anchored to this box, which
   has the exact same pixel dimensions as the visible avatar circle */
.pd-avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
}
.pd-avatar {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 4px solid rgba(255, 255, 255, 0.96);
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 900; color: var(--color-primary);
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(18, 10, 36, 0.28);
}
@media (max-width: 520px) {
  .pd-avatar-area { margin-top: -36px; }
  .pd-avatar-wrap { width: 96px; height: 96px; }
  .pd-avatar { font-size: 30px; }
}
@media (min-width: 769px) {
  .pd-avatar-wrap { width: 116px; height: 116px; }
}
@media (min-width: 1024px) {
  .pd-avatar-wrap { width: 124px; height: 124px; }
}
.pd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-online-dot { display: none; }
/* Presence dot OUTSIDE the visible avatar at bottom-left of .pd-avatar-anchor.
   The anchor overlay (100×100) is positioned by JS to exactly match the visible
   .pd-avatar (R=50). With dot=16px (radius 8), inner edge tangent to R=50:
     center distance d = 50 + 8 = 58 (anchor-half = 50 → factor 1.16)
     → cx = 50% − 50% × 1.16 × cos45° ≈ 8.99%
     → cy = 50% + 50% × 1.16 × sin45° ≈ 91.01%
   Scoped strictly under .pd-avatar-anchor so no other avatar is affected. */
.pd-avatar-anchor > .nw-presence-dot {
  position: absolute;
  inset-inline-end: auto;
  inset-inline-start: auto;
  right: auto;
  bottom: auto;
  left: 8.99%;
  top: 91.01%;
  width: 16px;
  height: 16px;
  border-width: 2px;
  z-index: 20;
  box-shadow: 0 0 0 2px rgba(255,255,255,.92), 0 4px 10px rgba(15,23,42,.18);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
[dir="rtl"] .pd-avatar-anchor > .nw-presence-dot {
  inset-inline-end: auto;
  inset-inline-start: auto;
  right: auto;
  left: 8.99%;
}
/* ── Verification badges: anchored to pd-avatar-wrap corners ── */
.pd-avatar-badge {
  position: absolute;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 10px 24px rgba(27, 20, 48, 0.14);
  z-index: 5;
}
.pd-avatar-badge svg {
  width: 12px;
  height: 12px;
  display: block;
}
.pd-avatar-badge-blue {
  top: 0;
  left: -6px;
  background: #5da9e9;
}
.pd-avatar-badge-green {
  top: 0;
  right: -6px;
  background: #4caf50;
}
.pd-avatar-excellence-badges {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.pd-avatar-excellence-badges.hidden {
  display: none;
}
.pd-avatar-excellence-badge {
  --pd-excellence-color: #c0841a;
  --badge-left: 50%;
  --badge-bottom: -8px;
  position: absolute;
  left: var(--badge-left);
  bottom: var(--badge-bottom);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--pd-excellence-color);
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 20, 48, 0.14);
}
.pd-avatar-excellence-badge svg {
  width: 12px;
  height: 12px;
  display: block;
}
.pd-avatar-excellence-badge.is-more {
  background: rgba(17, 24, 39, 0.92);
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.2px;
}
.pd-avatar-badge.hidden { display: none; }

@media (max-width: 520px) {
  .pd-avatar-badge,
  .pd-avatar-excellence-badge {
    width: 24px;
    height: 24px;
  }

  .pd-avatar-badge-blue {
    left: -5px;
  }

  .pd-avatar-badge-green {
    right: -5px;
  }

  .pd-avatar-excellence-badge svg {
    width: 11px;
    height: 11px;
  }
}

/* ── Identity section ── */
.pd-identity {
  text-align: center;
  padding: 16px var(--space-lg) var(--space-md);
}
.pd-name {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  color: var(--color-text);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.35px;
}
.pd-handle {
  font-size: clamp(12px, 1.2vw, 15px);
  color: var(--color-text-tertiary);
  margin: 4px 0 3px;
  font-weight: 700;
}
.pd-excellence-badges {
  display: flex;
  justify-content: center;
  margin: 10px 0 2px;
}
.pd-excellence-badges.hidden {
  display: none;
}
.pd-excellence-intro {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-bottom: 8px;
}
.pd-excellence-title {
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: var(--color-text);
}
.pd-excellence-hint {
  margin: 0;
  max-width: min(100%, 360px);
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  text-align: center;
}
.pd-excellence-badges .excellence-badges {
  justify-content: center;
  max-width: min(100%, 520px);
}
.pd-category-text {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(11px, 1.15vw, 14px);
  font-weight: 700;
  color: var(--color-text-secondary);
  margin: 4px 0 0;
}
.pd-return-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-sm);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.pd-return-map:hover {
  background: var(--color-primary);
  color: #fff;
}
.pd-return-map.hidden {
  display: none;
}

/* ── Stats card (matches mobile design) ── */
.pd-stats-card {
  display: flex; align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  border-radius: 20px;
  border: 1px solid rgba(103, 58, 183, 0.14);
  padding: 12px 10px;
  box-shadow: 0 10px 24px rgba(23, 12, 46, 0.09);
  margin: 0 auto 10px;
  max-width: 980px;
}
.pd-stats-card:hover {
  box-shadow: 0 14px 30px rgba(23, 12, 46, 0.11);
}
.pd-stat {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}
.pd-stat-value {
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 900;
  color: var(--color-primary);
  font-family: 'Cairo', sans-serif;
  line-height: 1;
}
.pd-stat-label {
  font-size: clamp(10px, 0.95vw, 13px);
  font-weight: 700;
  color: var(--color-text-tertiary);
  line-height: 1.2;
}
.pd-stat-divider {
  width: 1px; height: 36px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ── Action buttons (matches mobile) ── */
.pd-actions {
  display: grid;
  gap: 12px;
  margin-bottom: var(--space-lg);
}
.pd-action-follow {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  min-height: 48px;
  padding: 12px var(--space-md);
  border-radius: 16px;
  background: var(--color-surface); color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 13px; font-weight: 800;
  cursor: pointer; transition: all var(--transition-fast);
}
.pd-action-follow:hover { background: var(--color-primary-subtle); }
.pd-action-follow.following {
  background: var(--color-primary-subtle);
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}
.pd-action-primary {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  min-height: 68px;
  padding: 14px 16px;
  text-align: right;
}
.pd-action-primary-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.16);
}
.pd-action-primary-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.pd-action-primary-copy strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}
.pd-action-primary-copy small {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  color: inherit;
  opacity: 0.88;
}
.pd-actions-contact-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.pd-actions-contact-head {
  display: grid;
  gap: 4px;
}
.pd-actions-contact-title {
  margin: 0;
  color: var(--color-text);
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 900;
}
.pd-actions-contact-note {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}
.pd-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pd-action-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition-fast);
  color: var(--color-primary);
}
.pd-action-icon:hover { background: var(--color-primary-subtle); border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.pd-action-tile {
  width: 100%;
  min-height: 78px;
  height: auto;
  padding: 12px;
  border-radius: 16px;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  text-align: right;
}
.pd-action-tile-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-subtle);
}
.pd-action-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.pd-action-copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}
.pd-action-copy small {
  color: var(--color-text-secondary);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
}
.pd-action-whatsapp { color: #25D366; }
.pd-action-whatsapp:hover { border-color: #25D366; background: rgba(37,211,102,0.06); }
.pd-action-whatsapp .pd-action-tile-icon {
  background: rgba(37,211,102,0.10);
}
.pd-action-chat .pd-action-tile-icon {
  background: rgba(13,94,118,0.10);
}
@media (max-width: 640px) {
  .pd-action-follow {
    min-height: 44px;
    font-size: 12px;
    padding-inline: 12px;
  }
  .pd-action-primary {
    min-height: 62px;
    padding: 12px 14px;
  }
  .pd-action-primary-copy strong {
    font-size: 15px;
  }
  .pd-actions-contact-card {
    padding: 14px;
  }
  .pd-actions-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pd-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .pd-action-tile {
    width: 100%;
    min-height: 66px;
    height: auto;
  }
  body.page-provider-detail .pd-tab {
    font-size: 11px;
    padding: 8px 11px;
  }
}

/* ── Highlights / Spotlights ── */
.pd-highlights-section {
  margin-bottom: var(--space-lg);
  padding: 18px 16px 14px;
  border-radius: 24px;
  border: 1px solid rgba(125, 97, 255, 0.10);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(20, 184, 166, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(249,250,255,0.92));
  box-shadow:
    0 18px 40px rgba(40, 29, 84, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.75);
}
.pd-highlights-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  color: var(--color-text-muted, #9ca3af);
  text-align: center;
  width: 100%;
}
.pd-highlights-empty-icon svg { opacity: 0.4; }
.pd-highlights-empty-text {
  font-size: 13px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  opacity: 0.7;
}
.pd-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(103, 58, 183, 0.18);
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.12), rgba(103, 58, 183, 0.04));
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 10px 24px rgba(78, 42, 145, 0.08);
}
.pd-mode-badge[data-mode="provider"] {
  border-color: rgba(16, 185, 129, 0.18);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
  color: #0f766e;
}
.pd-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.pd-section-title {
  font-size: 17px; font-weight: 900; color: #1f2940;
  margin: 0;
}
.pd-section-hint {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(125, 97, 255, 0.10);
  font-size: 11px;
  color: #7a869d;
  font-weight: 800;
}
.pd-highlights-row {
  display: flex; gap: 16px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 10px;
}
.pd-highlights-row::-webkit-scrollbar { display: none; }
.pd-highlight-item {
  flex-shrink: 0;
  width: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform .22s ease, filter .22s ease;
}
.pd-highlight-item:hover {
  transform: translateY(-5px);
  filter: saturate(1.05);
}
.pd-highlight-item:active { transform: scale(0.96); }

.pd-highlight-thumb {
  width: 102px; height: 102px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  padding: 5px;
  position: relative;
  overflow: hidden;
  margin: 0 auto 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.4), rgba(255,255,255,0.05)) padding-box,
    conic-gradient(from 210deg, #5b7cff 0deg, #17b8c8 72deg, #74d26b 146deg, #f59e0b 236deg, #8b5cf6 310deg, #5b7cff 360deg) border-box;
  box-shadow:
    0 18px 36px rgba(34, 24, 75, 0.18),
    0 5px 14px rgba(91, 124, 255, 0.14);
  transition: transform .22s ease, box-shadow .22s ease;
}
.pd-highlight-item:hover .pd-highlight-thumb {
  transform: translateY(-1px);
  box-shadow:
    0 24px 42px rgba(34, 24, 75, 0.24),
    0 8px 18px rgba(91, 124, 255, 0.18);
}

/* Media fills the content area (padding creates the ring gap) */
.pd-highlight-thumb img,
.pd-highlight-thumb .pd-highlight-preview-video,
.pd-highlight-fallback {
  width: 100%; height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
}

/* Subtle glass overlay on top of media */
.pd-highlight-thumb::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.24), rgba(255,255,255,0.03) 48%, rgba(17,24,39,0.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.38);
  z-index: 2;
  pointer-events: none;
}

.pd-highlight-thumb::after {
  content: none;
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.pd-highlight-preview-video {
  background: linear-gradient(145deg, #f8fafc, #dbeafe);
}

.pd-highlight-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #5e35b1, #14b8a6);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.pd-highlight-stats { display: none !important; }
.pd-highlight-stat  { display: none !important; }
.pd-highlight-label {
  min-height: 32px;
  padding: 6px 10px 0;
  font-size: 12px;
  line-height: 1.35;
  color: #374151;
  font-weight: 800;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 112px;
  margin: 0 auto;
}

/* ── Tabs (icon + text like mobile) ── */
.pd-tabs {
  display: flex; gap: var(--space-sm);
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-family: 'Cairo', sans-serif;
  font-size: 12px; font-weight: 700;
  color: var(--color-text-secondary);
  cursor: pointer; transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}
.pd-tab > svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.pd-tab-text {
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
}
.pd-tab-meta {
  min-width: 22px;
  height: 20px;
  border-radius: 999px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--color-text-tertiary);
  background: rgba(103, 58, 183, 0.08);
  border: 1px solid rgba(103, 58, 183, 0.16);
}
.pd-tab:hover { background: var(--color-primary-subtle); border-color: var(--color-primary); color: var(--color-primary); }
.pd-tab.active {
  background: rgba(103,58,183,0.10);
  border-color: rgba(103,58,183,0.35);
  color: var(--color-primary);
}
.pd-tab.active svg { fill: var(--color-primary); }
.pd-tab.active .pd-tab-meta {
  color: var(--color-primary);
  background: rgba(103, 58, 183, 0.14);
  border-color: rgba(103, 58, 183, 0.3);
}
.pd-tab svg { fill: var(--color-text-tertiary); transition: fill var(--transition-fast); }
.pd-tab:hover svg { fill: var(--color-primary); }
.pd-tab:focus-visible {
  outline: 2px solid rgba(103, 58, 183, 0.42);
  outline-offset: 2px;
}

/* ── Tab content ── */
.pd-tab-content { min-height: 200px; }
.pd-panel { display: none; animation: fadeIn 0.3s ease; }
.pd-panel.active { display: block; }

/* ── Profile tab — Form cards ── */
.pd-card {
  background: var(--color-surface);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid transparent;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.pd-card:hover {
  border-color: rgba(103, 58, 183, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(20, 20, 38, 0.07);
}
.pd-card-title {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 12px; font-weight: 900; color: var(--color-text);
  margin: 0 0 var(--space-md);
}
.pd-bio-text {
  font-size: 11px; color: var(--color-text-secondary);
  line-height: 1.6; margin: 0;
}
.pd-field-row { padding: var(--space-sm) 0; }
.pd-field-label {
  display: block;
  font-size: 10.5px; font-weight: 700;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}
.pd-field-value {
  display: block;
  font-size: 11.5px; font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}
.pd-field-divider {
  height: 1px; background: var(--color-border);
  margin: var(--space-xs) 0;
}

/* ── Contact list ── */
.pd-contact-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.pd-contact-row {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: 13px; color: var(--color-text);
  transition: all var(--transition-fast);
}
.pd-contact-row:hover { background: var(--color-primary-subtle); }
.pd-contact-row svg { flex-shrink: 0; }

/* ── Social links ── */
.pd-social-list { display: flex; flex-direction: column; gap: var(--space-md); }
.pd-social-row {
  display: flex; align-items: center; gap: var(--space-md);
}
.pd-social-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  display: flex; align-items: center; justify-content: center;
}
.pd-social-info { flex: 1; min-width: 0; }
.pd-social-label {
  font-size: 11px; font-weight: 700; color: var(--color-text-tertiary);
}
.pd-social-value {
  font-size: 13px; font-weight: 700; color: var(--color-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-social-link {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.pd-social-link:hover { background: var(--color-primary-subtle); }

/* ── Hours grid ── */
.pd-hours-grid { display: flex; flex-direction: column; gap: var(--space-sm); }
.pd-hours-row {
  display: flex; justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: 13px;
}
.pd-hours-day { font-weight: 700; color: var(--color-text); }
.pd-hours-time { color: var(--color-text-secondary); }

/* ── Map ── */
.pd-map-container {
  width: 100%; height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* ── Quick actions at bottom of profile tab ── */
.pd-quick-actions {
  display: flex; gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.pd-quick-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-family: 'Cairo', sans-serif;
  font-size: 12px; font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.pd-quick-btn:hover { border-color: var(--color-primary); background: var(--color-primary-subtle); color: var(--color-primary); }

/* ── Services grid (2 cols like mobile) ── */
.pd-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (min-width: 768px) { .pd-services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .pd-services-grid { grid-template-columns: repeat(4, 1fr); } }

.pd-service-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.pd-service-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pd-service-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--color-bg);
  overflow: hidden;
}
.pd-service-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-service-img .pd-service-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-tertiary);
}
.pd-service-body { padding: var(--space-md); }
.pd-service-name {
  font-size: 13px; font-weight: 700; color: var(--color-text);
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pd-service-desc {
  font-size: 11px; color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.5;
}
.pd-service-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm);
}
.pd-service-price {
  font-size: 12px; font-weight: 800; color: var(--color-primary);
}
.pd-service-duration {
  font-size: 11px; color: var(--color-text-tertiary);
  display: flex; align-items: center; gap: 4px;
}

/* ── Portfolio grid ── */
.pd-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
@media (min-width: 768px) { .pd-portfolio-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-md); } }
@media (min-width: 1024px) { .pd-portfolio-grid { grid-template-columns: repeat(5, 1fr); } }
.pd-portfolio-item {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast);
}
.pd-portfolio-item:hover { transform: scale(1.03); }
.pd-portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.pd-portfolio-item .pd-portfolio-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 6px 8px;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 100%);
  color: #fff; font-size: 10px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-portfolio-item .pd-portfolio-video-badge {
  position: absolute; top: 40px; left: 8px;
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
[dir="rtl"] .pd-portfolio-item .pd-portfolio-video-badge { left: auto; right: 8px; }
.pd-portfolio-item .pd-portfolio-item-stats {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
[dir="rtl"] .pd-portfolio-item .pd-portfolio-item-stats { left: auto; right: 8px; }
.pd-portfolio-item .pd-portfolio-item-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.pd-portfolio-item .pd-portfolio-item-action {
  border: 0;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.pd-portfolio-item .pd-portfolio-item-action:hover {
  transform: translateY(-1px);
  background: rgba(19, 18, 29, 0.78);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}
.pd-portfolio-item .pd-portfolio-item-action:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}
.pd-portfolio-item .pd-portfolio-item-stat.active {
  background: color-mix(in srgb, var(--color-primary) 72%, black 28%);
}
.pd-portfolio-item .pd-portfolio-item-stat svg {
  width: 12px;
  height: 12px;
}
.pd-portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(26,18,52,0.12) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}
.pd-portfolio-item:hover::after {
  opacity: 1;
}

/* ── Rating summary ── */
.pd-rating-summary {
  background:
    radial-gradient(circle at top, rgba(20, 184, 166, 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: var(--space-lg);
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}
.pd-rating-big {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 900;
  color: #1f2340;
  margin-bottom: 6px;
}
.pd-rating-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  margin-top: 2px;
  border-radius: 999px;
  font-size: 12px;
  color: #4b5563;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.pd-rating-bars {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 18px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.pd-rating-bars-title {
  font-size: 12px;
  font-weight: 900;
  color: #184e63;
  margin-bottom: 2px;
}
.pd-rating-bar-row {
  display: flex; align-items: center; gap: var(--space-sm);
}
.pd-rating-bar-label {
  font-size: 12px;
  color: #334155;
  min-width: 54px;
  text-align: start;
  font-weight: 900;
}
.pd-rating-bar {
  flex: 1; height: 8px;
  border-radius: var(--radius-full);
  background: rgba(226, 232, 240, 0.72);
  overflow: hidden;
}
.pd-rating-bar-meta {
  min-width: 86px;
  text-align: end;
  font-size: 11px;
  color: #64748b;
  font-weight: 800;
}
.pd-rating-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #6d28d9 0%, #14b8a6 100%);
  transition: width 0.4s ease;
}

/* ── Reviews list ── */
.pd-reviews-list {
  position: relative;
  overflow: hidden;
}
.pd-reviews-static {
  display: grid;
  gap: var(--space-md);
}
.pd-reviews-static-featured {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}
.pd-reviews-static .pd-review-card {
  flex: none;
}
.pd-reviews-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.pd-reviews-track {
  --pd-reviews-duration: 36s;
  display: flex;
  width: max-content;
  animation: pd-reviews-scroll var(--pd-reviews-duration) linear infinite;
  will-change: transform;
}
.pd-reviews-marquee:hover .pd-reviews-track,
.pd-reviews-marquee:focus-within .pd-reviews-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .pd-reviews-track { animation: none; }
}
.pd-reviews-track-group {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
  padding-inline-end: var(--space-md);
}
.pd-review-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,255,0.96));
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
  flex: 0 0 clamp(260px, 42vw, 340px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pd-review-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}
.pd-review-author-wrap {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.pd-review-author {
  font-size: 19px; font-weight: 900; color: #172033;
}
.pd-review-author-action {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: start;
  transition: color 0.18s ease, opacity 0.18s ease;
}
.pd-review-author-action:hover,
.pd-review-author-action:focus-visible {
  color: #0f766e;
  outline: none;
}
.pd-review-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pd-review-stars { display: flex; gap: 2px; }
.pd-review-score {
  font-size: 13px;
  font-weight: 900;
  color: #334155;
}
.pd-review-text {
  font-size: 14px; color: #475569;
  line-height: 1.9; margin-bottom: 0;
}
.pd-review-reply {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(109, 40, 217, 0.05);
  border: 1px solid rgba(109, 40, 217, 0.12);
  border-inline-start: 3px solid #14b8a6;
}
.pd-review-reply-label {
  font-size: 11px;
  font-weight: 800;
  color: #6d28d9;
  margin-bottom: 4px;
}
.pd-review-reply-text {
  font-size: 12px;
  line-height: 1.7;
  color: #475569;
}
.pd-review-date { font-size: 12px; color: #94a3b8; font-weight: 800; }
@keyframes pd-reviews-scroll {
  0% { transform: translateX(calc(-50% - (var(--space-md) / 2))); }
  100% { transform: translateX(0); }
}

@media (max-width: 640px) {
  .pd-rating-bar-row {
    flex-wrap: wrap;
  }
  .pd-rating-bar-label,
  .pd-rating-bar-meta {
    min-width: unset;
    width: auto;
  }
  .pd-rating-bar-meta {
    margin-inline-start: auto;
  }
  .pd-review-header {
    align-items: flex-start;
  }
  .pd-review-author {
    font-size: 17px;
  }
  body.page-provider-detail,
  body.page-provider-detail .pd-page,
  body.page-provider-detail .pd-content-shell,
  body.page-provider-detail .pd-tab-content,
  body.page-provider-detail #tab-reviews,
  body.page-provider-detail .pd-reviews-list {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  body.page-provider-detail .pd-reviews-marquee {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    -webkit-mask-image: none;
            mask-image: none;
  }

  body.page-provider-detail .pd-reviews-track {
    width: 100%;
    display: block;
    transform: none !important;
    animation: none;
  }

  body.page-provider-detail .pd-reviews-track-group {
    display: grid;
    gap: var(--space-md);
    padding-inline-end: 0;
  }

  body.page-provider-detail .pd-reviews-track-group + .pd-reviews-track-group {
    display: none;
  }

  body.page-provider-detail .pd-review-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: none;
  }
}

/* ── Empty state ── */
.pd-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--color-text-tertiary);
}
.pd-empty-icon { font-size: 40px; margin-bottom: var(--space-md); }
.pd-empty p { font-size: 14px; font-weight: 600; }
.pd-empty .pd-empty-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
}
.pd-empty .pd-empty-subtitle {
  margin: 6px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

/* ── Loading shimmer ── */
.nw-skeleton-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(103, 58, 183, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,245,255,0.88));
  box-shadow: 0 16px 32px rgba(24, 20, 37, 0.05);
}
.nw-skeleton-block {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(236, 231, 247, 0.86) 0%, rgba(255,255,255,0.98) 50%, rgba(236, 231, 247, 0.86) 100%);
  background-size: 220% 100%;
  animation: nw-skeleton-wave 1.7s ease-in-out infinite;
}
.nw-skeleton-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.42) 45%, transparent 100%);
  transform: translateX(-100%);
  animation: nw-skeleton-gloss 1.7s ease-in-out infinite;
}
.pd-shimmer {
  background: linear-gradient(90deg, var(--color-bg) 25%, var(--color-border) 50%, var(--color-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes nw-skeleton-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes nw-skeleton-gloss {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-skeleton-block,
  .nw-skeleton-block::after,
  .pd-shimmer {
    animation: none !important;
  }
}

/* ====================================================================
   PROFILE PAGE v2 — 1:1 Flutter match (نافذتي)
   ==================================================================== */

body.page-profile #top-navbar { display: none; }
body.page-profile #site-footer { display: none !important; }
body.page-profile #bottom-nav { display: flex !important; }
body.page-profile .page-content {
  padding-top: 0;
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
  background:
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.12), transparent 28%),
    radial-gradient(circle at 0% 24%, rgba(14, 165, 233, 0.08), transparent 26%),
    linear-gradient(180deg, #f7f7fc 0%, #f4f7fb 100%);
}
body.page-profile .container {
  max-width: none;
  padding-inline: 0;
}
body.page-profile #profile-content {
  display: grid;
  gap: 14px;
  padding-bottom: 4px;
}
body.page-profile .profile-page-layout {
  display: grid;
  gap: 14px;
}
body.page-profile .profile-page-sidebar,
body.page-profile .profile-page-main {
  display: grid;
  gap: 14px;
}
@media (min-width: 769px) {
  body.page-profile .container {
    max-width: 980px;
    margin-inline: auto;
  }

  body.page-profile .pv2-cover-copy {
    max-width: min(360px, 70%);
  }
}
body.page-profile #auth-gate:not(.auth-gate-unified) {
  width: min(100% - 32px, 860px);
  margin: 20px auto 0;
  padding: 0;
  min-height: auto;
  display: block;
  text-align: initial;
}

body.page-profile #auth-gate.auth-gate-unified {
  width: min(100% - 30px, 760px);
  margin: 18px auto 0;
}
body.page-profile #provider-dashboard-strip,
body.page-profile #provider-section {
  display: none !important;
}

body.page-profile .profile-guest-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(103, 58, 183, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 58, 183, 0.16), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(241, 165, 89, 0.18), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  box-shadow: 0 20px 42px rgba(30, 24, 58, 0.08);
}

body.page-profile .profile-guest-cover {
  position: relative;
  min-height: 178px;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #4A148C 0%, #673AB7 52%, #9B72E8 100%);
}

body.page-profile .profile-guest-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 38%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 30%);
}

body.page-profile .profile-guest-cover-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

body.page-profile .profile-guest-cover-orb-primary {
  width: 170px;
  height: 170px;
  inset-inline-start: -40px;
  bottom: -70px;
  background: rgba(255, 255, 255, 0.12);
}

body.page-profile .profile-guest-cover-orb-accent {
  width: 126px;
  height: 126px;
  inset-inline-end: -28px;
  top: -40px;
  background: rgba(255, 255, 255, 0.18);
}

body.page-profile .profile-guest-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

body.page-profile .profile-guest-cover-copy {
  position: absolute;
  inset-inline: 20px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
}

body.page-profile .profile-guest-cover-kicker {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.86;
}

body.page-profile .profile-guest-cover-copy strong {
  max-width: 290px;
  font-size: 22px;
  line-height: 1.55;
  font-weight: 900;
}

body.page-profile .profile-guest-avatar {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  margin: -46px auto 0;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, #7B4ED1 0%, #5F35A8 100%);
  box-shadow: 0 14px 30px rgba(74, 20, 140, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-profile .profile-guest-copy {
  padding: 16px 20px 0;
  text-align: center;
}

body.page-profile .profile-guest-eyebrow {
  margin: 0;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
}

body.page-profile .profile-guest-title {
  margin: 6px 0 0;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
}

body.page-profile .profile-guest-desc {
  max-width: 620px;
  margin: 10px auto 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.9;
}

body.page-profile .profile-guest-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 20px 0;
}

body.page-profile .profile-guest-actions .btn {
  min-width: 156px;
}

body.page-profile .profile-guest-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 20px;
}

body.page-profile .profile-guest-highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 126px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(103, 58, 183, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.page-profile .profile-guest-highlight-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(103, 58, 183, 0.10);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-profile .profile-guest-highlight strong {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 800;
}

body.page-profile .profile-guest-highlight span {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.75;
}

@media (min-width: 640px) {
  body.page-profile .profile-guest-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ─── Hero: Cover + Avatar + Name + Stats (320px stacked) ─── */
.pv2-hero {
  position: relative;
  margin: 0 14px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,249,255,0.96));
  border: 1px solid rgba(103, 58, 183, 0.08);
  box-shadow: 0 18px 40px rgba(20, 20, 38, 0.08);
}

/* Cover */
.pv2-cover {
  position: relative;
  height: 176px;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,0.18), transparent 18%),
    radial-gradient(circle at 84% 12%, rgba(255,255,255,0.14), transparent 20%),
    linear-gradient(135deg, #4A148C 0%, #673AB7 52%, #7C4FD4 100%);
}
@media (min-width: 769px) {
  .pv2-cover { height: 200px; border-radius: var(--radius-xl); }
}
.pv2-cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.pv2-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 30, 0.08), rgba(10, 10, 30, 0.22));
  pointer-events: none;
}

/* Cover top-bar mini buttons */
.pv2-cover-bar {
  position: absolute;
  top: calc(env(safe-area-inset-top, 8px) + 12px);
  left: auto;
  right: auto;
  inset-inline-end: 14px;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  z-index: 3;
}
.pv2-mini-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(22, 24, 40, 0.16);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}
.pv2-mini-btn:hover {
  background: rgba(255,255,255,0.24);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.2);
}
.pv2-mini-btn svg {
  opacity: 0.96;
}
.pv2-cover-copy {
  position: absolute;
  inset-inline: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 6px;
  max-width: min(320px, 78%);
  color: #fff;
}
.pv2-cover-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.pv2-cover-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
}
.pv2-cover-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
}

/* Avatar — overlapping cover */
.pv2-avatar-wrap {
  display: flex; justify-content: center;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}
.pv2-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.95);
  background: linear-gradient(180deg, #ffffff, #f4f2fb);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(66, 35, 126, 0.22);
  position: relative;
}
.pv2-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.pv2-avatar-initials {
  font-size: 28px; font-weight: 800;
  color: var(--color-text-tertiary);
}

/* Name + Username */
.pv2-name {
  text-align: center;
  font-size: 20px; font-weight: 900;
  color: var(--color-text);
  margin: 12px auto 2px;
  max-width: 92%;
  padding-inline: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.pv2-username {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin: 0 auto;
  max-width: 92%;
  overflow-wrap: anywhere;
}
.pv2-profile-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px 0;
}
.pv2-profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 11px;
  font-weight: 800;
  color: #475467;
}
.pv2-profile-chip.primary {
  background: rgba(103, 58, 183, 0.1);
  border-color: rgba(103, 58, 183, 0.16);
  color: #673ab7;
}

/* Upload progress bar */
.pv2-upload-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 11px; color: var(--color-text-tertiary);
}
.pv2-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: pv2spin .7s linear infinite;
}
@keyframes pv2spin { to { transform: rotate(360deg); } }

/* Stats card (inside hero) */
.pv2-stats {
  display: flex; align-items: center; justify-content: space-evenly;
  margin: 14px 18px 18px;
  padding: 12px 8px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(103, 58, 183, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(22, 24, 40, 0.06);
  backdrop-filter: blur(8px);
}
.pv2-stat {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 1px;
}
.pv2-stat-num {
  font-size: 16px; font-weight: 900;
  color: var(--color-primary);
  line-height: 1.2;
}
.pv2-stat-lbl {
  font-size: 10.5px;
  color: var(--color-text-tertiary);
}
.pv2-stat-div {
  width: 1px; height: 24px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ─── Account Mode Toggle ─── */
.pv2-mode-toggle {
  display: flex;
  margin: 0 18px;
  padding: 3px;
  border-radius: 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(103, 58, 183, 0.08);
  box-shadow: 0 10px 20px rgba(20, 20, 38, 0.04);
}
@media (min-width: 769px) {
  .pv2-mode-toggle { max-width: 340px; margin-left: auto; margin-right: auto; }
}
.pv2-mode-chip {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 5px;
  padding: 9px 0;
  border: none;
  border-radius: 13px;
  background: transparent;
  font-family: 'Cairo', sans-serif;
  font-size: 12px; font-weight: 600;
  color: #9e9e9e;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pv2-mode-chip.active {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(103,58,183,0.12);
}
.pv2-mode-chip:not(.active):hover {
  color: var(--color-primary);
  background: rgba(103,58,183,0.04);
}

/* ─── Quick actions row (always 4 cols) ─── */
.pv2-quick-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px;
}
.pv2-qa {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  min-height: 104px;
  padding: 14px 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,248,255,0.96));
  border: 1px solid rgba(103, 58, 183, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(20, 20, 38, 0.05);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.pv2-qa:hover {
  box-shadow: 0 16px 28px rgba(103,58,183,0.1);
  transform: translateY(-2px);
  border-color: rgba(103, 58, 183, 0.16);
}
.pv2-qa-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(103,58,183,0.14), rgba(103,58,183,0.07));
}
.pv2-qa span {
  font-size: 11px; font-weight: 800;
  color: var(--color-text);
  text-align: center;
  line-height: 1.5;
}
.pv2-section-heading {
  display: grid;
  gap: 4px;
  padding: 2px 16px 0;
}
.pv2-section-kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
}
.pv2-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.5;
}

/* ─── Menu card (single card, dividers) ─── */
.pv2-menu-card {
  margin: 0 14px;
  background: rgba(255,255,255,0.98);
  border-radius: 22px;
  border: 1px solid rgba(103, 58, 183, 0.07);
  box-shadow: 0 16px 30px rgba(20,20,38,0.05);
  overflow: hidden;
}
.pv2-menu-tile {
  display: flex; align-items: center;
  padding: 15px 16px;
  gap: 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
  text-decoration: none;
}
.pv2-menu-tile:hover {
  background: rgba(103,58,183,0.045);
}
.pv2-menu-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(103,58,183,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pv2-menu-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.pv2-menu-label {
  font-size: 12.5px; font-weight: 600;
  color: var(--color-text);
}
.pv2-menu-sub {
  font-size: 10px;
  color: var(--color-text-tertiary);
}
.pv2-menu-sub:empty { display: none; }
.pv2-menu-badge {
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(103,58,183,0.08);
  font-size: 10px; font-weight: 700;
  color: var(--color-primary);
}
.pv2-chevron {
  flex-shrink: 0;
  color: var(--color-text-tertiary);
}
.pv2-menu-div {
  height: 1px;
  margin: 0 14px;
  background: var(--color-border);
}

/* ─── Provider CTA ─── */
.pv2-provider-cta {
  display: flex; align-items: center;
  gap: 12px;
  margin: 0 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ede7f6, #ffffff 65%);
  border: 1px solid rgba(103,58,183,0.12);
  box-shadow: 0 16px 30px rgba(20,20,38,0.05);
}
.pv2-cta-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(103,58,183,0.10);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pv2-cta-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.pv2-cta-title {
  font-size: 12.5px; font-weight: 700;
  color: var(--color-text);
}
.pv2-cta-sub {
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}
.pv2-cta-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10.5px; font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}
.pv2-cta-btn:hover { opacity: .88; }

/* ═══ Legacy profile aliases (keep for provider section / KPIs) ═══ */
.profile-info {
  padding: 0 var(--space-lg);
  text-align: right;
}
.profile-avatar-wrap {
  justify-content: flex-end !important;
  padding-inline: var(--space-lg);
  margin-top: -36px;
}
@media (min-width: 769px) {
  .profile-avatar-wrap {
    justify-content: flex-end !important;
    padding-inline: var(--space-xl);
    margin-top: -44px;
  }
}
.profile-name,
.profile-username {
  text-align: right;
}
.profile-username {
  font-size: 13px; color: var(--color-text-tertiary);
}
.profile-role {
  font-size: 13px; color: var(--color-primary);
  font-weight: 600; text-align: right;
  margin-top: var(--space-xs);
}
.profile-cover-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}
.profile-mode-toggle {
  width: min(420px, 100%);
  margin: var(--space-md) auto 0;
  padding: 3px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
}
.mode-chip {
  border: none;
  border-radius: calc(var(--radius-lg) - 3px);
  min-height: 40px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.mode-chip.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.mode-chip:not(.active):hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}
.profile-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (min-width: 600px) { .profile-actions { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .profile-actions { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); } }

.profile-menu-section { margin-top: var(--space-xl); }
.profile-menu-section .section-title { font-size: 16px; margin-bottom: var(--space-md); }
.profile-menu-item {
  display: flex; align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  cursor: pointer; transition: all var(--transition-fast);
  text-decoration: none; margin-bottom: var(--space-sm);
}
.profile-menu-item:hover { border-color: var(--color-primary); background: var(--color-primary-subtle); }
.profile-menu-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.menu-arrow {
  color: var(--color-text-tertiary);
  flex-shrink: 0;
  margin-inline-start: auto;
}
.provider-dashboard-strip {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
.provider-kpi {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-xs);
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all var(--transition-fast);
}
.provider-kpi:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}
.provider-kpi-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}
.provider-kpi-label {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 600;
}
.provider-section { margin-top: var(--space-xl); }
.provider-profile-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  display: flex; align-items: center; gap: var(--space-md);
  cursor: pointer; transition: all var(--transition-fast);
  text-decoration: none;
}
.provider-profile-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }

@media (min-width: 1024px) {
  body.page-profile #top-navbar { display: block !important; }
  body.page-profile #site-footer { display: block !important; }
  body.page-profile #bottom-nav { display: flex !important; }

  body.page-profile .page-content {
    padding-top: calc(var(--navbar-height) + var(--space-lg));
    padding-bottom: var(--space-2xl);
    background:
      radial-gradient(circle at 100% 0%, rgba(103, 58, 183, 0.1), transparent 28%),
      radial-gradient(circle at 0% 20%, rgba(33, 150, 243, 0.06), transparent 24%),
      var(--color-bg);
  }

  body.page-profile .container {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 20px;
  }

  body.page-profile .pv2-hero,
  body.page-profile .pv2-mode-toggle,
  body.page-profile .pv2-quick-row,
  body.page-profile .pv2-menu-card,
  body.page-profile .pv2-provider-cta,
  body.page-profile .provider-dashboard-strip,
  body.page-profile .provider-section,
  body.page-profile #auth-gate:not(.auth-gate-unified) {
    max-width: 820px;
    margin-inline: auto;
  }

  body.page-profile #auth-gate.auth-gate-unified {
    max-width: 760px;
    margin-inline: auto;
  }

  body.page-profile .pv2-cover {
    border-radius: var(--radius-xl);
  }

  body.page-profile .pv2-hero {
    border: 1px solid rgba(103, 58, 183, 0.08);
    box-shadow: 0 18px 38px rgba(20, 20, 38, 0.08);
    overflow: hidden;
  }

  body.page-profile .pv2-name {
    font-size: 30px;
    font-weight: 900;
  }

  body.page-profile .pv2-username {
    font-size: 14px;
  }

  body.page-profile .pv2-stats,
  body.page-profile .provider-dashboard-strip {
    box-shadow: 0 14px 28px rgba(20, 20, 38, 0.07);
  }

  body.page-profile .pv2-quick-row {
    padding-inline: 0;
  }

  body.page-profile .pv2-section-heading {
    padding-inline: 0;
  }

  body.page-profile .pv2-qa,
  body.page-profile .pv2-menu-tile,
  body.page-profile .profile-menu-item {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  body.page-profile .pv2-qa:hover,
  body.page-profile .pv2-menu-tile:hover,
  body.page-profile .profile-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(20, 20, 38, 0.08);
  }

  body.page-profile .pv2-menu-card,
  body.page-profile .pv2-provider-cta {
    margin-top: 12px;
    box-shadow: 0 16px 32px rgba(20, 20, 38, 0.06);
  }

  body.page-profile .profile-guest-title {
    font-size: 30px;
  }

  body.page-profile .profile-guest-desc {
    font-size: 15px;
  }

  body.page-profile .profile-guest-shell {
    box-shadow: 0 24px 48px rgba(20, 20, 38, 0.08);
  }
}

@media (min-width: 860px) {
  body.page-profile .page-content {
    padding-top: calc(var(--navbar-height) + var(--space-lg));
    padding-bottom: calc(var(--bottom-nav-height) + var(--space-xl));
  }

  body.page-profile .container {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 20px;
  }

  body.page-profile #profile-content {
    max-width: none;
    padding-bottom: 0;
  }

  body.page-profile .profile-page-layout {
    grid-template-columns: minmax(320px, 372px) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
  }

  body.page-profile .profile-page-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 18px);
  }

  body.page-profile .profile-page-main {
    min-width: 0;
  }

  body.page-profile .profile-page-layout .pv2-hero,
  body.page-profile .profile-page-layout .pv2-mode-toggle,
  body.page-profile .profile-page-layout .provider-dashboard-strip,
  body.page-profile .profile-page-layout .pv2-quick-row,
  body.page-profile .profile-page-layout .pv2-menu-card,
  body.page-profile .profile-page-layout .pv2-provider-cta,
  body.page-profile .profile-page-layout .provider-section,
  body.page-profile .profile-page-layout .pv2-section-heading {
    margin: 0;
    max-width: none;
  }

  body.page-profile .profile-page-layout .pv2-hero {
    border-radius: 28px;
  }

  body.page-profile .profile-page-layout .pv2-cover {
    height: 220px;
    border-radius: 28px 28px 24px 24px;
  }

  body.page-profile .profile-page-layout .pv2-cover-bar {
    top: 18px;
    inset-inline-end: 18px;
  }

  body.page-profile .profile-page-layout .pv2-mini-btn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  body.page-profile .profile-page-layout .pv2-cover-copy {
    max-width: min(280px, 72%);
  }

  body.page-profile .profile-page-layout .pv2-cover-title {
    font-size: 24px;
  }

  body.page-profile .profile-page-layout .pv2-cover-sub {
    font-size: 11.5px;
  }

  body.page-profile .profile-page-layout .pv2-avatar-wrap {
    margin-top: -48px;
  }

  body.page-profile .profile-page-layout .pv2-name {
    font-size: 26px;
    padding-inline: 18px;
  }

  body.page-profile .profile-page-layout .pv2-username {
    font-size: 13px;
  }

  body.page-profile .profile-page-layout .pv2-stats {
    margin: 16px 16px 18px;
  }

  body.page-profile .profile-page-layout .pv2-mode-toggle {
    margin: 0;
    max-width: none;
  }

  body.page-profile .profile-page-layout .pv2-quick-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
    gap: 12px;
  }

  body.page-profile .profile-page-layout .pv2-qa {
    min-height: 118px;
  }

  body.page-profile .profile-page-layout .pv2-section-heading {
    padding: 2px 2px 0;
  }

  body.page-profile .profile-page-layout .pv2-menu-card,
  body.page-profile .profile-page-layout .pv2-provider-cta,
  body.page-profile .profile-page-layout .provider-section {
    box-shadow: 0 16px 30px rgba(20, 20, 38, 0.06);
  }
}

@media (min-width: 860px) and (max-width: 1099px) {
  body.page-profile .profile-page-layout {
    grid-template-columns: minmax(288px, 340px) minmax(0, 1fr);
    gap: 18px;
  }

  body.page-profile .profile-page-layout .pv2-quick-row {
    gap: 10px;
  }

  body.page-profile .profile-page-layout .pv2-qa {
    min-height: 108px;
    padding-inline: 6px;
  }
}

@media (min-width: 1024px) {
  body.page-orders .page-content,
  body.page-provider-orders .page-content,
  body.page-chats .page-content,
  body.page-notifications .page-content {
    background:
      radial-gradient(circle at 100% 0%, rgba(103, 58, 183, 0.1), transparent 28%),
      radial-gradient(circle at 0% 20%, rgba(33, 150, 243, 0.06), transparent 24%),
      var(--color-bg);
  }

  body.page-orders #top-navbar,
  body.page-provider-orders #top-navbar,
  body.page-chats #top-navbar,
  body.page-notifications #top-navbar,
  body.page-orders #site-footer,
  body.page-provider-orders #site-footer,
  body.page-chats #site-footer,
  body.page-notifications #site-footer {
    display: block !important;
  }

  body.page-orders #bottom-nav,
  body.page-provider-orders #bottom-nav,
  body.page-chats #bottom-nav,
  body.page-notifications #bottom-nav {
    display: flex !important;
  }

  body.page-orders .order-card,
  body.page-provider-orders .order-card,
  body.page-provider-orders .po-search,
  body.page-chats .chats-overview-card,
  body.page-chats .chats-list-panel,
  body.page-notifications .notif-control-panel,
  body.page-notifications .notif-list-panel {
    box-shadow: 0 16px 34px rgba(20, 20, 38, 0.06);
    border: 1px solid rgba(103, 58, 183, 0.08);
  }

  body.page-orders .order-card:hover,
  body.page-provider-orders .order-card:hover,
  body.page-chats .thread-card:hover,
  body.page-notifications .notif-card:hover {
    transform: translateY(-2px);
  }
}

/* ====================================================================
   SEARCH PAGE — Template aliases
   ==================================================================== */
.search-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  margin-bottom: var(--space-lg);
}
@media (min-width: 768px) { .search-hero { padding: var(--space-2xl) 0; margin-bottom: var(--space-xl); } }

.search-clear {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}
.search-clear:hover { color: var(--color-error); }
[dir="rtl"] .search-clear { left: auto; right: 16px; }

.search-filter-btn {
  display: inline-flex; align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--transition-fast);
  font-family: 'Cairo', sans-serif;
}
.search-filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

.advanced-filter-panel {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.3s ease;
}
.filter-panel-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (max-width: 600px) { .filter-panel-row { grid-template-columns: 1fr; } }
.filter-panel-group { display: flex; flex-direction: column; gap: var(--space-sm); }
.price-range-row {
  display: flex; align-items: center; gap: var(--space-md);
}
.price-range-row .form-input { flex: 1; }

/* Filter row alias → filter-chips */
.filter-row {
  display: flex; gap: var(--space-sm);
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-xs) 0;
  margin-bottom: var(--space-lg);
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer; transition: all var(--transition-fast);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-chip.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: var(--shadow-primary); }

.sort-select {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-family: 'Cairo', sans-serif;
  font-size: 13px; color: var(--color-text);
  outline: none;
}
.results-count { font-size: 13px; color: var(--color-text-tertiary); margin-bottom: var(--space-md); }

.search-input-large {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-family: 'Cairo', sans-serif;
  font-size: 15px; color: var(--color-text);
  transition: all var(--transition-fast); outline: none;
}
[dir="rtl"] .search-input-large { padding: 14px 48px 14px 20px; }
.search-input-large:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-subtle); }
.search-input-large::placeholder { color: var(--color-text-tertiary); }

/* ====================================================================
   CHAT DETAIL PAGE
   ==================================================================== */
.chat-detail-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--navbar-height));
  background:
    radial-gradient(980px 320px at 100% -120px, rgba(103,58,183,.18), transparent 54%),
    radial-gradient(720px 240px at 0% 12%, rgba(14,165,233,.08), transparent 45%),
    linear-gradient(180deg, #f8f8fc 0%, #f2f3f8 48%, #eef1f7 100%);
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}
.chat-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin: 10px 12px 0;
  padding: 15px 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(247,244,255,.92));
  border: 1px solid rgba(103,58,183,.12);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(24, 18, 48, 0.08);
  backdrop-filter: blur(14px);
  position: sticky;
  top: var(--navbar-height);
  z-index: 60;
}
.chat-back-btn {
  width: 40px; height: 40px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(103,58,183,.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-primary);
  flex-shrink: 0;
}
.chat-back-btn:hover { background: #f8f5ff; color: var(--color-primary); }
.chat-header-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat-peer-row {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-peer-avatar {
  width: 48px; height: 48px;
  box-sizing: border-box;
  border-radius: var(--radius-full);
  position: relative;
  padding: 3px;
  background: var(--nw-avatar-ring-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; color: var(--color-primary);
  overflow: visible; flex-shrink: 0;
  border: 0;
  box-shadow: var(--nw-avatar-ring-shadow);
}
.chat-peer-avatar-media {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nw-avatar-inner-bg);
}
.chat-peer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-peer-info { min-width: 0; }
.chat-peer-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.chat-peer-name {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-peer-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #6e6783;
}
.chat-peer-tags {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.chat-peer-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(103,58,183,.12);
  color: #534b67;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
}
.chat-peer-tag.accent-violet {
  background: rgba(103,58,183,.12);
  border-color: rgba(103,58,183,.18);
  color: #5d37a2;
}
.chat-peer-tag.accent-blue {
  background: rgba(33,150,243,.12);
  border-color: rgba(33,150,243,.2);
  color: #145fb8;
}
.chat-peer-tag.accent-amber {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.2);
  color: #9a6400;
}
.chat-peer-tag.accent-slate {
  background: rgba(71,85,105,.1);
  border-color: rgba(71,85,105,.16);
  color: #475569;
}
.chat-favorite-indicator {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: #735116;
  background: #ffefc4;
  border: 1px solid #f0d58a;
  border-radius: 999px;
  padding: 2px 8px;
}
.chat-peer-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chat-peer-status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: #ef4444;
  opacity: .85;
}
.chat-peer-status {
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.chat-peer-status.is-online { color: #15803d; }
.chat-peer-status.is-reconnecting { color: #b45309; }
.chat-peer-status.is-offline { color: #b91c1c; }
.chat-peer-status-wrap:has(.chat-peer-status.is-online) .chat-peer-status-dot { background: #16a34a; }
.chat-peer-status-wrap:has(.chat-peer-status.is-reconnecting) .chat-peer-status-dot { background: #f59e0b; }
.chat-peer-status-wrap:has(.chat-peer-status.is-offline) .chat-peer-status-dot { background: #ef4444; }
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}
.chat-header-btn {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  border: 1px solid rgba(103,58,183,.18);
  background: rgba(255,255,255,.88);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.chat-header-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(45,23,95,.12);
  background: #f8f5ff;
}
.chat-header-btn.active {
  color: #f59e0b;
  border-color: #f6d38a;
  background: #fffbeb;
}
.chat-header.is-system-thread {
  background:
    radial-gradient(circle at top right, rgba(103,58,183,.16), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,241,255,.96));
}
.chat-member-card {
  margin: 12px 14px 10px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(103,58,183,.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,248,255,.94));
  box-shadow: 0 14px 30px rgba(22,18,46,.06);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.chat-member-card.is-system-thread {
  grid-template-columns: 1fr;
  background:
    radial-gradient(circle at top right, rgba(103,58,183,.14), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,241,255,.96));
  border-color: rgba(103,58,183,.16);
}
.chat-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(103,58,183,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.chat-member-row-identity {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(103,58,183,.12), rgba(103,58,183,.04));
  border-color: rgba(103,58,183,.14);
}
.chat-member-card.is-system-thread .chat-member-row-identity {
  background: linear-gradient(135deg, rgba(103,58,183,.18), rgba(103,58,183,.08));
}
.chat-member-row-note {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(103,58,183,.06));
  border-color: rgba(99,102,241,.16);
}
.chat-member-action {
  margin-inline-start: auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(103,58,183,.2);
  background: #fff;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.chat-member-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #f4efff;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-member-meta { min-width: 0; }
.chat-member-label {
  font-size: 10.5px;
  color: var(--color-text-tertiary);
  font-weight: 700;
}
.chat-member-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-thread-banner {
  margin: 2px 14px 10px;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
}
.chat-thread-banner.is-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.chat-thread-banner.is-info {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
}
.chat-input-wrap.is-readonly {
  gap: 0;
}
.chat-input-wrap.is-readonly .chat-composer-note {
  margin-bottom: 0;
  color: #4338ca;
  font-weight: 800;
}
.chat-messages-shell {
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 14px;
  border: 1px solid rgba(103,58,183,.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(103,58,183,.08), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(249,250,255,.96));
  box-shadow: 0 18px 36px rgba(22,18,46,.06);
  overflow: hidden;
}
.chat-state {
  margin: 16px;
  padding: 26px 12px;
  border-radius: 16px;
  border: 1px dashed rgba(103,58,183,.25);
  text-align: center;
  color: var(--color-text-tertiary);
  background: #fff;
}
.chat-state p {
  margin: 8px 0 0;
  font-size: 13px;
}
.chat-state small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}
.chat-state-btn {
  margin-top: 10px;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}
.chat-empty-icon {
  font-size: 32px;
  line-height: 1;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scroll-behavior: smooth;
}
.chat-day-divider {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.chat-day-divider span {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(103,58,183,.16);
  color: #5b6280;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 12px;
}
.msg-row {
  display: flex;
  margin: 3px 0;
}
.msg-row.mine { justify-content: flex-end; }
.msg-row.theirs { justify-content: flex-start; }
.msg-bubble {
  max-width: min(84%, 460px);
  border-radius: 22px;
  padding: 12px 14px 10px;
  box-shadow: 0 12px 24px rgba(25,21,45,.08);
}
.msg-bubble.has-attachment {
  padding-top: 10px;
}
.msg-bubble.mine {
  background: linear-gradient(180deg, #8556ff 0%, #673ab7 100%);
  color: #fff;
  border-bottom-left-radius: 6px;
}
[dir="rtl"] .msg-bubble.mine {
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 6px;
}
.msg-bubble.theirs {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
  color: #111827;
  border: 1px solid #e7eaf3;
  border-bottom-right-radius: 6px;
}
.msg-bubble.theirs.kind-team {
  background: linear-gradient(180deg, #faf7ff 0%, #f1ebff 100%);
  border-color: rgba(103,58,183,.18);
  box-shadow: 0 14px 30px rgba(90, 54, 178, 0.12);
}
.promo-message-row {
  margin: 10px 0 12px;
}
.promo-message-row.theirs,
.promo-message-row.mine {
  justify-content: center;
}
.promo-message-card {
  width: min(92%, 520px);
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
  border: 1px solid rgba(24, 123, 128, .18);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .10);
  color: #172033;
}
.promo-message-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(24, 123, 128, .10), rgba(245, 158, 11, .10));
  border-bottom: 1px solid rgba(24, 123, 128, .12);
}
.promo-message-card-sender {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.promo-message-card-mark {
  flex: 0 0 auto;
  min-width: 34px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #187b80;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}
.promo-message-card-sender-text {
  min-width: 0;
  color: #143c42;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo-message-card-time {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 800;
}
.promo-message-card-body {
  padding: 15px 16px 13px;
}
.promo-message-card-body .msg-text {
  color: #172033;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 750;
}
.promo-message-card-spacer {
  height: 10px;
}
.promo-message-card-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 14px 14px;
}
.promo-message-card-media.is-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.promo-message-card-asset {
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  text-decoration: none;
  color: #172033;
}
.promo-message-card-asset.is-image {
  display: block;
  aspect-ratio: 16 / 10;
}
.promo-message-card-asset.is-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.promo-message-card-asset.is-audio {
  padding: 12px;
  background: #f8fafc;
}
.promo-message-card-asset.is-audio audio {
  width: 100%;
}
.promo-message-card-asset.is-file,
.promo-message-card-asset.is-video {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}
.promo-message-card-asset.is-video {
  background: linear-gradient(135deg, rgba(126, 58, 242, .10), rgba(239, 68, 68, .08));
  border-color: rgba(126, 58, 242, .18);
}
.promo-message-card-asset.is-video .promo-message-card-file-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #ef4444 100%);
  color: #fff;
}
.promo-message-card-file-icon {
  flex: 0 0 auto;
  height: 28px;
  min-width: 42px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 123, 128, .11);
  color: #187b80;
  font-size: 10px;
  font-weight: 900;
}
.promo-message-card-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 850;
}
html[data-theme="dark"] .promo-message-card {
  background: linear-gradient(180deg, #162026 0%, #111827 100%);
  border-color: rgba(45, 212, 191, .18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .30);
  color: #f8fafc;
}
html[data-theme="dark"] .promo-message-card-head {
  background: linear-gradient(135deg, rgba(45, 212, 191, .12), rgba(245, 158, 11, .12));
  border-bottom-color: rgba(45, 212, 191, .14);
}
html[data-theme="dark"] .promo-message-card-sender-text,
html[data-theme="dark"] .promo-message-card-body .msg-text {
  color: #f8fafc;
}
html[data-theme="dark"] .promo-message-card-time {
  color: #cbd5e1;
}
html[data-theme="dark"] .promo-message-card-asset {
  background: #0f172a;
  border-color: rgba(148, 163, 184, .20);
  color: #f8fafc;
}
html[data-theme="dark"] .promo-message-card-asset.is-audio,
html[data-theme="dark"] .promo-message-card-asset.is-file,
html[data-theme="dark"] .promo-message-card-asset.is-video {
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
}
@media (max-width: 520px) {
  .promo-message-card {
    width: min(96%, 430px);
  }
  .promo-message-card-media.is-grid {
    grid-template-columns: 1fr;
  }
  .promo-message-card-head {
    align-items: flex-start;
  }
}
.msg-bubble.theirs.attachment-image,
.msg-bubble.theirs.attachment-audio,
.msg-bubble.theirs.attachment-video,
.msg-bubble.theirs.attachment-file {
  background: linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%);
}
.msg-bubble.mine.attachment-image,
.msg-bubble.mine.attachment-audio,
.msg-bubble.mine.attachment-video,
.msg-bubble.mine.attachment-file {
  box-shadow: 0 16px 28px rgba(76,44,156,.18);
}
[dir="rtl"] .msg-bubble.theirs {
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 6px;
}
.msg-bubble.group-next.mine { border-bottom-right-radius: 14px; }
[dir="rtl"] .msg-bubble.group-next.mine {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 6px;
}
.msg-bubble.group-next.theirs { border-bottom-left-radius: 14px; }
[dir="rtl"] .msg-bubble.group-next.theirs {
  border-bottom-right-radius: 14px;
  border-bottom-left-radius: 6px;
}
.msg-text {
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
  word-break: break-word;
}
.msg-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.msg-kind-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}
.msg-kind-badge.accent-violet {
  background: rgba(103,58,183,.12);
  border: 1px solid rgba(103,58,183,.2);
  color: #5e35b1;
}
.msg-kind-badge.accent-amber {
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.2);
  color: #a16207;
}
.msg-kind-badge.accent-teal {
  background: rgba(20,184,166,.12);
  border: 1px solid rgba(20,184,166,.22);
  color: #0f766e;
}
.msg-kind-badge.accent-slate {
  background: rgba(71,85,105,.1);
  border: 1px solid rgba(71,85,105,.14);
  color: #475569;
}
.msg-kind-badge.accent-soft {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.24);
  color: rgba(255,255,255,.94);
}
.msg-service-cta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  border-radius: 12px;
  padding: 9px 10px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.msg-service-cta.mine {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.msg-service-cta.theirs {
  background: rgba(103,58,183,.07);
  border-color: rgba(103,58,183,.22);
  color: #2d1668;
}
.msg-service-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.msg-service-cta-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255,255,255,.2);
  flex: 0 0 auto;
}
.msg-service-cta.theirs .msg-service-cta-icon {
  background: rgba(103,58,183,.12);
}
.msg-service-cta-body {
  min-width: 0;
  flex: 1;
}
.msg-service-cta-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
.msg-service-cta-subtitle {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  opacity: .82;
}
.msg-service-cta-arrow {
  font-size: 16px;
  line-height: 1;
  opacity: .85;
  flex: 0 0 auto;
}
.msg-meta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.msg-time { opacity: .82; }
.msg-read-state.sent { color: rgba(255,255,255,.78); }
.msg-read-state.read { color: #bfdbfe; }
.msg-attachment {
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
}
.msg-attachment-image {
  margin-bottom: 6px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
}
.msg-attachment-image img {
  display: block;
  width: 196px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
.msg-attachment-audio {
  width: min(270px, 100%);
  padding: 10px;
  background: rgba(255,255,255,.92);
  margin-bottom: 6px;
  border: 1px solid rgba(103,58,183,.12);
  border-radius: 16px;
}
.msg-attachment-audio audio { width: 100%; }
.msg-attachment-file {
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,.14);
  color: inherit;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
}
.msg-attachment-video {
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.10));
  border-color: rgba(255,255,255,.32);
}
.msg-bubble.theirs .msg-attachment-file {
  background: linear-gradient(180deg, #f8f9fd 0%, #f1f4ff 100%);
  border-color: #d9def0;
}
.msg-bubble.theirs .msg-attachment-video {
  background: linear-gradient(135deg, rgba(126, 58, 242, .10), rgba(239, 68, 68, .08));
  border-color: rgba(126, 58, 242, .20);
}
.msg-attachment-icon {
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
}
.msg-bubble.theirs .msg-attachment-icon {
  background: rgba(103,58,183,.1);
}
.msg-attachment-video .msg-attachment-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #ef4444 100%);
  color: #fff;
}
.msg-attachment-name {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Inline links inside message text ── */
.msg-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
  margin: 3px 0;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  direction: ltr;
  unicode-bidi: embed;
  border: 1px solid transparent;
  box-shadow: 0 6px 14px rgba(15,23,42,.06);
}
.msg-inline-link.mine {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.12));
  border-color: rgba(255,255,255,.28);
}
.msg-inline-link.mine:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.3), rgba(255,255,255,.18));
  box-shadow: 0 10px 18px rgba(0,0,0,.14);
  transform: translateY(-1px);
}
.msg-inline-link.theirs {
  color: #4d2796;
  background: linear-gradient(135deg, rgba(103,58,183,.08), rgba(78,200,212,.07));
  border-color: rgba(103,58,183,.16);
}
.msg-inline-link.theirs:hover {
  background: linear-gradient(135deg, rgba(103,58,183,.14), rgba(78,200,212,.12));
  box-shadow: 0 10px 18px rgba(103,58,183,.12);
  transform: translateY(-1px);
}
.msg-inline-link-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex: 0 0 auto;
  background: rgba(255,255,255,.22);
}
.msg-inline-link.theirs .msg-inline-link-icon {
  background: rgba(103,58,183,.12);
}
.msg-inline-link-text {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
  line-height: 1.45;
}

/* ── Payment CTA card inside message ── */
.msg-payment-cta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease;
}
.msg-payment-cta.mine {
  background: linear-gradient(135deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.08) 100%);
  border-color: rgba(255,255,255,.32);
  color: #fff;
}
.msg-payment-cta.theirs {
  background: linear-gradient(135deg, rgba(34,197,94,.06) 0%, rgba(103,58,183,.06) 100%);
  border-color: rgba(34,197,94,.22);
  color: #15803d;
}
.msg-payment-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
}
.msg-payment-cta-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.msg-payment-cta.mine .msg-payment-cta-icon {
  background: rgba(255,255,255,.20);
}
.msg-payment-cta.theirs .msg-payment-cta-icon {
  background: rgba(34,197,94,.12);
}
.msg-payment-cta-body {
  min-width: 0;
  flex: 1;
}
.msg-payment-cta-title {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
}
.msg-payment-cta-sub {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  opacity: .78;
  margin-top: 2px;
}
.msg-payment-cta-arrow {
  font-size: 18px;
  line-height: 1;
  opacity: .80;
  flex: 0 0 auto;
}

.chat-input-wrap {
  margin: 10px 14px 14px;
  border: 1px solid rgba(103,58,183,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 18px 36px rgba(22,18,46,.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.chat-input-wrap.is-disabled { opacity: .7; }
.chat-attachment-preview { padding: 10px 14px 0; }
.chat-composer-note {
  padding: 12px 14px 0;
  font-size: 11px;
  font-weight: 700;
  color: #736c87;
}
.chat-preview-row {
  border-radius: 12px;
  border: 1px solid #ded3ff;
  background: #f8f5ff;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-preview-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  background: #fff;
  border-radius: 999px;
  padding: 2px 8px;
}
.chat-preview-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-preview-remove {
  border: none;
  background: transparent;
  color: #dc2626;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.chat-input-bar {
  padding: 14px 14px 16px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.chat-attach-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #d8ccff;
  background: #f6f2ff;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.chat-attach-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.chat-msg-input {
  flex: 1;
  min-height: 60px;
  max-height: 180px;
  resize: none;
  border-radius: 20px;
  border: 1px solid #d9deec;
  background: #fff;
  padding: 14px 14px;
  outline: none;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.chat-msg-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(103,58,183,.12);
}
.chat-msg-input:disabled {
  background: #f4f5f9;
  color: #9ca3af;
}
.chat-send-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(103,58,183,.32);
  transition: transform .2s ease, filter .2s ease;
}
.chat-send-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.chat-send-btn:disabled {
  opacity: .45;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.chat-send-btn.is-loading {
  position: relative;
  color: transparent;
}
.chat-send-btn.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: #fff;
  position: absolute;
  animation: spin .7s linear infinite;
}
.chat-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 12px);
  background: #1f2937;
  color: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 120;
}
.chat-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.chat-toast.success { background: #166534; }
.chat-toast.error { background: #991b1b; }
.chat-sheet-backdrop,
.chat-report-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.45);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 130;
}
.chat-sheet,
.chat-report-dialog {
  position: fixed;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(640px, 96vw);
  background: #fff;
  box-shadow: 0 -18px 40px rgba(0,0,0,.18);
  z-index: 131;
}
.chat-sheet {
  bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
  transform: translateY(108%);
  transition: transform .22s ease;
}
.chat-sheet-handle {
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: #d4d8e4;
  margin: 6px auto 10px;
}
.chat-sheet-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--color-text);
}
.chat-sheet-option {
  width: 100%;
  border: none;
  border-bottom: 1px solid #edf0f7;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
}
.chat-sheet-option:last-child { border-bottom: none; }
.chat-sheet-option:hover { background: #f8f9fc; }
.chat-sheet-backdrop.open,
.chat-report-backdrop.open { opacity: 1; }
.chat-sheet.open { transform: translateY(0); }
.chat-client-requests-sheet {
  width: min(860px, 96vw);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
}
.chat-client-requests-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 10px;
  border-bottom: 1px solid #edf0f7;
}
.chat-client-requests-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-text);
}
.chat-client-requests-close {
  width: 30px;
  height: 30px;
  border: 1px solid #e3e8f3;
  border-radius: 10px;
  background: #fff;
.chat-sheet-option.is-danger { color: #b42318; }
.chat-sheet-option-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.chat-sheet-option-title {
  font-size: 13px;
  font-weight: 800;
  color: inherit;
}
.chat-sheet-option-meta {
  font-size: 11px;
  font-weight: 700;
  color: #7c8798;
}
  color: var(--color-text);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
.chat-report-upload-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.chat-report-files {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-report-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e7eaf2;
  background: #f8f9fc;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
}
.chat-report-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-report-file-remove {
  border: none;
  background: transparent;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
  cursor: pointer;
}
.chat-client-requests-body {
  overflow-y: auto;
  padding: 10px 8px 0;
}
.chat-client-requests-state {
  padding: 14px 8px;
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 13px;
}
.chat-client-requests-state .spinner-inline {
  margin: 0 auto 8px;
}
.chat-client-requests-state.error {
  color: #991b1b;
}
.chat-client-requests-section-title {
  margin: 6px 4px 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text);
}
.chat-client-request-card {
  width: 100%;
  border: 1px solid #e5e7ef;
  border-radius: 12px;
  background: #fff;
  text-align: start;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.chat-client-request-card:hover {
  border-color: rgba(103,58,183,.3);
  box-shadow: 0 4px 12px rgba(34,24,67,.08);
}
.chat-client-request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.chat-client-request-status {
  font-size: 12px;
  font-weight: 700;
}
.chat-client-request-title {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
}
.chat-client-request-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--color-text-tertiary);
}
.chat-report-dialog {
  bottom: 50%;
  border-radius: 18px;
  transform: translateY(50%) scale(.96);
  padding: 14px;
  transition: transform .2s ease;
}
.chat-report-dialog.open { transform: translateY(50%) scale(1); }
.chat-report-dialog h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
}
.chat-report-dialog label {
  display: block;
  margin: 8px 0 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.chat-report-dialog select,
.chat-report-dialog textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d9deec;
  padding: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  outline: none;
}
.chat-report-dialog textarea {
  resize: vertical;
  min-height: 88px;
}
.chat-report-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.chat-report-btn {
  flex: 1;
  border-radius: 12px;
  border: none;
  padding: 10px 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.chat-report-btn.ghost {
  background: #f3f4f6;
  color: #111827;
}
.chat-report-btn.primary {
  background: var(--color-primary);
  color: #fff;
}
@media (min-width: 900px) {
  .chat-detail-page {
    padding-inline: clamp(12px, 4vw, 34px);
  }
  .chat-header {
    max-width: 860px;
    margin-inline: auto;
    border-radius: 24px;
  }
  .chat-member-card,
  .chat-thread-banner,
  .chat-messages-shell,
  .chat-input-wrap {
    max-width: 860px;
    width: 100%;
    margin-inline: auto;
  }
  .chat-member-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .chat-member-row-identity {
    grid-column: span 1;
  }
  .chat-state,
  .chat-messages {
    margin-inline: 0;
    max-width: none;
  }
}
@supports not (selector(:has(*))) {
  .chat-peer-status-dot { display: none; }
}

/* ====================================================================
   CONTACT / SUPPORT PAGE
   ==================================================================== */
.support-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.support-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 769px) { .support-layout { grid-template-columns: 1fr 1fr; } }

.support-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  transition: all var(--transition-fast);
}
.support-card:hover { box-shadow: var(--shadow-md); }
.page-contact .page-header,
.page-terms .page-header {
  padding: var(--space-xl);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-lg);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
}
.page-contact .page-header h1,
.page-terms .page-header h1 { color: #fff; }
.page-contact .support-toolbar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.page-contact .auth-gate {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-2xl);
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.page-contact .auth-gate h2,
.page-contact .auth-gate p {
  text-align: center;
}
.page-contact .auth-gate .btn {
  width: 100%;
  margin-top: var(--space-lg);
}
.support-card-title {
  font-size: 16px; font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.support-ticket-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.support-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ====================================================================
   CONTACT PAGE
   ==================================================================== */
body.page-contact .page-content {
  background:
    radial-gradient(circle at 92% 0%, rgba(103, 58, 183, 0.12), transparent 30%),
    radial-gradient(circle at 8% 12%, rgba(59, 130, 246, 0.09), transparent 26%),
    linear-gradient(180deg, #f7f7fc 0%, #f3f4fb 100%);
}

body.page-contact .container {
  max-width: 1240px;
}

body.page-contact .contact-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-contact .contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(103, 58, 183, 0.14);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #44238a, #6d43bf 55%, #8f68d5);
  color: #fff;
  box-shadow: 0 24px 50px rgba(68, 35, 138, 0.18);
}

body.page-contact .contact-hero-copy {
  min-width: 0;
}

body.page-contact .contact-hero-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
}

body.page-contact .contact-hero-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
}

body.page-contact .contact-hero-subtitle {
  margin: 12px 0 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

body.page-contact .contact-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

body.page-contact .contact-hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

body.page-contact .contact-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: stretch;
}

body.page-contact .contact-hero-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 16px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

body.page-contact .contact-hero-stat strong {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

body.page-contact .contact-hero-stat span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

body.page-contact .contact-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

body.page-contact .contact-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

body.page-contact .contact-toolbar-btn:hover,
body.page-contact .contact-toolbar-btn:focus-visible {
  transform: translateY(-1px);
}

body.page-contact .contact-toolbar-btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.22);
  color: #334155;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

body.page-contact .contact-toolbar-btn-primary {
  background: linear-gradient(135deg, #5b32b5, #7c4dff);
  color: #fff;
  box-shadow: 0 16px 30px rgba(92, 50, 181, 0.22);
}

body.page-contact .contact-toolbar-btn-primary.is-active {
  background: linear-gradient(135deg, #ef6c00, #f59e0b);
  box-shadow: 0 16px 30px rgba(239, 108, 0, 0.22);
}

body.page-contact .contact-layout {
  grid-template-columns: 1fr;
  gap: 16px;
}

body.page-contact .contact-panel {
  border-radius: 26px;
  border: 1px solid rgba(103, 58, 183, 0.12);
  background:
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.04), transparent 32%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

body.page-contact .contact-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

body.page-contact .support-card-title {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 20px;
  font-weight: 900;
  color: #170f30;
}

body.page-contact .contact-panel-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #667085;
}

body.page-contact .support-ticket-list {
  gap: 10px;
}

body.page-contact .support-ticket-item {
  width: 100%;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(103, 58, 183, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 247, 255, 0.98));
  text-align: right;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body.page-contact .support-ticket-item:hover,
body.page-contact .support-ticket-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(103, 58, 183, 0.22);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
}

body.page-contact .support-ticket-item.active {
  border-color: rgba(103, 58, 183, 0.34);
  background:
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(248, 243, 255, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 20px 32px rgba(103, 58, 183, 0.12);
}

body.page-contact .support-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

body.page-contact .support-ticket-code {
  font-size: 14px;
  font-weight: 900;
  color: #160f2f;
}

body.page-contact .support-ticket-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

body.page-contact .support-ticket-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

body.page-contact .support-ticket-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(103, 58, 183, 0.08);
  color: #5b32b5;
  font-size: 11px;
  font-weight: 900;
}

body.page-contact .support-ticket-time {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

body.page-contact .support-ticket-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: #475467;
}

body.page-contact .support-ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

body.page-contact .support-ticket-footer-label {
  font-size: 12px;
  font-weight: 800;
  color: #5b32b5;
}

body.page-contact .support-ticket-footer-arrow {
  font-size: 18px;
  line-height: 1;
  color: #8b7db7;
}

body.page-contact .contact-list-empty,
body.page-contact .contact-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 260px;
  padding: 20px;
  text-align: center;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 255, 0.9));
  border: 1px dashed rgba(148, 163, 184, 0.28);
}

body.page-contact .contact-empty-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(103, 58, 183, 0.08);
  color: #5b32b5;
}

body.page-contact .ticket-detail-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.page-contact .ticket-detail-hero {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(103, 58, 183, 0.12);
  background:
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 255, 0.98));
}

body.page-contact .ticket-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.page-contact .ticket-detail-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.page-contact .ticket-detail-code {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: #475467;
  font-size: 11px;
  font-weight: 900;
}

body.page-contact .ticket-detail-title-wrap h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #170f30;
}

body.page-contact .ticket-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

body.page-contact .ticket-detail-meta-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 82px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

body.page-contact .ticket-detail-meta-card span {
  font-size: 11px;
  font-weight: 800;
  color: #667085;
}

body.page-contact .ticket-detail-meta-card strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
  color: #1f2937;
}

body.page-contact .ticket-detail-section {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

body.page-contact .ticket-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

body.page-contact .ticket-section-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #170f30;
}

body.page-contact .ticket-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(103, 58, 183, 0.08);
  color: #5b32b5;
  font-size: 12px;
  font-weight: 900;
}

body.page-contact .ticket-detail-description {
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.95), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 14px;
  line-height: 2;
  color: #344054;
}

body.page-contact .ticket-attachments-list,
body.page-contact .ticket-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-contact .ticket-attachment-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(248, 250, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #334155;
  text-decoration: none;
}

body.page-contact .ticket-attachment-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(103, 58, 183, 0.1);
  color: #5b32b5;
  font-size: 16px;
  font-weight: 900;
}

body.page-contact .ticket-attachment-name {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

body.page-contact .ticket-comment {
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

body.page-contact .ticket-comment-meta {
  font-size: 11px;
  font-weight: 800;
  color: #667085;
  margin-bottom: 6px;
}

body.page-contact .ticket-comment-text {
  font-size: 13px;
  line-height: 1.9;
  color: #344054;
}

body.page-contact .ticket-muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #98a2b3;
}

body.page-contact .ticket-reply-box {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(103, 58, 183, 0.12);
  background:
    radial-gradient(circle at top left, rgba(103, 58, 183, 0.06), transparent 36%),
    rgba(255, 255, 255, 0.96);
}

body.page-contact .ticket-reply-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #170f30;
}

body.page-contact .ticket-reply-head p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #667085;
}

body.page-contact .ticket-reply-input,
body.page-contact .contact-description-input {
  min-height: 124px;
  margin-top: 12px;
}

body.page-contact .ticket-reply-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

body.page-contact .contact-field-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #667085;
}

body.page-contact .contact-file-input {
  min-height: 52px;
}

body.page-contact .form-label {
  font-weight: 900;
  color: #1f2937;
}

body.page-contact .form-select,
body.page-contact .form-input,
body.page-contact .form-textarea {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.page-contact .form-select:focus,
body.page-contact .form-input:focus,
body.page-contact .form-textarea:focus {
  border-color: rgba(103, 58, 183, 0.35);
  box-shadow: 0 0 0 4px rgba(103, 58, 183, 0.1);
}

body.page-contact .contact-file-input::file-selector-button {
  border: 0;
  border-radius: 12px;
  margin-inline-end: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #5b32b5, #7c4dff);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

body.page-contact .support-actions {
  margin-top: 14px;
}

body.page-contact .support-actions .btn-secondary,
body.page-contact .support-actions .btn-primary {
  min-height: 48px;
  border-radius: 16px;
  font-weight: 900;
}

body.page-contact .contact-auth-gate {
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

body.page-contact .contact-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height, 68px) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 1800;
  min-width: 220px;
  max-width: min(92vw, 360px);
  padding: 12px 16px;
  border-radius: 14px;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

body.page-contact .contact-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.page-contact .contact-toast.success {
  background: #166534;
}

body.page-contact .contact-toast.error {
  background: #991b1b;
}

@media (min-width: 992px) {
  body.page-contact .contact-layout {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  }

  body.page-contact .contact-panel-list {
    position: sticky;
    top: 92px;
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }
}

@media (max-width: 991px) {
  body.page-contact .contact-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body.page-contact .contact-shell {
    gap: 12px;
  }

  body.page-contact .contact-hero,
  body.page-contact .contact-panel {
    padding: 16px;
    border-radius: 24px;
  }

  body.page-contact .contact-hero-stats {
    grid-template-columns: 1fr;
  }

  body.page-contact .contact-toolbar {
    justify-content: stretch;
    flex-direction: column-reverse;
  }

  body.page-contact .contact-toolbar-btn {
    width: 100%;
  }

  body.page-contact .ticket-detail-meta-grid {
    grid-template-columns: 1fr;
  }

  body.page-contact .support-actions,
  body.page-contact .ticket-reply-actions {
    flex-direction: column;
  }

  body.page-contact .ticket-reply-actions .btn-primary,
  body.page-contact .support-actions .btn-secondary,
  body.page-contact .support-actions .btn-primary {
    width: 100%;
  }
}

/* ====================================================================
   SETTINGS PAGE
   ==================================================================== */
.settings-profile-header {
  display: flex; align-items: center; gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}
.settings-avatar-wrap { position: relative; flex-shrink: 0; }
.settings-avatar {
  width: 72px; height: 72px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--color-primary);
  overflow: hidden;
}
.settings-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-btn {
  position: absolute; bottom: 0; right: 0;
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-surface);
  cursor: pointer;
}
[dir="rtl"] .avatar-upload-btn { right: auto; left: 0; }
.settings-profile-info { flex: 1; min-width: 0; }
.settings-name { font-size: 16px; font-weight: 700; color: var(--color-text); }
.settings-email { font-size: 13px; color: var(--color-text-tertiary); }

.security-item {
  display: flex; align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
}
.security-info { flex: 1; min-width: 0; }
.security-label { font-size: 14px; font-weight: 600; color: var(--color-text); }
.security-desc { font-size: 12px; color: var(--color-text-tertiary); margin-top: 2px; }

.danger-zone {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px solid rgba(239,68,68,.2);
}

.settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(103, 58, 183, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 255, 0.98));
  box-shadow: 0 10px 24px rgba(20, 20, 38, 0.05);
}
.settings-hero-copy { min-width: 0; }
.settings-hero-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary);
}
.settings-hero-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--color-text);
}
.settings-hero-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}
.settings-hero-link { white-space: nowrap; }

body.page-settings .page-header h1,
body.page-login-settings .page-header h1 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: #251f40;
}

body.page-settings .form-card-title,
body.page-login-settings .ls-section-title {
  letter-spacing: -0.01em;
}

body.page-settings .profile-menu-item {
  min-height: 60px;
}

body.page-settings .profile-menu-item .menu-arrow {
  font-size: 22px;
  color: #8b84a8;
}

body.page-settings .security-item {
  border: 1px solid rgba(103, 58, 183, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

body.page-settings .btn-sm {
  min-width: 92px;
  font-weight: 800;
}

body.page-login-settings .detail-card {
  background:
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.05), transparent 40%),
    #fff;
}

body.page-login-settings .ls-danger {
  border-color: rgba(244, 67, 54, 0.14);
}

body.page-login-settings .ls-avatar .text-muted {
  font-size: 13px;
}

/* ====================================================================
   NOTIFICATIONS PAGE
   ==================================================================== */
body.page-notifications .page-content {
  background:
    radial-gradient(circle at 90% 2%, rgba(103, 58, 183, 0.14), transparent 33%),
    radial-gradient(circle at 10% 16%, rgba(76, 175, 80, 0.12), transparent 28%),
    var(--color-bg);
}

body.page-notifications .notifications-layout {
  max-width: var(--container-narrow);
}

body.page-notifications .notif-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-notifications .notif-page-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

body.page-notifications .notif-page-title-wrap h1 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
  color: #2e2650;
}

body.page-notifications .notif-page-title-wrap p {
  margin-top: 6px;
  font-size: 13px;
  color: #5f587f;
}

body.page-notifications .notif-top-counters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.page-notifications .notif-total-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 0 9px;
  box-shadow: var(--shadow-primary);
}

body.page-notifications .notif-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(103, 58, 183, 0.2);
  background: rgba(103, 58, 183, 0.1);
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 0 11px;
}

body.page-notifications .notif-control-panel {
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(18, 13, 36, 0.06);
  padding: 10px;
}

body.page-notifications .notif-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.page-notifications .notif-action-btn {
  border-radius: var(--radius-full);
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(103, 58, 183, 0.2);
  background: rgba(103, 58, 183, 0.08);
  color: var(--color-primary-dark);
  font-weight: 800;
}

body.page-notifications .notif-action-btn:hover {
  background: rgba(103, 58, 183, 0.15);
}

body.page-notifications .notif-list-panel {
  border: 1px solid rgba(26, 26, 46, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(19, 14, 38, 0.06);
  padding: 10px;
}

body.page-notifications .notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-notifications .notif-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(26, 26, 46, 0.12);
  border-radius: 13px;
  background: #fff;
  padding: 11px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

body.page-notifications .notif-card:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 58, 183, 0.32);
  box-shadow: 0 10px 20px rgba(79, 51, 137, 0.1);
}

body.page-notifications .notif-card.unread::before {
  content: '';
  position: absolute;
  right: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  background: var(--color-primary);
}

body.page-notifications .notif-card.read {
  background: #fcfbff;
  border-color: rgba(26, 26, 46, 0.08);
}

body.page-notifications .notif-card.follow-up {
  border-color: rgba(245, 158, 11, 0.44);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.14);
}

body.page-notifications .notif-card.pinned {
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
}

body.page-notifications .notif-card.promo {
  border-color: rgba(217, 119, 6, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 1));
  box-shadow:
    inset 0 0 0 1px rgba(245, 158, 11, 0.12),
    0 10px 24px rgba(154, 52, 18, 0.08);
}

body.page-notifications .notif-card.promo:hover {
  border-color: rgba(217, 119, 6, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(245, 158, 11, 0.2),
    0 14px 26px rgba(154, 52, 18, 0.12);
}

body.page-notifications .notif-card.promo.unread::before {
  background: linear-gradient(180deg, #fb923c, #ea580c);
}

body.page-notifications .notif-card.promo-update {
  border-color: rgba(79, 70, 229, 0.3);
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.88), rgba(255, 255, 255, 1));
  box-shadow:
    inset 0 0 0 1px rgba(99, 102, 241, 0.12),
    0 10px 22px rgba(79, 70, 229, 0.08);
}

body.page-notifications .notif-card.promo-update:hover {
  border-color: rgba(79, 70, 229, 0.44);
  box-shadow:
    inset 0 0 0 1px rgba(79, 70, 229, 0.18),
    0 14px 24px rgba(79, 70, 229, 0.12);
}

body.page-notifications .notif-card.promo-update.unread::before {
  background: linear-gradient(180deg, #818cf8, #4f46e5);
}

body.page-notifications .notif-card.urgent {
  background: #d32f2f;
  border-color: #d32f2f;
  box-shadow: 0 10px 20px rgba(170, 31, 31, 0.22);
}

body.page-notifications .notif-card.urgent:hover {
  border-color: #c62828;
  box-shadow: 0 12px 24px rgba(170, 31, 31, 0.26);
}

body.page-notifications .notif-card.urgent::before {
  background: #d32f2f;
}

body.page-notifications .notif-card.urgent .notif-title,
body.page-notifications .notif-card.urgent .notif-text {
  color: rgba(255, 255, 255, 0.96);
}

body.page-notifications .notif-card.urgent .notif-time {
  color: rgba(255, 255, 255, 0.76);
}

body.page-notifications .notif-card.urgent .notif-open-hint {
  color: rgba(255, 255, 255, 0.9);
}

body.page-notifications .notif-card.urgent .notif-dot {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
}

body.page-notifications .notif-card.urgent .notif-flag.follow,
body.page-notifications .notif-card.urgent .notif-flag.pin {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

body.page-notifications .notif-card.urgent .notif-menu-btn {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

body.page-notifications .notif-card.urgent .notif-menu-btn:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

body.page-notifications .notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 26, 46, 0.08);
}

body.page-notifications .notif-body {
  flex: 1;
  min-width: 0;
}

body.page-notifications .notif-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

body.page-notifications .notif-title-wrap {
  min-width: 0;
  flex: 1;
}

body.page-notifications .notif-title {
  font-size: 14px;
  font-weight: 900;
  color: #2f2853;
  line-height: 1.35;
  display: block;
}

body.page-notifications .notif-flags {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.page-notifications .notif-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  border-radius: var(--radius-full);
  padding: 0 7px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid transparent;
}

body.page-notifications .notif-flag.follow {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.22);
}

body.page-notifications .notif-flag.pin {
  background: rgba(103, 58, 183, 0.12);
  color: #4b2a83;
  border-color: rgba(103, 58, 183, 0.2);
}

body.page-notifications .notif-flag.promo {
  background: rgba(251, 146, 60, 0.16);
  color: #9a3412;
  border-color: rgba(234, 88, 12, 0.24);
}

body.page-notifications .notif-flag.promo-update {
  background: rgba(99, 102, 241, 0.14);
  color: #3730a3;
  border-color: rgba(79, 70, 229, 0.24);
}

body.page-notifications .notif-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(103, 58, 183, 0.15);
  flex: 0 0 auto;
}

body.page-notifications .notif-text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #4e486d;
}

/* إشعارات متعددة الأسطر: حافظ على فواصل الأسطر بدل دمجها في سطر واحد. */
body.page-notifications .notif-text.notif-text--multiline {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

body.page-notifications .notif-meta-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.page-notifications .notif-time {
  font-size: 12px;
  color: #75708f;
  font-weight: 700;
}

body.page-notifications .notif-open-hint {
  color: var(--color-primary-dark);
  font-size: 11px;
  font-weight: 900;
}

body.page-notifications .notif-card-actions {
  position: relative;
  flex: 0 0 auto;
}

body.page-notifications .notif-menu-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(26, 26, 46, 0.12);
  background: #fff;
  color: #5f587f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

body.page-notifications .notif-menu-btn:hover {
  border-color: rgba(103, 58, 183, 0.28);
  box-shadow: 0 6px 14px rgba(79, 51, 137, 0.12);
}

body.page-notifications .notif-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
  min-width: 170px;
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 46, 0.12);
  background: #fff;
  box-shadow: 0 12px 24px rgba(20, 14, 38, 0.12);
  padding: 4px;
  z-index: 24;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

body.page-notifications .notif-menu.open {
  opacity: 1;
  transform: translateY(0);
}

body.page-notifications .notif-menu-item {
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #2f2853;
  text-align: right;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
}

body.page-notifications .notif-menu-item:hover {
  background: rgba(103, 58, 183, 0.08);
}

body.page-notifications .notif-menu-item.danger {
  color: #b91c1c;
}

body.page-notifications .notif-menu-item.danger:hover {
  background: rgba(185, 28, 28, 0.1);
}

body.page-notifications #notif-empty {
  border: 1px dashed rgba(26, 26, 46, 0.14);
  border-radius: 14px;
  margin-top: 8px;
}

body.page-notifications #notif-loader {
  margin-top: 8px;
}

body.page-notifications .notif-error-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-notifications #notif-error {
  margin: 0;
  border-radius: 12px;
}

body.page-notifications .notif-retry-wrap {
  display: flex;
  justify-content: center;
}

body.page-notifications .notif-retry-btn {
  min-height: 36px;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 800;
}

body.page-notifications .notif-load-more-wrap {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

body.page-notifications .notif-load-more-btn {
  min-height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(103, 58, 183, 0.22);
  background: rgba(103, 58, 183, 0.08);
  color: var(--color-primary-dark);
  font-weight: 800;
  padding: 0 16px;
}

body.page-notifications .notif-load-more-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

body.page-notifications .notif-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height, 68px) + env(safe-area-inset-bottom, 0px) + 16px);
  transform: translate(-50%, 16px);
  z-index: 1704;
  max-width: min(92vw, 360px);
  border-radius: 12px;
  background: #2e2650;
  color: #ffffff;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 12px 24px rgba(20, 14, 38, 0.24);
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

body.page-notifications .notif-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.page-notifications .notif-toast.with-title {
  text-align: right;
  max-width: min(92vw, 430px);
  padding: 12px 14px;
}

body.page-notifications .notif-toast-title {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 2px;
}

body.page-notifications .notif-toast-body {
  font-size: 12px;
  line-height: 1.65;
  font-weight: 700;
  opacity: 0.95;
}

body.page-notifications .notif-toast.success {
  background: #1d6f42;
}

body.page-notifications .notif-toast.error {
  background: #9f2a2a;
}

body.page-notifications .notif-toast.warn {
  background: #8a560f;
}

body.page-notifications .notif-toast.promo {
  background:
    linear-gradient(135deg, #b45309 0%, #ea580c 52%, #f97316 100%);
  box-shadow: 0 14px 28px rgba(124, 45, 18, 0.34);
}

body.page-notifications .notif-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 1710;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.page-notifications .notif-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 38, 0.5);
  opacity: 0;
  transition: opacity 0.18s ease;
}

body.page-notifications .notif-promo-dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: min(84vh, 820px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(234, 88, 12, 0.2);
  background:
    linear-gradient(165deg, rgba(255, 250, 245, 0.98), rgba(255, 255, 255, 1));
  box-shadow:
    0 26px 56px rgba(20, 14, 38, 0.22),
    inset 0 0 0 1px rgba(245, 158, 11, 0.1);
  padding: 20px;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.page-notifications .notif-promo-modal.open .notif-promo-backdrop {
  opacity: 1;
}

body.page-notifications .notif-promo-modal.open .notif-promo-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.page-notifications .notif-promo-close {
  position: sticky;
  top: 0;
  margin-inline-start: auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(154, 52, 18, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #9a3412;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

body.page-notifications .notif-promo-head {
  margin-top: 6px;
  margin-bottom: 10px;
}

body.page-notifications .notif-promo-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  min-height: 24px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  color: #9a3412;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(234, 88, 12, 0.26);
}

body.page-notifications .notif-promo-title {
  margin: 10px 0 6px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 900;
  color: #2f2853;
}

body.page-notifications .notif-promo-time {
  font-size: 12px;
  color: #7a6d65;
  font-weight: 700;
}

body.page-notifications .notif-promo-message {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(103, 58, 183, 0.14);
  background: #ffffff;
  color: #40395f;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-line;
}

body.page-notifications .notif-promo-section-title {
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 900;
  color: #2f2853;
}

body.page-notifications .notif-promo-loading,
body.page-notifications .notif-promo-empty {
  border: 1px dashed rgba(26, 26, 46, 0.16);
  border-radius: 13px;
  padding: 14px;
  text-align: center;
  color: #6a6484;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.8);
}

body.page-notifications .notif-promo-attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.page-notifications .notif-promo-asset {
  border: 1px solid rgba(26, 26, 46, 0.1);
  border-radius: 14px;
  background: #fff;
  padding: 9px;
}

body.page-notifications .notif-promo-asset-image,
body.page-notifications .notif-promo-asset-video {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(26, 26, 46, 0.08);
  max-height: 210px;
  object-fit: cover;
  background: #f7f7fb;
}

body.page-notifications .notif-promo-asset-file {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(154, 52, 18, 0.2);
  background: rgba(255, 247, 237, 0.8);
  color: #9a3412;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-weight: 800;
  font-size: 12px;
}

body.page-notifications .notif-promo-asset-caption {
  margin-top: 8px;
  font-size: 12px;
  color: #5d577d;
  font-weight: 700;
  line-height: 1.5;
}

body.page-notifications .notif-promo-asset-open {
  margin-top: 6px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  color: #4b2a83;
  text-decoration: none;
}

@media (max-width: 768px) {
  body.page-notifications .notif-promo-modal {
    padding: 12px;
  }

  body.page-notifications .notif-promo-dialog {
    border-radius: 16px;
    padding: 14px;
  }

  body.page-notifications .notif-promo-title {
    font-size: 20px;
  }

  body.page-notifications .notif-promo-message {
    font-size: 14px;
    padding: 12px;
  }

  body.page-notifications .notif-promo-attachments {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.page-notifications .notif-page-title-wrap h1 {
    font-size: 28px;
  }

  body.page-notifications .notif-page-title-wrap p {
    font-size: 12px;
  }

  body.page-notifications .notif-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.page-notifications .notif-actions > .notif-action-btn:first-child {
    grid-column: 1 / -1;
  }

  body.page-notifications .notif-action-btn {
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }

  body.page-notifications .notif-retry-btn {
    width: 100%;
  }
}

/* ====================================================================
   ORDERS PAGE — Template extras
   ==================================================================== */
body.page-orders .page-content {
  background:
    radial-gradient(circle at 92% 0%, rgba(103, 58, 183, 0.13), transparent 35%),
    radial-gradient(circle at 10% 12%, rgba(241, 165, 89, 0.12), transparent 28%),
    var(--color-bg);
}

body.page-orders .orders-page-layout {
  max-width: var(--container-narrow);
}

body.page-orders .orders-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 12px;
}

body.page-orders .mw-page-menu-btn,
body.page-orders .mw-page-topbar-spacer {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
}

body.page-orders .mw-page-menu-btn {
  border: 0;
  background: rgba(103, 58, 183, 0.12);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

body.page-orders .mw-page-menu-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

body.page-orders .orders-topbar-copy {
  text-align: center;
}

body.page-orders .mw-page-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #2d2651;
  line-height: 1.2;
}

body.page-orders .orders-topbar-copy p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--color-text-secondary);
}

body.page-orders .orders-hero-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  border-radius: 18px;
  border: 1px solid rgba(103, 58, 183, 0.2);
  background:
    radial-gradient(circle at 86% -10%, rgba(103, 58, 183, 0.13), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(26, 20, 46, 0.07);
}

body.page-orders .orders-hero-copy h2 {
  margin: 0;
  color: #2e2652;
  font-size: 20px;
  line-height: 1.25;
}

body.page-orders .orders-hero-copy p {
  margin-top: 6px;
  font-size: 12px;
  color: #5e577f;
}

body.page-orders .orders-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-orders .orders-hero-stat {
  min-width: 120px;
  border-radius: 12px;
  border: 1px solid rgba(103, 58, 183, 0.16);
  background: rgba(255, 255, 255, 0.78);
  padding: 7px 10px;
  text-align: center;
}

body.page-orders .orders-hero-value {
  display: block;
  color: #31295a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

body.page-orders .orders-hero-label {
  display: block;
  margin-top: 4px;
  color: #6a638a;
  font-size: 11px;
  font-weight: 700;
}

body.page-orders .orders-mobile-sheet {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(21, 16, 38, 0.06);
}

body.page-orders .orders-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

body.page-orders .orders-filter-head h3 {
  margin: 0;
  color: #302853;
  font-size: 20px;
  line-height: 1.2;
}

body.page-orders .orders-results-count {
  min-width: 34px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(103, 58, 183, 0.2);
  background: rgba(103, 58, 183, 0.1);
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  padding: 4px 8px;
}

body.page-orders .orders-search-wrap {
  position: relative;
  margin-bottom: 12px;
}

body.page-orders .orders-search-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

body.page-orders .orders-search-input {
  width: 100%;
  min-height: 44px;
  padding: 0 42px 0 42px;
  border-radius: 14px;
  border: 1px solid rgba(26, 26, 46, 0.12);
  background: #ffffff;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

body.page-orders .orders-search-input:focus {
  border-color: rgba(103, 58, 183, 0.42);
  box-shadow: 0 0 0 4px rgba(103, 58, 183, 0.1);
}

body.page-orders .orders-search-input::placeholder {
  color: var(--color-text-tertiary);
}

body.page-orders .orders-search-clear {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(103, 58, 183, 0.15);
  background: rgba(103, 58, 183, 0.08);
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-orders #status-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  margin-bottom: 12px;
}

body.page-orders #status-tabs::-webkit-scrollbar {
  display: none;
}

body.page-orders #status-tabs .tab-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-full);
  min-height: 34px;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(26, 26, 46, 0.12);
  background: #fff;
  color: #4c466a;
}

body.page-orders #status-tabs .tab-btn .orders-tab-count {
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(26, 26, 46, 0.06);
  color: #4d476c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  padding: 0 4px;
}

body.page-orders #status-tabs .tab-btn.active {
  background: rgba(103, 58, 183, 0.14);
  color: var(--color-primary-dark);
  border-color: rgba(103, 58, 183, 0.28);
}

body.page-orders #status-tabs .tab-btn.active .orders-tab-count {
  background: rgba(103, 58, 183, 0.2);
  color: var(--color-primary-dark);
}

body.page-orders .orders-list {
  display: grid;
  gap: 10px;
}

body.page-orders .orders-skeleton-card {
  height: 132px;
  border-radius: 14px;
}

body.page-orders .order-card {
  display: block;
  border: 1px solid rgba(26, 26, 46, 0.12);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(18, 13, 36, 0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

body.page-orders .order-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 58, 183, 0.32);
  box-shadow: 0 12px 24px rgba(78, 50, 136, 0.12);
}

body.page-orders .order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.page-orders .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  min-height: 26px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
}

body.page-orders .order-date {
  font-size: 12px;
  font-weight: 700;
  color: #6e688d;
}

body.page-orders .order-card-chips {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body.page-orders .order-type-chip,
body.page-orders .order-ref-chip {
  border-radius: var(--radius-full);
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 900;
}

body.page-orders .order-type-chip {
  border: 1px solid rgba(26, 26, 46, 0.14);
  background: rgba(26, 26, 46, 0.06);
  color: #4f4a6f;
}

body.page-orders .order-type-chip.order-type-urgent {
  border-color: rgba(211, 47, 47, 0.3);
  background: rgba(211, 47, 47, 0.1);
  color: #b71c1c;
}

body.page-orders .order-type-chip.order-type-competitive {
  border-color: rgba(103, 58, 183, 0.3);
  background: rgba(103, 58, 183, 0.1);
  color: #4a2ea1;
}

body.page-orders .order-type-chip.order-type-normal {
  border-color: rgba(25, 118, 210, 0.28);
  background: rgba(25, 118, 210, 0.1);
  color: #1565c0;
}

body.page-orders .order-ref-chip {
  border: 1px solid rgba(103, 58, 183, 0.2);
  background: rgba(103, 58, 183, 0.08);
  color: var(--color-primary-dark);
}

body.page-orders .order-title {
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.35;
  color: #2d2750;
  font-weight: 900;
}

body.page-orders .order-snippet {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: #5f597f;
}

body.page-orders .order-card-footer {
  margin-top: 10px;
  border-top: 1px dashed rgba(26, 26, 46, 0.14);
  padding-top: 9px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

body.page-orders .order-provider {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4c466a;
  font-size: 12px;
  font-weight: 700;
}

body.page-orders .order-price {
  color: #227d3b;
  font-size: 13px;
  font-weight: 900;
}

body.page-orders .order-open-hint {
  margin-inline-start: auto;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

body.page-orders #orders-empty {
  border: 1px dashed rgba(26, 26, 46, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

@media (min-width: 900px) {
  body.page-orders .orders-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.page-orders .orders-hero-panel {
    grid-template-columns: 1fr;
  }

  body.page-orders .orders-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ====================================================================
   ORDER DETAIL PAGE
   ==================================================================== */
body.page-order-detail .page-content {
  background:
    radial-gradient(circle at 92% 4%, rgba(103, 58, 183, 0.15), transparent 34%),
    radial-gradient(circle at 8% 18%, rgba(241, 165, 89, 0.14), transparent 28%),
    var(--color-bg);
}

body.page-order-detail .order-detail-layout {
  max-width: var(--container-narrow);
}

body.page-order-detail .order-detail-shell {
  padding-bottom: calc(var(--space-2xl) + 16px);
}

body.page-order-detail .order-page-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

body.page-order-detail .order-page-title-wrap h1 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
  color: #2e2650;
}

body.page-order-detail .order-page-title-wrap p {
  margin-top: 6px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

body.page-order-detail .order-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(103, 58, 183, 0.2);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.84);
  color: var(--color-primary-dark);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

body.page-order-detail .order-back-link:hover {
  border-color: rgba(103, 58, 183, 0.45);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

body.page-order-detail .order-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-order-detail .order-detail-card {
  background: linear-gradient(180deg, #ffffff 0%, #fdfdff 100%);
  border-radius: 18px;
  border: 1px solid rgba(26, 26, 46, 0.08);
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(24, 18, 44, 0.06);
}

body.page-order-detail .order-detail-card > h2 {
  margin: 0;
  padding: 16px 18px 0;
  color: #312b52;
  font-size: 25px;
  line-height: 1.2;
}

body.page-order-detail .order-summary-card {
  border-color: rgba(103, 58, 183, 0.18);
  background:
    radial-gradient(circle at 90% 0%, rgba(103, 58, 183, 0.12), transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
}

body.page-order-detail .order-detail-top {
  padding: 14px 18px 12px;
}

body.page-order-detail .order-summary-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.page-order-detail .order-summary-id-block {
  min-width: 0;
}

body.page-order-detail .order-summary-label {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-tertiary);
}

body.page-order-detail .order-display-id {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #231c44;
}

body.page-order-detail .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
}

body.page-order-detail .order-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  padding: 0 18px 16px;
}

body.page-order-detail .order-meta-line {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(103, 58, 183, 0.14);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #4b456c;
}

body.page-order-detail .order-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 16px 18px 0;
}

body.page-order-detail .order-field-head h2 {
  margin: 0;
  color: #312b52;
  font-size: 25px;
  line-height: 1.2;
}

body.page-order-detail #btn-toggle-title,
body.page-order-detail #btn-toggle-desc,
body.page-order-detail #btn-refresh-offers {
  border-radius: var(--radius-full);
  border: 1px solid rgba(103, 58, 183, 0.24);
  background: rgba(103, 58, 183, 0.06);
  color: var(--color-primary-dark);
  font-weight: 800;
}

body.page-order-detail #btn-toggle-title:hover,
body.page-order-detail #btn-toggle-desc:hover,
body.page-order-detail #btn-refresh-offers:hover {
  background: rgba(103, 58, 183, 0.14);
}

body.page-order-detail .order-edit-card .form-input,
body.page-order-detail .order-edit-card .form-textarea {
  margin: 0 18px 16px;
  width: calc(100% - 36px);
  border: 1px solid rgba(26, 26, 46, 0.12);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.page-order-detail .order-edit-card .form-input[disabled],
body.page-order-detail .order-edit-card .form-textarea[disabled] {
  color: #393651;
  opacity: 0.9;
  background: #fcfbff;
}

body.page-order-detail .order-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px 16px;
}

body.page-order-detail .order-files-group {
  padding: 0 0 10px;
}

body.page-order-detail .order-files-group + .order-files-group {
  border-top: 1px solid rgba(103, 58, 183, 0.1);
}

body.page-order-detail .order-files-group-head {
  padding: 16px 18px 0;
}

body.page-order-detail .order-files-group-head h3 {
  margin: 0;
  color: #2f2b45;
  font-size: 14px;
  font-weight: 800;
}

body.page-order-detail .order-files-group-head p {
  margin: 6px 0 0;
  color: #7a748f;
  font-size: 11px;
  line-height: 1.6;
}

body.page-order-detail .order-line-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(103, 58, 183, 0.2);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

body.page-order-detail .order-line-link:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 58, 183, 0.42);
  box-shadow: var(--shadow-sm);
}

body.page-order-detail .order-line-link span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2f2b45;
  font-size: 12px;
  font-weight: 700;
}

body.page-order-detail .order-line-type {
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  background: rgba(103, 58, 183, 0.12);
  color: var(--color-primary-dark);
  border: 1px solid rgba(103, 58, 183, 0.24);
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 900;
}

body.page-order-detail .order-log-row {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(103, 58, 183, 0.16);
  background: #fff;
  padding: 10px 12px 10px 14px;
  margin-right: 8px;
}

body.page-order-detail .order-log-row::before {
  content: '';
  position: absolute;
  right: -7px;
  top: 13px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #f5f3ff;
}

body.page-order-detail .order-log-title {
  font-size: 12px;
  font-weight: 800;
  color: #322b56;
}

body.page-order-detail .order-log-note {
  margin-top: 4px;
  font-size: 12px;
  color: #4e476c;
}

body.page-order-detail .order-log-time {
  margin-top: 4px;
  font-size: 11px;
  color: var(--color-text-tertiary);
}

body.page-order-detail .order-offers-card {
  border-color: rgba(103, 58, 183, 0.2);
  background:
    radial-gradient(circle at 88% -8%, rgba(103, 58, 183, 0.14), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
}

body.page-order-detail .order-offers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(103, 58, 183, 0.16);
}

body.page-order-detail .order-offers-head h2 {
  margin: 0;
  color: #312b52;
  font-size: 25px;
  line-height: 1.2;
}

body.page-order-detail .order-offers-feedback {
  margin: 10px 18px 0;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}

body.page-order-detail .order-offers-feedback.is-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

body.page-order-detail .order-offers-feedback.is-success {
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

body.page-order-detail .order-offers-list {
  padding: 12px 18px 16px;
  display: grid;
  gap: 10px;
}

body.page-order-detail .order-offers-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

body.page-order-detail .order-offer-card {
  border: 1px solid rgba(103, 58, 183, 0.2);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(103, 58, 183, 0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

body.page-order-detail .order-offer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 58, 183, 0.38);
  box-shadow: 0 10px 24px rgba(103, 58, 183, 0.12);
}

body.page-order-detail .order-offer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

body.page-order-detail .order-offer-provider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 900;
}

body.page-order-detail .order-offer-provider:hover {
  text-decoration: underline;
}

body.page-order-detail .order-offer-provider-static {
  color: #322b53;
  font-size: 13px;
  font-weight: 900;
}

body.page-order-detail .order-offer-provider-open {
  font-size: 11px;
  color: var(--color-text-tertiary);
}

body.page-order-detail .order-offer-status {
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

body.page-order-detail .order-offer-line {
  font-size: 12px;
  color: #4c4768;
  margin-bottom: 3px;
  font-weight: 700;
}

body.page-order-detail .order-offer-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: #4f4a6a;
  background: rgba(103, 58, 183, 0.06);
  border: 1px solid rgba(103, 58, 183, 0.14);
  border-radius: 10px;
  padding: 7px 8px;
}

body.page-order-detail .order-offer-select-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 42px;
  border-radius: 12px;
}

body.page-order-detail .order-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  padding: 14px 18px 16px;
}

body.page-order-detail .order-info-item {
  border: 1px solid rgba(103, 58, 183, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
}

body.page-order-detail .order-info-item.order-info-item-attachments {
  grid-column: 1 / -1;
}

body.page-order-detail .order-info-attachments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

body.page-order-detail .order-info-attachments-list .order-line-link {
  padding: 9px 10px;
}

body.page-order-detail .order-info-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

body.page-order-detail .order-info-value {
  font-size: 13px;
  font-weight: 800;
  color: #342d57;
  line-height: 1.6;
}

body.page-order-detail .order-inline-note {
  margin: 0 18px 12px;
  border-radius: 12px;
  border: 1px solid rgba(103, 58, 183, 0.14);
  background: rgba(103, 58, 183, 0.06);
  color: #493f74;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

body.page-order-detail .order-review-feedback {
  margin: 0 18px 12px;
}

body.page-order-detail .order-decision-form,
body.page-order-detail .order-review-form,
body.page-order-detail .order-actions-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 18px 16px;
}

body.page-order-detail .order-form-label {
  font-size: 12px;
  font-weight: 800;
  color: #352f58;
}

body.page-order-detail .order-inline-textarea {
  margin: 0;
  width: 100%;
  border: 1px solid rgba(26, 26, 46, 0.12);
  border-radius: 14px;
  background: #fff;
}

body.page-order-detail .order-inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

body.page-order-detail .order-inline-actions .btn-primary,
body.page-order-detail .order-inline-actions .btn-secondary,
body.page-order-detail .order-actions-body .btn-primary,
body.page-order-detail .order-actions-body .btn-secondary,
body.page-order-detail .order-review-form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}

body.page-order-detail .order-review-form .order-btn-spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
}

body.page-order-detail .order-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

body.page-order-detail .order-review-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #352f58;
}

body.page-order-detail .order-review-field .form-input {
  width: 100%;
}

body.page-order-detail .order-bottom-actions {
  position: sticky;
  bottom: 10px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(26, 26, 46, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(16, 11, 33, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: 6px;
}

body.page-order-detail .order-bottom-actions .btn-secondary {
  flex: 0 0 132px;
  min-height: 42px;
}

body.page-order-detail .order-bottom-actions .btn-primary {
  flex: 1;
  min-height: 42px;
}

@media (min-width: 900px) {
  body.page-order-detail .order-offers-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.page-order-detail .order-page-top {
    margin-bottom: 12px;
  }

  body.page-order-detail .order-page-title-wrap h1 {
    font-size: 27px;
  }

  body.page-order-detail .order-page-title-wrap p {
    font-size: 12px;
  }

  body.page-order-detail .order-back-link {
    width: 100%;
    justify-content: center;
  }

  body.page-order-detail .order-meta {
    grid-template-columns: 1fr;
  }

  body.page-order-detail .order-info-grid,
  body.page-order-detail .order-review-grid {
    grid-template-columns: 1fr;
  }

  body.page-order-detail .order-field-head h2,
  body.page-order-detail .order-offers-head h2,
  body.page-order-detail .order-detail-card > h2 {
    font-size: 23px;
  }

  body.page-order-detail .order-bottom-actions {
    bottom: calc(var(--bottom-nav-height) + 8px);
  }
}

/* Client order detail refresh */
body.page-order-detail {
  --od-ink: #201a3d;
  --od-muted: #6c657f;
  --od-soft: #f7f4ee;
  --od-line: rgba(55, 48, 83, 0.12);
  --od-violet: #5d3ea8;
  --od-teal: #0f766e;
  --od-gold: #b7791f;
}

body.page-order-detail .page-content {
  min-height: 100dvh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.94) 46%, rgba(245, 242, 251, 0.92) 100%),
    var(--color-bg);
}

body.page-order-detail .order-detail-layout {
  width: min(1120px, calc(100vw - 32px));
  max-width: 1120px;
}

body.page-order-detail .order-detail-shell {
  padding-top: 8px;
  padding-bottom: calc(var(--space-2xl) + 108px);
}

body.page-order-detail .order-detail-hero {
  position: relative;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(55, 48, 83, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(249, 247, 252, 0.88)),
    linear-gradient(90deg, rgba(15, 118, 110, 0.08), rgba(183, 121, 31, 0.08));
  box-shadow: 0 22px 48px rgba(31, 26, 54, 0.09);
  margin-bottom: 16px;
  overflow: hidden;
}

body.page-order-detail .order-detail-hero::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--od-teal), var(--od-gold), var(--od-violet));
}

body.page-order-detail .order-page-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.08);
  color: #0f5f59;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

body.page-order-detail .order-page-title-wrap h1 {
  color: var(--od-ink);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
}

body.page-order-detail .order-page-title-wrap p {
  color: var(--od-muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 620px;
}

body.page-order-detail .order-back-link {
  min-height: 44px;
  border-color: rgba(93, 62, 168, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(32, 26, 61, 0.08);
}

body.page-order-detail .order-detail-stack {
  gap: 16px;
}

body.page-order-detail .order-detail-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--od-line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(32, 26, 61, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.page-order-detail .order-detail-card > h2,
body.page-order-detail .order-field-head h2,
body.page-order-detail .order-offers-head h2 {
  color: var(--od-ink);
  font-size: 22px;
  font-weight: 900;
}

body.page-order-detail .order-summary-card {
  overflow: visible;
  border-color: rgba(15, 118, 110, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 247, 252, 0.92)),
    linear-gradient(90deg, rgba(15, 118, 110, 0.08), rgba(183, 121, 31, 0.06));
}

body.page-order-detail .order-summary-card::after {
  content: '';
  position: absolute;
  inset-inline: 24px;
  bottom: -1px;
  height: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--od-teal), var(--od-gold), var(--od-violet));
  opacity: 0.76;
}

body.page-order-detail .order-detail-top {
  padding: 20px 22px 12px;
}

body.page-order-detail .order-summary-main {
  align-items: flex-start;
}

body.page-order-detail .order-summary-label,
body.page-order-detail .order-meta-label,
body.page-order-detail .order-info-label {
  color: #817891;
  font-size: 11px;
  font-weight: 900;
}

body.page-order-detail .order-display-id {
  color: var(--od-ink);
  font-size: 24px;
  letter-spacing: 0;
}

body.page-order-detail .status-badge {
  min-height: 36px;
  padding: 6px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

body.page-order-detail .order-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 22px 22px;
}

body.page-order-detail .order-meta-line {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 70px;
  padding: 12px 14px;
  border-radius: 16px;
  border-color: rgba(55, 48, 83, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 250, 252, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.page-order-detail .order-meta-value {
  min-width: 0;
  color: #30294f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.page-order-detail .order-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

body.page-order-detail .order-description-card {
  min-height: 100%;
}

body.page-order-detail .order-field-head {
  padding: 18px 20px 0;
  margin-bottom: 12px;
}

body.page-order-detail #btn-toggle-title,
body.page-order-detail #btn-toggle-desc,
body.page-order-detail #btn-refresh-offers {
  min-height: 34px;
  padding: 5px 12px;
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(15, 118, 110, 0.07);
  color: #0f5f59;
}

body.page-order-detail .order-edit-card .form-input,
body.page-order-detail .order-edit-card .form-textarea,
body.page-order-detail .order-inline-textarea,
body.page-order-detail .order-review-field .form-input {
  border-radius: 16px;
  border-color: rgba(55, 48, 83, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #2f294b;
  font-weight: 700;
}

body.page-order-detail .order-edit-card .form-input,
body.page-order-detail .order-edit-card .form-textarea {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

body.page-order-detail .order-edit-card .form-input[disabled],
body.page-order-detail .order-edit-card .form-textarea[disabled] {
  opacity: 1;
  background: linear-gradient(180deg, rgba(252, 252, 255, 0.92), rgba(247, 248, 250, 0.88));
}

body.page-order-detail #order-description {
  min-height: 132px;
  resize: vertical;
}

body.page-order-detail .order-files-card,
body.page-order-detail .order-logs-card,
body.page-order-detail .order-offers-card {
  border-color: rgba(93, 62, 168, 0.14);
}

body.page-order-detail .order-detail-card > h2 {
  padding: 18px 20px 0;
}

body.page-order-detail .order-files-group-head {
  padding: 16px 20px 0;
}

body.page-order-detail .order-files-group-head h3 {
  color: #2d2945;
  font-size: 15px;
}

body.page-order-detail .order-files-group-head p {
  color: var(--od-muted);
  font-size: 12px;
}

body.page-order-detail .order-lines,
body.page-order-detail .order-info-grid {
  padding: 14px 20px 20px;
}

body.page-order-detail .order-line-link {
  min-height: 54px;
  border-radius: 15px;
  border-color: rgba(55, 48, 83, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 250, 252, 0.9));
  box-shadow: 0 8px 18px rgba(32, 26, 61, 0.05);
}

body.page-order-detail .order-line-link:hover {
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: 0 14px 28px rgba(32, 26, 61, 0.1);
}

body.page-order-detail .order-line-link span:first-child {
  color: #2f294b;
  font-size: 13px;
}

body.page-order-detail .order-file-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.page-order-detail .order-file-name > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-order-detail .order-file-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(93, 62, 168, 0.1);
  color: var(--od-violet);
  font-size: 10px;
  font-weight: 900;
}

body.page-order-detail .order-line-type {
  background: rgba(183, 121, 31, 0.1);
  color: #8a5a18;
  border-color: rgba(183, 121, 31, 0.22);
}

body.page-order-detail .order-log-row {
  margin-right: 12px;
  border-radius: 16px;
  border-color: rgba(55, 48, 83, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 14px 12px 16px;
}

body.page-order-detail .order-log-row::before {
  background: var(--od-teal);
  border-color: #fff;
}

body.page-order-detail .order-log-title {
  color: var(--od-ink);
  font-size: 13px;
}

body.page-order-detail .order-log-note {
  color: #514a67;
  line-height: 1.7;
}

body.page-order-detail .order-offers-head {
  padding: 16px 20px;
  border-color: rgba(55, 48, 83, 0.1);
}

body.page-order-detail .order-offers-list {
  padding: 14px 20px 20px;
}

body.page-order-detail .order-offer-card,
body.page-order-detail .order-info-item {
  border-radius: 16px;
  border-color: rgba(55, 48, 83, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(32, 26, 61, 0.06);
}

body.page-order-detail .order-info-value,
body.page-order-detail .order-offer-line {
  color: #30294f;
}

body.page-order-detail .order-inline-note,
body.page-order-detail .order-offer-note {
  border-color: rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.07);
  color: #245b57;
}

body.page-order-detail .order-decision-form,
body.page-order-detail .order-review-form,
body.page-order-detail .order-actions-body {
  padding: 0 20px 20px;
}

body.page-order-detail .order-bottom-actions {
  width: min(100%, 760px);
  margin-inline: auto;
  bottom: calc(var(--desktop-bottom-dock-height, 0px) + var(--desktop-bottom-dock-offset, 0px) + 14px);
  border-radius: 20px;
  border-color: rgba(55, 48, 83, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(32, 26, 61, 0.16);
}

@media (min-width: 900px) {
  body.page-order-detail .order-offers-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.page-order-detail .order-detail-layout {
    width: min(100%, calc(100vw - 24px));
  }

  body.page-order-detail .order-primary-grid {
    grid-template-columns: 1fr;
  }

  body.page-order-detail .order-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.page-order-detail .order-detail-shell {
    padding-top: 0;
    padding-bottom: calc(var(--bottom-nav-height) + 104px);
  }

  body.page-order-detail .order-detail-hero {
    padding: 18px 16px;
    border-radius: 20px;
    align-items: stretch;
  }

  body.page-order-detail .order-page-title-wrap h1 {
    font-size: 30px;
  }

  body.page-order-detail .order-page-title-wrap p {
    font-size: 13px;
  }

  body.page-order-detail .order-back-link {
    width: 100%;
    justify-content: center;
  }

  body.page-order-detail .order-detail-card {
    border-radius: 18px;
  }

  body.page-order-detail .order-summary-main {
    flex-direction: column;
    gap: 12px;
  }

  body.page-order-detail .status-badge {
    align-self: flex-start;
  }

  body.page-order-detail .order-meta {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  body.page-order-detail .order-detail-top,
  body.page-order-detail .order-field-head,
  body.page-order-detail .order-detail-card > h2,
  body.page-order-detail .order-files-group-head,
  body.page-order-detail .order-offers-head {
    padding-inline: 16px;
  }

  body.page-order-detail .order-lines,
  body.page-order-detail .order-info-grid,
  body.page-order-detail .order-offers-list,
  body.page-order-detail .order-decision-form,
  body.page-order-detail .order-review-form,
  body.page-order-detail .order-actions-body {
    padding-inline: 16px;
  }

  body.page-order-detail .order-edit-card .form-input,
  body.page-order-detail .order-edit-card .form-textarea {
    margin-inline: 16px;
    width: calc(100% - 32px);
  }

  body.page-order-detail .order-line-link {
    align-items: flex-start;
  }

  body.page-order-detail .order-line-type {
    margin-top: 3px;
  }

  body.page-order-detail .order-inline-actions {
    flex-direction: column-reverse;
  }

  body.page-order-detail .order-inline-actions .btn-primary,
  body.page-order-detail .order-inline-actions .btn-secondary {
    width: 100%;
  }

  body.page-order-detail .order-bottom-actions {
    bottom: calc(var(--bottom-nav-height) + 8px);
    border-radius: 18px;
  }
}

@media (max-width: 420px) {
  body.page-order-detail .order-detail-layout {
    width: min(100%, calc(100vw - 16px));
  }

  body.page-order-detail .order-page-title-wrap h1 {
    font-size: 27px;
  }

  body.page-order-detail .order-display-id {
    font-size: 21px;
  }

  body.page-order-detail .order-bottom-actions {
    flex-direction: column;
  }

  body.page-order-detail .order-bottom-actions .btn-secondary,
  body.page-order-detail .order-bottom-actions .btn-primary {
    width: 100%;
    flex: 0 0 auto;
  }
}
/* ====================================================================
   ONBOARDING PAGE
   ==================================================================== */
.onboarding-page {
  min-height: calc(100dvh - 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: max(14px, env(safe-area-inset-top, 14px)) 12px max(14px, env(safe-area-inset-bottom, 14px));
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.32), transparent 28%),
    linear-gradient(160deg, #6a3fb1 0%, #8b6ad0 42%, #f6f0ff 100%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.24);
}
.onboarding-page .container {
  width: 100%;
  display: flex;
  justify-content: center;
}
.onboarding-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,.96), rgba(255,255,255,.9) 60%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(249,245,255,.94));
  backdrop-filter: blur(18px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 34px 80px -28px rgba(52, 28, 92, .5),
    0 12px 30px -18px rgba(52, 28, 92, .35);
  padding: clamp(20px, 5vw, 30px);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 32px;
  overflow: hidden;
}
.onboarding-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(132, 94, 194, .16), transparent 70%);
  pointer-events: none;
}
.service-action-card:hover { border-color: rgba(103, 58, 183, 0.3); box-shadow: 0 2px 10px rgba(0,0,0,0.06); transform: translateY(-1px); }
.onboarding-stage { position: relative; min-height: auto; }
.onboard-slide {
  display: flex; flex-direction: column;
  align-items: center; gap: 18px;
  padding: 8px 0 6px;
}
.onboard-slide.hidden { display: none; }
.onboard-slide-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.onboard-step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(103, 58, 183, .12), rgba(134, 101, 204, .08));
  color: #5d2f86;
  font-size: 12px;
  font-weight: 800;
}
.onboard-step-note {
  color: #7a6b91;
  font-size: 12px;
  font-weight: 700;
}
.onboard-slide h1 {
  margin: 0;
  font-size: clamp(22px, 6vw, 26px);
  font-weight: 900;
  letter-spacing: -.2px;
  color: #211038;
  text-align: center;
  line-height: 1.4;
}
.onboard-slide p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: #5a4d6e;
  text-align: center;
}
.onboard-copy-card {
  width: 100%;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(122, 90, 170, .14);
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(249,245,255,.96));
  box-shadow: 0 14px 30px -16px rgba(52, 28, 92, .26);
}
.onboard-media {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 30% 12%, rgba(255,255,255,.5), transparent 46%),
    linear-gradient(150deg, #efe6ff 0%, #e7ddff 55%, #e6eeff 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 22px 48px -20px rgba(103,58,183,.5);
  border: 1px solid rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: aspect-ratio .25s ease;
}
/* Orientation-aware framing (set by onboardingPage.js) so app screenshots are
   presented edge-to-edge instead of floating with white letterbox bars. */
.onboard-media.is-portrait {
  width: min(72%, 230px);
  aspect-ratio: 10 / 19;
}
.onboard-media.is-landscape {
  width: min(100%, 320px);
  aspect-ratio: 16 / 10;
}
.onboard-media.is-square {
  width: min(86%, 268px);
  aspect-ratio: 1 / 1;
}
.onboard-media.onboard-media--placeholder {
  width: min(86%, 268px);
  aspect-ratio: 4 / 3;
}
.onboard-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(17,24,39,0) 60%, rgba(17,24,39,.12) 100%);
  pointer-events: none;
}
/* Soft shimmer while the media is still loading (avoids a flat white box). */
.onboard-media.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: nw-onb-media-shimmer 1.25s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes nw-onb-media-shimmer {
  from { background-position: 180% 0; }
  to   { background-position: -80% 0; }
}
.onboard-media-image,
.onboard-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Square/placeholder frames keep the whole asset visible (no crop). */
.onboard-media.is-square .onboard-media-image,
.onboard-media.is-square .onboard-media-video {
  object-fit: contain;
  padding: 10px;
}
.onboard-video-sound-toggle,
.ob-video-sound-toggle {
  position: absolute;
  z-index: 3;
  inset-inline-start: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(28, 18, 48, .68);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(20, 8, 48, .24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.onboard-video-sound-toggle:hover,
.ob-video-sound-toggle:hover {
  background: rgba(103, 58, 183, .82);
  transform: translateX(-50%) translateY(-1px);
}
.onboard-video-sound-toggle.is-hidden,
.ob-video-sound-toggle.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.onboard-media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17,24,39,.56);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.onboard-icon {
  width: 128px; height: 128px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.74);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  box-shadow: 0 16px 34px rgba(103,58,183,.18);
}
.onboard-status-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 18px;
  text-align: center;
}
.onboard-status-card h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #24163c;
}
.onboard-status-card p {
  margin: 0;
  max-width: 28rem;
  font-size: 15px;
  line-height: 1.9;
  color: #706584;
}
.onboard-status-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f3ecff, #e6dbff);
  color: var(--color-primary);
  font-size: 36px;
  box-shadow: 0 18px 36px rgba(103,58,183,.14);
}
.onboard-status-action {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(103,58,183,.22);
}
.onboard-dots {
  display: flex; gap: var(--space-sm);
  justify-content: center;
  margin: var(--space-lg) 0;
}
.onboard-dot {
  width: 10px; height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  transition: all var(--transition-fast);
}
.onboard-dot.active { background: var(--color-primary); width: 28px; }
.onboard-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(109, 78, 161, .12);
}
.onboard-skip {
  background: none; border: none;
  color: var(--color-text-tertiary);
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: 'Cairo', sans-serif;
  min-height: 48px;
  padding: 0 12px;
}
.onboard-next {
  display: inline-flex; align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #673AB7, #7E53C4); color: #fff;
  font-size: 14px; font-weight: 700;
  border: none; cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 14px 28px rgba(103,58,183,.24);
}
.onboard-next:hover { background: linear-gradient(135deg, #5b2faa, #7348bb); }

@media (max-width: 420px) {
  .onboarding-page {
    padding: max(12px, env(safe-area-inset-top, 12px)) 10px max(12px, env(safe-area-inset-bottom, 12px));
    border-radius: 0;
  }

  .onboarding-card {
    padding: 20px 14px 16px;
    border-radius: 24px;
  }

  .onboarding-stage {
    min-height: auto;
  }

  .onboard-slide-meta {
    flex-wrap: wrap;
    justify-content: center;
  }

  .onboard-copy-card {
    width: 100%;
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .onboard-actions {
    flex-wrap: wrap-reverse;
    gap: 10px;
  }

  .onboard-next,
  .onboard-skip {
    width: 100%;
  }

  .onboard-skip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(122, 90, 170, .14);
    border-radius: 16px;
    background: rgba(248,243,255,.9);
    color: #6b5d84;
  }
}

@media (max-width: 360px) {
  .onboarding-stage {
    min-height: auto;
  }

  .onboard-media {
    width: min(100%, 200px);
    border-radius: 18px;
  }

  .onboard-copy-card {
    padding: 14px 12px 12px;
  }

  .onboard-slide h1 {
    font-size: 19px;
  }

  .onboard-slide p {
    font-size: 13px;
    line-height: 1.85;
  }
}

/* ====================================================================
   ONBOARDING OVERLAY (full-screen first-visit experience)
   ==================================================================== */

/* ── Overlay backdrop ── */
.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 12px)) 12px max(12px, env(safe-area-inset-bottom, 12px));
  background:
    radial-gradient(ellipse at 30% 20%, rgba(126, 83, 196, .35) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(103, 58, 183, .2) 0%, transparent 50%),
    linear-gradient(160deg, #1a0a38 0%, #2d1560 35%, #421f8a 65%, #1a0a38 100%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}
.ob-overlay--visible { opacity: 1; }
.ob-overlay--exit {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(.4,0,.2,1);
}

/* ── Floating particles ── */
.ob-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ob-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  animation: ob-float 12s ease-in-out infinite;
  animation-delay: calc(var(--i) * -2s);
}
.ob-particle:nth-child(1) { left: 10%; top: 20%; width: 4px; height: 4px; }
.ob-particle:nth-child(2) { left: 25%; top: 70%; width: 8px; height: 8px; background: rgba(232,222,248,.12); }
.ob-particle:nth-child(3) { left: 60%; top: 15%; width: 5px; height: 5px; }
.ob-particle:nth-child(4) { left: 80%; top: 55%; width: 7px; height: 7px; background: rgba(255,255,255,.1); }
.ob-particle:nth-child(5) { left: 45%; top: 85%; width: 4px; height: 4px; }
.ob-particle:nth-child(6) { left: 90%; top: 30%; width: 6px; height: 6px; background: rgba(232,222,248,.08); }

@keyframes ob-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: .4; }
  50%      { transform: translateY(-40px) scale(1.5); opacity: .8; }
}

/* ── Loader ── */
.ob-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.ob-loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: #E8DEF8;
  border-radius: 50%;
  animation: ob-spin 0.8s linear infinite;
}
@keyframes ob-spin { to { transform: rotate(360deg); } }

/* ── Container (card) ── */
.ob-container {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow:
    0 40px 80px rgba(26, 10, 56, .35),
    0 16px 32px rgba(103, 58, 183, .15),
    inset 0 1px 0 rgba(255,255,255,.9);
  padding: 20px 16px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  animation: ob-card-in 0.7s cubic-bezier(.16,1,.3,1) both;
  animation-delay: 0.15s;
}
@keyframes ob-card-in {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Page counter badge ── */
.ob-counter {
  align-self: flex-end;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5edff, #ede3ff);
  color: #673AB7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

/* ── Slide stage ── */
.ob-stage {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}
.ob-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4px 0 8px;
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .45s cubic-bezier(.4,0,.2,1), transform .45s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}
.ob-slide-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 4px;
}
.ob-step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(103, 58, 183, .12), rgba(134, 101, 204, .08));
  color: #5d2f86;
  font-size: 12px;
  font-weight: 800;
}
.ob-step-caption {
  color: #7b678f;
  font-size: 12px;
  font-weight: 700;
}
.ob-slide--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
  visibility: visible;
  height: auto;
}
.ob-slide--prev {
  opacity: 0;
  transform: translateX(60px);
}
.ob-slide--next {
  opacity: 0;
  transform: translateX(-60px);
}

/* ── Media ── */
.ob-media {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.35), transparent 38%),
    linear-gradient(145deg, #f5edff, #ede7ff 60%, #e9f0ff);
  box-shadow:
    0 8px 24px rgba(103,58,183,.12),
    0 2px 8px rgba(103,58,183,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ob-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(17,24,39,.06) 100%);
  pointer-events: none;
  border-radius: inherit;
}
.ob-media-asset {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
}
.ob-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #673AB7;
  box-shadow:
    0 12px 32px rgba(103,58,183,.18),
    inset 0 -2px 6px rgba(103,58,183,.06);
  animation: ob-icon-pulse 3s ease-in-out infinite;
}
@keyframes ob-icon-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 16px 40px rgba(103,58,183,.2); }
  50%      { transform: scale(1.06); box-shadow: 0 20px 52px rgba(103,58,183,.28); }
}

/* ── Text ── */
.ob-text {
  text-align: center;
  padding: 0;
  width: 100%;
  padding-bottom: 6px;
}
.ob-copy-card {
  width: 100%;
  padding: 14px 12px 12px;
  border-radius: 20px;
  border: 1px solid rgba(122, 90, 170, .12);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,243,255,.94));
  box-shadow: 0 12px 24px rgba(52, 28, 92, .06);
}
.ob-title {
  margin: 0;
  font-size: clamp(17px, 3.8vw, 22px);
  font-weight: 800;
  color: #24163c;
  line-height: 1.5;
}
.ob-desc {
  margin: 8px auto 0;
  font-size: clamp(13px, 3vw, 15px);
  line-height: 1.9;
  color: #5a4d6e;
  max-width: 380px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.ob-gesture-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(103, 58, 183, .08);
  color: #684a97;
  font-size: 11px;
  font-weight: 800;
}

/* ── Dots ── */
.ob-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 2px;
}
.ob-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d9d0e7;
  cursor: pointer;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.ob-dot--active {
  width: 30px;
  background: linear-gradient(135deg, #673AB7, #7E53C4);
  box-shadow: 0 4px 14px rgba(103,58,183,.35);
}

/* ── Action buttons ── */
.ob-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(109, 78, 161, .12);
}
.ob-btn-skip {
  background: none;
  border: 1.5px solid #e3d7f6;
  color: #7b678f;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}
.ob-btn-skip:hover {
  background: #f8f4fe;
  border-color: #d4c4f0;
  color: #5b3d8f;
}
.ob-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #673AB7, #7E53C4);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(103,58,183,.3);
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.ob-btn-next:hover {
  background: linear-gradient(135deg, #5b2faa, #7348bb);
  box-shadow: 0 14px 34px rgba(103,58,183,.4);
  transform: translateY(-1px);
}
.ob-btn-next--finish {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  box-shadow: 0 12px 28px rgba(76,175,80,.3);
}
.ob-btn-next--finish:hover {
  background: linear-gradient(135deg, #43a047, #5cb860);
  box-shadow: 0 14px 34px rgba(76,175,80,.4);
}

/* ══════════════════════════════════════════════
   PROMO / INTRO SHOWCASE (Phase 2)
   ══════════════════════════════════════════════ */
.ob-promo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top, 16px)) 14px max(16px, env(safe-area-inset-bottom, 16px));
  animation: ob-fadeUp .55s cubic-bezier(.22,1,.36,1) both;
}
@keyframes ob-fadeUp {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Media area */
.ob-promo-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px 0;
  min-height: 0;
  position: relative;
  z-index: 1;
}
.ob-promo-asset {
  max-width: 88%;
  max-height: 72vh;
  border-radius: 26px;
  object-fit: contain;
  box-shadow:
    0 24px 64px rgba(0,0,0,.22),
    0 8px 24px rgba(103,58,183,.18),
    0 0 0 1px rgba(255,255,255,.08);
}
video.ob-promo-asset {
  border-radius: 20px;
  box-shadow:
    0 28px 72px rgba(0,0,0,.28),
    0 0 0 4px rgba(103,58,183,.12);
}
.ob-promo-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 18px 16px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(21, 10, 44, .72), rgba(44, 24, 88, .56));
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 48px rgba(0,0,0,.18);
}
.ob-promo-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 800;
}
.ob-promo-title {
  margin: 12px 0 0;
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 800;
  line-height: 1.45;
}
.ob-promo-desc {
  margin: 10px 0 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.85;
  white-space: pre-line;
}

/* Bottom action bar */
.ob-promo-bottom {
  position: relative;
  z-index: 2;
  padding: 0;
  display: flex;
  justify-content: center;
}
.ob-promo-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #673AB7, #7E53C4);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(103,58,183,.35);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  width: min(100%, 420px);
}
.ob-promo-continue:hover {
  background: linear-gradient(135deg, #5b2faa, #7348bb);
  box-shadow: 0 14px 34px rgba(103,58,183,.45);
  transform: translateY(-2px);
}
.ob-promo-continue svg {
  flex-shrink: 0;
}

/* Promo responsive */
@media (max-width: 360px) {
  .ob-promo-asset { max-height: 64vh; border-radius: 18px; }
  .ob-promo-media { padding: 20px 12px 0; }
  .ob-promo-copy { padding: 14px 12px 12px; border-radius: 18px; }
  .ob-promo-title { margin-top: 10px; }
  .ob-promo-continue { padding: 12px 36px; font-size: 14px; }
}
@media (max-height: 600px) {
  .ob-promo-media { padding: 12px 12px 0; }
  .ob-promo-asset { max-height: 60vh; border-radius: 16px; }
  .ob-promo-bottom { padding: 12px 16px 12px; }
  .ob-promo-continue { padding: 10px 32px; font-size: 14px; }
}
@media (max-height: 600px) and (orientation: landscape) {
  .ob-promo-asset { max-height: 75vh; }
}
@media (min-width: 768px) {
  .ob-promo-asset { max-height: 74vh; border-radius: 30px; }
  .ob-promo-continue { padding: 16px 56px; font-size: 17px; }
}

/* ── Login card (Phase 3) ── */
.ob-login-card {
  gap: 0;
  align-items: center;
  text-align: center;
}
.ob-login-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5edff, #e8dbff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #673AB7;
  margin-bottom: 16px;
  box-shadow: 0 12px 32px rgba(103,58,183,.15);
}
.ob-login-title {
  margin: 0;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  color: #24163c;
  line-height: 1.3;
}
.ob-login-subtitle {
  margin: 8px 0 20px;
  font-size: clamp(13px, 3.2vw, 15px);
  color: #6f6482;
  line-height: 1.8;
  max-width: 340px;
}

/* Phone field */
.ob-login-field {
  width: 100%;
  margin-bottom: 16px;
}
.ob-login-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f5fd;
  border: 2px solid #e8dbff;
  border-radius: 16px;
  padding: 0 16px;
  height: 56px;
  transition: border-color .2s ease, box-shadow .2s ease;
  direction: ltr;
}
.ob-login-input-wrap:focus-within {
  border-color: #673AB7;
  box-shadow: 0 0 0 4px rgba(103,58,183,.1);
  background: #fff;
}
.ob-login-flag {
  font-size: 22px;
  flex-shrink: 0;
}
.ob-login-prefix {
  font-size: 14px;
  font-weight: 700;
  color: #673AB7;
  flex-shrink: 0;
  user-select: none;
}
.ob-login-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #24163c;
  outline: none;
  letter-spacing: 1.5px;
  min-width: 0;
}
.ob-login-input::placeholder {
  color: #b8a8d0;
  letter-spacing: 0.5px;
  font-weight: 400;
}
.ob-login-error {
  color: #d32f2f;
  font-size: 12px;
  font-weight: 600;
  min-height: 18px;
  margin-top: 6px;
  text-align: right;
  direction: rtl;
}

/* Submit button */
.ob-login-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #673AB7, #7E53C4);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(103,58,183,.3);
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.ob-login-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #5b2faa, #7348bb);
  box-shadow: 0 14px 34px rgba(103,58,183,.4);
  transform: translateY(-1px);
}
.ob-login-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.ob-login-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ob-spin .7s linear infinite;
}

/* Cooldown */
.ob-login-cooldown {
  min-height: 20px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #7E53C4;
  direction: rtl;
}

/* Divider */
.ob-login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 18px 0;
  color: #b8a8d0;
  font-size: 13px;
  font-weight: 600;
}
.ob-login-divider > span:first-child,
.ob-login-divider > span:last-child {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e3d7f6, transparent);
}

/* Guest button */
.ob-login-guest {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  background: #fff;
  color: #4A2D8F;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(31, 14, 64, 0.18);
  text-shadow: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ob-login-guest svg {
  color: #4A2D8F;
  flex-shrink: 0;
  stroke: currentColor;
}
.ob-login-guest span {
  color: inherit;
}
.ob-login-guest:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 16px 34px rgba(31, 14, 64, 0.24);
  transform: translateY(-1px);
}

/* Shake animation */
@keyframes ob-shake {
  0%, 100% { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
}

/* ── Login responsive: small phones ── */
@media (max-width: 360px) {
  .ob-login-icon { width: 60px; height: 60px; margin-bottom: 10px; }
  .ob-login-icon svg { width: 28px; height: 28px; }
  .ob-login-title { font-size: 20px; }
  .ob-login-subtitle { font-size: 12px; margin-bottom: 14px; }
  .ob-login-input-wrap { height: 50px; padding: 0 12px; border-radius: 12px; }
  .ob-login-submit { padding: 12px 20px; font-size: 14px; border-radius: 12px; }
  .ob-login-guest { padding: 11px 20px; font-size: 13px; border-radius: 12px; }
  .ob-login-divider { margin: 12px 0; }
}
@media (max-height: 600px) {
  .ob-login-icon { width: 52px; height: 52px; margin-bottom: 8px; }
  .ob-login-icon svg { width: 24px; height: 24px; }
  .ob-login-subtitle { margin-bottom: 12px; }
  .ob-login-input-wrap { height: 46px; }
  .ob-login-submit { padding: 10px 18px; font-size: 14px; }
  .ob-login-guest { padding: 10px 18px; font-size: 13px; }
  .ob-login-divider { margin: 10px 0; }
  .ob-login-cooldown { margin-top: 4px; }
}
/* Desktop login */
@media (min-width: 768px) {
  .ob-login-icon { width: 86px; height: 86px; margin-bottom: 20px; }
  .ob-login-icon svg { width: 40px; height: 40px; }
  .ob-login-title { font-size: 30px; }
  .ob-login-subtitle { font-size: 16px; max-width: 380px; }
  .ob-login-input-wrap { height: 60px; border-radius: 18px; gap: 12px; }
  .ob-login-input { font-size: 18px; }
  .ob-login-submit { padding: 16px 28px; font-size: 17px; border-radius: 18px; }
  .ob-login-guest { padding: 14px 28px; font-size: 16px; border-radius: 18px; }
}

/* ── Responsive: very small phones (≤360px wide) ── */
@media (max-width: 360px) {
  .ob-container {
    width: min(100%, 420px);
    padding: 14px 10px 12px;
    border-radius: 22px;
    max-height: 98vh;
  }
  .ob-stage {
    min-height: auto;
  }
  .ob-slide-meta {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ob-counter { font-size: 11px; padding: 4px 10px; margin-bottom: 4px; }
  .ob-media { max-width: 180px; border-radius: 14px; aspect-ratio: 4/3; }
  .ob-media-asset { padding: 4px; }
  .ob-icon-circle { width: 64px; height: 64px; }
  .ob-icon-circle svg { width: 28px; height: 28px; }
  .ob-copy-card { padding: 14px 12px 12px; border-radius: 18px; }
  .ob-title { font-size: 16px; }
  .ob-desc { font-size: 12.5px; line-height: 1.8; }
  .ob-slide { gap: 8px; }
  .ob-dots { margin: 8px 0 2px; gap: 6px; }
  .ob-dot { width: 8px; height: 8px; }
  .ob-dot--active { width: 22px; }
  .ob-actions { margin-top: 10px; flex-wrap: wrap-reverse; }
  .ob-btn-next { width: 100%; justify-content: center; padding: 10px 18px; font-size: 13px; }
  .ob-btn-skip { width: 100%; justify-content: center; padding: 10px 14px; font-size: 12px; }
}

/* ── Responsive: small phones (361–420px wide) ── */
@media (min-width: 361px) and (max-width: 420px) {
  .ob-container {
    width: min(100%, 420px);
    padding: 18px 14px 16px;
    border-radius: 26px;
  }
  .ob-stage {
    min-height: auto;
  }
  .ob-slide-meta {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ob-media { max-width: 200px; border-radius: 18px; aspect-ratio: 4/3; }
  .ob-copy-card { padding: 16px 14px 14px; border-radius: 18px; }
  .ob-icon-circle { width: 84px; height: 84px; }
  .ob-icon-circle svg { width: 38px; height: 38px; }
  .ob-actions { flex-wrap: wrap-reverse; }
  .ob-btn-next { width: 100%; justify-content: center; padding: 11px 22px; font-size: 14px; }
  .ob-btn-skip { width: 100%; justify-content: center; padding: 11px 18px; font-size: 13px; }
}

/* ── Responsive: medium phones (421–576px wide) ── */
@media (min-width: 421px) and (max-width: 576px) {
  .ob-container {
    width: 92vw;
    padding: 22px 20px 18px;
    border-radius: 30px;
  }
  .ob-media { max-width: 220px; }
}

/* ── Responsive: short viewports (landscape phones / short screens) ── */
@media (max-height: 600px) {
  .ob-container { padding: 12px 12px 10px; max-height: 98vh; }
  .ob-counter { margin-bottom: 4px; }
  .ob-media { max-width: 180px; aspect-ratio: 4/3; border-radius: 14px; }
  .ob-media-asset { padding: 4px; }
  .ob-icon-circle { width: 56px; height: 56px; }
  .ob-icon-circle svg { width: 24px; height: 24px; }
  .ob-stage { min-height: auto; }
  .ob-slide { gap: 8px; padding: 4px 0 6px; }
  .ob-copy-card { padding: 12px 12px 10px; border-radius: 16px; }
  .ob-title { font-size: 15px; }
  .ob-desc { font-size: 12px; line-height: 1.7; }
  .ob-dots { margin: 6px 0 0; }
  .ob-actions { margin-top: 8px; }
  .ob-btn-next { padding: 8px 18px; font-size: 13px; }
  .ob-btn-skip { padding: 8px 14px; font-size: 12px; }
  .ob-promo-copy { padding: 12px; border-radius: 16px; }
}
@media (min-height: 601px) and (max-height: 700px) {
  .ob-container { padding: 16px 16px 14px; }
  .ob-media { max-width: 200px; }
  .ob-stage { min-height: auto; }
  .ob-slide { gap: 12px; }
  .ob-dots { margin: 10px 0 2px; }
  .ob-actions { margin-top: 12px; }
}

/* ── Desktop: tablets (768px+) ── */
@media (min-width: 768px) {
  .ob-container {
    width: min(88vw, 540px);
    padding: 34px 30px 26px;
    border-radius: 38px;
  }
  .ob-counter { font-size: 13px; padding: 7px 16px; }
  .ob-media { max-width: 340px; border-radius: 22px; }
  .ob-icon-circle { width: 96px; height: 96px; }
  .ob-icon-circle svg { width: 44px; height: 44px; }
  .ob-title { font-size: 24px; }
  .ob-desc { font-size: 15px; max-width: 420px; }
  .ob-slide { gap: 18px; }
  .ob-dots { margin: 22px 0 6px; }
  .ob-dot { width: 11px; height: 11px; }
  .ob-dot--active { width: 34px; }
  .ob-actions { margin-top: 24px; }
  .ob-btn-next { padding: 14px 32px; font-size: 16px; }
  .ob-btn-skip { padding: 14px 26px; font-size: 15px; }
}

/* ── Desktop: large screens (1024px+) ── */
@media (min-width: 1024px) {
  .ob-container {
    width: min(80vw, 580px);
    padding: 38px 36px 30px;
  }
  .ob-media { max-width: 360px; }
  .ob-title { font-size: 26px; }
  .ob-desc { font-size: 15px; line-height: 2; max-width: 440px; }
  .ob-btn-next { padding: 15px 36px; font-size: 16px; }
  .ob-btn-skip { padding: 14px 28px; font-size: 15px; }
}

/* ── Desktop: wide screens (1440px+) ── */
@media (min-width: 1440px) {
  .ob-container {
    width: min(60vw, 620px);
    padding: 42px 40px 32px;
    border-radius: 42px;
  }
  .ob-media { max-width: 380px; border-radius: 24px; }
  .ob-icon-circle { width: 110px; height: 110px; }
  .ob-icon-circle svg { width: 48px; height: 48px; }
  .ob-title { font-size: 28px; }
  .ob-desc { font-size: 16px; max-width: 460px; }
}

/* ── Landscape phones ── */
@media (max-height: 500px) and (orientation: landscape) {
  .ob-overlay { align-items: flex-start; padding-top: 8px; }
  .ob-container {
    flex-direction: column;
    max-height: 98vh;
    padding: 10px 14px 8px;
    border-radius: 20px;
  }
  .ob-slide { flex-direction: row; gap: 16px; text-align: right; }
  .ob-media { max-width: 180px; min-width: 140px; aspect-ratio: 4/3; border-radius: 14px; }
  .ob-icon-circle { width: 56px; height: 56px; }
  .ob-icon-circle svg { width: 24px; height: 24px; }
  .ob-text { text-align: right; padding: 0; }
  .ob-title { font-size: 15px; }
  .ob-desc { font-size: 11px; line-height: 1.7; }
  .ob-dots { margin: 4px 0 0; }
  .ob-actions { margin-top: 6px; }
  .ob-btn-next { padding: 8px 16px; font-size: 12px; }
  .ob-btn-skip { padding: 8px 12px; font-size: 11px; }
}

/* ====================================================================
   LANGUAGE PAGE
   ==================================================================== */
.page-language .language-shell {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin-inline: auto;
}
body.page-language .page-content {
  padding-bottom: calc(var(--bottom-nav-height, 88px) + 96px) !important;
}
.page-language .language-hero {
  position: relative;
  display: grid;
  gap: 20px;
  align-items: end;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(96, 78, 161, .14);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #32166f 0%, #5f3dc4 58%, #128b83 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(39, 24, 87, .16);
}
.page-language .language-hero-copy,
.page-language .language-status-panel {
  position: relative;
  z-index: 1;
}
.page-language .language-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-language .language-hero-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.page-language .language-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  color: #fff !important;
  font-weight: 900;
}
.page-language .language-hero p {
  margin: 0;
  max-width: 580px;
  color: rgba(255,255,255,.84) !important;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 600;
}
.page-language .language-status-panel {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-width: min(100%, 260px);
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.page-language .language-status-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  color: #fff;
}
.page-language .language-status-icon svg {
  width: 22px;
  height: 22px;
}
.page-language .language-status-copy {
  display: grid;
  gap: 2px;
}
.page-language .language-status-copy small {
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 800;
}
.page-language .language-status-copy strong {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}
.page-language .language-auth-card,
.page-language .language-content {
  background: #fff;
  border: 1px solid rgba(79, 70, 129, .12);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(28, 24, 54, .07);
}
.page-language .language-auth-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
}
.page-language .language-auth-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(180deg, #f1ebff 0%, #e8deff 100%);
  color: #5a35bf;
}
.page-language .language-auth-icon svg {
  width: 32px;
  height: 32px;
}
.page-language .language-auth-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-language .language-auth-kicker,
.page-language .language-section-kicker {
  margin: 0;
  color: #6c46d8;
  font-size: 12px;
  font-weight: 800;
}
.page-language .language-auth-copy h2,
.page-language .language-summary-card h2 {
  margin: 0;
  color: #22163f;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
}
.page-language .language-auth-copy p {
  margin: 0;
  color: #625b78;
  line-height: 1.9;
}
.page-language .language-auth-action {
  justify-self: start;
}
.page-language .language-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
}
.page-language .language-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(79, 70, 129, .10);
}
.page-language .language-current-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eefaf8;
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, .16);
  font-weight: 800;
  box-shadow: none;
}
.page-language .language-options-grid {
  display: grid;
  gap: 12px;
}
.page-language .language-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(79, 70, 129, .12);
  border-radius: 18px;
  background: #fff;
  color: #22163f;
  text-align: start;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.page-language .language-option:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 139, 131, .28);
  box-shadow: 0 14px 26px rgba(28, 24, 54, .08);
}
.page-language .language-option.is-active {
  background: linear-gradient(180deg, #fbfffe 0%, #f0fbfa 100%);
  border-color: rgba(18, 139, 131, .42);
  box-shadow: 0 16px 30px rgba(18, 139, 131, .12);
}
.page-language .language-option-flag {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #f5f3ff;
  color: #5b3fc2;
  font-size: 16px;
  font-weight: 900;
}
.page-language .language-option-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  text-align: start;
}
.page-language .language-option-copy strong {
  font-size: 18px;
  font-weight: 900;
  color: #22163f;
}
.page-language .language-option-copy small {
  color: #625b78;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.page-language .language-option.is-active .language-option-copy strong {
  color: #123c3a;
}
.page-language .language-option.is-active .language-option-copy small {
  color: #245d59;
}
.page-language .language-option.is-active .language-option-flag {
  background: #e2f7f4;
  color: #0f766e;
}
.page-language .language-option-check {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f5f3ff;
  border: 1px solid rgba(79, 70, 129, .14);
  color: transparent;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.page-language .language-option-check svg {
  width: 18px;
  height: 18px;
}
.page-language .language-option.is-active .language-option-check {
  background: #128b83;
  border-color: #128b83;
  color: #fff;
  transform: scale(1.04);
}
.page-language .language-feedback-stack {
  display: grid;
  gap: 10px;
}
@media (min-width: 768px) {
  .page-language .language-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .page-language .language-auth-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }
  .page-language .language-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 740px) {
  .page-language .language-shell {
    grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
    align-items: stretch;
  }
  .page-language .language-hero {
    grid-template-columns: 1fr;
    align-content: space-between;
    min-height: 260px;
  }
  .page-language .language-status-panel {
    justify-self: start;
  }
  .page-language .language-content {
    min-height: 260px;
  }
  .page-language .language-options-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .page-language .language-hero {
    border-radius: 20px;
  }
  .page-language .language-status-panel {
    justify-self: stretch;
  }
  .page-language .language-summary-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-language .language-current-chip {
    min-width: 0;
  }
  .page-language .language-option {
    align-items: center;
  }
}
@media (max-height: 760px) and (min-width: 768px) {
  .page-language .language-shell {
    gap: 14px;
  }
  .page-language .language-hero {
    padding: 20px 28px;
    border-radius: 22px;
  }
  .page-language .language-hero h1 {
    font-size: 30px;
  }
  .page-language .language-hero p {
    font-size: 14px;
    line-height: 1.6;
  }
  .page-language .language-status-panel {
    padding: 10px 12px;
  }
  .page-language .language-content {
    padding: 16px 18px;
    gap: 12px;
  }
  .page-language .language-summary-card {
    padding-bottom: 12px;
  }
  .page-language .language-summary-card h2 {
    font-size: 24px;
  }
  .page-language .language-option {
    min-height: 72px;
    padding: 12px 14px;
  }
}

/* ====================================================================
   ABOUT PAGE
   ==================================================================== */
.page-about .about-hero {
  position: relative;
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  min-height: 264px;
  padding: 42px;
  background:
    linear-gradient(128deg, rgba(255,255,255,.10), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 14% 28%, rgba(11, 154, 170, .32), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.20), transparent 30%),
    linear-gradient(145deg, #2d1368 0%, #5f3dc4 55%, #7556e8 100%);
  color: #fff;
  border-radius: 28px;
  margin-bottom: var(--space-xl);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 22px 54px rgba(39, 24, 89, .18);
}
@media (min-width: 769px) { .page-about .about-hero { border-radius: var(--radius-2xl); } }
.about-shell {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-bottom: calc(var(--bottom-nav-height, 88px) + 64px);
}
.about-hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.about-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: .45;
}
.about-hero-orb-one {
  width: 220px;
  height: 220px;
  top: -72px;
  left: -48px;
  background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0));
}
.about-hero-orb-two {
  width: 280px;
  height: 280px;
  right: -96px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(72, 211, 186, .34), rgba(72, 211, 186, 0));
}
.about-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 88%);
}
.about-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}
.page-about .about-hero-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.96);
  color: #4b2aae;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 24px rgba(25, 8, 68, .16);
}
.about-hero-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.page-about .about-hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.16));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 18px 34px rgba(18, 8, 50, .26);
  border: 1px solid rgba(255,255,255,.26);
  color: #fff;
}
.page-about .about-hero-icon svg {
  width: 36px;
  height: 36px;
}
.about-hero-copy-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-about .about-hero h1,
.page-about #about-hero-title {
  font-size: 42px;
  line-height: 1.1;
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 6px 20px rgba(15, 5, 43, .24);
}
.page-about .about-hero p {
  margin: 0;
  max-width: 720px;
  color: #f3ecff;
  font-size: 17px;
  line-height: 1.9;
}
.page-about #about-hero-subtitle {
  color: #f7f2ff;
  font-weight: 700;
  text-shadow: 0 3px 12px rgba(15, 5, 43, .18);
}
.about-hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}
.about-hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.about-hero-points span::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-inline-end: 8px;
  border-radius: var(--radius-full);
  background: #60f0d8;
  box-shadow: 0 0 0 4px rgba(96, 240, 216, .14);
}
.about-hero-side {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.page-about .about-hero-panel {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.15));
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 18px 36px rgba(16, 6, 44, .2);
  backdrop-filter: blur(16px);
}
.page-about .about-hero-panel-kicker {
  margin: 0 0 8px;
  color: #f3ecff;
  font-size: 12px;
  font-weight: 800;
}
.page-about .about-hero-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 4px 14px rgba(15, 5, 43, .18);
}
.about-hero-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 48px rgba(17, 7, 46, .28);
  min-height: 180px;
}
.about-hero-media img,
.about-hero-media video {
  display: block;
  width: 100%;
  max-height: 360px;
  min-height: 180px;
  object-fit: cover;
}
.about-loading,
.about-error,
.about-empty {
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  background: #fff;
  border: 1px solid rgba(95, 61, 196, .10);
  box-shadow: var(--shadow-sm);
}
.about-error {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fdba74;
}
.about-section,
.about-panel {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(95, 61, 196, .10);
  box-shadow: 0 16px 34px rgba(39, 24, 89, .07);
  padding: 28px;
}
.about-section-head,
.about-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.about-section-kicker,
.about-panel-kicker {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
}
.about-section-head h2,
.about-panel-head h3 {
  margin: 0;
  color: #22163f;
  font-size: 26px;
  font-weight: 900;
}
.about-section-summary {
  max-width: 680px;
  margin: 10px 0 0;
  color: #6c647f;
  font-size: 14px;
  line-height: 1.9;
}
.about-grid {
  display: grid;
  gap: var(--space-md);
}
.about-card {
  position: relative;
  min-height: 196px;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(95, 61, 196, .12);
  background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.about-card::after {
  content: '';
  position: absolute;
  inset-inline: 22px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(95,61,196,.95), rgba(163,132,255,.35));
}
.about-card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 61, 196, .22);
  box-shadow: 0 18px 34px rgba(39, 24, 89, .10);
}
.about-card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 16px;
  font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.about-card-title {
  margin: 0 0 10px;
  color: #1f143d;
  font-size: 21px;
  font-weight: 900;
}
.about-card-body {
  margin: 0;
  color: #5e5776;
  line-height: 2;
  white-space: pre-line;
}
.about-card-primary .about-card-icon { background: #eaf7ff; }
.about-card-primary::after { background: linear-gradient(90deg, #0ea5c6, rgba(14, 165, 198, .18)); }
.about-card-violet .about-card-icon { background: #f1ebff; }
.about-card-violet::after { background: linear-gradient(90deg, #6d44d6, rgba(163,132,255,.30)); }
.about-card-amber .about-card-icon { background: #fff3df; }
.about-card-amber::after { background: linear-gradient(90deg, #f59e0b, rgba(245, 158, 11, .18)); }
.about-card-emerald .about-card-icon { background: #e8fbf3; }
.about-card-emerald::after { background: linear-gradient(90deg, #10b981, rgba(16, 185, 129, .18)); }
.about-card-slate .about-card-icon { background: #edf2f7; }
.about-card-slate::after { background: linear-gradient(90deg, #64748b, rgba(100, 116, 139, .18)); }
.about-panels {
  display: grid;
  gap: var(--space-lg);
}
.about-link-list {
  display: grid;
  gap: 12px;
}
.about-link-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #43218d 0%, #5f3dc4 50%, #7c56e1 100%);
  color: #fff;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 14px 26px rgba(95, 61, 196, .18);
}
.about-link-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(95, 61, 196, .24);
}
.about-link-tile-outline {
  background: linear-gradient(180deg, #fff 0%, #faf8ff 100%);
  color: var(--color-primary);
  border: 1px solid rgba(95, 61, 196, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
.about-link-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.15);
}
.about-link-tile-outline .about-link-icon {
  background: rgba(95, 61, 196, .08);
  border-color: rgba(95, 61, 196, .12);
}
.about-link-icon svg {
  width: 24px;
  height: 24px;
}
.about-link-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.about-link-label {
  font-size: 17px;
  font-weight: 800;
}
.about-link-caption {
  font-size: 13px;
  opacity: .82;
}
.about-link-arrow {
  font-size: 20px;
  line-height: 1;
  opacity: .88;
}
.social-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}
.social-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #faf7ff 100%);
  border: 1px solid rgba(95, 61, 196, .10);
  color: #2d1d57;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 12px 22px rgba(39, 24, 89, .06);
}
.social-pill-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(95, 61, 196, .08);
  color: var(--color-primary);
}
.social-pill-icon svg {
  width: 24px;
  height: 24px;
}
.social-pill small {
  font-size: 12px;
  font-weight: 800;
}
.social-pill:hover {
  background: #f4edff;
  transform: translateY(-3px);
}
@media (min-width: 768px) {
  .page-about .about-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    text-align: right;
  }
  .about-hero-copy {
    align-items: flex-start;
    text-align: right;
  }
  .about-hero-mark {
    flex-direction: row;
    align-items: center;
  }
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-panels {
    grid-template-columns: 1.15fr .85fr;
  }
}
@media (min-width: 992px) {
  .about-hero,
  .page-contact .contact-hero,
  .page-terms .page-header {
    padding: calc(var(--space-2xl) + 8px);
    box-shadow: var(--shadow-lg);
  }
  .page-contact .contact-panel,
  .page-terms .expand-card,
  .page-about .expand-card {
    box-shadow: var(--shadow-sm);
  }
}
@media (max-width: 767px) {
  .page-about .about-hero {
    padding: 24px 20px;
    min-height: 0;
    border-radius: 0 0 24px 24px;
  }
  .page-about #about-hero-title {
    font-size: 32px;
  }
  .page-about .about-hero-panel {
    padding: 20px;
  }
  .page-about .about-hero-panel h2 {
    font-size: 22px;
  }
  .about-section,
  .about-panel {
    padding: 20px;
    border-radius: 22px;
  }
  .about-section-head,
  .about-panel-head {
    margin-bottom: 16px;
  }
  .about-hero-points {
    justify-content: center;
  }
  .about-card-title {
    font-size: 19px;
  }
  .about-card-body,
  .about-hero p {
    line-height: 1.85;
  }
  .about-link-tile {
    align-items: flex-start;
  }
  .about-link-arrow {
    align-self: flex-end;
  }
}

/* ====================================================================
   ADD SERVICE PAGE
   ==================================================================== */
.add-service-hero {
  text-align: center;
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-xl);
}
.add-service-gradient-header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-xl);
}
@media (min-width: 769px) { .add-service-gradient-header { border-radius: var(--radius-2xl); } }
.add-service-gradient-header .page-title { color: #fff; }
.add-service-gradient-header .page-subtitle { color: rgba(255,255,255,.8); }

.service-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 600px) { .service-actions-grid { grid-template-columns: repeat(3, 1fr); } }

.service-action-card {
  display: flex; align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  cursor: pointer; transition: all var(--transition-normal);
  text-decoration: none;
}
.service-action-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-primary); transform: translateY(-2px); }

.sac-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sac-icon.purple-bg { background: var(--color-primary-subtle); color: var(--color-primary); }
.sac-icon.orange-bg { background: var(--color-accent-light); color: var(--color-accent); }
.sac-icon.teal-bg { background: #E0F2F1; color: #009688; }
.purple-bg { background: var(--color-primary-subtle); color: var(--color-primary); }
.orange-bg { background: var(--color-accent-light); color: var(--color-accent); }
.teal-bg { background: #E0F2F1; color: #009688; }
.sac-body { flex: 1; min-width: 0; }
.sac-body h3 { font-size: 12px; font-weight: 800; color: var(--color-text); margin-bottom: 2px; }
.sac-body p { font-size: 10px; color: var(--color-text-secondary); line-height: 1.45; }
.sac-arrow { color: var(--color-text-tertiary); flex-shrink: 0; }

/* ====================================================================
   TERMS / STATIC PAGES — extras
   ==================================================================== */
.empty-hint {
  font-size: 14px; color: var(--color-text-tertiary);
  text-align: center; padding: var(--space-xl);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-md);
}
.empty-icon { color: var(--color-text-tertiary); }

/* ====================================================================
   NOTIFICATION SETTINGS
   ==================================================================== */
body.page-notification-settings .page-content {
  position: relative;
  background:
    radial-gradient(circle at 88% 8%, rgba(177, 96, 170, 0.1), transparent 22%),
    radial-gradient(circle at 8% 18%, rgba(241, 161, 98, 0.08), transparent 16%),
    linear-gradient(180deg, #fcfbfd 0%, #f4f1f7 100%);
}

body.page-notification-settings .container {
  max-width: 1180px;
}

.notif-settings-heading {
  margin-bottom: 20px;
}

.notif-settings-heading-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid rgba(150, 104, 168, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,242,250,0.9)),
    linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
  box-shadow: 0 12px 28px rgba(73, 50, 89, 0.05);
}

.notif-settings-kicker {
  margin: 0;
  color: #9f78a5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.notif-settings-heading-copy h1 {
  margin: 0;
  color: #7d2e86;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.18;
  font-weight: 900;
}

.notif-settings-heading-copy h1 span {
  color: #7d2e86;
  font-size: 0.78em;
}

.notif-settings-heading-meta {
  margin: 0;
  color: #8f7298;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.notif-settings-empty-screen {
  margin-top: 14px;
  padding: 28px 20px;
  border-radius: 20px;
  border: 1px dashed rgba(164, 108, 181, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: #7f6f84;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.notif-settings-retry-wrap {
  margin-top: 10px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.notif-settings-retry {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
}

body.page-notification-settings #notif-settings-error {
  margin-top: 10px;
  border-radius: 14px;
}

.notif-settings-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(20, 14, 32, 0.46);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.notif-settings-dialog-backdrop.show {
  opacity: 1;
}

.notif-settings-dialog {
  width: min(440px, 100%);
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(118, 84, 143, 0.16);
  box-shadow: 0 24px 42px rgba(23, 16, 34, 0.24);
  padding: 20px 18px 16px;
  text-align: center;
}

.notif-settings-dialog-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(111, 63, 160, 0.1);
}

.notif-settings-dialog-title {
  margin: 0;
  color: #5f2f78;
  font-size: 20px;
  font-weight: 900;
}

.notif-settings-dialog-text {
  margin: 10px 0 0;
  color: #655a76;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
}

.notif-settings-dialog-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.notif-settings-dialog-btn {
  flex: 1 1 0;
  min-height: 40px;
  border-radius: 12px;
  font-weight: 800;
}

.notif-settings-dialog-close {
  background: rgba(111, 63, 160, 0.08);
  border: 1px solid rgba(111, 63, 160, 0.2);
  color: #5f2f78;
}

.notif-settings-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height, 68px) + env(safe-area-inset-bottom, 0px) + 16px);
  transform: translate(-50%, 16px);
  z-index: 1705;
  max-width: min(92vw, 360px);
  border-radius: 12px;
  background: #23303e;
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  box-shadow: 0 14px 26px rgba(14, 18, 30, 0.25);
  opacity: 0;
  transition: transform 0.16s ease, opacity 0.16s ease;
  text-align: center;
}

.notif-settings-toast.error {
  background: #9f2a2a;
}

.notif-settings-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.notif-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.notif-settings-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notif-tier-panel,
.notif-extra-panel {
  min-width: 0;
}

.notif-section-card {
  border-radius: 22px;
  border: 1px solid rgba(164, 108, 181, 0.24);
  background: rgba(255,255,255,0.9);
  padding: 16px 16px 14px;
  box-shadow: 0 12px 28px rgba(53, 36, 67, 0.05);
  backdrop-filter: blur(6px);
}

.notif-tier-basic {
  border-top: 4px solid #af5cb7;
}

.notif-tier-pioneer {
  border-top: 4px solid #8c5ec1;
}

.notif-tier-professional {
  border-top: 4px solid #6079b7;
}

.notif-tier-extra {
  border-top: 4px solid #ec8a42;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,249,243,0.96));
}

.notif-tier-dynamic {
  border-top: 4px solid #7f8ea1;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,249,252,0.95));
}

.notif-section-card.is-empty {
  padding-bottom: 16px;
}

.notif-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  border-radius: 14px;
  padding: 4px 2px;
  transition: background var(--transition-fast);
}

.notif-section-header:hover {
  background: rgba(121, 67, 146, 0.05);
}

.notif-section-header:focus-visible {
  outline: 2px solid rgba(121, 67, 146, 0.28);
  outline-offset: 2px;
}

.notif-section-header-tools {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notif-section-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(109, 62, 140, 0.1);
  color: #7a3f95;
  font-size: 12px;
  line-height: 1;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.notif-section-card.expanded .notif-section-chevron {
  transform: rotate(180deg);
}

.notif-section-card.collapsed .notif-section-chevron {
  transform: rotate(0deg);
}

.notif-section-body {
  display: none;
}

.notif-section-body.open {
  display: block;
}

.notif-section-copy {
  min-width: 0;
}

.notif-section-title {
  margin: 0;
  color: #5e2868;
  font-size: 19px;
  line-height: 1.2;
}

.notif-section-description {
  margin: 6px 0 0;
  color: #8d7d93;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
  max-width: 680px;
}

.notif-tier-extra .notif-section-title,
.notif-tier-extra .notif-section-description {
  color: #9d5822;
}

.notif-tier-dynamic .notif-section-title,
.notif-tier-dynamic .notif-section-description {
  color: #40556f;
}

.notif-section-count {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(109, 62, 140, 0.08);
  color: #7a3f95;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.notif-tier-extra .notif-section-count {
  background: rgba(236, 138, 66, 0.12);
  color: #bf682a;
}

.notif-tier-dynamic .notif-section-count {
  background: rgba(102, 128, 156, 0.12);
  color: #4f6682;
}

.notif-section-notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(109, 62, 140, 0.06);
  border: 1px dashed rgba(109, 62, 140, 0.22);
  color: #6a3d7a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.8;
}

.notif-tier-extra .notif-section-notice {
  background: rgba(236, 138, 66, 0.08);
  border-color: rgba(236, 138, 66, 0.22);
  color: #9d5822;
}

.notif-tier-dynamic .notif-section-notice {
  background: rgba(111, 137, 165, 0.1);
  border-color: rgba(111, 137, 165, 0.24);
  color: #4f6682;
}

.notif-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-pref-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 11px 13px;
  border-radius: 15px;
  border: 1px solid rgba(177, 103, 196, 0.26);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,247,252,0.94));
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.notif-tier-pioneer .notif-pref-row {
  border-color: rgba(140, 94, 193, 0.24);
}

.notif-tier-professional .notif-pref-row {
  border-color: rgba(96, 121, 183, 0.22);
  background: linear-gradient(180deg, rgba(248,250,255,0.98), rgba(242,246,252,0.96));
}

.notif-tier-extra .notif-pref-row {
  border-color: rgba(236, 138, 66, 0.24);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,249,243,0.98));
}

.notif-pref-row.compact {
  min-height: 54px;
}

.notif-pref-row:hover {
  transform: translateY(-1px);
  border-color: rgba(153, 87, 173, 0.36);
  box-shadow: 0 8px 18px rgba(78, 40, 90, 0.06);
}

.notif-pref-row.locked {
  cursor: pointer;
  opacity: 0.78;
}

.notif-pref-row.locked:hover {
  border-color: rgba(186, 138, 197, 0.28);
  box-shadow: none;
  transform: none;
}

.notif-pref-row.saving {
  opacity: 0.86;
}

.notif-pref-title {
  min-width: 0;
  color: #90388f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  padding-top: 1px;
}

.notif-pref-text {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
}

.notif-pref-meta {
  color: #9d8c9f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.notif-tier-professional .notif-pref-title {
  color: #485f8f;
}

.notif-tier-extra .notif-pref-title {
  color: #a85a1d;
}

.notif-pref-control {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 30px;
}

.notif-pref-switch {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.notif-pref-slider {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201, 210, 218, 0.8), rgba(182, 193, 202, 0.82));
  border: 1px solid rgba(117, 132, 143, 0.32);
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.06);
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.notif-tier-extra .notif-pref-slider {
  background: linear-gradient(180deg, rgba(236, 138, 66, 0.12), rgba(231, 163, 112, 0.16));
  border-color: rgba(236, 138, 66, 0.22);
}

.notif-pref-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #eef3f6);
  box-shadow: 0 3px 8px rgba(48, 26, 58, 0.16);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.notif-pref-switch:checked + .notif-pref-slider {
  background: linear-gradient(180deg, #6f8f99, #50707a);
  border-color: rgba(54, 96, 108, 0.56);
  box-shadow: inset 0 1px 2px rgba(34, 68, 77, 0.16);
}

.notif-pref-switch:checked + .notif-pref-slider::after {
  transform: translateX(-20px);
  background: #f8fbff;
}

.notif-pref-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(125, 132, 144, 0.14);
  color: #616a75;
  font-size: 10px;
  font-weight: 900;
}

.notif-extra-note {
  margin-top: 16px;
  padding: 14px 8px 0;
  border-top: 1px solid rgba(236, 138, 66, 0.16);
  text-align: right;
}

.notif-extra-note-arrow {
  display: none;
}

.notif-extra-note-title {
  color: #a64c1d;
  font-size: 14px;
  font-weight: 900;
}

.notif-extra-note-body {
  margin: 8px 0 0;
  color: #8b6a5d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.75;
}

.notif-empty-state {
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(248, 244, 250, 0.82);
  border: 1px dashed rgba(166, 59, 149, 0.18);
  color: #897c8f;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 960px) {
  .notif-settings-layout {
    grid-template-columns: 1fr;
  }

  .notif-settings-heading-copy {
    padding: 22px;
  }
}

@media (max-width: 768px) {
  .notif-settings-heading-copy {
    padding: 18px;
  }

  .notif-section-card {
    border-radius: 20px;
    padding: 13px;
  }

  .notif-section-header {
    gap: 10px;
    margin-bottom: 14px;
  }

  .notif-section-chevron {
    width: 18px;
    height: 18px;
  }

  .notif-section-title {
    font-size: 19px;
  }

  .notif-section-description {
    font-size: 12px;
  }

  .notif-pref-row {
    min-height: 54px;
    padding: 10px 12px;
  }

  .notif-pref-title {
    font-size: 14px;
  }

  .notif-settings-dialog {
    border-radius: 18px;
    padding: 18px 14px 14px;
  }

  .notif-settings-dialog-title {
    font-size: 18px;
  }

  .notif-settings-dialog-text {
    font-size: 12.5px;
  }

  .notif-settings-dialog-actions {
    flex-direction: column;
  }
}

/* ====================================================================
   MY QR PAGE
   ==================================================================== */
body.page-my-qr .page-content {
  background:
    radial-gradient(circle at 88% 6%, rgba(103, 58, 183, 0.12), transparent 24%),
    radial-gradient(circle at 10% 18%, rgba(76, 175, 80, 0.08), transparent 22%),
    var(--color-bg);
}

body.page-my-qr .my-qr-layout {
  max-width: var(--container-narrow);
}

body.page-my-qr .my-qr-layout,
body.page-my-qr .my-qr-layout *,
body.page-my-qr .my-qr-layout *::before,
body.page-my-qr .my-qr-layout *::after {
  box-sizing: border-box;
}

body.page-my-qr .my-qr-app {
  min-height: clamp(360px, 58vh, 620px);
}

body.page-my-qr .my-qr-loading {
  min-height: clamp(280px, 48vh, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-my-qr .my-qr-error-state {
  min-height: clamp(280px, 48vh, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 22px 18px;
}

body.page-my-qr .my-qr-error-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(103, 58, 183, 0.16);
  background: rgba(103, 58, 183, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-my-qr .my-qr-error-text {
  margin: 0;
  max-width: 360px;
  color: #5e577a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

body.page-my-qr .my-qr-retry-btn {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 800;
}

body.page-my-qr .my-qr-card {
  width: min(100%, 460px);
  margin-inline: auto;
  border-radius: 24px;
  border: 1px solid rgba(26, 26, 46, 0.1);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px rgba(22, 18, 41, 0.08);
  padding: 20px;
  text-align: center;
}

body.page-my-qr .my-qr-title {
  margin: 0;
  font-size: 20px;
  color: #2f2853;
  font-weight: 900;
  line-height: 1.3;
}

body.page-my-qr .my-qr-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6a6488;
  font-weight: 700;
  line-height: 1.7;
}

body.page-my-qr .my-qr-image-shell {
  width: 240px;
  height: 240px;
  margin: 16px auto 0;
  border-radius: 22px;
  border: 1px solid rgba(26, 26, 46, 0.09);
  background: #ffffff;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-my-qr .my-qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.page-my-qr .my-qr-fallback {
  color: #726a95;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

body.page-my-qr .my-qr-link {
  margin: 16px 0 0;
  color: #2f2853;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  word-break: break-all;
}

body.page-my-qr .my-qr-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

body.page-my-qr .my-qr-action-btn {
  min-height: 38px;
  border-radius: 12px;
  min-width: 46px;
  padding: 0 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body.page-my-qr .my-qr-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-my-qr .my-qr-action-icon svg {
  display: block;
}

body.page-my-qr .my-qr-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height, 68px) + env(safe-area-inset-bottom, 0px) + 16px);
  transform: translate(-50%, 16px);
  z-index: 1706;
  max-width: min(92vw, 360px);
  border-radius: 12px;
  background: #2e2650;
  color: #fff;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 14px 26px rgba(14, 18, 30, 0.25);
  opacity: 0;
  transition: transform 0.16s ease, opacity 0.16s ease;
  pointer-events: none;
}

body.page-my-qr .my-qr-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.page-my-qr .my-qr-toast.success {
  background: #1d6f42;
}

body.page-my-qr .my-qr-toast.error {
  background: #9f2a2a;
}

@media (max-width: 640px) {
  body.page-my-qr .my-qr-card {
    width: 100%;
    border-radius: 20px;
    padding: 16px 14px;
  }

  body.page-my-qr .my-qr-image-shell {
    width: min(74vw, 240px);
    height: min(74vw, 240px);
  }

  body.page-my-qr .my-qr-action-btn {
    width: 100%;
  }
}

/* ====================================================================
   THREADS LIST (Chats page)
   ==================================================================== */
.threads-list { display: flex; flex-direction: column; }

/* ====================================================================
   SEARCH PAGE v2 — Flutter-like compact layout
   ==================================================================== */
body.page-search #top-navbar { display: none; }
body.page-search #site-footer { display: none !important; }
body.page-search #bottom-nav { display: flex !important; }
body.page-search .page-content {
  padding-top: 0;
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
}

body.page-search .search-mobile-body {
  max-width: 640px;
  margin-inline: auto;
}

body.page-search #providers-list {
  width: 100%;
}

.search-mobile-header {
  background: var(--color-surface);
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.search-mobile-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.search-back-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-primary-light);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.search-back-btn svg {
  width: 17px;
  height: 17px;
}
.search-mobile-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text);
}
.search-mobile-input-wrap {
  position: relative;
}
.search-mobile-input-wrap .search-input {
  height: 38px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  background: var(--color-bg);
}
[dir="rtl"] .search-mobile-input-wrap .search-input {
  padding: 0 44px 0 14px;
}
.search-mobile-input-wrap .search-input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}
[dir="rtl"] .search-mobile-input-wrap .search-input-icon {
  left: auto;
  right: 14px;
}
.search-mobile-input-wrap .search-clear {
  left: 12px;
  right: auto;
  z-index: 1;
}
[dir="rtl"] .search-mobile-input-wrap .search-clear {
  left: auto;
  right: 12px;
}

body.page-search .filter-row {
  margin-bottom: 8px;
}
body.page-search .filter-chip {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
}

.search-mobile-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.search-mobile-sort-btn {
  border: 0;
  background: none;
  color: var(--color-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body.page-search .results-count {
  margin: 0;
  font-size: 10px;
  font-family: 'Cairo', sans-serif;
  color: var(--color-text-tertiary);
}

.providers-list-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.provider-list-card {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-surface);
}
.provider-list-media {
  position: relative;
  width: 64px;
  min-width: 64px;
  height: 74px;
  overflow: hidden;
}
.provider-list-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.provider-list-media-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #b39ddb, #d1c4e9);
}
.provider-list-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 60%);
}
.provider-list-avatar-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.provider-list-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary);
}
.provider-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.provider-list-verified {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
}
[dir="rtl"] .provider-list-verified {
  left: auto;
  right: 6px;
}

.provider-list-excellence-top {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[dir="rtl"] .provider-list-excellence-top {
  right: auto;
  left: 6px;
}

.provider-list-body {
  flex: 1;
  padding: 8px 10px;
  min-width: 0;
}
.provider-list-name-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.provider-list-name-line {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}
.provider-list-name {
  font-family: 'Cairo', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-text);
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
}
.provider-list-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.provider-list-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-family: 'Cairo', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}
.provider-list-badge.is-verified {
  color: #1754b3;
  background: rgba(33, 150, 243, 0.10);
  border-color: rgba(33, 150, 243, 0.18);
}
.provider-list-badge.is-featured {
  color: #7a4107;
  background: rgba(241, 165, 89, 0.18);
  border-color: rgba(241, 165, 89, 0.26);
}
.provider-list-badge.is-excellence {
  color: #5b36ab;
  background: rgba(103, 58, 183, 0.09);
  border-color: rgba(103, 58, 183, 0.14);
}
.provider-list-meta,
.provider-list-distance {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-family: 'Cairo', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--color-text-tertiary);
}
.provider-list-distance {
  color: #3f51b5;
}
.provider-list-distance-label {
  color: var(--color-text-secondary);
  font-weight: 700;
}
.provider-list-distance-value {
  color: #2437a8;
  font-weight: 900;
}
.provider-list-stats {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.provider-list-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(248, 248, 252, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-family: 'Cairo', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
}
.provider-list-stat-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.provider-list-stat-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.provider-list-stat-value {
  color: var(--color-text);
  font-size: 10px;
  font-weight: 900;
}
.provider-list-stat-label {
  color: var(--color-text-secondary);
  font-size: 9px;
  font-weight: 700;
}
.provider-list-arrow {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  margin-right: 4px;
}

/* Fallback compact style (if legacy provider-card markup is rendered) */
body.page-search #providers-list .provider-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: stretch;
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  min-height: 78px;
  border-radius: 12px;
  overflow: hidden;
}
body.page-search #providers-list .provider-cover {
  height: 100% !important;
  min-height: 78px;
}
body.page-search #providers-list .provider-info {
  margin-top: 0;
  padding: 8px 10px;
  gap: 5px;
  justify-content: center;
}
body.page-search #providers-list .provider-avatar {
  width: 28px;
  height: 28px;
  border-width: 2px;
}
body.page-search #providers-list .provider-name {
  font-size: 11.5px;
}
body.page-search #providers-list .provider-city {
  font-size: 9.5px;
}

.sort-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 420;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.sort-sheet-backdrop.active {
  opacity: 1;
}
.sort-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 430;
  background: var(--color-surface);
  border-radius: 16px 16px 0 0;
  padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
  transform: translateY(105%);
  transition: transform 0.2s ease;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.22);
}
.sort-sheet.open {
  transform: translateY(0);
}
.sort-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #d9d9df;
  margin: 0 auto 10px;
}
.sort-sheet-title {
  margin: 0 0 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
}
.sort-sheet-option {
  width: 100%;
  border: 0;
  background: none;
  text-align: right;
  padding: 9px 0;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sort-sheet-option::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1.5px solid #c9c9cf;
}
.sort-sheet-option.active {
  color: var(--color-primary);
  font-weight: 800;
}
.sort-sheet-option.active::after {
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 4px var(--color-primary);
}

.search-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height) + 18px);
  transform: translate(-50%, 8px);
  background: #2f2f35;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: all 0.18s ease;
  z-index: 440;
}
.search-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ====================================================================
   PROVIDER DETAIL v2 — compact tabs/services/follow lists
   ==================================================================== */
body.page-provider-detail #top-navbar { display: none; }
body.page-provider-detail #site-footer { display: none !important; }
body.page-provider-detail #bottom-nav { display: flex !important; }
body.page-provider-detail .page-content {
  padding-top: 0;
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
}

@media (min-width: 769px) {
  body.page-provider-detail .pd-cover {
    height: clamp(250px, 30vw, 360px);
  }
  body.page-provider-detail .pd-identity {
    padding-top: 16px;
  }
}

.pd-connections-row {
  margin: 10px 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  padding: 6px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #faf8ff 100%);
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: 0 12px 26px rgba(76, 29, 149, 0.07);
  width: 100%;
}
.pd-connections-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: start;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  min-width: 0;
}
.pd-connections-btn:hover,
.pd-connections-btn:focus-visible {
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
  outline: none;
  transform: translateY(-1px);
}
.pd-connections-btn .pd-connections-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
}
.pd-connections-btn.muted .pd-connections-icon {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.28);
}
.pd-connections-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}
.pd-connections-label {
  font-size: 13px;
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.pd-connections-hint {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-text-tertiary);
}
.pd-connections-divider {
  width: 1px;
  align-self: center;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.25), transparent);
}
@media (max-width: 380px) {
  .pd-connections-btn { padding: 10px 8px; gap: 8px; }
  .pd-connections-label { font-size: 12px; }
  .pd-connections-hint  { font-size: 9.5px; }
  .pd-connections-btn .pd-connections-icon { width: 30px; height: 30px; border-radius: 10px; }
}

.pd-services-helper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid rgba(103, 58, 183, 0.22);
  background: rgba(103, 58, 183, 0.06);
  color: var(--color-text-secondary);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.pd-services-helper svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

body.page-provider-detail .pd-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) {
  body.page-provider-detail .pd-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1180px) {
  body.page-provider-detail .pd-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}
.pd-services-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  background:
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.16), transparent 40%),
    radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.18), transparent 45%),
    linear-gradient(135deg, #ffffff, #f6f1ff);
  box-shadow: 0 18px 36px rgba(76, 29, 149, 0.08);
}
@media (min-width: 720px) {
  .pd-services-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "badge count"
      "copy  count";
    align-items: center;
    padding: 22px 24px;
  }
  .pd-services-hero-badge { grid-area: badge; }
  .pd-services-hero-copy  { grid-area: copy; }
  .pd-services-hero-count { grid-area: count; justify-self: end; align-self: center; }
}
.pd-services-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(103, 58, 183, 0.1);
  color: var(--color-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 800;
}
.pd-services-hero-copy h3 {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--color-text);
}
.pd-services-hero-copy p {
  margin: 6px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}
.pd-services-hero-count {
  justify-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(103, 58, 183, 0.12);
  color: var(--color-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(103, 58, 183, 0.08);
}
.pd-service-list-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.12), transparent 34%),
    linear-gradient(165deg, #ffffff 0%, #f8fcff 52%, #fcfbff 100%);
  border: 1px solid rgba(103, 58, 183, 0.10);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 38px rgba(20, 20, 38, 0.08);
  transition:
    transform 0.28s cubic-bezier(.2,.7,.3,1),
    box-shadow 0.28s ease,
    border-color 0.2s ease;
  isolation: isolate;
  height: 100%;
}
.pd-service-list-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #c084fc 60%, #f472b6);
  opacity: 0.85;
  z-index: 1;
}
.pd-service-list-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.34);
  box-shadow: 0 26px 46px rgba(76, 29, 149, 0.16);
}
.pd-service-list-glow {
  position: absolute;
  inset-inline-end: -28px;
  top: -28px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 72%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.pd-service-list-card:hover .pd-service-list-glow {
  transform: scale(1.15);
  opacity: 0.9;
}
.pd-service-list-card > * {
  position: relative;
  z-index: 1;
}
.pd-service-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pd-service-list-head-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.pd-service-index {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.32);
}
.pd-service-list-title-wrap {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.pd-service-list-kicker {
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--color-text-tertiary);
}
.pd-service-list-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.pd-service-request-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #0ea5a3);
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.26);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  text-decoration: none;
}
.pd-service-request-btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.pd-service-request-btn-icon svg {
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.08));
}
.pd-service-request-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 28px rgba(15, 118, 110, 0.32);
}
.pd-service-meta-stack {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.pd-service-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(203, 213, 225, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}
.pd-service-meta-label {
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-text-tertiary);
}
.pd-service-meta-value {
  font-family: 'Cairo', sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--color-text);
  text-align: left;
}
.pd-service-scope-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15,118,110,0.14), rgba(14,165,163,0.08));
  border: 1px solid rgba(15,118,110,0.2);
  color: #0b6059;
  font-family: 'Cairo', sans-serif;
  font-size: 11.5px;
  font-weight: 900;
}
.pd-service-list-desc {
  margin: 12px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pd-service-list-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-service-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.pd-service-chip.primary {
  color: var(--color-primary);
  background: rgba(103, 58, 183, 0.1);
  border-color: rgba(103, 58, 183, 0.25);
}
.pd-service-list-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(15, 118, 110, 0.18);
}
.pd-service-footnote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cairo', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.pd-field-with-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.pd-field-main {
  min-width: 0;
  flex: 1;
}
.pd-field-open-link {
  border: 0;
  background: none;
  color: var(--color-primary);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pd-field-open-link.disabled,
.pd-social-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.pd-map-wrap {
  margin-top: 12px;
}
.pd-map-title {
  margin: 0 0 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-text-secondary);
}
.pd-map-empty {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(103, 58, 183, 0.28);
  background: rgba(103, 58, 183, 0.06);
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-text-secondary);
  text-align: center;
}
.pd-map-wrap .leaflet-container {
  font-family: 'Cairo', sans-serif;
}

.pd-social-list.fixed {
  gap: 10px;
}
.pd-social-row.fixed {
  align-items: flex-start;
  padding: 2px 0;
}

.pd-quick-btn-full {
  width: 100%;
  margin-top: 10px;
}

.pd-portfolio-section {
  margin-bottom: 14px;
}
.pd-portfolio-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pd-portfolio-section-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
}
.pd-portfolio-section-count {
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(103, 58, 183, 0.12);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
}
.pd-portfolio-section-desc {
  margin: 0 0 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  color: var(--color-text-secondary);
  line-height: 1.45;
}
.pd-empty-section-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px;
  background: var(--color-surface);
}
.pd-empty-section-card .pd-empty-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-text);
}
.pd-empty-section-card .pd-empty-subtitle {
  margin: 6px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.pd-overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 14px;
}
.pd-loading-shell {
  display: grid;
  gap: 18px;
  padding-bottom: 18px;
}
.pd-loading-hero {
  position: relative;
  min-height: 290px;
  border-radius: 0 0 28px 28px;
}
.pd-loading-cover {
  width: 100%;
  height: 210px;
  border-radius: 0 0 24px 24px;
}
.pd-loading-avatar {
  position: absolute;
  left: 50%;
  bottom: 82px;
  transform: translateX(-50%);
  width: 108px;
  height: 108px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,0.94);
}
.pd-loading-identity {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100% - 32px, 360px);
}
.pd-loading-line {
  height: 12px;
}
.pd-loading-line.lg {
  width: 68%;
  height: 20px;
}
.pd-loading-line.md {
  width: 48%;
}
.pd-loading-line.sm,
.pd-loading-line.short {
  width: 36%;
}
.pd-loading-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pd-loading-overview-card,
.pd-loading-card,
.pd-list-skeleton-card,
.pd-review-skeleton-summary,
.pd-review-skeleton-row {
  border-radius: 20px;
}
.pd-loading-overview-card {
  display: grid;
  gap: 10px;
  min-height: 90px;
  padding: 14px;
}
.pd-loading-overview-card .nw-skeleton-block:first-child {
  width: 54%;
  height: 10px;
}
.pd-loading-overview-card .nw-skeleton-block.short {
  width: 72%;
  height: 16px;
}
.pd-loading-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
}
.pd-loading-stats .nw-skeleton-block.tall {
  height: 52px;
  border-radius: 16px;
}
.pd-loading-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 48px);
  gap: 10px;
}
.pd-loading-actions .nw-skeleton-block.action {
  height: 48px;
  border-radius: 16px;
}
.pd-loading-actions .nw-skeleton-block.action.wide {
  width: 100%;
}
.pd-loading-tabs {
  display: flex;
  gap: 10px;
  overflow: hidden;
}
.pd-loading-tabs .nw-skeleton-block.tab {
  width: 112px;
  height: 42px;
  border-radius: 14px;
  flex-shrink: 0;
}
.pd-loading-cards {
  display: grid;
  gap: 14px;
}
.pd-loading-card {
  display: grid;
  gap: 12px;
  min-height: 154px;
  padding: 16px;
}
.pd-loading-card .nw-skeleton-block.title,
.pd-list-skeleton-card .nw-skeleton-block.title {
  width: 42%;
  height: 14px;
}
.pd-loading-card .nw-skeleton-block,
.pd-list-skeleton-card .nw-skeleton-block {
  width: 100%;
  height: 12px;
}
.pd-loading-card .nw-skeleton-block.short,
.pd-list-skeleton-card .nw-skeleton-block.short {
  width: 62%;
}
.pd-tab-loading-shell {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.pd-list-skeleton-card {
  display: grid;
  gap: 12px;
  min-height: 142px;
  padding: 16px;
}
.pd-reel-loading-shell {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 72vw);
  overflow: hidden;
}
.pd-reel-skeleton-card {
  min-height: 320px;
  border-radius: 22px;
}
.pd-review-skeleton-summary {
  display: grid;
  gap: 10px;
  padding: 18px;
}
.pd-review-skeleton-summary .nw-skeleton-block.rating {
  width: 78px;
  height: 28px;
  justify-self: center;
}
.pd-review-skeleton-summary .nw-skeleton-block.short {
  width: 110px;
  height: 12px;
  justify-self: center;
}
.pd-review-skeleton-row {
  min-height: 88px;
}
.pd-overview-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(103, 58, 183, 0.1);
  background:
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,245,255,0.94));
  box-shadow: 0 12px 24px rgba(20, 20, 38, 0.05);
}
.pd-overview-card::after {
  content: '';
  position: absolute;
  inset-inline-start: 14px;
  bottom: 12px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(103, 58, 183, 0.22);
}
.pd-overview-label {
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--color-text-tertiary);
}
.pd-overview-value {
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--color-text);
}

.pd-portfolio-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(103, 58, 183, 0.12);
  background:
    radial-gradient(circle at top left, rgba(103, 58, 183, 0.14), transparent 30%),
    linear-gradient(135deg, #fdfcff, #f4f0ff 58%, #f7f4ff);
  box-shadow: 0 14px 30px rgba(20, 20, 38, 0.06);
}
.pd-portfolio-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(103, 58, 183, 0.1);
  color: var(--color-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 800;
}
.pd-portfolio-hero-copy h3 {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--color-text);
}
.pd-portfolio-hero-copy p {
  margin: 6px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}
.pd-portfolio-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-portfolio-hero-metric {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(103, 58, 183, 0.12);
  color: var(--color-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.pd-portfolio-section {
  margin-bottom: 18px;
}
.pd-portfolio-section-head {
  align-items: flex-start;
  gap: 10px;
}
.pd-portfolio-section-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.pd-portfolio-section-hint {
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-tertiary);
}

.pd-portfolio-grid.pd-portfolio-reel-rail {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: minmax(220px, 72vw);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.pd-portfolio-grid.pd-portfolio-reel-rail::-webkit-scrollbar {
  display: none;
}
.pd-portfolio-reel-card {
  aspect-ratio: 9 / 16;
  min-width: 0;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1d1a2c;
  box-shadow: 0 18px 34px rgba(19, 17, 29, 0.18);
  scroll-snap-align: start;
}
.pd-portfolio-reel-card::after {
  display: none;
}
.pd-portfolio-reel-card:hover {
  transform: translateY(-3px);
}
.pd-portfolio-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, #28233b 0%, #161322 100%);
}
.pd-portfolio-reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-portfolio-preview-video,
.pd-portfolio-preview-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #120f1f;
}
.pd-portfolio-document-card .pd-portfolio-frame {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(145deg, #f8fbff 0%, #eef2f8 52%, #e5e1f5 100%);
}
.pd-portfolio-document-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px 18px;
  color: #221a3a;
  text-align: center;
  font-family: 'Cairo', sans-serif;
}
.pd-portfolio-document-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #673AB7;
  background: #ffffff;
  border: 1px solid rgba(103, 58, 183, 0.16);
  box-shadow: 0 16px 34px rgba(46, 35, 91, 0.18);
}
.pd-portfolio-document-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(103, 58, 183, 0.12);
  color: #4a2a8a;
  font-size: 11px;
  font-weight: 900;
}
.pd-portfolio-document-label {
  width: 100%;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #1d1730;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.55;
}
.pd-portfolio-document-meta {
  color: #5d6577;
  font-size: 11px;
  font-weight: 800;
}
.pd-portfolio-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 20, 0.08) 0%, rgba(12, 10, 20, 0.02) 20%, rgba(12, 10, 20, 0.54) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.06), transparent 28%);
  pointer-events: none;
}
.pd-portfolio-topline {
  position: absolute;
  inset-inline-start: 12px;
  inset-inline-end: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}
.pd-portfolio-top-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
}
.pd-portfolio-top-chip.muted {
  background: rgba(14, 12, 26, 0.48);
}
.pd-portfolio-reel-card .pd-portfolio-video-badge {
  top: 52px;
  left: auto;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(12, 10, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}
[dir="rtl"] .pd-portfolio-reel-card .pd-portfolio-video-badge {
  left: 12px;
  right: auto;
}
.pd-portfolio-reel-card .pd-portfolio-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 8px;
  padding: 16px 14px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 5, 11, 0.2) 20%, rgba(6, 5, 11, 0.78) 100%);
  color: #fff;
  z-index: 2;
  white-space: normal;
}
.pd-portfolio-overlay-kicker {
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.78);
}
.pd-portfolio-overlay-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
  color: #fff;
}
.pd-portfolio-open-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
}
.pd-portfolio-reel-card .pd-portfolio-item-stats {
  top: 50%;
  left: auto;
  right: 12px;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}
[dir="rtl"] .pd-portfolio-reel-card .pd-portfolio-item-stats {
  left: 12px;
  right: auto;
}
.pd-portfolio-reel-card .pd-portfolio-item-stat {
  min-width: 44px;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 16px;
  background: rgba(12, 10, 20, 0.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10px;
}
.pd-portfolio-reel-card .pd-portfolio-item-action:hover {
  transform: translateY(-2px);
}
.pd-portfolio-reel-card .pd-portfolio-item-stat svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 640px) {
  .pd-loading-hero {
    min-height: 258px;
  }

  .pd-loading-cover {
    height: 184px;
  }

  .pd-loading-avatar {
    width: 92px;
    height: 92px;
    bottom: 74px;
  }

  .pd-overview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .pd-loading-overview {
    gap: 8px;
  }

  .pd-loading-overview-card {
    min-height: 78px;
    padding: 12px 10px;
  }

  .pd-loading-stats {
    padding: 12px;
    gap: 8px;
  }

  .pd-loading-actions {
    grid-template-columns: minmax(0, 1fr) repeat(3, 42px);
  }

  .pd-reel-loading-shell {
    grid-auto-columns: minmax(168px, 72vw);
  }

  .pd-overview-card {
    min-height: 72px;
    padding: 12px 10px;
    border-radius: 16px;
  }

  .pd-overview-value {
    font-size: 11.5px;
  }

  .pd-portfolio-grid.pd-portfolio-reel-rail {
    grid-auto-columns: minmax(196px, 74vw);
  }
}

@media (min-width: 1024px) {
  .pd-overview-strip {
    gap: 12px;
    margin-bottom: 18px;
  }

  .pd-portfolio-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 20px 22px;
  }

  .pd-portfolio-hero-badge,
  .pd-portfolio-hero-copy {
    grid-column: 1;
  }

  .pd-portfolio-hero-metrics {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-content: flex-end;
  }

  .pd-portfolio-grid.pd-portfolio-reel-rail {
    grid-auto-columns: minmax(240px, 280px);
  }
}

.pd-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 470;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.pd-sheet-backdrop.open {
  opacity: 1;
}
.pd-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  border-radius: 18px 18px 0 0;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  transform: translateY(102%);
  transition: transform 0.2s ease;
}
.pd-sheet-backdrop.open .pd-sheet {
  transform: translateY(0);
}
.pd-sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #d9d9df;
  margin: 10px auto 6px;
}
.pd-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--color-border);
}
.pd-sheet-title {
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
}
.pd-sheet-close {
  border: 0;
  background: none;
  color: var(--color-text-tertiary);
  font-size: 24px;
  line-height: 1;
}
.pd-sheet-body {
  overflow-y: auto;
  padding: 10px 14px 16px;
}
.pd-sheet-empty {
  text-align: center;
  color: var(--color-text-tertiary);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 22px 8px;
}
.pd-sheet-list {
  display: flex;
  flex-direction: column;
}
.pd-sheet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.pd-sheet-item:last-child {
  border-bottom: 0;
}
.pd-sheet-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(103, 58, 183, 0.12);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.pd-sheet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-sheet-meta {
  min-width: 0;
}
.pd-sheet-name {
  font-family: 'Cairo', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-text);
}
.pd-sheet-handle-text {
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  color: var(--color-text-tertiary);
}
.pd-connections-sheet-backdrop {
  background: rgba(8, 12, 24, 0.48);
  backdrop-filter: blur(4px);
}
.pd-connections-sheet {
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 58, 183, 0.12), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(27, 179, 163, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
  border: 1px solid rgba(103, 58, 183, 0.2);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 36px rgba(21, 18, 40, 0.22);
}
.pd-connections-sheet .pd-sheet-handle {
  width: 54px;
  height: 5px;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(103,58,183,.24), rgba(103,58,183,.52), rgba(103,58,183,.24));
}
.pd-connections-sheet-header {
  border-bottom: 0;
  padding: 4px 16px 8px;
}
.pd-connections-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-connections-heading-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #5e35b1 0%, #7e57c2 100%);
  box-shadow: 0 10px 20px rgba(94, 53, 177, 0.28);
}
.pd-connections-heading-meta {
  min-width: 0;
}
.pd-connections-subtitle {
  margin-top: 2px;
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-text-tertiary);
}
.pd-connections-list {
  display: grid;
  gap: 8px;
}
.pd-connections-item {
  border: 1px solid rgba(103, 58, 183, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 20px rgba(20, 18, 34, 0.05);
  padding: 10px;
}
.pd-connections-item .pd-sheet-avatar {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(103, 58, 183, 0.22);
}
.pd-connections-item .pd-sheet-name {
  font-size: 12px;
  font-weight: 800;
}
.pd-connections-item .pd-sheet-handle-text {
  font-size: 10.5px;
  font-weight: 700;
}
.pd-connections-handle-btn {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.pd-connections-handle-btn:focus-visible {
  outline: 2px solid rgba(103, 58, 183, 0.35);
  outline-offset: 2px;
  border-radius: 6px;
}
.pd-connections-badge {
  margin-inline-start: auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(103, 58, 183, 0.11);
  color: #5e35b1;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.pd-connections-notice {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  transform: translate(-50%, 20px);
  min-width: 240px;
  max-width: min(92vw, 360px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #5e35b1 0%, #7c4dff 100%);
  box-shadow: 0 16px 30px rgba(32, 18, 67, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 520;
}
.pd-connections-notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.pd-connections-notice-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  flex-shrink: 0;
}
.pd-connections-notice-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.pd-connections-notice-text strong,
.pd-connections-notice-text span {
  color: #fff;
  font-family: 'Cairo', sans-serif;
}
.pd-connections-notice-text strong {
  font-size: 11px;
  font-weight: 900;
}
.pd-connections-notice-text span {
  font-size: 10px;
  font-weight: 700;
  opacity: .95;
  line-height: 1.45;
}

/* ───────── Connections sheet — premium upgrades ───────── */
button.pd-connections-item {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(103, 58, 183, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(20, 18, 34, 0.05);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
button.pd-connections-item:hover,
button.pd-connections-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(103, 58, 183, 0.34);
  box-shadow: 0 14px 30px rgba(94, 53, 177, 0.16);
  background: #fff;
  outline: none;
}
button.pd-connections-item:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(20, 18, 34, 0.08);
}
button.pd-connections-item.is-client {
  background: linear-gradient(180deg, #fff 0%, #fbf7ff 100%);
}
button.pd-connections-item.is-client:hover {
  border-color: rgba(124, 77, 255, 0.32);
}
button.pd-connections-item.is-provider {
  background:
    radial-gradient(circle at 100% 0%, rgba(94, 53, 177, 0.08), transparent 38%),
    linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
  border-color: rgba(94, 53, 177, 0.18);
}
button.pd-connections-item.is-provider:hover {
  border-color: rgba(94, 53, 177, 0.38);
}

.pd-connections-status-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(120, 120, 130, 0.72);
  order: -1;
}
.pd-connections-status-icon.is-client-warning {
  color: rgba(120, 120, 130, 0.72);
}

.pd-connections-name-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.pd-connections-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1da1f2;
  flex-shrink: 0;
}
.pd-connections-verified.is-blue {
  color: #1da1f2;
}
.pd-connections-verified.is-green {
  color: #16a34a;
}
.pd-connections-handle-text {
  display: block;
  margin-top: 1px;
  color: var(--color-text-tertiary);
}
.pd-connections-badge.is-provider {
  background: linear-gradient(135deg, rgba(94, 53, 177, 0.14), rgba(124, 77, 255, 0.18));
  color: #5e35b1;
}
.pd-connections-badge.is-client {
  background: rgba(120, 120, 130, 0.12);
  color: #6b6b78;
}
.pd-connections-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(103, 58, 183, 0.55);
  flex-shrink: 0;
  margin-inline-start: 2px;
}
button.pd-connections-item.is-client .pd-connections-chevron {
  color: rgba(120, 120, 130, 0.6);
}
button.pd-connections-item:hover .pd-connections-chevron {
  color: #5e35b1;
  transform: translateX(-2px);
}

.pd-connections-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(103, 58, 183, 0.18);
  background: #fff;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(20, 18, 34, 0.04);
}
.pd-connections-search:focus-within {
  border-color: rgba(103, 58, 183, 0.5);
  box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.12);
}
.pd-connections-search-icon {
  display: inline-flex;
  color: #5e35b1;
  flex-shrink: 0;
}
.pd-connections-search-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
}
.pd-connections-search-input::placeholder {
  color: var(--color-text-tertiary);
  font-weight: 600;
}

/* Desktop: present connections sheet as a centered, world-class modal */
@media (min-width: 1024px) {
  .pd-connections-sheet-backdrop {
    background: rgba(8, 12, 24, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .pd-connections-sheet-backdrop .pd-connections-sheet {
    position: relative;
    inset: auto;
    width: min(560px, 100%);
    max-height: min(82vh, 760px);
    border-radius: 22px;
    border: 1px solid rgba(103, 58, 183, 0.22);
    box-shadow: 0 30px 60px rgba(15, 12, 38, 0.36);
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
  }
  .pd-connections-sheet-backdrop.open .pd-connections-sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  .pd-connections-sheet .pd-sheet-handle { display: none; }
  .pd-connections-sheet-header {
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(103, 58, 183, 0.12) !important;
  }
  .pd-connections-sheet .pd-sheet-title { font-size: 15px; }
  .pd-connections-subtitle { font-size: 12px; }
  .pd-connections-heading-icon { width: 44px; height: 44px; border-radius: 14px; }
  .pd-connections-sheet .pd-sheet-body { padding: 14px 18px 18px; }
  .pd-connections-sheet .pd-sheet-close {
    font-size: 26px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease;
  }
  .pd-connections-sheet .pd-sheet-close:hover {
    background: rgba(103, 58, 183, 0.1);
    color: #5e35b1;
  }
  button.pd-connections-item { padding: 12px 14px; gap: 14px; }
  .pd-connections-item .pd-sheet-avatar { width: 46px; height: 46px; }
  .pd-connections-item .pd-sheet-name { font-size: 13.5px; }
  .pd-connections-item .pd-sheet-handle-text { font-size: 11.5px; }
  .pd-connections-badge { font-size: 11px; padding: 6px 10px; }
  .pd-connections-search-input { font-size: 13px; }
}

/* ───────── "Not a provider" elegant modal ───────── */
.pd-not-provider-modal {
  position: fixed;
  inset: 0;
  z-index: 540;
  background: rgba(10, 8, 24, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .2s ease;
}
.pd-not-provider-modal.open {
  opacity: 1;
}
.pd-not-provider-card {
  position: relative;
  width: min(420px, 100%);
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 77, 255, 0.18), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(94, 53, 177, 0.12), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #faf6ff 100%);
  border: 1px solid rgba(103, 58, 183, 0.22);
  border-radius: 22px;
  padding: 22px 22px 18px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(15, 12, 38, 0.34);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform .25s cubic-bezier(.2,.7,.2,1.2), opacity .25s ease;
  font-family: 'Cairo', sans-serif;
}
.pd-not-provider-modal.open .pd-not-provider-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.pd-not-provider-avatar {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(94, 53, 177, 0.18), rgba(124, 77, 255, 0.22));
  color: #5e35b1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  border: 3px solid #fff;
  box-shadow: 0 16px 30px rgba(94, 53, 177, 0.22);
}
.pd-not-provider-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}
.pd-not-provider-lock {
  position: absolute;
  bottom: -4px;
  inset-inline-end: -4px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5e35b1, #7c4dff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 8px 16px rgba(94, 53, 177, 0.34);
}
.pd-not-provider-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 4px;
}
.pd-not-provider-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #5e35b1;
  margin-bottom: 10px;
  word-break: break-word;
}
.pd-not-provider-message {
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--color-text-secondary, #555);
}
.pd-not-provider-ok {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #5e35b1 0%, #7c4dff 100%);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(94, 53, 177, 0.32);
  transition: transform .15s ease, box-shadow .18s ease, filter .18s ease;
}
.pd-not-provider-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(94, 53, 177, 0.4);
  filter: brightness(1.04);
}
.pd-not-provider-ok:active {
  transform: translateY(0);
}
.pd-not-provider-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(103, 58, 183, 0.08);
  color: #5e35b1;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.pd-not-provider-close:hover {
  background: rgba(103, 58, 183, 0.18);
}
@media (max-width: 480px) {
  .pd-not-provider-card { padding: 20px 18px 16px; }
  .pd-not-provider-avatar { width: 72px; height: 72px; font-size: 26px; }
  .pd-not-provider-title { font-size: 15px; }
}

.pd-share-sheet {
  max-height: 82vh;
}
.pd-share-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pd-share-card {
  border: 1px solid rgba(103, 58, 183, 0.24);
  border-radius: 14px;
  background: rgba(103, 58, 183, 0.04);
  padding: 14px;
}
.pd-share-qr-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-share-qr {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-share-qr-fallback {
  font-family: 'Cairo', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-tertiary);
}
.pd-share-link {
  margin: 10px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  line-height: 1.45;
  word-break: break-all;
  direction: ltr;
}
.pd-share-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.pd-share-btn {
  flex: 1;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 10px;
  padding: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.pd-share-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.pd-share-report-btn {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: #B71C1C;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.pd-share-report-icon {
  display: inline-flex;
  color: #C62828;
}

.pd-report-backdrop {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: rgba(0, 0, 0, 0.44);
  opacity: 0;
  transition: opacity 0.18s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.pd-report-backdrop.open {
  opacity: 1;
}
.pd-report-dialog {
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 14px;
  transform: translateY(14px);
  transition: transform 0.18s ease;
}
.pd-report-backdrop.open .pd-report-dialog {
  transform: translateY(0);
}
.pd-report-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pd-report-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 152, 0, 0.14);
  color: #F57C00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pd-report-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text);
}
.pd-report-info {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface-alt);
  padding: 10px;
  margin-bottom: 12px;
}
.pd-report-info-label {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
}
.pd-report-info-value {
  margin: 6px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
}
.pd-report-context {
  margin: 6px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-tertiary);
}
.pd-report-label {
  display: block;
  margin: 10px 0 6px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
}
.pd-report-select,
.pd-report-textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  color: var(--color-text);
  padding: 10px;
}
.pd-report-textarea {
  resize: vertical;
  min-height: 96px;
}
.pd-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.pd-report-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pd-report-btn-cancel {
  background: transparent;
  color: var(--color-text-tertiary);
}
.pd-report-btn-submit {
  background: #F57C00;
  color: #fff;
}

@media (min-width: 769px) {
  body.page-search .container {
    max-width: 980px;
    margin-inline: auto;
  }
  body.page-provider-detail .container {
    max-width: 1120px;
    margin-inline: auto;
  }

  body.page-provider-detail .pd-actions {
    position: sticky;
    top: calc(var(--navbar-height) + 16px);
    z-index: 8;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(103, 58, 183, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 34px rgba(20, 20, 38, 0.08);
  }

  body.page-provider-detail .pd-tabs {
    position: sticky;
    top: calc(var(--navbar-height) + 108px);
    z-index: 7;
    padding: 10px 0 12px;
    background: linear-gradient(180deg, rgba(245, 245, 250, 0.96), rgba(245, 245, 250, 0.82));
    backdrop-filter: blur(8px);
  }

  body.page-provider-detail .pd-tab {
    font-size: 13px;
    padding: 11px 16px;
    border-radius: 16px;
  }

  body.page-provider-detail .pd-card {
    padding: 16px 18px;
    border-radius: 18px;
  }

  body.page-provider-detail .pd-card-title {
    font-size: 14px;
    margin-bottom: 14px;
  }

  body.page-provider-detail .pd-bio-text,
  body.page-provider-detail .pd-field-value {
    font-size: 13px;
    line-height: 1.9;
  }

  body.page-provider-detail .pd-field-label {
    font-size: 11.5px;
  }

  body.page-provider-detail .pd-social-row.fixed {
    padding: 10px 12px;
    border: 1px solid rgba(103, 58, 183, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
  }

  body.page-provider-detail .pd-map-container {
    height: 300px;
    border-radius: 18px;
  }

  body.page-provider-detail .pd-services-grid {
    gap: 14px;
  }

  body.page-provider-detail .pd-services-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 20px 22px;
  }

  body.page-provider-detail .pd-services-hero-badge,
  body.page-provider-detail .pd-services-hero-copy {
    grid-column: 1;
  }

  body.page-provider-detail .pd-services-hero-count {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  body.page-provider-detail .pd-service-list-card {
    border-radius: 16px;
    border-color: rgba(103, 58, 183, 0.1);
    box-shadow: 0 12px 24px rgba(20, 20, 38, 0.05);
  }
}

@media (max-width: 640px) {
  .pd-service-list-head {
    flex-direction: column;
  }

  .pd-service-price-badge {
    min-width: 0;
    width: 100%;
  }
}

@media (min-width: 1180px) {
  body.page-provider-detail .container {
    max-width: 1260px;
  }

  body.page-provider-detail .pd-identity {
    padding-top: 84px;
  }

  body.page-provider-detail .pd-name {
    font-size: 34px;
  }

  body.page-provider-detail .pd-handle {
    font-size: 15px;
  }

  body.page-provider-detail .pd-category-text {
    font-size: 15px;
  }

  body.page-provider-detail .pd-stats-card {
    padding: 16px 18px;
    border-radius: 24px;
  }

  body.page-provider-detail .pd-stat-value {
    font-size: 28px;
  }

  body.page-provider-detail .pd-stat-label {
    font-size: 13px;
  }
}

/* ====================================================================
  PROVIDER DETAIL PREMIUM THEME - immersive client-facing makeover
  ==================================================================== */
body.page-provider-detail.page-provider-detail-premium {
  --pd-premium-ink: #12263a;
  --pd-premium-muted: #607182;
  --pd-premium-main: #0f766e;
  --pd-premium-main-strong: #0a5a54;
  --pd-premium-main-soft: #d8f1eb;
  --pd-premium-line: rgba(15, 71, 116, 0.2);
  --pd-premium-glass: rgba(255, 255, 255, 0.84);
  --pd-premium-shadow: 0 22px 52px rgba(12, 34, 61, 0.14);
  background:
    radial-gradient(680px 360px at 90% -8%, rgba(14, 116, 144, 0.24), transparent 64%),
    radial-gradient(720px 320px at -12% 16%, rgba(15, 118, 110, 0.2), transparent 64%),
    linear-gradient(180deg, #edf6fb 0%, #f5f8fc 42%, #f7f8fb 100%);
  max-width: 100vw;
  overflow-x: hidden;
}

body.page-provider-detail.page-provider-detail-premium .pd-page-premium {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

body.page-provider-detail.page-provider-detail-premium .pd-page-premium::before,
body.page-provider-detail.page-provider-detail-premium .pd-page-premium::after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

body.page-provider-detail.page-provider-detail-premium .pd-page-premium::before {
  top: 120px;
  inset-inline-start: -170px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0));
}

body.page-provider-detail.page-provider-detail-premium .pd-page-premium::after {
  top: 420px;
  inset-inline-end: -170px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.16), rgba(29, 78, 216, 0));
}

body.page-provider-detail.page-provider-detail-premium .pd-content-shell {
  position: relative;
  z-index: 1;
}

body.page-provider-detail.page-provider-detail-premium .pd-hero {
  position: relative;
  z-index: 3;
}

body.page-provider-detail.page-provider-detail-premium .pd-avatar-wrap {
  /* pd-avatar-wrap is now position:relative — no absolute overrides needed */
  z-index: 2;
}

/* Twitter-style: remove the bottom fade gradient so the avatar visibly overlaps the cover */
body.page-provider-detail.page-provider-detail-premium .pd-hero::after {
  display: none;
}

body.page-provider-detail.page-provider-detail-premium .pd-identity {
  position: relative;
  z-index: 2;
}

body.page-provider-detail.page-provider-detail-premium .pd-cover {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: linear-gradient(128deg, #0f766e 0%, #0e7490 52%, #1d4ed8 100%);
  box-shadow: 0 24px 44px rgba(14, 58, 102, 0.32);
}

body.page-provider-detail.page-provider-detail-premium .pd-cover-gradient {
  background: linear-gradient(0deg, rgba(4, 17, 33, 0.64) 0%, rgba(4, 17, 33, 0.14) 56%, transparent 100%);
}

body.page-provider-detail.page-provider-detail-premium .pd-cover-btn {
  background: rgba(4, 20, 38, 0.48);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 8px 18px rgba(3, 15, 29, 0.22);
}

body.page-provider-detail.page-provider-detail-premium .pd-cover-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

body.page-provider-detail.page-provider-detail-premium .pd-avatar {
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(6, 32, 56, 0.28);
}

body.page-provider-detail.page-provider-detail-premium .pd-identity {
  width: min(760px, calc(100% - 24px));
  margin: 0 auto 12px;
  padding: 20px 18px 18px;
  border-radius: 24px;
  border: 1px solid rgba(14, 101, 112, 0.18);
  background: var(--pd-premium-glass);
  backdrop-filter: blur(16px);
  box-shadow: var(--pd-premium-shadow);
}

body.page-provider-detail.page-provider-detail-premium .pd-name {
  color: var(--pd-premium-ink);
  text-wrap: balance;
}

body.page-provider-detail.page-provider-detail-premium .pd-handle {
  color: #35607f;
}

body.page-provider-detail.page-provider-detail-premium .pd-category-text {
  color: #43627f;
}

body.page-provider-detail.page-provider-detail-premium .pd-return-map {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.1);
  color: var(--pd-premium-main-strong);
}

body.page-provider-detail.page-provider-detail-premium .pd-return-map:hover {
  background: var(--pd-premium-main-strong);
  color: #fff;
}

body.page-provider-detail.page-provider-detail-premium .pd-overview-strip {
  margin-bottom: 16px;
}

body.page-provider-detail.page-provider-detail-premium .pd-overview-card {
  border-color: var(--pd-premium-line);
  background:
    radial-gradient(circle at 92% 10%, rgba(15, 118, 110, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 255, 0.92));
  box-shadow: 0 14px 28px rgba(14, 45, 73, 0.08);
}

body.page-provider-detail.page-provider-detail-premium .pd-overview-card::after {
  background: rgba(14, 116, 144, 0.34);
}

body.page-provider-detail.page-provider-detail-premium .pd-overview-value {
  color: var(--pd-premium-ink);
}

body.page-provider-detail.page-provider-detail-premium .pd-stats-card {
  border-color: var(--pd-premium-line);
  background:
    radial-gradient(circle at 8% 88%, rgba(15, 118, 110, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.95));
  box-shadow: 0 20px 40px rgba(12, 34, 61, 0.12);
}

body.page-provider-detail.page-provider-detail-premium .pd-stat-value {
  color: var(--pd-premium-main-strong);
}

body.page-provider-detail.page-provider-detail-premium .pd-stat-divider {
  background: rgba(14, 94, 133, 0.2);
}

body.page-provider-detail.page-provider-detail-premium .pd-connections-btn {
  color: var(--pd-premium-main-strong);
}

body.page-provider-detail.page-provider-detail-premium .pd-connections-btn.muted {
  color: #5f7185;
}

body.page-provider-detail.page-provider-detail-premium .pd-actions {
  margin-bottom: 16px;
}

body.page-provider-detail.page-provider-detail-premium .pd-action-follow {
  border-color: rgba(10, 90, 84, 0.28);
  background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(10, 69, 89, 0.22);
}

body.page-provider-detail.page-provider-detail-premium .pd-action-follow:hover {
  background: linear-gradient(135deg, #0a5a54 0%, #0d6280 100%);
}

body.page-provider-detail.page-provider-detail-premium .pd-action-primary-icon {
  background: rgba(255, 255, 255, 0.18);
}

body.page-provider-detail.page-provider-detail-premium .pd-action-follow.following {
  background: rgba(15, 118, 110, 0.1);
  color: var(--pd-premium-main-strong);
}

body.page-provider-detail.page-provider-detail-premium .pd-actions-contact-card {
  border-color: rgba(14, 101, 112, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 250, 0.9)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 30px rgba(12, 34, 61, 0.10);
}

body.page-provider-detail.page-provider-detail-premium .pd-actions-contact-title {
  color: var(--pd-premium-main-strong);
}

body.page-provider-detail.page-provider-detail-premium .pd-action-icon {
  border-color: rgba(14, 101, 112, 0.2);
  color: #0d5e76;
  background: rgba(255, 255, 255, 0.92);
}

body.page-provider-detail.page-provider-detail-premium .pd-action-icon:hover {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(15, 118, 110, 0.08);
}

body.page-provider-detail.page-provider-detail-premium .pd-action-tile-icon {
  background: rgba(15, 118, 110, 0.08);
}

body.page-provider-detail.page-provider-detail-premium .pd-action-whatsapp .pd-action-tile-icon {
  background: rgba(37, 211, 102, 0.10);
}

body.page-provider-detail.page-provider-detail-premium .pd-tabs {
  border: 1px solid rgba(14, 94, 133, 0.2);
  border-radius: 18px;
  padding: 8px;
  margin-bottom: 16px;
  background:
    linear-gradient(180deg, rgba(237, 246, 251, 0.9), rgba(237, 246, 251, 0.72)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 30px rgba(12, 34, 61, 0.1);
  backdrop-filter: blur(8px);
}

body.page-provider-detail.page-provider-detail-premium .pd-tab {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.56);
  color: #4f667a;
}

body.page-provider-detail.page-provider-detail-premium .pd-tab > svg {
  padding: 5px;
  border-radius: 10px;
  background: rgba(14, 94, 133, 0.1);
  fill: #55728a;
}

body.page-provider-detail.page-provider-detail-premium .pd-tab:hover {
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #0c5a72;
}

body.page-provider-detail.page-provider-detail-premium .pd-tab.active {
  border-color: rgba(15, 118, 110, 0.38);
  background: #ffffff;
  color: #0a5a54;
  box-shadow: 0 10px 18px rgba(12, 54, 84, 0.16);
  transform: translateY(-1px);
}

body.page-provider-detail.page-provider-detail-premium .pd-tab.active > svg {
  background: rgba(15, 118, 110, 0.14);
  fill: #0a5a54;
}

body.page-provider-detail.page-provider-detail-premium .pd-tab-meta {
  color: #335970;
  background: rgba(14, 116, 144, 0.12);
  border-color: rgba(14, 94, 133, 0.22);
}

body.page-provider-detail.page-provider-detail-premium .pd-tab.active .pd-tab-meta {
  color: #0a5a54;
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.3);
}

body.page-provider-detail.page-provider-detail-premium .pd-card {
  position: relative;
  border: 1px solid rgba(14, 94, 133, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(11, 37, 65, 0.08);
}

body.page-provider-detail.page-provider-detail-premium .pd-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 4px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.52), rgba(14, 116, 144, 0.14));
  pointer-events: none;
}

body.page-provider-detail.page-provider-detail-premium .pd-card-title {
  color: var(--pd-premium-ink);
}

body.page-provider-detail.page-provider-detail-premium .pd-bio-text,
body.page-provider-detail.page-provider-detail-premium .pd-field-value,
body.page-provider-detail.page-provider-detail-premium .pd-social-value {
  color: #1c3148;
}

body.page-provider-detail.page-provider-detail-premium .pd-field-label,
body.page-provider-detail.page-provider-detail-premium .pd-social-label,
body.page-provider-detail.page-provider-detail-premium .pd-map-title {
  color: var(--pd-premium-muted);
}

body.page-provider-detail.page-provider-detail-premium .pd-field-divider {
  background: rgba(14, 94, 133, 0.14);
}

body.page-provider-detail.page-provider-detail-premium .pd-social-row.fixed {
  border-color: rgba(14, 94, 133, 0.16);
  background: rgba(247, 252, 255, 0.9);
}

body.page-provider-detail.page-provider-detail-premium .pd-social-icon {
  background: rgba(15, 118, 110, 0.12);
}

body.page-provider-detail.page-provider-detail-premium .pd-map-container {
  border-color: rgba(14, 94, 133, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

body.page-provider-detail.page-provider-detail-premium .pd-map-empty {
  border-color: rgba(14, 94, 133, 0.28);
  background: rgba(14, 116, 144, 0.08);
}

body.page-provider-detail.page-provider-detail-premium .pd-services-hero,
body.page-provider-detail.page-provider-detail-premium .pd-portfolio-hero {
  border-color: rgba(14, 94, 133, 0.2);
  background:
    radial-gradient(circle at top right, rgba(14, 116, 144, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 255, 0.95));
  box-shadow: 0 20px 42px rgba(12, 34, 61, 0.1);
}

body.page-provider-detail.page-provider-detail-premium .pd-services-hero-badge,
body.page-provider-detail.page-provider-detail-premium .pd-portfolio-hero-badge {
  background: rgba(15, 118, 110, 0.12);
  color: #0b6059;
}

body.page-provider-detail.page-provider-detail-premium .pd-services-hero-count,
body.page-provider-detail.page-provider-detail-premium .pd-portfolio-hero-metric {
  border-color: rgba(14, 94, 133, 0.2);
  color: #0a5a54;
  background: rgba(255, 255, 255, 0.9);
}

body.page-provider-detail.page-provider-detail-premium .pd-service-list-card {
  border-color: rgba(14, 94, 133, 0.18);
  box-shadow: 0 18px 32px rgba(12, 34, 61, 0.08);
}

body.page-provider-detail.page-provider-detail-premium .pd-service-index,
body.page-provider-detail.page-provider-detail-premium .pd-service-chip.primary,
body.page-provider-detail.page-provider-detail-premium .pd-portfolio-section-count {
  background: rgba(15, 118, 110, 0.12);
  color: #0b6059;
  border-color: rgba(15, 118, 110, 0.24);
}

body.page-provider-detail.page-provider-detail-premium .pd-service-request-btn {
  background: linear-gradient(135deg, #0a5a54, #0f766e);
}

body.page-provider-detail.page-provider-detail-premium .pd-service-meta-item {
  background: rgba(255,255,255,0.85);
  border-color: rgba(14, 94, 133, 0.14);
}

body.page-provider-detail.page-provider-detail-premium .pd-service-scope-pill {
  background: rgba(14, 116, 144, 0.09);
  border-color: rgba(14, 94, 133, 0.18);
  color: #0a5a54;
}

body.page-provider-detail.page-provider-detail-premium .pd-sheet,
body.page-provider-detail.page-provider-detail-premium .pd-report-dialog {
  border-top: 1px solid rgba(14, 94, 133, 0.18);
  box-shadow: 0 -16px 34px rgba(9, 28, 48, 0.16);
}

body.page-provider-detail.page-provider-detail-premium .pd-panel.active .pd-card,
body.page-provider-detail.page-provider-detail-premium .pd-panel.active .pd-services-hero,
body.page-provider-detail.page-provider-detail-premium .pd-panel.active .pd-portfolio-hero {
  animation: pdPremiumRise 0.46s cubic-bezier(.22,.61,.36,1) both;
}

body.page-provider-detail.page-provider-detail-premium .pd-panel.active .pd-card:nth-of-type(2) { animation-delay: .05s; }
body.page-provider-detail.page-provider-detail-premium .pd-panel.active .pd-card:nth-of-type(3) { animation-delay: .09s; }
body.page-provider-detail.page-provider-detail-premium .pd-panel.active .pd-card:nth-of-type(4) { animation-delay: .13s; }

@keyframes pdPremiumRise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 769px) {
  body.page-provider-detail.page-provider-detail-premium .pd-actions {
    border-color: rgba(14, 94, 133, 0.16);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 34px rgba(12, 34, 61, 0.12);
  }

  body.page-provider-detail.page-provider-detail-premium .pd-tabs {
    background: linear-gradient(180deg, rgba(237, 246, 251, 0.95), rgba(237, 246, 251, 0.74));
  }
}

@media (max-width: 640px) {
  body.page-provider-detail.page-provider-detail-premium .pd-identity {
    width: calc(100% - 14px);
    border-radius: 20px;
    padding: 98px 12px 14px;
  }

  body.page-provider-detail.page-provider-detail-premium .pd-tabs {
    padding: 6px;
    gap: 6px;
  }

  body.page-provider-detail.page-provider-detail-premium .pd-tab {
    padding: 9px 10px;
    gap: 5px;
  }

  body.page-provider-detail.page-provider-detail-premium .pd-tab-meta {
    min-width: 20px;
    height: 19px;
    padding: 0 5px;
    font-size: 9.5px;
  }

  body.page-provider-detail.page-provider-detail-premium .pd-cover {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-provider-detail.page-provider-detail-premium .pd-panel.active .pd-card,
  body.page-provider-detail.page-provider-detail-premium .pd-panel.active .pd-services-hero,
  body.page-provider-detail.page-provider-detail-premium .pd-panel.active .pd-portfolio-hero {
    animation: none;
  }
}

/* ====================================================================
   INTERACTIVE PAGE v2 — Flutter parity
   ==================================================================== */
body.page-interactive {
  background:
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.14), transparent 28%),
    radial-gradient(circle at top left, rgba(241, 165, 89, 0.16), transparent 22%),
    linear-gradient(180deg, #f6f4fb 0%, #f3f1f9 42%, #f7f6fb 100%);
}
body.page-interactive #top-navbar { display: block !important; }
body.page-interactive #site-footer { display: none !important; }
body.page-interactive #bottom-nav { display: flex !important; }
body.page-interactive .page-content {
  padding-top: clamp(18px, 3vw, 28px);
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
}

.page-interactive .interactive-root {
  max-width: 980px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-interactive .interactive-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(103, 58, 183, 0.12);
  border-radius: 28px;
  padding: 24px 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(249,247,255,0.95)),
    linear-gradient(135deg, rgba(103, 58, 183, 0.08), rgba(241, 165, 89, 0.08));
  box-shadow: 0 20px 48px rgba(36, 24, 72, 0.08);
}

.page-interactive .interactive-hero::before {
  content: '';
  position: absolute;
  inset: auto -48px -72px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 58, 183, 0.18), transparent 68%);
  pointer-events: none;
}

.page-interactive .interactive-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.page-interactive .interactive-kicker,
.page-interactive .interactive-tabs-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(103, 58, 183, 0.1);
  border: 1px solid rgba(103, 58, 183, 0.12);
  color: var(--color-primary-dark);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.page-interactive .interactive-hero-title {
  margin: 12px 0 8px;
  font-family: 'Cairo', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1d1431;
  line-height: 1.15;
}

.page-interactive .interactive-hero-subtitle {
  max-width: 620px;
  margin: 0;
  color: #5f6477;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  line-height: 1.9;
}

.page-interactive .interactive-hero-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-interactive .interactive-hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(26, 26, 46, 0.06);
  color: #454b62;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(34, 25, 59, 0.05);
}

.page-interactive .interactive-loading {
  padding: 18px 0 8px;
}
.page-interactive .interactive-loading-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
}
.page-interactive .interactive-loading-head {
  display: grid;
  gap: 10px;
}
.page-interactive .interactive-loading-line,
.page-interactive .interactive-skeleton-line {
  height: 12px;
}
.page-interactive .interactive-loading-line.lg {
  width: 36%;
  height: 18px;
}
.page-interactive .interactive-loading-line.sm,
.page-interactive .interactive-loading-line.short,
.page-interactive .interactive-skeleton-line.short {
  width: 56%;
}
.page-interactive .interactive-loading-tabs {
  display: flex;
  gap: 10px;
}
.page-interactive .interactive-loading-chip {
  width: 104px;
  height: 40px;
  border-radius: 14px;
}
.page-interactive .interactive-loading-grid,
.page-interactive .interactive-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.page-interactive .interactive-loading-card,
.page-interactive .interactive-skeleton-card {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
}
.page-interactive .interactive-loading-avatar,
.page-interactive .interactive-skeleton-avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
}
.page-interactive .interactive-skeleton-line {
  width: 100%;
}
.page-interactive .interactive-skeleton-button {
  width: 116px;
  height: 34px;
  border-radius: 12px;
  margin-top: 6px;
}
.page-interactive .interactive-skeleton-favorites {
  display: grid;
  gap: 14px;
}
.page-interactive .interactive-skeleton-reels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(164px, 40vw);
  gap: 10px;
  overflow: hidden;
}
.page-interactive .interactive-skeleton-reel {
  min-height: 252px;
  border-radius: 20px;
}
.page-interactive .interactive-skeleton-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.page-interactive .interactive-skeleton-media {
  width: 100%;
  height: 120px;
  border-radius: 16px;
}

.page-interactive .interactive-auth-gate {
  padding: 30px 22px;
  text-align: center;
  border: 1px solid rgba(103, 58, 183, 0.12);
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 22px 44px rgba(36, 24, 72, 0.08);
}
.page-interactive .interactive-auth-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  margin: 0 auto 12px;
  background: rgba(103, 58, 183, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-interactive .interactive-auth-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
}
.page-interactive .interactive-auth-subtitle {
  margin: 8px 0 18px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.page-interactive .interactive-content-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-interactive .interactive-overview-card,
.page-interactive .interactive-panel-shell {
  border: 1px solid rgba(103, 58, 183, 0.1);
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 18px 42px rgba(36, 24, 72, 0.08);
  backdrop-filter: blur(18px);
}

.page-interactive .interactive-overview-card {
  padding: 18px;
}

.page-interactive .interactive-tabs-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.page-interactive .interactive-tabs-title {
  margin: 10px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 900;
  color: #1d1431;
  line-height: 1.35;
}

.page-interactive .interactive-tabs-note {
  margin: 0;
  color: #687086;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  line-height: 1.8;
}

.page-interactive .interactive-tabs-shell {
  border: 1px solid rgba(103, 58, 183, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,243,251,0.92));
  border-radius: 18px;
  padding: 5px;
}
.page-interactive #interact-tabs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.page-interactive .interactive-tab-btn {
  border-radius: 14px;
  border: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--color-text-secondary);
  font-family: 'Cairo', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.page-interactive .interactive-tab-btn.active {
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.16), rgba(103, 58, 183, 0.08));
  color: var(--color-primary-dark);
  box-shadow: inset 0 0 0 1px rgba(103, 58, 183, 0.08), 0 10px 18px rgba(103, 58, 183, 0.12);
}
.page-interactive .interactive-tab-btn:hover {
  transform: translateY(-1px);
}
.page-interactive .interactive-tab-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-interactive .interactive-panel-grid,
.page-interactive .interactive-following-grid,
.page-interactive .interactive-favorites-grid,
.page-interactive .interactive-favorites-host {
  min-height: 180px;
}

.page-interactive .interactive-panel-shell {
  padding: 18px;
}

.page-interactive .interactive-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.page-interactive .interactive-panel-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #1d1431;
}

.page-interactive .interactive-panel-subtitle {
  margin: 4px 0 0;
  color: #737b90;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  line-height: 1.8;
}

.page-interactive .interactive-following-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.page-interactive .interactive-following-card {
  width: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(103, 58, 183, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,244,255,0.94));
  padding: 14px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.page-interactive .interactive-following-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 88, 219, 0.38);
  box-shadow: 0 16px 28px rgba(95, 57, 190, 0.13);
}
.page-interactive .interactive-following-card:focus-visible {
  outline: 2px solid #7f56d9;
  outline-offset: 2px;
}
.page-interactive .interactive-person-accent {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #7c3aed, #2563eb);
}
.page-interactive .interactive-person-accent.muted {
  background: linear-gradient(90deg, #c084fc, #7c3aed, #14b8a6);
}
.page-interactive .interactive-person-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.page-interactive .interactive-person-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-interactive .interactive-person-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(103, 58, 183, 0.08);
  color: #6d41d8;
  font-family: 'Cairo', sans-serif;
  font-size: 9.5px;
  font-weight: 900;
}
.page-interactive .interactive-person-subtitle {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  line-height: 1.8;
  color: #667085;
}
.page-interactive .interactive-person-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-interactive .interactive-person-footer {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed rgba(103, 58, 183, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.page-interactive .interactive-person-footnote {
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #4a5267;
}
.page-interactive .interactive-person-arrow {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(103, 58, 183, 0.08);
  color: #6d41d8;
  flex-shrink: 0;
}
.page-interactive .interactive-following-head {
  min-height: 66px;
}
.page-interactive .interactive-following-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.page-interactive .interactive-following-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.14), rgba(59, 130, 246, 0.18));
  color: #5f39be;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 10px 18px rgba(58, 36, 124, 0.1);
}
.page-interactive .interactive-following-avatar-excellence-top {
  position: absolute;
  top: -7px;
  left: -6px;
  z-index: 2;
  max-width: 88px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-interactive .interactive-following-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-interactive .interactive-following-meta {
  padding-top: 2px;
}
.page-interactive .interactive-following-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-interactive .interactive-following-name {
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.4;
}
.page-interactive .interactive-following-handle {
  margin: 1px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #6d49c7;
  direction: ltr;
  text-align: right;
}
.page-interactive .interactive-verified-badge {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  flex-shrink: 0;
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 14px rgba(22, 163, 74, 0.28);
}
.page-interactive .interactive-verified-badge.blue {
  background: #2563eb;
  box-shadow: 0 8px 14px rgba(37, 99, 235, 0.26);
}
.page-interactive .interactive-following-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-interactive .interactive-following-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  min-height: 22px;
  padding: 0 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.page-interactive .interactive-following-pill.city {
  background: #f1f5f9;
  border: 1px solid #dce3ee;
  color: #334155;
}
.page-interactive .interactive-following-pill.rating {
  background: #f3edff;
  border: 1px solid #d8caff;
  color: #5f39be;
}
.page-interactive .interactive-following-pill.stat {
  background: #eef6ff;
  border: 1px solid #d7e8ff;
  color: #285ea8;
}
.page-interactive .interactive-following-pill.soft {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}
.page-interactive .interactive-following-pill.status-public {
  background: rgba(103, 58, 183, 0.1);
  border: 1px solid rgba(103, 58, 183, 0.18);
  color: #6d41d8;
}
.page-interactive .interactive-following-pill.status-private {
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.16);
  color: #0f766e;
}
.page-interactive .interactive-following-pill-icon {
  line-height: 0;
  display: inline-flex;
}
.page-interactive .interactive-following-cover {
  height: 88px;
  background: var(--color-bg);
}
.page-interactive .interactive-following-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-interactive .interactive-following-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-interactive .interactive-following-stats {
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--color-border);
}
.page-interactive .interactive-mini-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(103, 58, 183, 0.08);
  color: var(--color-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
}
.page-interactive .interactive-mini-icon {
  line-height: 0;
  display: inline-flex;
}

.page-interactive .interactive-followers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 10px;
}
.page-interactive .interactive-follower-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.98);
  padding: 12px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}
.page-interactive .interactive-follower-tile .interactive-person-head {
  gap: 10px;
}
.page-interactive .interactive-follower-tile .interactive-person-meta {
  gap: 5px;
}
.page-interactive .interactive-follower-card.is-provider-follower {
  border-color: rgba(103, 58, 183, 0.24);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247, 244, 255, 0.96));
}
.page-interactive .interactive-follower-card.is-client-follower {
  background: rgba(255,255,255,0.98);
  border-color: rgba(148, 163, 184, 0.18);
}
.page-interactive .interactive-follower-card.is-clickable {
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.page-interactive .interactive-follower-card.is-clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 88, 219, 0.3);
  box-shadow: 0 12px 20px rgba(95, 57, 190, 0.08);
}
.page-interactive .interactive-follower-card.is-clickable:focus-visible {
  outline: 2px solid #7f56d9;
  outline-offset: 2px;
}
.page-interactive .interactive-follower-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.15), rgba(20, 184, 166, 0.18));
  color: #5f39be;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(58, 36, 124, 0.08);
}
.page-interactive .interactive-follower-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-interactive .interactive-follower-meta {
  padding-top: 1px;
}
.page-interactive .interactive-follower-name {
  display: block;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.35;
}
.page-interactive .interactive-follower-handle {
  display: block;
  margin-top: 1px;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  color: var(--color-text-tertiary);
  direction: ltr;
  text-align: right;
}
.page-interactive .interactive-follower-tile .interactive-person-footer {
  margin-top: 8px;
  padding-top: 8px;
}

.page-interactive .interactive-favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  gap: 16px;
  justify-content: center;
  align-items: start;
}
.page-interactive .interactive-favorites-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-interactive .interactive-favorites-section + .interactive-favorites-section {
  margin-top: 18px;
}
.page-interactive .interactive-favorites-section-title {
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: var(--color-text);
}
.page-interactive .interactive-favorites-reels {
  padding: 4px 2px 8px;
  gap: 12px;
}
.page-interactive .interactive-favorite-reel {
  width: 84px;
}
.page-interactive .interactive-favorite-reel .reel-ring {
  width: 84px;
  height: 84px;
  box-shadow: 0 14px 24px rgba(95, 57, 190, 0.18);
}
.page-interactive .interactive-favorite-reel .reel-inner {
  background: #fff;
}
.page-interactive .reel-preview-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}
.page-interactive .interactive-favorite-reel .reel-caption {
  max-width: 84px;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--color-text-secondary);
}
.page-interactive .interactive-favorite-card {
  width: min(100%, 280px);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #14111d 0%, #231838 100%);
  border: 1px solid rgba(126, 87, 194, 0.18);
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  margin-inline: auto;
}
.page-interactive .interactive-favorite-card:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 87, 194, 0.34);
  box-shadow: 0 18px 36px rgba(79, 48, 156, 0.24);
}
.page-interactive .interactive-favorite-card.is-image {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,241,251,0.96));
  border-color: rgba(103, 58, 183, 0.1);
  box-shadow: 0 16px 34px rgba(28, 24, 51, 0.08);
}
.page-interactive .interactive-favorite-card.is-image:hover {
  border-color: rgba(103, 58, 183, 0.18);
  box-shadow: 0 18px 38px rgba(28, 24, 51, 0.12);
}
.page-interactive .interactive-favorite-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.12), transparent 42%),
    linear-gradient(180deg, #22173c 0%, #0f0b17 100%);
}
.page-interactive .interactive-favorite-media.is-image {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #faf8ff 0%, #efebf9 100%);
}
.page-interactive .interactive-favorite-media.is-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--interactive-favorite-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(24px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.4;
  z-index: 0;
}
.page-interactive .interactive-favorite-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-interactive .interactive-favorite-image {
  position: relative;
  z-index: 2;
  object-fit: contain;
  padding: 14px;
  filter: drop-shadow(0 14px 24px rgba(17, 24, 39, 0.14));
}
.page-interactive .interactive-favorite-video {
  background: #000;
  pointer-events: none;
}
.page-interactive .interactive-favorite-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,12,16,0.04) 0%, rgba(12,12,16,0.08) 44%, rgba(12,12,16,0.72) 100%),
    linear-gradient(120deg, rgba(255,255,255,0.14) 0%, transparent 38%, transparent 68%, rgba(255,255,255,0.08) 100%);
  pointer-events: none;
  z-index: 1;
}
.page-interactive .interactive-favorite-media.is-image::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 46%, rgba(22, 18, 33, 0.18) 100%);
}
.page-interactive .interactive-favorite-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-interactive .interactive-video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(10, 10, 12, 0.48);
  backdrop-filter: blur(14px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.page-interactive .interactive-source-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  z-index: 3;
}
.page-interactive .interactive-source-badge.portfolio { background: rgba(103,58,183,0.82); }
.page-interactive .interactive-source-badge.spotlight { background: rgba(245,158,11,0.85); }

.page-interactive .interactive-favorite-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 3;
}
.page-interactive .interactive-favorite-card:hover .interactive-favorite-overlay {
  opacity: 1;
}
.page-interactive .interactive-favorite-stats {
  position: absolute;
  right: 12px;
  left: 12px;
  bottom: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  z-index: 3;
}
.page-interactive .interactive-favorite-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 10, 12, 0.42);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.page-interactive .interactive-favorite-stat.active {
  color: #f6d8ff;
  border-color: rgba(228, 181, 255, 0.35);
}
.page-interactive .interactive-favorite-stat-icon {
  line-height: 1;
  font-size: 13px;
}

.page-interactive .interactive-favorite-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 12px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(5,5,8,0.18) 20%, rgba(5,5,8,0.76) 72%, rgba(5,5,8,0.9) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 4;
  border-radius: 0 0 22px 22px;
}
.page-interactive .interactive-favorite-card.is-image .interactive-favorite-bottom {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(247,244,253,0.24) 20%, rgba(26,26,46,0.18) 75%, rgba(26,26,46,0.28) 100%);
}
.page-interactive .interactive-favorite-provider {
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.page-interactive .interactive-favorite-card.is-image .interactive-favorite-provider {
  color: #fff;
}
.page-interactive .interactive-favorite-remove-btn {
  border: 0;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 1;
  box-shadow: 0 10px 18px rgba(127, 29, 29, 0.28);
  transition: transform .18s ease, background .18s ease;
  backdrop-filter: blur(8px);
}
.page-interactive .interactive-favorite-remove-btn:hover {
  transform: scale(1.04);
  background: rgba(220, 38, 38, 0.96);
}

.page-interactive .interactive-clean-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px 14px;
  background: rgba(255,255,255,0.96);
}

.page-interactive .interactive-blocked-clean-action {
  min-width: 132px;
  border-radius: 999px;
}

.page-interactive .interactive-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 30px 14px;
}
.page-interactive .interactive-state-icon {
  line-height: 0;
  display: inline-flex;
}
.page-interactive .interactive-state-text {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-secondary);
}
.page-interactive .interactive-retry-btn {
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  min-height: 32px;
  padding: 0 12px;
  background: rgba(103, 58, 183, 0.12);
  color: var(--color-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
}

.interactive-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 530;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.interactive-confirm-dialog {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 14px;
}
.interactive-confirm-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text);
}
.interactive-confirm-text {
  margin: 6px 0 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  color: var(--color-text-secondary);
}
.interactive-confirm-actions {
  display: flex;
  gap: 8px;
}
.interactive-btn {
  flex: 1;
  border: 0;
  border-radius: 10px;
  min-height: 34px;
  font-family: 'Cairo', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
}
.interactive-btn-cancel {
  background: rgba(103, 58, 183, 0.1);
  color: var(--color-primary);
}
.interactive-btn-confirm {
  background: var(--color-primary);
  color: #fff;
}

.interactive-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height) + 16px);
  transform: translate(-50%, 8px);
  background: #2f2f35;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 540;
}
.interactive-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 560px) {
  .page-interactive .interactive-hero {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .page-interactive .interactive-loading-shell,
  .page-interactive .interactive-skeleton-card {
    padding: 14px;
  }

  .page-interactive .interactive-loading-grid,
  .page-interactive .interactive-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .page-interactive .interactive-skeleton-reels {
    grid-auto-columns: minmax(148px, 56vw);
  }

  .page-interactive .interactive-overview-card,
  .page-interactive .interactive-panel-shell,
  .page-interactive .interactive-auth-gate {
    border-radius: 20px;
    padding: 16px;
  }

  .page-interactive .interactive-following-grid {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .page-interactive .interactive-followers-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 561px) {
  .page-interactive .interactive-tabs-heading {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .page-interactive .interactive-tabs-note {
    max-width: 320px;
    text-align: left;
  }

  .page-interactive .interactive-favorite-reel {
    width: 92px;
  }
  .page-interactive .interactive-favorite-reel .reel-ring {
    width: 92px;
    height: 92px;
  }
  .page-interactive .interactive-favorite-reel .reel-caption {
    max-width: 92px;
  }
  .page-interactive .interactive-favorites-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 290px));
    gap: 18px;
  }
  .page-interactive .interactive-favorite-card {
    border-radius: 24px;
  }
}

@media (min-width: 769px) {
  body.page-interactive #bottom-nav {
    display: none !important;
  }

  body.page-interactive .page-content {
    padding-bottom: var(--space-2xl);
  }
}

@media (min-width: 1024px) {
  .page-interactive .interactive-root {
    gap: 22px;
  }

  .page-interactive .interactive-hero {
    padding: 30px 28px;
  }

  .page-interactive .interactive-favorites-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
  }
}

/* ====================================================================
   LOGIN SETTINGS PAGE v2 — Flutter parity
   ==================================================================== */
body.page-login-settings #top-navbar { display: none; }
body.page-login-settings #site-footer { display: none !important; }
body.page-login-settings #bottom-nav { display: flex !important; }
body.page-login-settings .page-content {
  padding-top: 0;
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
}

.page-login-settings .ls-page {
  max-width: 560px;
  margin-inline: auto;
}
.page-login-settings .ls-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.page-login-settings .ls-action-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(163, 28, 163, 0.75);
  background: #fff;
  color: #8f1d8f;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.16s ease;
}
.page-login-settings .ls-action-btn:active {
  transform: scale(0.99);
}
.page-login-settings .ls-action-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.page-login-settings .ls-avatar {
  text-align: center;
  margin-bottom: 14px;
}
.page-login-settings .avatar-circle {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
  font-size: 26px;
  font-weight: 900;
}
.page-login-settings .avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-login-settings .ls-avatar h2 {
  margin: 0 0 2px;
  font-family: 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 800;
}
.page-login-settings .ls-hero {
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(103, 58, 183, 0.1);
  background:
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 255, 0.98));
}
.page-login-settings .ls-hero-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary);
}
.page-login-settings .ls-hero-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-text);
}
.page-login-settings .ls-hero-subtitle {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}
.page-login-settings .ls-section-title {
  margin: 0 0 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary);
}
.page-login-settings .form-label {
  font-size: 11.5px;
  font-weight: 700;
}
.page-login-settings .form-input {
  min-height: 40px;
  padding: 9px 11px;
  font-family: 'Cairo', sans-serif;
  font-size: 11.5px;
}
.page-login-settings .btn {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 12px;
}

.page-login-settings .ls-modal {
  position: fixed;
  inset: 0;
  z-index: 540;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.page-login-settings .ls-modal-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
}
.page-login-settings .ls-modal-card h3 {
  margin: 0 0 6px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
}
.page-login-settings .ls-modal-card p {
  margin: 0 0 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.page-login-settings .ls-modal-card .form-input + .form-input { margin-top: 8px; }
.page-login-settings #ls-modal-fields {
  margin-top: 8px;
}
.page-login-settings .ls-modal-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.page-login-settings .ls-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height) + 16px);
  transform: translate(-50%, 8px);
  background: #1f2937;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 550;
}
.page-login-settings .ls-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.page-login-settings .ls-toast.error { background: #b91c1c; }

@media (max-width: 480px) {
  .page-login-settings .ls-action-btn {
    min-height: 48px;
    font-size: 15px;
  }
}

/* Face ID — Settings Page */
.page-login-settings .ls-faceid-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 14px;
  background: var(--color-primary);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(103, 58, 183, 0.25);
}
.page-login-settings .ls-faceid-btn:hover {
  background: #5e35b1;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(103, 58, 183, 0.35);
}
.page-login-settings .ls-faceid-btn:active {
  transform: translateY(0);
}
.page-login-settings .ls-faceid-btn:disabled {
  cursor: default;
  transform: none;
  box-shadow: none;
}
.page-login-settings .ls-faceid-btn svg {
  flex-shrink: 0;
}
.page-login-settings .ls-faceid-status {
  margin-bottom: 0;
}
.page-login-settings .ls-biometric-unavailable {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.24);
  color: #b45309;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 8px;
}
.page-login-settings .ls-biometric-unavailable svg {
  flex-shrink: 0;
}
.page-login-settings .ls-faceid-active-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.2);
  font-family: 'Cairo', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #2e7d32;
}
.page-login-settings .ls-faceid-active-row svg {
  flex-shrink: 0;
}
.page-login-settings .ls-faceid-hint {
  margin: 8px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  text-align: center;
}
.page-login-settings .ls-faceid-hint:empty {
  display: none;
}

.page-login-settings .ls-support-card {
  border: 1px solid rgba(103, 58, 183, 0.16);
  background: rgba(103, 58, 183, 0.05);
}
.page-login-settings .ls-support-help {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.08);
}
.page-login-settings .ls-support-info {
  border-color: rgba(59, 130, 246, 0.22);
  background: rgba(59, 130, 246, 0.08);
}
.page-login-settings .ls-support-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.page-login-settings .ls-support-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(103, 58, 183, 0.14);
  color: var(--color-primary);
  flex-shrink: 0;
}
.page-login-settings .ls-support-help .ls-support-icon {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}
.page-login-settings .ls-support-info .ls-support-icon {
  background: rgba(59, 130, 246, 0.17);
  color: #1d4ed8;
}
.page-login-settings .ls-support-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 800;
}
.page-login-settings .ls-support-help .ls-support-title {
  color: #92400e;
}
.page-login-settings .ls-support-info .ls-support-title {
  color: #1e3a8a;
}
.page-login-settings .ls-support-body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.85;
  color: #2f2853;
}
.page-login-settings .ls-support-media {
  margin-bottom: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 46, 0.1);
  background: #fff;
}
.page-login-settings .ls-support-media-image,
.page-login-settings .ls-support-media-video {
  width: 100%;
  display: block;
  object-fit: cover;
}
.page-login-settings .ls-support-media-video {
  max-height: 260px;
}

/* Face ID — Login Page */
.btn-faceid-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(103, 58, 183, 0.25);
}
.btn-faceid-login:hover {
  background: #5e35b1;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(103, 58, 183, 0.35);
}
.btn-faceid-login:active {
  transform: translateY(0);
}
.btn-faceid-login:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}
.btn-faceid-login svg {
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  body.page-request-quote #top-navbar,
  body.page-request-quote #site-footer,
  body.page-urgent-request #top-navbar,
  body.page-urgent-request #site-footer {
    display: block !important;
  }

  body.page-request-quote #bottom-nav,
  body.page-urgent-request #bottom-nav {
    display: flex !important;
  }

  body.page-request-quote .page-content,
  body.page-urgent-request .page-content {
    padding-top: calc(var(--navbar-height) + 18px);
    padding-bottom: 40px;
    background:
      radial-gradient(circle at 100% 0%, rgba(103, 58, 183, 0.1), transparent 28%),
      radial-gradient(circle at 0% 20%, rgba(33, 150, 243, 0.06), transparent 24%),
      var(--color-bg);
  }

  body.page-request-quote .container,
  body.page-urgent-request .container {
    max-width: 980px;
  }

  body.page-request-quote .rq-header,
  body.page-urgent-request .mw-form-header,
  body.page-request-quote .rq-intro-card,
  body.page-request-quote .rq-form,
  body.page-urgent-request .mw-form-card {
    box-shadow: 0 18px 36px rgba(20, 20, 38, 0.07);
    border: 1px solid rgba(103, 58, 183, 0.08);
  }

  body.page-request-quote .rq-header h1,
  body.page-urgent-request .mw-form-header h1 {
    font-size: 30px;
    font-weight: 900;
  }

  body.page-request-quote .rq-subtitle,
  body.page-urgent-request .mw-form-subtitle {
    font-size: 15px;
    line-height: 1.8;
  }

  body.page-request-quote .form-input,
  body.page-request-quote .form-select,
  body.page-request-quote .form-textarea,
  body.page-urgent-request .form-input,
  body.page-urgent-request .form-select,
  body.page-urgent-request .form-textarea {
    font-size: 14px;
  }

  body.page-request-quote .btn-outlined,
  body.page-request-quote .btn-primary-lg,
  body.page-urgent-request .btn-outlined,
  body.page-urgent-request .btn-primary-lg {
    min-height: 48px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .settings-hero {
    align-items: flex-start;
    align-items: stretch;
  }
  .pd-service-request-btn {
    align-self: flex-end;
  }

  .pd-service-meta-item {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  body.page-settings #top-navbar,
  body.page-login-settings #top-navbar {
    display: block !important;
  }

  body.page-settings #site-footer,
  body.page-login-settings #site-footer {
    display: block !important;
  }

  body.page-settings #bottom-nav,
  body.page-login-settings #bottom-nav {
    display: flex !important;
  }

  body.page-settings .page-content,
  body.page-login-settings .page-content {
    padding-top: calc(var(--navbar-height) + 18px);
    padding-bottom: 40px;
    background:
      radial-gradient(circle at 100% 0%, rgba(103, 58, 183, 0.1), transparent 28%),
      radial-gradient(circle at 0% 20%, rgba(33, 150, 243, 0.06), transparent 26%),
      var(--color-bg);
  }

  body.page-settings .container {
    max-width: 1040px;
  }

  body.page-settings #settings-content {
    max-width: 840px;
    margin-inline: auto;
  }

  body.page-settings .settings-profile-header,
  body.page-settings .form-card {
    border: 1px solid rgba(103, 58, 183, 0.08);
    box-shadow: 0 16px 34px rgba(20, 20, 38, 0.06);
  }

  body.page-settings .settings-profile-header {
    padding: 22px 24px;
  }

  body.page-settings .settings-name {
    font-size: 20px;
    font-weight: 900;
  }

  body.page-settings .settings-email {
    font-size: 14px;
  }

  body.page-settings .profile-menu-item:hover,
  body.page-settings .security-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(20, 20, 38, 0.06);
  }

  body.page-settings .danger-zone {
    border-top: none;
    border-color: rgba(244, 67, 54, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 244, 0.98));
  }

  body.page-login-settings .ls-page {
    max-width: 760px;
    padding-top: calc(var(--navbar-height) + 18px);
    padding-bottom: 36px;
  }

  body.page-login-settings .detail-card,
  body.page-login-settings .ls-hero {
    box-shadow: 0 16px 34px rgba(20, 20, 38, 0.06);
    border: 1px solid rgba(103, 58, 183, 0.08);
  }

  body.page-login-settings .detail-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(20, 20, 38, 0.08);
  }

  body.page-login-settings .ls-avatar {
    margin-bottom: 18px;
  }

  body.page-login-settings .avatar-circle {
    width: 96px;
    height: 96px;
    margin-bottom: 12px;
  }

  body.page-login-settings .ls-avatar h2 {
    font-size: 22px;
  }

  body.page-login-settings .ls-section-title {
    font-size: 15px;
  }

  body.page-login-settings .form-input,
  body.page-login-settings .btn {
    min-height: 46px;
    font-size: 14px;
  }

  body.page-login-settings .ls-toast {
    bottom: 28px;
  }
}

/* ====================================================================
   CHATS PAGE — Mobile/Web redesign
   ==================================================================== */
body.page-chats #site-footer {
  display: none !important;
}

body.page-chats .page-content {
  padding-top: calc(var(--navbar-height) + 12px);
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
  background:
    radial-gradient(950px 280px at 100% -120px, rgba(103, 58, 183, 0.16), transparent 58%),
    linear-gradient(180deg, #f8f8fc 0%, #eef1f8 100%);
}

body.page-chats .chats-layout {
  max-width: 1040px;
  margin-inline: auto;
}

body.page-chats .chats-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-chats .chats-page-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 28px;
  border: 1px solid rgba(103, 58, 183, 0.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(247,244,255,.92));
  box-shadow: 0 18px 42px rgba(24, 18, 48, 0.08);
  backdrop-filter: blur(14px);
}

body.page-chats .chats-page-title-wrap h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
}

body.page-chats .chats-page-title-wrap p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  max-width: 560px;
}

body.page-chats .chats-page-hero-tags {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.page-chats .chats-page-hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(103, 58, 183, 0.12);
  background: rgba(255,255,255,.82);
  color: #5a5270;
  font-size: 11px;
  font-weight: 800;
}

body.page-chats .chats-top-counters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.page-chats .chats-total-badge,
body.page-chats .chats-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

body.page-chats .chats-total-badge {
  min-width: 40px;
  padding: 0 14px;
  background: linear-gradient(135deg, #5f39be, #7f56d9);
  color: #fff;
  box-shadow: 0 12px 22px rgba(95, 57, 190, 0.28);
}

body.page-chats .chats-unread-badge {
  padding: 0 12px;
  background: #f1edff;
  border: 1px solid #d6cbff;
  color: #5a34b1;
}

body.page-chats .chats-control-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(103, 58, 183, 0.14);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-chats .chats-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.page-chats .chats-filter-head h3 {
  margin: 0;
  font-size: 17px;
  color: #111827;
  font-weight: 900;
}

body.page-chats .chats-results-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.page-chats #chat-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1px;
  margin: 0;
}

body.page-chats #chat-filters::-webkit-scrollbar {
  display: none;
}

body.page-chats #chat-filters .filter-chip {
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  transition: all var(--transition-fast);
}

body.page-chats #chat-filters .filter-chip .chat-filter-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
}

body.page-chats #chat-filters .filter-chip:hover {
  border-color: #cfc1ff;
  color: #5f39be;
  transform: translateY(-1px);
}

body.page-chats #chat-filters .filter-chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, #603abf, #7f56d9);
  color: #fff;
  box-shadow: 0 12px 20px rgba(95, 57, 190, 0.26);
}

body.page-chats #chat-filters .filter-chip.active .chat-filter-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

body.page-chats .chats-search-wrap {
  position: relative;
}

body.page-chats .chats-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

body[dir="ltr"].page-chats .chats-search-icon {
  right: auto;
  left: 14px;
}

body.page-chats .chats-search-input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #dbe2ef;
  background: #f8fafc;
  padding: 0 44px 0 42px;
  color: #0f172a;
  font-size: 14px;
  font-family: 'Cairo', sans-serif;
  outline: none;
  transition: all var(--transition-fast);
}

body.page-chats .chats-search-input:focus {
  border-color: #b39ddb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(95, 57, 190, 0.14);
}

body.page-chats .chats-search-input::placeholder {
  color: #94a3b8;
}

body.page-chats .chats-search-clear {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 999px;
  background: rgba(95, 57, 190, 0.12);
  color: #5f39be;
  font-size: 13px;
  cursor: pointer;
}

body.page-chats .chats-search-clear:hover {
  background: rgba(95, 57, 190, 0.2);
}

body[dir="ltr"].page-chats .chats-search-clear {
  left: auto;
  right: 12px;
}

body.page-chats .chats-list-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 248, 255, 0.94));
  border: 1px solid rgba(103, 58, 183, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
  padding: 12px;
}

body.page-chats .threads-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-chats .chat-thread-skeleton {
  height: 104px;
  border-radius: 18px;
  border: 1px solid #e7eaf2;
  background: #f5f6fb;
}

body.page-chats .chat-thread-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-radius: 22px;
  border: 1px solid rgba(103, 58, 183, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,250,255,.96));
  padding: 13px;
  text-decoration: none;
  position: relative;
  transition: all var(--transition-fast);
  z-index: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

body.page-chats .chat-thread-card.menu-open {
  z-index: 40;
}

body.page-chats .chat-thread-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(103,58,183,.08), transparent 34%);
  pointer-events: none;
}

body.page-chats .chat-thread-card:hover {
  transform: translateY(-2px);
  border-color: #d0bfff;
  box-shadow: 0 14px 24px rgba(95, 57, 190, 0.14);
}

body.page-chats .chat-thread-card.kind-team {
  border-color: rgba(103,58,183,.16);
  background: linear-gradient(180deg, #fcfaff 0%, #f4efff 100%);
}

body.page-chats .chat-thread-card.kind-provider {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

body.page-chats .chat-thread-card.kind-client {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
}

body.page-chats .chat-thread-card.unread::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #7f56d9, #5f39be);
}

body.page-chats .chat-thread-card.unread {
  border-color: rgba(95, 57, 190, .20);
  box-shadow: 0 16px 34px rgba(95, 57, 190, .12);
}

body.page-chats .thread-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

body.page-chats .thread-avatar-excellence-top {
  position: absolute;
  top: -7px;
  inset-inline-start: -6px;
  z-index: 2;
  max-width: 88px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-chats .thread-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--nw-avatar-ring-gradient);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-sizing: border-box;
  font-size: 20px;
  font-weight: 800;
  overflow: hidden;
  box-shadow: var(--nw-avatar-ring-shadow);
}

body.page-chats .thread-avatar-media {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nw-avatar-inner-bg);
}

body.page-chats .thread-avatar.kind-team {
  background: var(--nw-avatar-ring-gradient);
}

body.page-chats .thread-avatar.kind-provider {
  background: var(--nw-avatar-ring-gradient);
}

body.page-chats .thread-avatar.kind-client {
  background: var(--nw-avatar-ring-gradient);
}

body.page-chats .thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-chats .thread-unread-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #10b981;
  border: 2px solid #fff;
  inset-inline-start: -3px;
  top: -3px;
}

body.page-chats .thread-content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-chats .thread-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body.page-chats .thread-top-trailing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

body.page-chats .thread-title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.page-chats .thread-name-wrap {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body.page-chats .thread-inline-excellence {
  max-width: min(100%, 210px);
}

body.page-chats .thread-name {
  font-size: 14px;
  line-height: 1.2;
  color: #0f172a;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

body.page-chats .thread-role-chip {
  border-radius: 999px;
  border: 1px solid #dbe6ff;
  background: #eef3ff;
  color: #2d4ca8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  line-height: 1.4;
}

body.page-chats .thread-role-chip.kind-team {
  background: rgba(103,58,183,.12);
  border-color: rgba(103,58,183,.18);
  color: #5e35b1;
}

body.page-chats .thread-role-chip.kind-provider {
  background: rgba(33,150,243,.12);
  border-color: rgba(33,150,243,.18);
  color: #145fb8;
}

body.page-chats .thread-role-chip.kind-client {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.2);
  color: #9a6700;
}

body.page-chats .thread-subtitle {
  margin-top: -2px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
}

body.page-chats .thread-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  background: #f7f9fc;
  border: 1px solid transparent;
}

body.page-chats .chat-thread-card.unread .thread-preview-row {
  border-color: rgba(95, 57, 190, .10);
  background: #fbfaff;
}

body.page-chats .thread-preview-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  background: #eef3ff;
  color: #5f39be;
}

body.page-chats .thread-preview-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  flex-shrink: 0;
}

body.page-chats .thread-preview-pill.accent-violet {
  background: rgba(103,58,183,.12);
  border: 1px solid rgba(103,58,183,.18);
  color: #5e35b1;
}

body.page-chats .thread-preview-pill.accent-amber {
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.2);
  color: #9a6700;
}

body.page-chats .thread-preview-pill.accent-blue {
  background: rgba(33,150,243,.12);
  border: 1px solid rgba(33,150,243,.18);
  color: #145fb8;
}

body.page-chats .thread-preview-pill.accent-green {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.18);
  color: #15803d;
}

body.page-chats .thread-preview-icon.accent-violet,
body.page-chats .thread-preview-icon.accent-team {
  background: rgba(103,58,183,.12);
  color: #5e35b1;
}

body.page-chats .thread-preview-icon.accent-amber {
  background: rgba(245,158,11,.13);
  color: #9a6700;
}

body.page-chats .thread-preview-icon.accent-blue,
body.page-chats .thread-preview-icon.accent-provider {
  background: rgba(33,150,243,.12);
  color: #145fb8;
}

body.page-chats .thread-preview-icon.accent-green {
  background: rgba(34,197,94,.12);
  color: #15803d;
}

body.page-chats .thread-preview-icon.accent-client {
  background: rgba(20,184,166,.12);
  color: #0f766e;
}

body.page-chats .thread-preview-icon.accent-member {
  background: rgba(71,85,105,.10);
  color: #475569;
}

body.page-chats .thread-time {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4f8fb;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

body.page-chats .chats-thread-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 3;
}

body.page-chats .chats-thread-menu-btn {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid #d8deea;
  background: #fff;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

body.page-chats .chats-thread-menu-btn:hover {
  color: #5f39be;
  border-color: #c8b6ff;
  box-shadow: 0 8px 16px rgba(95, 57, 190, 0.15);
}

body.page-chats .chats-thread-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 188px;
  border-radius: 12px;
  border: 1px solid #dbe3ee;
  background: #fff;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
  padding: 5px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

body.page-chats .chats-thread-menu.hidden { display: none !important; }

body.page-chats .chats-thread-menu.open {
  opacity: 1;
  transform: translateY(0);
}

body.page-chats .chats-thread-menu-item {
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #2f3c51;
  text-align: right;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
}

body.page-chats .chats-thread-menu-item:hover {
  background: rgba(95, 57, 190, 0.09);
}

body.page-chats .chats-thread-menu-item.danger {
  color: #b42318;
}

body.page-chats .chats-thread-menu-item.danger:hover {
  background: rgba(180, 35, 24, 0.1);
}

body.page-chats .thread-last-msg {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-chats .thread-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

body.page-chats .thread-unread-badge,
body.page-chats .thread-favorite-chip,
body.page-chats .thread-label-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

body.page-chats .thread-unread-badge {
  background: #ecfdf3;
  border: 1px solid #b5ebcb;
  color: #0f766e;
}

body.page-chats .thread-favorite-chip {
  background: #fff8ea;
  border: 1px solid #f8db95;
  color: #9a6700;
}

body.page-chats .thread-label-chip {
  background: #f1f5f9;
  border: 1px solid #dbe3ee;
  color: #334155;
}

body.page-chats .thread-label-chip.city-chip {
  background: rgba(71,85,105,.08);
  border-color: rgba(71,85,105,.12);
  color: #475569;
}

body.page-chats .thread-open-hint {
  margin-inline-start: auto;
  color: #5f39be;
  font-size: 12px;
  font-weight: 800;
}

body.page-chats #chats-error {
  margin-top: -2px;
  margin-bottom: 2px;
}

body.page-chats .chats-retry-wrap {
  margin-top: -2px;
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
}

body.page-chats .chats-retry-btn {
  min-height: 38px;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 800;
}

body.page-chats #chats-empty {
  border: 1px dashed #d8deea;
  border-radius: 18px;
  padding: 28px 18px;
  background: #f8fafc;
}

body.page-chats #chats-empty .empty-icon {
  font-size: 30px;
}

body.page-chats #chats-empty p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

body.page-chats .chats-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 1800;
  max-width: min(92vw, 360px);
  border-radius: 12px;
  background: #24364a;
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 14px 28px rgba(14, 18, 30, 0.3);
  opacity: 0;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

body.page-chats .chats-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.page-chats .chats-toast.success {
  background: #166534;
}

body.page-chats .chats-toast.error {
  background: #991b1b;
}

body.page-chats .chats-report-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1790;
  background: rgba(15, 23, 42, 0.44);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  transition: opacity 0.16s ease;
}

body.page-chats .chats-report-backdrop.open {
  opacity: 1;
}

body.page-chats .chats-report-dialog {
  width: min(470px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid #dbe3ee;
  background: #fff;
  padding: 14px;
  transform: translateY(16px);
  transition: transform 0.16s ease;
}

body.page-chats .chats-report-backdrop.open .chats-report-dialog {
  transform: translateY(0);
}

body.page-chats .chats-report-dialog h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}

body.page-chats .chats-report-peer {
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 11px;
}

body.page-chats .chats-report-dialog label {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

body.page-chats .chats-report-select,
body.page-chats .chats-report-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #0f172a;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  padding: 10px 11px;
}

body.page-chats .chats-report-textarea {
  resize: vertical;
  min-height: 90px;
}

body.page-chats .chats-report-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body.page-chats .chats-report-btn {
  border: 0;
  border-radius: 10px;
  min-height: 38px;
  padding: 0 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body.page-chats .chats-report-btn.ghost {
  background: #f1f5f9;
  color: #475569;
}

body.page-chats .chats-report-btn.primary {
  background: #f59e0b;
  color: #fff;
}

@media (max-width: 640px) {
  body.page-chats .chats-page-top {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  body.page-chats .chats-top-counters {
    justify-content: flex-start;
  }

  body.page-chats .chats-control-panel,
  body.page-chats .chats-list-panel {
    border-radius: 18px;
    padding: 12px;
  }

  body.page-chats .chat-thread-card {
    border-radius: 14px;
    padding: 12px;
  }

  body.page-chats .thread-preview-row {
    flex-direction: column;
  }

  body.page-chats .thread-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 18px;
  }

  body.page-chats .thread-name {
    font-size: 15px;
  }

  body.page-chats .thread-open-hint {
    width: 100%;
    margin-inline-start: 0;
  }

  body.page-chats .chats-thread-menu {
    min-width: 170px;
  }

  body.page-chats .chats-report-actions {
    flex-direction: column;
  }
}

@media (min-width: 900px) {
  body.page-chats .threads-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.page-chats .chat-thread-skeleton {
    height: 116px;
  }
}

@media (min-width: 1024px) {
  body.page-profile #bottom-nav,
  body.page-orders #bottom-nav,
  body.page-provider-orders #bottom-nav,
  body.page-chats #bottom-nav,
  body.page-notifications #bottom-nav,
  body.page-request-quote #bottom-nav,
  body.page-urgent-request #bottom-nav,
  body.page-settings #bottom-nav,
  body.page-login-settings #bottom-nav {
    display: flex !important;
  }

  body.page-profile .page-content {
    padding-bottom: calc(var(--bottom-nav-height) + var(--space-xl));
  }

  body.page-request-quote .page-content,
  body.page-urgent-request .page-content,
  body.page-settings .page-content,
  body.page-login-settings .page-content {
    padding-bottom: calc(var(--bottom-nav-height) + 40px);
  }
}

/* ====================================================================
   LOGIN SETTINGS PREMIUM V2
   ==================================================================== */
body.page-login-settings.page-login-settings-premium {
  --ls-ink: #11283f;
  --ls-muted: #5e7389;
  --ls-main: #0f766e;
  --ls-main-strong: #0a5a54;
  --ls-line: rgba(14, 88, 116, 0.2);
  --ls-soft-bg: #eef6fb;
  --ls-gold: #c0812c;
}

body.page-login-settings.page-login-settings-premium .page-content {
  padding-top: calc(var(--navbar-height) + 10px);
  padding-bottom: calc(var(--bottom-nav-height) + 22px);
  background:
    radial-gradient(760px 280px at 90% -120px, rgba(14, 116, 144, 0.22), transparent 62%),
    radial-gradient(620px 240px at -8% 6%, rgba(192, 129, 44, 0.14), transparent 62%),
    linear-gradient(180deg, #edf4fa 0%, #f4f7fb 58%, #f6f8fc 100%);
}

body.page-login-settings.page-login-settings-premium .ls-page {
  display: grid;
  gap: 14px;
}

body.page-login-settings.page-login-settings-premium .ls-hero-card {
  border: 1px solid var(--ls-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 8%, rgba(15, 118, 110, 0.18), transparent 36%),
    linear-gradient(148deg, rgba(255, 255, 255, 0.98), rgba(240, 250, 255, 0.96));
  box-shadow: 0 18px 32px rgba(12, 34, 61, 0.1);
}

body.page-login-settings.page-login-settings-premium .ls-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

body.page-login-settings.page-login-settings-premium .ls-back-btn {
  margin-top: 2px;
  border-color: rgba(15, 118, 110, 0.32);
  color: var(--ls-main-strong);
  background: rgba(255, 255, 255, 0.84);
}

body.page-login-settings.page-login-settings-premium .ls-hero-copy {
  flex: 1;
  min-width: 0;
}

body.page-login-settings.page-login-settings-premium .ls-hero-kicker {
  margin: 0 0 4px;
  color: #2a6584;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

body.page-login-settings.page-login-settings-premium .ls-hero-copy h1 {
  margin: 0;
  color: var(--ls-ink);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.15;
}

body.page-login-settings.page-login-settings-premium .ls-hero-subtitle {
  margin: 6px 0 0;
  color: var(--ls-muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.8;
}

body.page-login-settings.page-login-settings-premium .ls-hero-meta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body.page-login-settings.page-login-settings-premium .ls-hero-meta-item {
  border: 1px solid rgba(14, 88, 116, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

body.page-login-settings.page-login-settings-premium .ls-hero-meta-item span {
  color: #3b5f79;
  font-size: 11px;
  font-weight: 700;
}

body.page-login-settings.page-login-settings-premium .ls-hero-meta-item strong {
  color: var(--ls-ink);
  font-size: 13px;
  font-weight: 900;
  word-break: break-word;
}

body.page-login-settings.page-login-settings-premium .ls-inline-alert {
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  box-shadow: 0 8px 18px rgba(12, 34, 61, 0.08);
}

body.page-login-settings.page-login-settings-premium .ls-inline-alert.is-info {
  background: rgba(14, 116, 144, 0.12);
  border-color: rgba(14, 94, 133, 0.24);
  color: #0b4f6d;
}

body.page-login-settings.page-login-settings-premium .ls-inline-alert.is-success {
  background: rgba(15, 118, 110, 0.13);
  border-color: rgba(15, 118, 110, 0.26);
  color: var(--ls-main-strong);
}

body.page-login-settings.page-login-settings-premium .ls-inline-alert.is-error {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.24);
  color: #991b1b;
}

body.page-login-settings.page-login-settings-premium .ls-settings-card,
body.page-login-settings.page-login-settings-premium .ls-security-card {
  border: 1px solid var(--ls-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(12, 34, 61, 0.08);
}

body.page-login-settings.page-login-settings-premium .ls-section-head {
  margin-bottom: 10px;
  display: grid;
  gap: 4px;
}

body.page-login-settings.page-login-settings-premium .ls-section-head h2 {
  margin: 0;
  color: var(--ls-ink);
  font-size: 18px;
  font-weight: 900;
}

body.page-login-settings.page-login-settings-premium .ls-section-head p {
  margin: 0;
  color: var(--ls-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.75;
}

body.page-login-settings.page-login-settings-premium .ls-settings-grid,
body.page-login-settings.page-login-settings-premium .ls-security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

body.page-login-settings.page-login-settings-premium .ls-setting-item,
body.page-login-settings.page-login-settings-premium .ls-security-item {
  border: 1px solid rgba(14, 88, 116, 0.18);
  border-radius: 16px;
  padding: 11px 12px;
  background: linear-gradient(145deg, #ffffff 0%, #f7fbfd 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

body.page-login-settings.page-login-settings-premium .ls-setting-item-password {
  border-color: rgba(192, 129, 44, 0.28);
  background: linear-gradient(145deg, #fffdf9 0%, #fff7ed 100%);
}

body.page-login-settings.page-login-settings-premium .ls-security-item {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

body.page-login-settings.page-login-settings-premium .ls-security-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
}

body.page-login-settings.page-login-settings-premium .ls-security-icon-pin {
  color: #6d35b3;
  background: rgba(109, 53, 179, 0.1);
  border-color: rgba(109, 53, 179, 0.16);
}

body.page-login-settings.page-login-settings-premium .ls-security-icon-face {
  color: var(--ls-main-strong);
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.18);
}

body.page-login-settings.page-login-settings-premium .ls-setting-content {
  min-width: 0;
}

body.page-login-settings.page-login-settings-premium .ls-setting-content h3 {
  margin: 0;
  color: var(--ls-ink);
  font-size: 14px;
  font-weight: 900;
}

body.page-login-settings.page-login-settings-premium .ls-setting-content p {
  margin: 4px 0 0;
  color: var(--ls-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  word-break: break-word;
}

body.page-login-settings.page-login-settings-premium .ls-edit-btn {
  min-height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(14, 94, 133, 0.24);
  background: rgba(14, 116, 144, 0.1);
  color: #0b5875;
  padding: 0 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.16s ease;
}

body.page-login-settings.page-login-settings-premium .ls-edit-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 94, 133, 0.34);
  box-shadow: 0 10px 16px rgba(12, 52, 78, 0.14);
}

body.page-login-settings.page-login-settings-premium .ls-edit-btn-strong {
  border-color: rgba(192, 129, 44, 0.26);
  background: rgba(192, 129, 44, 0.12);
  color: #8a5d1f;
}

body.page-login-settings.page-login-settings-premium .ls-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

body.page-login-settings.page-login-settings-premium .ls-modal.hidden {
  display: none !important;
}

body.page-login-settings.page-login-settings-premium .ls-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(2px);
}

body.page-login-settings.page-login-settings-premium .ls-modal-card {
  position: relative;
  width: min(100%, 520px);
  border: 1px solid var(--ls-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.28);
  padding: 14px;
}

body.page-login-settings.page-login-settings-premium .ls-unlock-modal .ls-modal-card {
  max-width: 430px;
}

body.page-login-settings.page-login-settings-premium .ls-unlock-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

body.page-login-settings.page-login-settings-premium .ls-unlock-pin {
  display: grid;
  gap: 8px;
}

body.page-login-settings.page-login-settings-premium .ls-unlock-pin label {
  color: var(--ls-ink);
  font-size: 12px;
  font-weight: 900;
}

body.page-login-settings.page-login-settings-premium .ls-unlock-pin .btn {
  min-height: 40px;
}

body.page-login-settings.page-login-settings-premium .ls-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

body.page-login-settings.page-login-settings-premium .ls-modal-head h3 {
  margin: 0;
  color: var(--ls-ink);
  font-size: 18px;
  font-weight: 900;
}

body.page-login-settings.page-login-settings-premium .ls-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #fff;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.page-login-settings.page-login-settings-premium #ls-modal-desc {
  margin: 0 0 10px;
  color: var(--ls-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

body.page-login-settings.page-login-settings-premium #ls-modal-fields {
  display: grid;
  gap: 8px;
}

body.page-login-settings.page-login-settings-premium .ls-modal-field {
  display: grid;
  gap: 5px;
}

body.page-login-settings.page-login-settings-premium .ls-modal-field label {
  color: #345873;
  font-size: 11px;
  font-weight: 800;
}

body.page-login-settings.page-login-settings-premium #ls-modal-fields .form-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(14, 94, 133, 0.24);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--ls-ink);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}

body.page-login-settings.page-login-settings-premium #ls-modal-fields .form-input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

body.page-login-settings.page-login-settings-premium .ls-modal-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body.page-login-settings.page-login-settings-premium .ls-modal-actions .btn {
  min-height: 38px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
}

body.page-login-settings.page-login-settings-premium .ls-toast {
  position: fixed;
  inset-inline-start: 50%;
  bottom: calc(var(--bottom-nav-height) + 18px);
  transform: translateX(-50%) translateY(10px);
  min-width: min(90vw, 360px);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #0f766e, #0e7490);
  box-shadow: 0 14px 26px rgba(8, 38, 62, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: all 0.18s ease;
  z-index: 1250;
}

body.page-login-settings.page-login-settings-premium .ls-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.page-login-settings.page-login-settings-premium .ls-toast.error {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
}

@media (min-width: 860px) {
  body.page-login-settings.page-login-settings-premium .ls-page {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  body.page-login-settings.page-login-settings-premium .ls-hero-card,
  body.page-login-settings.page-login-settings-premium .ls-inline-alert {
    grid-column: 1 / -1;
  }

  body.page-login-settings.page-login-settings-premium .ls-hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-login-settings.page-login-settings-premium .ls-settings-grid,
  body.page-login-settings.page-login-settings-premium .ls-security-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  body.page-login-settings.page-login-settings-premium .ls-modal {
    align-items: flex-end;
    padding: 10px;
  }

  body.page-login-settings.page-login-settings-premium .ls-modal-card {
    width: 100%;
    border-radius: 18px;
  }

  body.page-login-settings.page-login-settings-premium .ls-setting-item,
  body.page-login-settings.page-login-settings-premium .ls-security-item {
    grid-template-columns: 1fr;
  }

  body.page-login-settings.page-login-settings-premium .ls-security-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  body.page-login-settings.page-login-settings-premium .ls-security-item .ls-edit-btn {
    grid-column: 1 / -1;
  }

  body.page-login-settings.page-login-settings-premium .ls-security-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  body.page-login-settings.page-login-settings-premium .ls-edit-btn {
    width: 100%;
  }
}
