/**
 * supplication-ui.css — واجهة قسم الأدعية 🤲
 * Prefix: sau- (لا تتعارض مع dsu- الأحلام)
 *
 * Palette:
 *   Primary  : #0f766e (teal-700)
 *   Primary2 : #14b8a6 (teal-500)
 *   Gold     : #b5800e
 *   Gold soft: #fff8e6
 *   BG       : #fbf7ef
 *   Card     : #ffffff
 *   Ink      : #1c1710
 *   Muted    : #74675a
 *   Line     : #e8deca
 */

/* ============================================================
   CSS Variables
   ============================================================ */
.sau-root,
.sau-root * {
  box-sizing: border-box;
}

:root {
  --sau-primary:    #0f766e;
  --sau-primary2:   #14b8a6;
  --sau-primary3:   #0d9488;
  --sau-gold:       #b5800e;
  --sau-gold2:      #c28a22;
  --sau-bg:         #fbf7ef;
  --sau-card:       #ffffff;
  --sau-ink:        #1c1710;
  --sau-muted:      #74675a;
  --sau-line:       #e8deca;
  --sau-soft:       #edfaf7;
  --sau-goldSoft:   #fff8e6;
  --sau-radius:     20px;
  --sau-shadow:     0 14px 34px rgba(12, 74, 66, .10);
  --sau-shadow-sm:  0 2px 8px rgba(12, 74, 66, .07);
}

/* ============================================================
   Base Wrapper
   ============================================================ */
.sau-root {
  background: var(--sau-bg);
  color: var(--sau-ink);
  /* يرث خط الموقع مباشرة مثل dsu-wrap في الأحلام */
  font-family: var(--font, Arial, Tahoma, sans-serif);
  font-size: inherit;
  font-weight: 700;
  direction: rtl;
}

/* ============================================================
   Hero Section
   ============================================================ */
.sau-hero {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #059669 100%);
  color: #fff;
  padding: 48px 24px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sau-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.sau-hero__icon {
  font-size: 52px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
  display: block;
}

.sau-hero__title {
  font-size: clamp(22px, 4.5vw, 34px);
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.sau-hero__subtitle {
  font-size: 15px;
  opacity: .85;
  margin: 0 0 24px;
}

.sau-hero__badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sau-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.3);
}

/* ============================================================
   Main Dua Box (أبرز دعاء)
   ============================================================ */
.sau-main-dua {
  margin: 28px 16px;
}

.sau-main-dua__card {
  background: linear-gradient(135deg, var(--sau-goldSoft) 0%, #fffdf8 100%);
  border: 2px solid var(--sau-gold);
  border-radius: var(--sau-radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--sau-shadow);
  position: relative;
}

.sau-main-dua__card::before {
  content: '﷽';
  display: block;
  font-size: 26px;
  color: var(--sau-gold);
  margin-bottom: 16px;
  opacity: .8;
}

.sau-main-dua__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--sau-gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.sau-main-dua__text {
  font-size: clamp(15px, 2.5vw, 19px);
  line-height: 2;
  color: var(--sau-ink);
  font-weight: 600;
}

.sau-main-dua__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.sau-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .22s ease;
  font-family: inherit;
}

.sau-btn--primary {
  background: linear-gradient(135deg, var(--sau-primary), var(--sau-primary3));
  color: #fff;
  box-shadow: 0 4px 14px rgba(15,118,110,.3);
}

.sau-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15,118,110,.4);
}

.sau-btn--gold {
  background: linear-gradient(135deg, var(--sau-gold), var(--sau-gold2));
  color: #fff;
  box-shadow: 0 4px 12px rgba(181,128,14,.25);
}

.sau-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(181,128,14,.35);
}

.sau-btn--outline {
  background: transparent;
  color: var(--sau-primary);
  border: 2px solid var(--sau-primary);
}

.sau-btn--outline:hover {
  background: var(--sau-soft);
}

.sau-btn--ghost {
  background: rgba(15,118,110,.08);
  color: var(--sau-primary);
}

.sau-btn--ghost:hover {
  background: rgba(15,118,110,.15);
}

/* Copy feedback */
.sau-btn.sau-copied {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 4px 14px rgba(22,163,74,.3);
}

/* ============================================================
   Notice / تنبيه أخلاقي
   ============================================================ */
.sau-notice {
  margin: 0 16px 20px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fffbeb, #fef9c3);
  border: 1px solid #fde047;
  border-radius: 14px;
  font-size: 13px;
  color: #713f12;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
}

.sau-notice__icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   Quick Answer
   ============================================================ */
.sau-quick-answer {
  margin: 0 16px 24px;
  padding: 18px 20px;
  background: var(--sau-soft);
  border-right: 4px solid var(--sau-primary);
  border-radius: 12px;
}

.sau-quick-answer__label {
  font-size: 12px;
  font-weight: 800;
  color: var(--sau-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sau-quick-answer__text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--sau-ink);
}

/* ============================================================
   Metadata Facts Grid
   ============================================================ */
.sau-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 16px 24px;
}

.sau-meta__item {
  background: var(--sau-card);
  border: 1px solid var(--sau-line);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.sau-meta__icon {
  font-size: 22px;
  display: block;
  margin-bottom: 5px;
}

.sau-meta__label {
  font-size: 11px;
  color: var(--sau-muted);
  display: block;
  margin-bottom: 3px;
}

.sau-meta__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--sau-primary);
}

/* ============================================================
   Smart Nav (Chips/Tabs)
   ============================================================ */
.sau-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sau-nav::-webkit-scrollbar { display: none; }

.sau-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid var(--sau-line);
  background: var(--sau-card);
  color: var(--sau-muted);
  transition: all .2s;
  font-family: inherit;
}

.sau-chip:hover {
  border-color: var(--sau-primary2);
  color: var(--sau-primary);
  background: var(--sau-soft);
}

.sau-chip.active,
.sau-chip[aria-selected="true"] {
  background: var(--sau-primary);
  border-color: var(--sau-primary);
  color: #fff;
}

/* ============================================================
   AI Assistant
   ============================================================ */
/* ============================================================
   AI ASSISTANT — صندوق صياغة الدعاء الشخصي
   مطابق لـ .dsu-dream-tool في الأحلام (لوحة خضراء)
   ============================================================ */
.sau-assistant {
    background:
        radial-gradient(ellipse at top left, rgba(255,255,255,.18), transparent 40%),
        radial-gradient(ellipse at bottom right, rgba(4,120,87,.28), transparent 45%),
        linear-gradient(155deg, #064e3b 0%, #065f46 55%, #047857 100%);
    color: #fff;
    border-radius: 26px;
    padding: 20px 18px 22px;
    margin: 0 0 28px;
    box-shadow:
        0 22px 52px rgba(4,78,60,.36),
        inset 0 0 0 1px rgba(255,255,255,.12);
    overflow: visible;
    position: relative;
}

.sau-assistant::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, transparent 40%);
    pointer-events: none;
}

/* ── Header داخل الصندوق ── */
.sau-dt-header {
    margin-bottom: 16px;
}

.sau-dt-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 99px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.90);
    margin-bottom: 10px;
    letter-spacing: .02em;
}

.sau-dt-header .sau-dt-title {
    font-size: 21px;
    margin: 0 0 6px;
    letter-spacing: -.4px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 14px rgba(16,185,129,.40);
}

.sau-dt-header > p,
.sau-dt-header p {
    margin: 0 0 14px;
    color: rgba(220,252,231,.88);
    font-size: 15px;
    line-height: 1.75;
}

/* ── حقول الإدخال ── */
.sau-field-row {
    margin-bottom: 10px;
}

.sau-assistant textarea,
.sau-text-input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 18px;
    padding: 14px 15px;
    background: rgba(255,255,255,.97);
    color: #064e3b;
    box-shadow:
        inset 0 0 0 1.5px rgba(16,185,129,.45),
        0 4px 18px rgba(0,0,0,.14);
    font-size: 17px;
    font-family: var(--font, Arial, Tahoma, sans-serif);
    font-weight: 700;
    transition: box-shadow .22s;
    direction: rtl;
    line-height: 1.8;
}

.sau-assistant textarea {
    min-height: 110px;
    resize: none;
}

.sau-assistant textarea::placeholder,
.sau-text-input::placeholder {
    color: #6b9e8e;
    font-weight: 500;
}

.sau-assistant textarea:focus,
.sau-text-input:focus {
    box-shadow:
        inset 0 0 0 2.5px rgba(16,185,129,.80),
        0 0 0 4px rgba(16,185,129,.14);
}

/* ── عداد الحروف ── */
.sau-char-counter {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 7px;
    margin-bottom: 10px;
    opacity: .7;
    transition: opacity .22s;
}

.sau-char-bar-wrap {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,.18);
    border-radius: 99px;
    overflow: hidden;
}

.sau-char-bar {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: #f59e0b;
    transition: width .18s ease, background .25s;
}

.sau-char-text {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.70);
    white-space: nowrap;
    min-width: 110px;
    text-align: left;
    direction: rtl;
}

/* ── Pill pickers (طول + نبرة) ── */
.sau-picker-label {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255,255,255,.75);
    margin: 12px 0 7px;
    letter-spacing: .01em;
}

.sau-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 4px;
}

.sau-pill {
    padding: 8px 16px;
    border: 1.5px solid rgba(255,255,255,.30);
    border-radius: 99px;
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.90);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .17s, border-color .17s, color .17s;
    direction: rtl;
}

.sau-pill:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.55);
}

.sau-pill.active {
    background: rgba(255,255,255,.95);
    border-color: transparent;
    color: #064e3b;
    font-weight: 900;
}

/* ── متبقي ── */
.sau-remaining-note {
    font-size: 12px;
    color: rgba(255,255,255,.60);
    text-align: center;
    margin: 10px 0 4px;
}

/* ── زر الإرسال الرئيسي ── */
.sau-primary-btn {
    width: 100%;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #d1fae5 55%, #a7f3d0 100%);
    color: #064e3b;
    font-weight: 900;
    padding: 15px 12px;
    cursor: pointer;
    box-shadow:
        0 14px 30px rgba(4,78,60,.30),
        inset 0 1px 0 rgba(255,255,255,.80);
    font-size: 17px;
    font-family: var(--font, Arial, Tahoma, sans-serif);
    transition: transform .18s, box-shadow .18s;
    letter-spacing: .02em;
    margin-top: 16px;
}

.sau-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(4,78,60,.38), inset 0 1px 0 rgba(255,255,255,.80);
}

.sau-primary-btn:active { transform: scale(.97); }
.sau-primary-btn:disabled { opacity: .65; cursor: wait; }

/* ── نص ملاحظة صغيرة ── */
.sau-assistant .sau-mini-note {
    font-size: 12px;
    color: rgba(187,247,208,.65);
    margin-top: 10px;
    text-align: center;
}

/* ── Security bar ── */
.sau-security-row {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.sau-field-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.80);
    display: block;
    margin-bottom: 6px;
}

/* Loading overlay */
.sau-loading {
  padding: 40px 20px;
  text-align: center;
}

.sau-loading__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(15,118,110,.15);
  border-top-color: var(--sau-primary);
  border-radius: 50%;
  animation: sau-spin .85s linear infinite;
  margin: 0 auto 16px;
}

/* داخل الصندوق الداكن — اللون أبيض */
.sau-assistant .sau-loading__spinner {
  border-color: rgba(255,255,255,.20);
  border-top-color: #fff;
}

@keyframes sau-spin {
  to { transform: rotate(360deg); }
}

.sau-loading__text {
  font-size: 15px;
  color: var(--sau-muted);
  margin-bottom: 8px;
}

.sau-assistant .sau-loading__text {
  color: rgba(255,255,255,.85);
}

.sau-loading__dua {
  font-size: 13px;
  color: var(--sau-primary);
  font-style: italic;
}

.sau-assistant .sau-loading__dua {
  color: rgba(187,247,208,.75);
}

.sau-loading__ad {
  margin-top: 20px;
}

/* Result */
.sau-result {
  padding: 24px 0;
  animation: sau-fade-in .4s ease;
}

@keyframes sau-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sau-result__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--sau-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* داخل الصندوق الداكن */
.sau-assistant .sau-result__label {
  color: rgba(187,247,208,.90);
}

.sau-result__text {
  background: linear-gradient(135deg, var(--sau-goldSoft), #fffdf8);
  border: 1.5px solid rgba(181,128,14,.4);
  border-radius: 16px;
  padding: 22px 20px;
  font-size: clamp(14px, 2.5vw, 17px);
  line-height: 2.1;
  color: var(--sau-ink);
  text-align: center;
  font-weight: 500;
  margin-bottom: 16px;
}

/* داخل الصندوق الداكن */
.sau-assistant .sau-result__text {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 17px;
  line-height: 2;
}

.sau-result__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sau-result__remaining {
  text-align: center;
  font-size: 12px;
  color: var(--sau-muted);
  margin-top: 12px;
}

.sau-assistant .sau-result__remaining {
  color: rgba(255,255,255,.55);
}

.sau-result__remaining span {
  color: var(--sau-primary);
  font-weight: 700;
}

/* Share Panel داخل الصندوق الداكن */
.sau-assistant .sau-share-panel {
  background: transparent;
  color: #fff;
}

.sau-assistant .sau-share-panel__title {
  color: #fff;
}

.sau-assistant .sau-share-panel__sub {
  color: rgba(220,252,231,.80);
}

/* أزرار النتيجة داخل الصندوق الداكن */
.sau-assistant .sau-btn--primary {
  background: rgba(255,255,255,.95);
  color: #064e3b;
  border: 0;
}

.sau-assistant .sau-btn--primary:hover {
  background: #fff;
}

.sau-assistant .sau-btn--ghost {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.25);
}

.sau-assistant .sau-btn--ghost:hover {
  background: rgba(255,255,255,.20);
}

/* ============================================================
   Share Unlock Panel
   ============================================================ */
.sau-share-panel {
  padding: 28px 20px;
  text-align: center;
  animation: sau-fade-in .35s ease;
}

.sau-share-panel__icon {
  font-size: 48px;
  display: block;
  margin-bottom: 14px;
}

.sau-share-panel__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--sau-ink);
  margin-bottom: 8px;
}

.sau-share-panel__sub {
  font-size: 14px;
  color: var(--sau-muted);
  margin-bottom: 22px;
  line-height: 1.7;
}

.sau-share-panel__btn {
  font-size: 16px;
  padding: 13px 28px;
  border-radius: 14px;
}

.sau-share-panel__timer {
  font-size: 13px;
  color: var(--sau-muted);
  margin-top: 14px;
}

.sau-share-panel__timer b {
  color: var(--sau-primary);
}

/* ============================================================
   Dua List
   ============================================================ */
.sau-dua-list {
  margin: 0 16px 28px;
}

.sau-dua-list__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--sau-ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sau-dua-item {
  background: var(--sau-card);
  border: 1px solid var(--sau-line);
  border-radius: 16px;
  padding: 18px 18px 14px;
  margin-bottom: 12px;
  transition: border-color .2s, box-shadow .2s;
}

.sau-dua-item:hover {
  border-color: var(--sau-primary2);
  box-shadow: 0 4px 16px rgba(15,118,110,.08);
}

.sau-dua-item__num {
  font-size: 11px;
  font-weight: 800;
  color: var(--sau-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sau-dua-item__num span {
  background: var(--sau-soft);
  border-radius: 20px;
  padding: 2px 10px;
}

.sau-dua-item__text {
  font-size: 15px;
  line-height: 2;
  color: var(--sau-ink);
  margin-bottom: 12px;
}

.sau-dua-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.sau-dua-item__tag {
  font-size: 11px;
  color: var(--sau-muted);
  background: var(--sau-goldSoft);
  border-radius: 20px;
  padding: 3px 10px;
}

/* ============================================================
   Occasion Cards (Tabs Panels)
   ============================================================ */
.sau-occasions {
  margin: 0 16px 28px;
}

.sau-occasions__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sau-occasions__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--sau-ink);
}

.sau-occasion-panels .sau-panel {
  display: none;
}

.sau-occasion-panels .sau-panel.active {
  display: block;
  animation: sau-fade-in .3s ease;
}

.sau-occasion-card {
  background: var(--sau-card);
  border: 1px solid var(--sau-line);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.sau-occasion-card__head {
  background: linear-gradient(135deg, var(--sau-soft), #d1fae5);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sau-line);
}

.sau-occasion-card__label {
  font-size: 14px;
  font-weight: 800;
  color: var(--sau-primary);
}

.sau-occasion-card__count {
  font-size: 11px;
  background: var(--sau-primary);
  color: #fff;
  border-radius: 20px;
  padding: 2px 10px;
}

.sau-occasion-card__body {
  padding: 14px 18px;
}

.sau-occasion-card__item {
  font-size: 14px;
  line-height: 1.9;
  color: var(--sau-ink);
  padding: 8px 0;
  border-bottom: 1px dashed var(--sau-line);
}

.sau-occasion-card__item:last-child {
  border-bottom: none;
}

/* ============================================================
   Article Content Block
   ============================================================ */
.sau-article-block {
  /* margin مثل الأحلام: 12px 0 0 — بدون هوامش جانبية */
  margin: 12px 0 0;
  background: var(--sau-card);
  border-radius: var(--sau-radius);
  /* padding مثل الأحلام: 14px */
  padding: 14px;
  border: 1px solid var(--sau-line);
  box-shadow: var(--sau-shadow-sm);
  scroll-margin-top: 80px;
}

.sau-article-block h2 {
  /* font-size مثل الأحلام: 18px */
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  color: var(--sau-ink) !important;
  margin: 0 0 10px !important;
  letter-spacing: -.4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sau-soft);
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.sau-article-block h2:first-child {
  margin-top: 0 !important;
}

.sau-article-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--sau-primary);
  margin: 18px 0 10px;
}

.sau-article-block p {
  /* font-size مثل الأحلام: 16px */
  font-size: 16px;
  line-height: 1.9;
  color: var(--sau-ink);
  margin-bottom: 14px;
}

.sau-article-block ul,
.sau-article-block ol {
  /* padding-right مثل الأحلام */
  padding: 0 20px 0 0;
  margin: 0 0 14px;
  list-style: disc;
}

.sau-article-block li {
  /* font-size مثل الأحلام: 16px */
  font-size: 16px;
  line-height: 1.9;
  margin: 9px 0;
  color: var(--sau-ink);
}

/* ============================================================
   FAQ Section
   ============================================================ */
.sau-faq {
  margin: 0 16px 28px;
}

.sau-faq__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--sau-ink);
  margin-bottom: 14px;
}

.sau-faq__item {
  border: 1px solid var(--sau-line);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--sau-card);
}

.sau-faq__q {
  width: 100%;
  padding: 12px 13px;
  /* font-size مثل الأحلام: 16px */
  font-size: 16px;
  font-weight: 800;
  color: var(--sau-ink);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: inherit;
  line-height: 1.5;
  transition: background .2s;
}

.sau-faq__q:hover {
  background: var(--sau-soft);
}

.sau-faq__q[aria-expanded="true"] {
  background: var(--sau-soft);
  color: var(--sau-primary);
}

.sau-faq__icon {
  font-size: 18px;
  flex-shrink: 0;
  transition: transform .25s;
  color: var(--sau-primary);
}

.sau-faq__q[aria-expanded="true"] .sau-faq__icon {
  transform: rotate(180deg);
}

.sau-faq__a {
  padding: 0 13px;
  /* font-size مثل الأحلام: 16px */
  font-size: 16px;
  line-height: 1.85;
  color: var(--sau-muted);
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s;
}

.sau-faq__a.open {
  max-height: 400px;
  padding: 0 13px 13px;
}

/* ============================================================
   Feedback
   ============================================================ */
.sau-feedback {
  margin: 0 16px 28px;
  padding: 20px;
  background: var(--sau-card);
  border: 1px solid var(--sau-line);
  border-radius: 16px;
  text-align: center;
}

.sau-feedback__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--sau-ink);
  margin-bottom: 14px;
}

.sau-feedback__btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sau-feedback__btn {
  padding: 9px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--sau-line);
  background: var(--sau-card);
  color: var(--sau-muted);
  font-family: inherit;
  transition: all .2s;
}

.sau-feedback__btn:hover,
.sau-feedback__btn.active {
  border-color: var(--sau-primary);
  color: var(--sau-primary);
  background: var(--sau-soft);
}

.sau-feedback__thanks {
  font-size: 14px;
  color: var(--sau-primary);
  font-weight: 700;
  animation: sau-fade-in .4s ease;
}

/* ============================================================
   Related Articles
   ============================================================ */
.sau-related {
  margin: 0 16px 28px;
}

.sau-related__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--sau-ink);
  margin-bottom: 14px;
}

.sau-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.sau-related__card {
  display: flex;
  gap: 12px;
  background: var(--sau-card);
  border: 1px solid var(--sau-line);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  color: var(--sau-ink);
  transition: border-color .2s, box-shadow .2s;
}

.sau-related__card:hover {
  border-color: var(--sau-primary2);
  box-shadow: 0 4px 16px rgba(15,118,110,.1);
}

.sau-related__img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.sau-related__img-placeholder {
  width: 68px;
  height: 68px;
  background: var(--sau-soft);
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.sau-related__info {
  flex: 1;
  min-width: 0;
}

.sau-related__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sau-related__meta {
  font-size: 11px;
  color: var(--sau-muted);
  margin-top: 5px;
}

/* ============================================================
   Sticky CTA
   ============================================================ */
/* تم نقل تعريف .sau-sticky-cta الصحيح (sticky) في الأسفل */

/* ============================================================
   Ads
   ============================================================ */
.sau-ad-wrap {
  margin: 0 16px 20px;
  text-align: center;
}

/* ============================================================
   Utilities
   ============================================================ */
.sau-section-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--sau-ink);
  margin: 0 16px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sau-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--sau-line) 0%, transparent 100%);
  border-radius: 2px;
}

.sau-divider {
  margin: 0 16px 20px;
  border: none;
  border-top: 1px solid var(--sau-line);
}

.sau-hidden { display: none !important; }

/* ============================================================
   Smart Nav Card (sau-card + sau-section-title)
   مثل dsu-card و dsu-section-title في الأحلام
   ============================================================ */
.sau-card {
  /* margin مثل الأحلام: margin-top: 13px بدون هوامش جانبية */
  margin: 13px 0 0;
  background: var(--sau-card);
  border: 1px solid var(--sau-line);
  border-radius: var(--sau-radius);
  /* padding مثل الأحلام: 15px */
  padding: 15px;
  box-shadow: var(--sau-shadow-sm);
}

.sau-section-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--sau-ink);
  margin: 0 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.sau-section-title small {
  font-size: 12px;
  font-weight: 500;
  color: var(--sau-muted);
}

/* Chips row داخل الكارد */
.sau-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

/* Tab panels — نقاط تظهر عند الضغط على الـ chip */
.sau-tab-panel {
  display: none;
  margin-top: 12px;
  background: #f4faf9;
  border: 1px solid var(--sau-line);
  border-radius: 17px;
  padding: 12px;
  animation: sau-fade-in .22s ease;
}

.sau-tab-panel.active {
  display: block;
}

.sau-tab-panel ul {
  /* padding-right مثل الأحلام */
  padding: 0 18px 0 0;
  margin: 6px 0 0;
  list-style: disc;
}

.sau-tab-panel ul li {
  /* مثل الأحلام: margin+font+line-height */
  margin: 7px 0;
  font-size: 16px;
  color: #1c3835;
  line-height: 1.85;
  /* نزيل pseudo-element القديم */
  position: static;
  padding: 0;
  border-bottom: none;
}

.sau-tab-panel ul li::before {
  display: none;
}

.sau-tab-panel ul li:last-child {
  border-bottom: none;
}

/* ============================================================
   Detail Cards Grid
   مثل dsu-details-grid و dsu-detail-card في الأحلام
   ============================================================ */
.sau-details-grid {
  /* gap مثل الأحلام */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sau-detail-card {
  display: block;
  background: var(--sau-card);
  border: 1px solid var(--sau-line);
  border-radius: 18px;
  /* padding مثل الأحلام: 13px 12px */
  padding: 13px 12px;
  text-decoration: none;
  color: var(--sau-ink);
  min-height: 64px;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.sau-detail-card:hover {
  border-color: var(--sau-primary2);
  box-shadow: 0 4px 16px rgba(15,118,110,.1);
  transform: translateY(-2px);
}

.sau-detail-card b {
  display: block;
  /* font-size مثل الأحلام */
  font-size: 15px;
  font-weight: 800;
  color: var(--sau-primary);
  margin-bottom: 5px;
  line-height: 1.4;
}

.sau-detail-card span {
  /* font-size مثل الأحلام */
  font-size: 13px;
  color: var(--sau-muted);
  line-height: 1.45;
  display: block;
}

/* ============================================================
   Featured Image (بعد Detail Cards — مثل الأحلام)
   ============================================================ */
.sau-feat-img {
  /* margin مثل الأحلام: 13px 0 0 */
  margin: 13px 0 0;
  border-radius: var(--sau-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e8f5f3;
  box-shadow: var(--sau-shadow);
  position: relative;
  display: block;
}

.sau-feat-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sau-feat-img-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12,74,66,.6);
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   Sticky CTA — آخر المقال — مثل .dsu-sticky-cta في الأحلام بالضبط
   ============================================================ */
.sau-sticky-cta {
  position: sticky;
  bottom: 10px;
  z-index: 40;
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--sau-line);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(12,74,66,.20);
  margin-top: 14px;
}

.sau-sticky-cta a,
.sau-sticky-cta button {
  flex: 1;
  border: 0;
  border-radius: 15px;
  padding: 10px 8px;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  display: block;
  transition: opacity .15s;
  line-height: 1.4;
}

.sau-sticky-cta a.sau-btn--primary {
  background: var(--sau-primary);
  color: #fff !important;
}

.sau-sticky-cta a.sau-btn--primary:hover { opacity: .92; }

.sau-sticky-cta button.sau-btn--gold {
  background: var(--sau-goldSoft);
  color: var(--sau-gold);
}

.sau-sticky-cta button.sau-btn--gold:hover { background: #fef3c7; }


@media (max-width: 600px) {
  .sau-hero { padding: 36px 16px 28px; }

  /* حواف الجوال — نفس سلوك قسم التفسير (.dsu-wrap @600px) */
  .sau-root {
    margin-inline: -8px;
    width: calc(100% + 16px);
    box-sizing: border-box;
    overflow-x: hidden;
    /* نُصغّر زوايا كل الكروت إلى 16px زي الأحلام */
    --sau-radius: 16px;
  }

  /* بدون هوامش جانبية على الكروت — زي الأحلام تماماً */
  .sau-main-dua, .sau-dua-list, .sau-assistant,
  .sau-faq, .sau-feedback, .sau-related { margin-left: 0; margin-right: 0; }

  .sau-related__grid { grid-template-columns: 1fr; }
  .sau-primary-btn { font-size: 15px; }
  .sau-meta { grid-template-columns: 1fr 1fr; }

  /* Detail Cards — عمود واحد على الموبايل */
  .sau-details-grid { grid-template-columns: 1fr 1fr; }

  /* ── نص المقال على الموبايل (+4px مثل الأحلام) ── */
  .sau-article-block li     { font-size: 20px; line-height: 2.1; }
  .sau-tab-panel ul li      { font-size: 20px; line-height: 2.1; }
  .sau-article-block p      { font-size: 18px; line-height: 2.0; }
  .sau-section-title        { font-size: 20px; }
  .sau-article-block h2     { font-size: 21px !important; }

  /* ── FAQ على الموبايل ── */
  .sau-faq__q               { font-size: 18px; }
  .sau-faq__a               { font-size: 18px; }

  /* ── Sticky CTA على الموبايل ── */
  .sau-sticky-cta       { gap: 6px; }
}

/* ديسك توب — 3 أعمدة مثل الأحلام */
@media (min-width: 900px) {
  .sau-details-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── روابط <a> — تأثيرات حركية لكل الأقسام ── */
@keyframes sau-link-glow {
  0%,100% { text-shadow: 0 0 6px rgba(15,118,110,.0); }
  50%      { text-shadow: 0 0 12px rgba(15,118,110,.5); }
}

.sau-tab-panel li a,
.sau-faq__a a,
.sau-article-block a {
  color: var(--sau-primary);
  font-weight: 800;
  text-decoration: none;
  background-image: linear-gradient(var(--sau-primary2), var(--sau-primary2));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: right bottom;
  padding-bottom: 1px;
  transition: background-size .35s ease, color .22s, transform .18s;
  display: inline;
}
.sau-tab-panel li a:hover,
.sau-faq__a a:hover,
.sau-article-block a:hover {
  color: var(--sau-gold);
  background-size: 100% 2px;
  background-position: left bottom;
  transform: translateY(-1px);
  animation: sau-link-glow 1.2s ease infinite;
}


/* ══════════════════════════════════════════════════════
   LIMIT REACHED — كارت الحد اليومي + countdown (الأدعية)
══════════════════════════════════════════════════════ */
.sau-limit-card{
    text-align:center;
    padding:14px 12px 12px;
    background:linear-gradient(135deg,#fbf2dd 0%,#fff 100%);
    border:1px solid var(--sau-line);
    border-radius:18px;
    direction:rtl;
    line-height:1.7;
    margin:0 0 14px;
    box-shadow:0 10px 24px rgba(28,23,16,.07);
}
.sau-limit-icon{ font-size:40px;line-height:1;margin-bottom:6px; }
.sau-limit-title{
    font-size:17px;font-weight:800;color:var(--sau-ink);
    margin:0 0 8px;letter-spacing:-.2px;
}
.sau-limit-text{
    font-size:14px;color:var(--sau-muted);
    margin:0 0 12px;line-height:1.85;
}
.sau-limit-countdown{
    display:flex;flex-direction:column;align-items:center;gap:4px;
    background:#fff;border:1px solid var(--sau-line);
    border-radius:14px;padding:11px 13px;
    margin:0 auto;max-width:320px;
    box-shadow:0 6px 16px rgba(28,23,16,.06);
}
.sau-limit-countdown-label{ font-size:13px;color:var(--sau-muted); }
.sau-limit-countdown-value{
    font-size:27px;font-weight:900;
    color:var(--sau-primary);
    font-variant-numeric:tabular-nums;letter-spacing:1px;
    text-shadow:0 2px 12px rgba(15,118,110,.18);
}

/* countdown داخل لوحة المشاركة */
.sau-share-countdown{
    display:flex;flex-direction:column;align-items:center;gap:4px;
    background:rgba(255,255,255,.55);
    border:1px solid var(--sau-line);
    border-radius:12px;padding:10px 12px;
    margin:10px auto 14px;max-width:300px;
}
.sau-share-countdown-label{ font-size:12.5px;color:var(--sau-muted); }
.sau-share-countdown-value{
    font-size:22px;font-weight:900;color:var(--sau-primary);
    font-variant-numeric:tabular-nums;letter-spacing:1px;
}

@media(max-width:540px){
    .sau-limit-title{font-size:15.5px;}
    .sau-limit-text{font-size:13px;}
    .sau-limit-countdown-value{font-size:23px;}
    .sau-share-countdown-value{font-size:20px;}
}
