/**
 * frequency-ui.css — تصميم قسم الترددات 📡
 * نفس متغيرات قسم الأحلام والأدعية
 */

/* ══════════════════════════════════════
   Variables
   ══════════════════════════════════════ */
.fau-root {
    --fau-bg:       #f4f7fb;
    --fau-card:     #ffffff;
    --fau-ink:      #111827;
    --fau-muted:    #6b7280;
    --fau-line:     #dce5f2;
    --fau-primary:  #2563eb;
    --fau-primary2: #06b6d4;
    --fau-dark:     #0f172a;
    --fau-soft:     #eaf2ff;
    --fau-good:     #edfdf5;
    --fau-goodText: #146c43;
    --fau-warn:     #fff7df;
    --fau-warnText: #7a5700;
    --fau-shadow:   0 14px 34px rgba(28,55,105,.11);
    --fau-radius:   20px;

    /* نفس خط قسم الأحلام — يرث var(--font) المعرّف في style.css */
    font-family: var(--font, Arial, Tahoma, sans-serif);
    font-size: inherit;
    font-weight: 700;
    line-height: 1.75;
    color: var(--fau-ink);
    direction: rtl;
}

/* ══════════════════════════════════════
   Root & Layout
   ══════════════════════════════════════ */
.fau-root {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 0 60px;
}

/* ══════════════════════════════════════
   Cards
   ══════════════════════════════════════ */
.fau-card {
    background: var(--fau-card);
    border: 1px solid var(--fau-line);
    border-radius: var(--fau-radius);
    box-shadow: var(--fau-shadow);
    padding: 16px;
    margin-top: 14px;
}

.fau-section-title {
    margin: 0 0 12px;
    font-size: 17px;
    letter-spacing: -.3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #10203f;
}
.fau-section-title small {
    font-size: 12px;
    color: var(--fau-muted);
    font-weight: 600;
}

/* ══════════════════════════════════════
   Hero
   ══════════════════════════════════════ */
.fau-hero {
    background: radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 34%),
                linear-gradient(160deg, #111827 0%, #1d4ed8 58%, #06b6d4 100%);
    color: #fff;
    border-radius: 26px;
    padding: 20px 18px 18px;
    box-shadow: var(--fau-shadow);
    overflow: hidden;
    position: relative;
    margin-top: 14px;
}
.fau-hero__glow {
    position: absolute;
    inset: auto -35px -55px auto;
    width: 155px;
    height: 155px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    pointer-events: none;
}
.fau-hero__title {
    font-size: 22px;
    line-height: 1.35;
    margin: 0 0 10px;
    letter-spacing: -.5px;
    position: relative;
    z-index: 1;
}
.fau-hero__meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #eaf6ff;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.fau-hero__meta span {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
    padding: 4px 10px;
}
.fau-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 18px;
    padding: 10px 13px;
    color: var(--fau-muted);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    cursor: text;
}
.fau-search-box input {
    border: 0;
    outline: 0;
    width: 100%;
    background: transparent;
    color: var(--fau-ink);
    font-size: 14px;
}
.fau-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════
   Buttons
   ══════════════════════════════════════ */
.fau-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 16px;
    padding: 11px 14px;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: transform .15s, box-shadow .15s;
    text-decoration: none;
    line-height: 1.2;
}
.fau-btn:hover { transform: translateY(-1px); }
.fau-btn--white  { background: #fff; color: #1e40af; box-shadow: 0 12px 22px rgba(0,0,0,.14); }
.fau-btn--outline{ background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25) !important; }
.fau-btn--primary{ background: var(--fau-primary); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.30); }
.fau-btn--soft   { background: var(--fau-soft); color: var(--fau-primary); }

/* ══════════════════════════════════════
   Frequency Card
   ══════════════════════════════════════ */
.fau-freq-card {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--fau-line);
    border-radius: 24px;
    box-shadow: var(--fau-shadow);
    padding: 16px;
    margin-top: 14px;
}
.fau-freq-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.fau-freq-card__title {
    margin: 0;
    font-size: 17px;
    color: #10203f;
    letter-spacing: -.3px;
}
.fau-badge {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.fau-badge--good { background: var(--fau-good); color: var(--fau-goodText); border: 1px solid #c8f2dd; }
.fau-badge--warn { background: var(--fau-warn); color: var(--fau-warnText); border: 1px solid #f3df9f; }
.fau-badge--new  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.fau-freq-number {
    background: linear-gradient(135deg, #10203f, #2563eb);
    color: #fff;
    border-radius: 20px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 16px 30px rgba(37,99,235,.22);
}
.fau-freq-number small {
    display: block;
    opacity: .85;
    margin-bottom: 3px;
    font-size: 12px;
}
.fau-freq-number strong {
    display: block;
    font-size: 42px;
    letter-spacing: 3px;
    line-height: 1.1;
    font-weight: 900;
}
.fau-freq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.fau-freq-mini {
    background: #fff;
    border: 1px solid var(--fau-line);
    border-radius: 14px;
    padding: 9px;
    text-align: center;
}
.fau-freq-mini small { display: block; color: var(--fau-muted); font-size: 11px; }
.fau-freq-mini b    { font-size: 13px; color: #18253c; }
.fau-copy-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

/* ══════════════════════════════════════
   Notices
   ══════════════════════════════════════ */
.fau-notice {
    border-radius: 18px;
    padding: 13px 14px;
    font-size: 13.5px;
    margin-top: 12px;
}
.fau-notice strong {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
    font-size: 14px;
}
.fau-notice--warn { background: var(--fau-warn); color: var(--fau-warnText); border: 1px solid #f3df9f; }
.fau-notice--good { background: var(--fau-good); color: var(--fau-goodText); border: 1px solid #cdeed9; }

/* ══════════════════════════════════════
   Facts Grid
   ══════════════════════════════════════ */
.fau-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.fau-fact {
    background: #fbfdff;
    border: 1px solid var(--fau-line);
    border-radius: 14px;
    padding: 11px;
    min-height: 68px;
}
.fau-fact small { display: block; color: var(--fau-muted); font-size: 12px; margin-bottom: 3px; }
.fau-fact b     { font-size: 14px; color: #18253c; }
.fau-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #20bd75;
    margin-left: 5px;
    vertical-align: middle;
}

/* ══════════════════════════════════════
   Chip Tabs
   ══════════════════════════════════════ */
.fau-chip-row {
    display: flex;
    gap: 8px;
    overflow: auto;
    scrollbar-width: none;
    padding-bottom: 3px;
    margin-bottom: 12px;
}
.fau-chip-row::-webkit-scrollbar { display: none; }
.fau-chip {
    flex: 0 0 auto;
    border: 1px solid var(--fau-line);
    background: #fff;
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--fau-ink);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(28,55,105,.06);
    font-size: 13px;
    font-weight: 700;
    transition: all .18s;
}
.fau-chip:hover { background: var(--fau-soft); }
.fau-chip.active {
    background: var(--fau-primary);
    border-color: var(--fau-primary);
    color: #fff;
}
.fau-tab-panel { display: none; }
.fau-tab-panel.active { display: block; }
.fau-tab-panel ul {
    padding: 0 18px 0 0;
    margin: 0;
}
.fau-tab-panel li {
    font-size: 14px;
    color: #41516b;
    margin: 7px 0;
    line-height: 1.6;
}

/* ══════════════════════════════════════
   Checklist
   ══════════════════════════════════════ */
.fau-checklist { display: grid; gap: 8px; }
.fau-check-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid var(--fau-line);
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.fau-check-item input { margin-top: 4px; accent-color: var(--fau-primary); }
.fau-check-item span  { font-size: 14px; color: #344154; }
.fau-check-item.checked {
    background: var(--fau-good);
    border-color: #b3e9cc;
}

/* ══════════════════════════════════════
   Steps
   ══════════════════════════════════════ */
.fau-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    counter-reset: fau-step;
}
.fau-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    background: #fbfdff;
    border: 1px solid var(--fau-line);
    border-radius: 16px;
    padding: 12px;
    counter-increment: fau-step;
}
.fau-step::before {
    content: counter(fau-step);
    width: 30px;
    height: 30px;
    border-radius: 12px;
    background: var(--fau-soft);
    color: var(--fau-primary);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}
.fau-step span { font-size: 14px; color: #41516b; line-height: 1.6; }

/* ══════════════════════════════════════
/* ══════════════════════════════════════
   Detail / Problem Cards — زي dream-article-ui
   ══════════════════════════════════════ */
.fau-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.fau-detail-card {
    border: 1px solid var(--fau-line);
    border-radius: 18px;
    background: #fff;
    padding: 14px 12px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    color: var(--fau-ink);
    transition: transform .18s, box-shadow .18s;
    position: relative;
    overflow: hidden;
}
.fau-detail-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(6,182,212,.06));
    border-radius: 0 18px 0 40px;
    pointer-events: none;
}
.fau-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(28,55,105,.14);
    border-color: var(--fau-primary);
}
.fau-detail-card b {
    font-size: 13.5px;
    color: var(--fau-primary);
    display: block;
    font-weight: 800;
    line-height: 1.4;
}
.fau-detail-card span {
    font-size: 12px;
    color: var(--fau-muted);
    line-height: 1.5;
}


/* ══════════════════════════════════════
   Article Content
   ══════════════════════════════════════ */
.fau-article-block {
    background: #fff;
    border: 1px solid var(--fau-line);
    border-radius: var(--fau-radius);
    padding: 16px;
    margin-top: 12px;
    scroll-margin-top: 80px;
    max-width: 100%;
    overflow-x: clip;
}
.fau-article-block ins.adsbygoogle,
.fau-article-block iframe,
.fau-article-block .ad-slot,
.fau-article-block .ad-wrap {
    max-width: 100% !important;
    display: block;
    margin: 14px auto;
}
.fau-article-block h2 {
    font-size: 18px;
    line-height: 1.45;
    margin: 0 0 10px;
    color: #17223a;
}
.fau-article-block p,
.fau-article-block li {
    font-size: 14px;
    color: #425066;
    line-height: 1.7;
}
.fau-article-block ul,
.fau-article-block ol {
    padding: 0 20px 0 0;
    margin: 8px 0;
}
.fau-article-block table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--fau-line);
}
.fau-article-block th,
.fau-article-block td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--fau-line);
    font-size: 13px;
    text-align: center;
}
.fau-article-block th {
    background: #edf4ff;
    color: #1e3a8a;
    font-weight: 800;
}
.fau-article-block tr:last-child td { border-bottom: 0; }

/* ══════════════════════════════════════
   AI Assistant Box
   ══════════════════════════════════════ */
.fau-assistant {
    background: radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 35%),
                linear-gradient(160deg, #111827, #1d4ed8 58%, #06b6d4);
    color: #fff;
    border-radius: 26px;
    padding: 20px 18px;
    margin-top: 14px;
    box-shadow: 0 18px 42px rgba(37,99,235,.24);
    overflow: hidden;
    position: relative;
}
.fau-assistant__glow {
    position: absolute;
    inset: auto -40px -60px auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}
.fau-assistant__title {
    font-size: 20px;
    margin: 0 0 4px;
    letter-spacing: -.4px;
    position: relative;
    z-index: 1;
}
.fau-assistant__sub {
    margin: 0 0 14px;
    color: #e9f7ff;
    font-size: 13px;
    position: relative;
    z-index: 1;
}
.fau-assistant__selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.fau-assistant select {
    width: 100%;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    padding: 10px 12px;
    outline: 0;
    background: rgba(255,255,255,.14);
    color: #fff;
    font: inherit;
    font-size: 13px;
}
.fau-assistant select option { color: #222; background: #fff; }
.fau-assistant textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    padding: 10px 12px;
    outline: 0;
    background: rgba(255,255,255,.95);
    color: var(--fau-ink);
    font: inherit;
    font-size: 14px;
    min-height: 90px;
    resize: vertical;
    display: block;
    margin-bottom: 12px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}
.fau-primary-btn {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #eaf6ff);
    color: #1d4ed8;
    font-weight: 900;
    font: inherit;
    padding: 13px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0,0,0,.15);
    transition: transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.fau-primary-btn:hover { transform: translateY(-1px); }
.fau-primary-btn:disabled { opacity: .75; cursor: wait; }
.fau-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(30,64,175,.2);
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: fau-spin .7s linear infinite;
}
@keyframes fau-spin { to { transform: rotate(360deg); } }

.fau-result-box {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 16px;
    padding: 14px;
    margin-top: 12px;
    font-size: 14px;
    color: #fff;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
.fau-result-db {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.fau-result-db__icon { font-size: 28px; }
.fau-result-db p  { margin: 0 0 6px; font-size: 14px; }
.fau-result-link {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 6px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}
.fau-result-link:hover { background: rgba(255,255,255,.28); }
.fau-result-ai strong { display: block; margin-bottom: 6px; }
.fau-result-warn  { color: #fef9c3; display: block; }
.fau-result-date  { display: block; margin-top: 8px; opacity: .75; font-size: 12px; }
.fau-result-remaining { display: block; margin-top: 4px; opacity: .70; font-size: 12px; }
.fau-assistant__note {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,.75);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */
.fau-faq-item {
    border: 1px solid var(--fau-line);
    border-radius: 14px;
    background: #fff;
    margin-top: 8px;
    overflow: hidden;
}
.fau-faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 0;
    padding: 13px 14px;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    color: #16233a;
    text-align: right;
    font: inherit;
    transition: background .15s;
}
.fau-faq-q:hover { background: #f8faff; }
.fau-faq-icon {
    transition: transform .25s;
    font-size: 18px;
    color: var(--fau-primary);
    flex-shrink: 0;
}
.fau-faq-item.open .fau-faq-icon { transform: rotate(180deg); }
.fau-faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 14px;
    color: var(--fau-muted);
    font-size: 14px;
    line-height: 1.7;
    transition: max-height .3s ease, padding .2s ease;
}
.fau-faq-item.open .fau-faq-a {
    max-height: 600px;
    padding: 0 14px 14px;
}

/* ══════════════════════════════════════
   Feedback
   ══════════════════════════════════════ */
.fau-feedback {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.fau-feedback-btn {
    border: 1px solid var(--fau-line);
    background: #fff;
    border-radius: 14px;
    padding: 11px;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    color: var(--fau-ink);
    font: inherit;
    transition: background .15s, transform .15s;
}
.fau-feedback-btn:hover { background: var(--fau-soft); transform: translateY(-1px); }
.fau-feedback-btn--active { background: var(--fau-primary) !important; color: #fff !important; border-color: var(--fau-primary) !important; }
.fau-mini-note {
    font-size: 12px;
    color: var(--fau-muted);
    text-align: center;
}

/* ══════════════════════════════════════
   Related
   ══════════════════════════════════════ */
.fau-related-list { display: grid; gap: 9px; }
.fau-related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--fau-line);
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    text-decoration: none;
    color: var(--fau-ink);
    transition: transform .15s, box-shadow .15s;
}
.fau-related-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(28,55,105,.10); }
.fau-thumb {
    width: 50px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eaf2ff, #e8fbff);
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}
.fau-related-item b     { font-size: 13.5px; display: block; }
.fau-related-item small { font-size: 12px; color: var(--fau-muted); }

/* ══════════════════════════════════════
   Sticky CTA
   ══════════════════════════════════════ */
.fau-sticky-cta {
    position: sticky;
    bottom: 10px;
    z-index: 40;
    margin: 16px auto 0;
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border: 1px solid var(--fau-line);
    border-radius: 20px;
    padding: 9px;
    box-shadow: 0 18px 40px rgba(28,55,105,.18);
}
.fau-sticky-btn {
    flex: 1;
    border: 0;
    border-radius: 14px;
    padding: 10px 8px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
    font: inherit;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s;
}
.fau-sticky-btn:hover { transform: translateY(-1px); }
.fau-sticky-btn--primary { background: var(--fau-primary); color: #fff; }
.fau-sticky-btn--soft    { background: var(--fau-soft); color: var(--fau-primary); }

/* ══════════════════════════════════════
   Ad Wrap
   ══════════════════════════════════════ */
.fau-ad-wrap {
    margin: 14px 0;
    text-align: center;
}

/* ══════════════════════════════════════
   Featured Image (بعد اختر المشكلة)
   ══════════════════════════════════════ */
.fau-feat-img {
    margin: 14px 0 0;
    padding: 0;
    border-radius: var(--fau-radius);
    overflow: hidden;
    box-shadow: var(--fau-shadow);
    border: 1px solid var(--fau-line);
    background: #f8fbff;
}
.fau-feat-img-el {
    width: 100%;
    height: auto;
    display: block;
}
.fau-feat-img-cap {
    font-size: 12px;
    color: var(--fau-muted);
    padding: 8px 12px;
    text-align: center;
    border-top: 1px solid var(--fau-line);
}

/* ══════════════════════════════════════
   AI Tool Box — نفس تصميم دريم (أزرق داكن)
   ══════════════════════════════════════ */
.fau-ai-tool {
    background: radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 35%),
                linear-gradient(160deg, #111827, #1d4ed8 58%, #06b6d4);
    color: #fff;
    border-radius: 26px;
    padding: 22px 18px 18px;
    margin-top: 14px;
    box-shadow: 0 18px 42px rgba(37,99,235,.24);
    overflow: hidden;
    position: relative;
}
.fau-ai-tool__header {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}
.fau-ai-tool__badge {
    display: inline-block;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}
.fau-ai-tool__header .fau-ai-tool__title {
    margin: 0 0 6px;
    font-size: 20px;
    letter-spacing: -.4px;
    line-height: 1.35;
}
.fau-ai-tool__header p {
    margin: 0;
    font-size: 13px;
    color: #e0f2ff;
    line-height: 1.6;
}
.fau-ai-tool__selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.fau-ai-tool select {
    width: 100%;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    padding: 10px 12px;
    outline: 0;
    background: rgba(255,255,255,.14);
    color: #fff;
    font: inherit;
    font-size: 13px;
}
.fau-ai-tool select option { color: #222; background: #fff; }
.fau-ai-tool textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    padding: 11px 13px;
    outline: 0;
    background: rgba(255,255,255,.95);
    color: var(--fau-ink);
    font: inherit;
    font-size: 14px;
    min-height: 90px;
    resize: vertical;
    display: block;
    margin-bottom: 12px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    border-radius: 14px;
}
.fau-ai-tool__btn {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #eaf6ff);
    color: #1d4ed8;
    font-weight: 900;
    font: inherit;
    padding: 13px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0,0,0,.15);
    transition: transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    font-size: 15px;
}
.fau-ai-tool__btn:hover  { transform: translateY(-1px); }
.fau-ai-tool__btn:disabled { opacity: .75; cursor: wait; }
.fau-ai-tool__spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(30,64,175,.2);
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: fau-spin .7s linear infinite;
}
.fau-ai-tool__result {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 16px;
    padding: 14px;
    margin-top: 12px;
    font-size: 14px;
    color: #fff;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
.fau-ai-tool__note {
    margin: 12px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,.72);
    text-align: center;
    position: relative;
    z-index: 1;
}
.fau-ai-tool__disabled {
    text-align: center;
    padding: 20px 10px;
    color: rgba(255,255,255,.85);
    position: relative;
    z-index: 1;
}

/* ── Char counter ── */
.fau-char-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -6px 0 12px;
    position: relative;
    z-index: 1;
}
.fau-char-bar-wrap {
    flex: 1;
    height: 5px;
    border-radius: 99px;
    background: rgba(255,255,255,.20);
    overflow: hidden;
}
.fau-char-bar {
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #fff, #bfe0ff);
    transition: width .2s;
}
.fau-char-text {
    font-size: 11px;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
}

/* ── Picker label + pill buttons (أزرار اختيار زي تفسير الأحلام) ── */
.fau-picker-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.92);
    margin: 4px 0 8px;
    position: relative;
    z-index: 1;
}
.fau-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.fau-pill {
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.12);
    color: #fff;
    border-radius: 99px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .12s;
}
.fau-pill:hover { background: rgba(255,255,255,.20); }
.fau-pill.active {
    background: #fff;
    color: #1d4ed8;
    border-color: #fff;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

/* ── عدّاد الاستفسارات اليومية (زي الأحلام/الأدعية) ── */
.fau-remaining-note {
    font-size: 12px;
    color: rgba(255,255,255,.62);
    text-align: center;
    margin: 4px 0 12px;
    position: relative;
    z-index: 1;
}

/* ── Security question row (نفس منطق تفسير الأحلام) ── */
.fau-security-row {
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.fau-field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.92);
    margin-bottom: 8px;
}
.fau-text-input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    padding: 11px 13px;
    outline: 0;
    background: rgba(255,255,255,.95);
    color: var(--fau-ink);
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
}
.fau-text-input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

/* ── Result states ── */
.fau-result-warn { color: #ffe08a; font-weight: 600; }
.fau-result-db { display: flex; gap: 10px; align-items: flex-start; }
.fau-result-db__icon { font-size: 22px; }
.fau-result-link {
    display: inline-block;
    margin-top: 6px;
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
}
.fau-result-ai strong { color: #fff; }
.fau-result-date,
.fau-result-remaining {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255,255,255,.7);
}

/* حواف الجوال — نفس سلوك قسم الأحلام (.dsu-wrap @600px) */
@media (max-width: 600px) {
    /* تعويض padding الكونتينر الخارجي جزئيًا — بدون edge-to-edge كامل */
    .fau-root {
        margin-inline: -8px;
        width: calc(100% + 16px);
        box-sizing: border-box;
        overflow-x: hidden;
    }
    /* نُصغّر border-radius على الجوال قليلًا زي الأحلام */
    .fau-card {
        padding: 10px 9px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .fau-hero__title   { font-size: 19px; }
    .fau-freq-number strong { font-size: 36px; }
    .fau-assistant__selects,
    .fau-ai-tool__selects  { grid-template-columns: 1fr; }
    .fau-freq-grid { grid-template-columns: 1fr 1fr; }
    .fau-freq-mini:last-child { grid-column: 1 / -1; }
    .fau-facts-grid { gap: 7px; }
    .fau-details-grid { gap: 8px; }
}

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

.fau-tab-panel li a,
.fau-faq-a a,
.fau-article-block a {
    color: var(--fau-primary);
    font-weight: 800;
    text-decoration: none;
    background-image: linear-gradient(var(--fau-primary2), var(--fau-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;
}
.fau-tab-panel li a:hover,
.fau-faq-a a:hover,
.fau-article-block a:hover {
    color: var(--fau-dark);
    background-size: 100% 2px;
    background-position: left bottom;
    transform: translateY(-1px);
    animation: fau-link-glow 1.2s ease infinite;
}


/* ══════════════════════════════════════════════════════
   LIMIT REACHED CARD — كارت الحد اليومي للترددات
══════════════════════════════════════════════════════ */
.fau-limit-card{
    text-align:center;
    padding:14px 12px 12px;
    background:linear-gradient(135deg,#eaf2ff 0%,#fff 100%);
    border:1px solid var(--fau-line);
    border-radius:var(--fau-radius);
    direction:rtl;
    line-height:1.7;
    box-shadow:var(--fau-shadow);
}
.fau-limit-icon{
    font-size:40px;line-height:1;margin-bottom:6px;
}
.fau-limit-title{
    font-size:17px;font-weight:800;color:var(--fau-dark);
    margin:0 0 8px;letter-spacing:-.2px;
}
.fau-limit-text{
    font-size:14px;color:var(--fau-muted);
    margin:0 0 12px;line-height:1.85;
}
.fau-limit-countdown{
    display:flex;flex-direction:column;align-items:center;gap:4px;
    background:#fff;border:1px solid var(--fau-line);
    border-radius:14px;padding:11px 13px;
    margin:0 auto;max-width:320px;
    box-shadow:0 6px 16px rgba(28,55,105,.06);
}
.fau-limit-countdown-label{
    font-size:13px;color:var(--fau-muted);
}
.fau-limit-countdown-value{
    font-size:27px;font-weight:900;
    color:var(--fau-primary);
    font-variant-numeric:tabular-nums;letter-spacing:1px;
    text-shadow:0 2px 12px rgba(37,99,235,.18);
}
@media(max-width:540px){
    .fau-limit-title{font-size:15.5px;}
    .fau-limit-text{font-size:13px;}
    .fau-limit-countdown-value{font-size:23px;}
}
