:root {
  --bg-outer: #EAE7DF;
  --bg-app: #F7F6F2;
  --bg-card: #FFFFFF;
  --bg-subtle: #EFEDE7;
  --bg-stage: #F4F2EC;
  --ink: #141413;
  --ink-muted: #5F5D57;
  --ink-soft: #85827A;
  --border: #E5E2D9;
  --border-strong: #D0CCC0;
  --accent: #B85D38;
  --accent-soft: #F9EDE7;
  --whatsapp: #15803D;
  --whatsapp-hover: #166534;
  --whatsapp-soft: #DCFCE7;
  --danger: #B91C1C;
  --danger-soft: #FEF2F2;
  --ring: #141413;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 10px rgba(20, 20, 19, 0.04);
  --shadow-shell: 0 24px 64px rgba(20, 20, 19, 0.14), 0 0 0 1px rgba(20, 20, 19, 0.06);
  --shadow-modal: 0 24px 48px rgba(20, 20, 19, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-latin: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ar: "Cairo", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg-outer);
  color: var(--ink);
  font-family: var(--font-latin);
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  border: 0;
  background: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

[hidden],
.hidden {
  display: none !important;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.input-ltr {
  direction: ltr;
  text-align: start;
}

/* Native Mobile App Frame */
.app-frame {
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  background: var(--bg-app);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 520px) {
  body {
    padding: 20px 16px;
    align-items: flex-start;
  }

  .app-frame {
    min-height: calc(100dvh - 40px);
    border-radius: 30px;
    box-shadow: var(--shadow-shell);
    overflow: clip;
  }
}

/* Top App Bar */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(247, 246, 242, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 226, 217, 0.7);
}

.header-start {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg-app);
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 17px;
  height: 17px;
}

.brand-name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.brand-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 180ms var(--ease), transform 140ms var(--ease);
}

.back-btn:active {
  transform: scale(0.97);
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

html[dir="rtl"] .icon-dir,
html[dir="rtl"] .icon-dir-flip {
  transform: scaleX(-1);
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}

.lang-trigger:hover {
  border-color: var(--border-strong);
}

.lang-trigger svg {
  width: 15px;
  height: 15px;
  color: var(--ink-muted);
}

/* Views */
.app-view {
  padding: 12px 16px 0;
  animation: viewIn 280ms var(--ease);
}

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

.status-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.16);
}

/* Hero Stage */
.hero-stage {
  position: relative;
  background: var(--bg-stage);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.stage-badges {
  position: absolute;
  top: 12px;
  inset-inline: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.badge-promo {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg-app);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-rating svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.hero-image-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #F5F3EE;
  display: block;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 220ms var(--ease);
}

.hero-image-wrap img.is-swapping {
  opacity: 0.35;
}

.swatch-dock {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(20, 20, 19, 0.08);
  white-space: nowrap;
}

html[dir="rtl"] .swatch-dock {
  transform: translateX(50%);
}

.swatch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.swatch-pill.is-selected {
  background: var(--ink);
  color: var(--bg-app);
}

.swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.swatch-pill.is-selected .swatch-dot {
  border-color: rgba(255, 255, 255, 0.65);
}

/* Product Header */
.product-header {
  margin-top: 16px;
}

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

.kicker {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.stock-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--whatsapp);
}

.product-title {
  margin: 4px 0 6px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.product-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.price-main {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.price-value {
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.price-currency {
  font-size: 0.95rem;
  font-weight: 700;
}

.price-old {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.reviews-chip {
  margin-inline-start: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Spec Grid */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow-card);
}

.spec-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.spec-icon svg {
  width: 16px;
  height: 16px;
}

.spec-val {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  unicode-bidi: plaintext;
}

.spec-lbl {
  font-size: 0.77rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Segmented Tabs */
.detail-section {
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.segmented-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--bg-subtle);
  border-radius: 13px;
  margin-bottom: 14px;
}

.seg-tab {
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  transition: background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
  text-align: center;
}

.seg-tab.is-active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 20, 19, 0.08);
}

.panel-heading {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
}

.panel-copy {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.check-list svg {
  width: 17px;
  height: 17px;
  color: var(--whatsapp);
  flex-shrink: 0;
  margin-top: 2px;
}

.specs-table {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.specs-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}

.specs-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.specs-row dt {
  color: var(--ink-muted);
  font-weight: 500;
}

.specs-row dd {
  margin: 0;
  font-weight: 700;
  text-align: end;
}

.zone-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.zone-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-app);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.zone-item strong {
  font-weight: 600;
}

.zone-item span {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.delivery-footnote {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.81rem;
  color: var(--ink-muted);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--whatsapp-soft);
  color: #14532D;
}

.delivery-footnote svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Reviews */
.reviews-section {
  margin-top: 20px;
}

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

.section-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
}

.section-score {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.8rem;
}

.review-meta strong {
  font-weight: 700;
}

.review-city {
  color: var(--ink-soft);
  font-weight: 600;
}

.review-text {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.48;
}

/* Sticky Bottom App Dock */
.dock-spacer {
  height: 24px;
}

.dock-spacer-tall {
  height: 108px;
}

.bottom-dock {
  position: sticky;
  bottom: 0;
  z-index: 25;
  margin-top: auto;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.bottom-dock-submit {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.dock-meta {
  display: flex;
  flex-direction: column;
  min-width: 98px;
}

.dock-color-label {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 600;
  white-space: nowrap;
}

.dock-price {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.btn-primary,
.btn-whatsapp {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms var(--ease), background 180ms var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg-app);
}

.btn-primary:hover {
  background: #272725;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
}

.btn-primary:active,
.btn-whatsapp:active {
  transform: scale(0.985);
}

.btn-primary svg,
.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.submit-caption {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* Order Formula View */
.order-top-banner {
  margin-bottom: 14px;
}

.order-screen-title {
  margin: 0 0 12px;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cod-pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--whatsapp-soft);
  color: #14532D;
  font-size: 0.76rem;
  font-weight: 700;
}

.cod-pill svg {
  width: 15px;
  height: 15px;
}

.order-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}

.order-product-card img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: #F5F3EE;
  flex-shrink: 0;
}

.order-product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.order-product-name {
  font-size: 0.9rem;
  font-weight: 800;
}

.order-product-variant {
  font-size: 0.77rem;
  color: var(--ink-muted);
}

.order-product-unit {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-card);
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.qty-val {
  min-width: 20px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

/* Form Fields */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-section-label {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.label-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 180ms var(--ease);
}

.gps-btn:hover {
  background: #F4DFD4;
}

.gps-btn svg {
  width: 13px;
  height: 13px;
}

.field-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  font-size: 0.92rem;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.field-input::placeholder {
  color: var(--ink-soft);
}

.field-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 20, 19, 0.08);
}

.field-input.is-invalid {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.select-wrap {
  position: relative;
}

.field-select {
  appearance: none;
  padding-inline-end: 38px;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  inset-inline-end: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-muted);
  pointer-events: none;
}

.field-hint {
  margin: 0;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.field-error {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--danger);
}

.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
  transition: all 180ms var(--ease);
}

.mode-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mode-btn.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg-app);
}

/* Summary Card */
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
}

.summary-row .muted {
  color: var(--ink-soft);
}

.eta-badge {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

.summary-total-row {
  font-size: 1rem;
}

/* Modals (Language Gate & Confirm Sheet) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 20, 19, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fadeIn 200ms var(--ease);
}

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

.lang-modal,
.confirm-sheet {
  width: 100%;
  max-width: 390px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 18px 18px;
  box-shadow: var(--shadow-modal);
  animation: popIn 260ms var(--ease);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-modal-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.lang-modal-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.lang-modal-sub {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.lang-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 15px;
  border-radius: 15px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  text-align: start;
  transition: border-color 180ms var(--ease), transform 140ms var(--ease), background 180ms var(--ease);
}

.lang-option-btn:hover {
  border-color: var(--ink);
  background: #FFFFFF;
}

.lang-option-btn:active {
  transform: scale(0.985);
}

.lang-option-ar {
  font-family: var(--font-ar);
}

.lang-option-text {
  display: flex;
  flex-direction: column;
}

.lang-option-text strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.lang-option-text span {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.lang-option-code {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Confirmation Sheet */
.confirm-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--whatsapp-soft);
  color: var(--whatsapp);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.confirm-icon svg {
  width: 24px;
  height: 24px;
}

.confirm-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
}

.confirm-desc {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.48;
}

.message-preview {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 185px;
  overflow-y: auto;
  color: var(--ink);
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-secondary,
.btn-ghost {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
}

.btn-ghost {
  background: var(--bg-subtle);
  color: var(--ink-muted);
}

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