/*
Theme Name:   Glassmorphism PRO
Theme URI:    https://www.alborz-ghaleb.com/glassmorphism-pro
Description:  قالب مستقل و حرفه‌ای سازگار با المنتور — Glassmorphism + Dark Mode + RTL/فارسی + چندزبانه (Polylang) + Schema (سازگار با Rank Math) + بهینه‌سازی Core Web Vitals + WCAG 2.2 AA. کاملاً مستقل (بدون نیاز به قالب مادر) و production-grade.
Author:       m.dasht abadi
Author URI:   https://www.alborz-ghaleb.com
Version:      5.15.21
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  glassmorphism-child-pro
Domain Path:  /languages
Tags:         elementor, dark-mode, multilingual, glassmorphism, rtl-support, custom-colors, threaded-comments, translation-ready, accessibility-ready
*/


/* ════════════════════════════════════════
   CSS CUSTOM PROPERTIES (ROOT VARIABLES)
   ════════════════════════════════════════ */

:root {
    /* Brand Colors */
    --fl-primary:        #2D5F93;
    --fl-primary-dark:   #1B3F63;
    --fl-accent:         #A4B400;
    --fl-accent-hover:   #7C8B00;

    /* Text */
    --fl-text:           #17212B;
    --fl-text-light:     #64748B;
    --fl-white:          #FFFFFF;

    /* Glass */
    --fl-glass-bg:       rgba(255, 255, 255, 0.42);
    --fl-glass-border:   rgba(255, 255, 255, 0.38);
    --fl-glass-blur:     42px;

    /* Shadows */
    --fl-shadow:         0 12px 40px rgba(0, 0, 0, 0.06);

    /* Motion */
    --fl-speed:          0.35s;
    --fl-ease:           cubic-bezier(0.4, 0, 0.2, 1);

    /* Radius */
    --fl-radius:         20px;

    /* Background base */
    --gl-bg-base:        #f0f5fc;
}

/* ════════════════════════════════════════
   RESET
   ════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    color: var(--fl-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: #17212b;
    transition: color var(--fl-speed) var(--fl-ease);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════ */

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    min-height: 60vh;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

/* Elementor: حذف padding اضافه */
.elementor-active .site-main {
    padding: 0;
}

/* ════════════════════════════════════════
   ACCESSIBILITY
   ════════════════════════════════════════ */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

:focus-visible {
    outline: 2px solid var(--fl-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ════════════════════════════════════════
   PRINT
   ════════════════════════════════════════ */

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .fl-header-group,
    .fl-footer,
    .fl-floating-buttons,
    #fl-fab-call,
    #fl-fab-social,
    .fl-dark-toggle {
        display: none !important;
    }
}

/* ════════════════════════════════════════
   CTA BUTTONS & AUTH PROMPT (global)
   دکمه‌های ثبت آگهی + ورود/ثبت‌نام و جعبه هوشمند
   ════════════════════════════════════════ */
.glass-cta-buttons { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.glass-cta-buttons--block { display: flex; width: 100%; }
.glass-cta-buttons--block .glass-cta-btn { flex: 1; }
.glass-cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 20px; border-radius: 11px; font-size: 0.86rem; font-weight: 700;
    text-decoration: none; transition: all 0.25s ease; white-space: nowrap; cursor: pointer;
    line-height: 1.2;
}
.glass-cta-btn svg { flex-shrink: 0; }
.glass-cta-btn--primary { background: var(--fl-primary, #2D5F93) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(45,95,147,0.2); }
.glass-cta-btn--primary:hover { background: var(--fl-primary-dark, #1B3F63) !important; transform: translateY(-2px); color:#fff !important; }
.glass-cta-btn--ghost { background: transparent; color: var(--fl-primary, #2D5F93) !important; border: 1.5px solid rgba(45,95,147,0.35); }
.glass-cta-btn--ghost:hover { background: rgba(45,95,147,0.08); transform: translateY(-2px); color: var(--fl-primary-dark, #1B3F63) !important; }
/* دارک مود: دکمه primary روشن‌تر و خوانا، ghost با متن روشن */
.dark-mode .glass-cta-btn--primary { background: #38bdf8 !important; color: #0b1220 !important; box-shadow: 0 4px 12px rgba(56,189,248,0.25); }
.dark-mode .glass-cta-btn--primary:hover { background: #7dd3fc !important; color: #0b1220 !important; }
.dark-mode .glass-cta-btn--ghost { color: #cbe6ff !important; border-color: rgba(147,197,253,0.5); }
.dark-mode .glass-cta-btn--ghost:hover { background: rgba(147,197,253,0.12); color: #fff !important; }

.glass-auth-prompt {
    display: flex; align-items: center; gap: 16px; padding: 16px 18px;
    border-radius: 14px; margin-bottom: 22px;
}
.glass-auth-prompt--out { background: linear-gradient(135deg, rgba(164,180,0,0.10), rgba(45,95,147,0.08)); border: 1px solid rgba(45,95,147,0.18); }
.glass-auth-prompt--in { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); }
.glass-auth-prompt-ico {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--fl-primary, #2D5F93); box-shadow: 0 4px 12px rgba(45,95,147,0.15);
}
.glass-auth-prompt--in .glass-auth-prompt-ico { color: #10b981; }
.glass-auth-prompt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.glass-auth-prompt-txt strong { font-size: 0.95rem; color: var(--fl-text, #17212B); }
.glass-auth-prompt-txt span { font-size: 0.8rem; line-height: 1.7; color: var(--fl-text-light, #64748B); }
.glass-auth-prompt-txt b { color: var(--fl-primary, #2D5F93); }
.glass-auth-prompt-btn { flex-shrink: 0; }
.dark-mode .glass-auth-prompt--out { background: linear-gradient(135deg, rgba(196,214,0,0.08), rgba(56,189,248,0.06)); border-color: rgba(255,255,255,0.1); }
.dark-mode .glass-auth-prompt--in { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.25); }
.dark-mode .glass-auth-prompt-ico { background: rgba(15,23,42,0.8); }
.dark-mode .glass-auth-prompt-txt strong { color: #f1f5f9; }
.dark-mode .glass-auth-prompt-txt span { color: #94a3b8; }
.dark-mode .glass-auth-prompt-txt b { color: #93c5fd; }

@media (max-width: 600px) {
    .glass-auth-prompt { flex-direction: column; text-align: center; }
    .glass-auth-prompt-txt { text-align: center; }
    .glass-auth-prompt-btn { width: 100%; }
    .glass-cta-buttons { width: 100%; }
    .glass-cta-buttons .glass-cta-btn { flex: 1; }
}

/* ════════════════════════════════════════
   GLOBAL MOTION SAFETY (prefers-reduced-motion)
   احترام به ترجیح کاربر برای کاهش حرکت — سراسری.
   ════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ════════════════════════════════════════
   IMAGE/MEDIA CLS SAFETY
   جلوگیری از پرش چیدمان هنگام بارگذاری تصاویر.
   ════════════════════════════════════════ */
img,
iframe {
    height: auto;
}
img[width][height] {
    height: auto;
}

/* [SEO FIX v5.15.3] عادی‌سازی وزن انکر تکست‌های عمومی */
/* [SEO FIX v5.15.20] فهرست کامل شد: تمام لینک/دکمه‌های متنیِ عمومی و صفحه‌بندی‌ها
   در همهٔ زبان‌ها (مشاهده/View/عرض/Görüntüle/Просмотр، بعدی/قبلی/التالي/السابق/
   следующая/предыдущая، مطالعه مقاله/Read article/Makaleyi oku/بیشتر بخوانید و …) */
.fl-blog-more,
.fl-blog-more *,
.fl-sb-nav-btn,
.fl-sp-rel-more,
.fl-sp-rel-more *,
.glass-ads-btn,
.glass-dash-btn,
.glass-ads-arrow,
.fl-pf-more,
.fl-pf-more *,
.fl-pf-pagi a,
.fl-pf-pagi span,
.fl-pagination a,
.fl-pagination span,
.gs-card__view-btn,
.gs-card__view-btn *,
.gs-pagination .page-numbers,
.blog-pagination-btn,
.blog-pagination-btn *,
.blog-pagination-num {
    font-weight: 400 !important;
}

/* [UI CONTRAST FIX v5.15.12] حل کامل مشکل ناخوانایی ستون انتخاب شهر در تمامی صفحات دست‌دوم (آرشیو، تکی و کشوی موبایل) */
.fl-city-list li a,
.fl-sp-city-list li a,
.fl-drawer-list li a {
    color: #1e293b !important;
}
.fl-city-list .sub-menu li a,
.fl-sp-city-list .sub-menu li a,
.fl-drawer-list .sub-menu li a {
    color: #475569 !important;
}

html.dark-mode .fl-city-list li a,
html.dark-mode .fl-sp-city-list li a,
html.dark-mode .fl-drawer-list li a,
.dark-mode .fl-city-list li a,
.dark-mode .fl-sp-city-list li a,
.dark-mode .fl-drawer-list li a {
    color: #f1f5f9 !important;
}
html.dark-mode .fl-city-list .sub-menu li a,
html.dark-mode .fl-sp-city-list .sub-menu li a,
html.dark-mode .fl-drawer-list .sub-menu li a,
.dark-mode .fl-city-list .sub-menu li a,
.dark-mode .fl-sp-city-list .sub-menu li a,
.dark-mode .fl-drawer-list .sub-menu li a {
    color: #94a3b8 !important;
}
/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENTOR CONTENT FORMATTING (.agh-*) — Cleaned & Dark Mode WCAG AA Ready
   استایل‌های بارگذاری محتوا در المنتور — مرتب‌شده و مجهز به خوانایی عالی در دارک‌مود
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── BASE CONTAINER ─── */
.agh-sec {
    font-family: 'Vazirmatn', -apple-system, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.9;
    color: var(--fl-text, #17212B);
    margin: 0 auto 28px;
    max-width: 1080px;
}

.agh-glass {
    background: var(--fl-glass-bg, rgba(255, 255, 255, 0.42));
    border: 1px solid var(--fl-glass-border, rgba(255, 255, 255, 0.38));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--fl-radius, 20px);
    box-shadow: var(--fl-shadow, 0 12px 40px rgba(0, 0, 0, 0.06));
    padding: 28px;
}

/* ─── HEADINGS & TEXT ─── */
.agh-sec h2 { color: var(--fl-primary-dark, #1B3F63); font-size: 1.65rem; margin: 0 0 16px; font-weight: 700; }
.agh-sec h3 { color: var(--fl-primary, #2D5F93); font-size: 1.25rem; margin: 24px 0 10px; font-weight: 600; }
.agh-sec h4 { color: var(--fl-primary-dark, #1B3F63); font-size: 1.05rem; margin: 18px 0 8px; font-weight: 600; }
.agh-sec p  { margin: 0 0 14px; }
.agh-sec a  { color: var(--fl-primary, #2D5F93); font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
.agh-sec a:hover { color: var(--fl-accent-hover, #7C8B00); }

/* ─── LISTS ─── */
.agh-list { padding-right: 20px; margin: 0 0 14px; list-style-type: disc; }
.agh-list li { margin-bottom: 10px; }

/* ─── BADGE ─── */
.agh-badge {
    display: inline-block;
    background: rgba(164, 180, 0, 0.14);
    color: #5d6600;
    border: 1px solid rgba(164, 180, 0, 0.35);
    border-radius: 30px;
    padding: 4px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ─── BUTTONS ─── */
.agh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fl-primary, #2D5F93);
    color: #ffffff !important;
    padding: 12px 26px;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 6px 4px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(45, 95, 147, 0.25);
}
.agh-btn:hover { background: var(--fl-primary-dark, #1B3F63); transform: translateY(-2px); color: #ffffff !important; }

.agh-btn--accent { background: var(--fl-accent, #A4B400); color: #17212b !important; box-shadow: 0 4px 14px rgba(164, 180, 0, 0.25); }
.agh-btn--accent:hover { background: var(--fl-accent-hover, #7C8B00); color: #ffffff !important; }

.agh-btn--wa { background: #25D366; color: #ffffff !important; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25); }
.agh-btn--wa:hover { background: #1da851; color: #ffffff !important; }

/* ─── GRIDS & CARDS (.agh-grid) ─── */
.agh-grid { display: grid !important; gap: 20px !important; width: 100% !important; }
.agh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.agh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.agh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

@media (max-width: 1024px) {
    .agh-grid--3, .agh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

.agh-card {
    background: var(--fl-glass-bg, rgba(255, 255, 255, 0.42));
    border: 1px solid var(--fl-glass-border, rgba(255, 255, 255, 0.38));
    border-radius: var(--fl-radius, 20px);
    overflow: hidden;
    box-shadow: var(--fl-shadow, 0 12px 40px rgba(0, 0, 0, 0.06));
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.agh-card:hover { transform: translateY(-4px); box-shadow: 0 16px 50px rgba(45, 95, 147, 0.2); }
.agh-card img { width: 100%; height: 160px; object-fit: cover; display: block; }

.agh-card__body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.agh-card__body h3 { font-size: 1rem; font-weight: 700; color: var(--fl-primary-dark, #1B3F63); margin: 0 0 8px; text-align: center; }
.agh-card__body p  { font-size: 0.85rem; color: var(--fl-text-light, #64748B); flex: 1; text-align: center; margin: 0; }
.agh-card .agh-btn { width: 100%; justify-content: center; padding: 10px 16px; font-size: 0.9rem; margin: 12px 0 0; }

/* ─── TABLES ─── */
.agh-table-wrap { overflow-x: auto; border-radius: var(--fl-radius, 20px); margin: 20px 0; border: 1px solid var(--fl-glass-border, rgba(0,0,0,0.05)); }
.agh-table { width: 100%; border-collapse: collapse; background: var(--fl-glass-bg, rgba(255, 255, 255, 0.6)); font-size: 0.95rem; min-width: 600px; }
.agh-table th { background: var(--fl-primary, #2D5F93); color: #ffffff; padding: 14px 16px; font-weight: 700; text-align: right; }
.agh-table td { padding: 12px 16px; border-bottom: 1px solid rgba(45, 95, 147, 0.12); text-align: right; color: var(--fl-text, #17212b); }
.agh-table tr:nth-child(even) td { background: rgba(45, 95, 147, 0.04); }
.agh-table tr:hover td { background: rgba(45, 95, 147, 0.08); }

/* ─── FAQ ACCORDIONS ─── */
.agh-faq details { background: var(--fl-glass-bg, rgba(255, 255, 255, 0.55)); border: 1px solid var(--fl-glass-border, rgba(45, 95, 147, 0.15)); border-radius: 14px; margin-bottom: 14px; overflow: hidden; transition: border-color 0.25s ease; }
.agh-faq details[open] { border-color: var(--fl-primary, #2D5F93); }
.agh-faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--fl-primary-dark, #1B3F63); list-style: none; transition: background 0.2s ease; }
.agh-faq summary::-webkit-details-marker { display: none; }
.agh-faq summary::before { content: '+'; float: left; font-size: 1.4rem; color: var(--fl-accent, #A4B400); font-weight: 800; line-height: 1; }
.agh-faq details[open] summary::before { content: '−'; }
.agh-faq .agh-faq__a { padding: 0 22px 18px; color: var(--fl-text-light, #475569); line-height: 1.8; }

/* ─── CTA BAND ─── */
.agh-cta-band { background: linear-gradient(135deg, var(--fl-primary, #2D5F93), var(--fl-primary-dark, #1B3F63)); border-radius: var(--fl-radius, 20px); padding: 40px 32px; text-align: center; color: #ffffff; box-shadow: 0 12px 36px rgba(45, 95, 147, 0.3); }
.agh-cta-band h2 { color: #ffffff; margin-bottom: 12px; }
.agh-cta-band p  { color: rgba(255, 255, 255, 0.88); margin-bottom: 16px; }
.agh-cta-band .agh-btn { background: #ffffff; color: var(--fl-primary, #2D5F93) !important; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.agh-cta-band .agh-btn:hover { background: rgba(255, 255, 255, 0.92); transform: translateY(-2px); }

/* ─── HIGHLIGHT BOXES & FORMULAS ─── */
.agh-formula { background: rgba(45, 95, 147, 0.07); border: 1px dashed var(--fl-primary, #2D5F93); border-radius: 14px; padding: 18px 22px; margin: 16px 0; font-size: 0.95rem; line-height: 1.8; color: var(--fl-text, #17212b); }
.agh-formula strong { color: var(--fl-primary-dark, #1B3F63); }

.agh-highlight { background: linear-gradient(135deg, rgba(164, 180, 0, 0.12), rgba(45, 95, 147, 0.05)); border-right: 4px solid #A4B400; padding: 16px 20px; margin: 20px 0; border-radius: 0 12px 12px 0; color: var(--fl-text, #17212b); }
.agh-warning   { background: rgba(239, 68, 68, 0.08); border-right: 4px solid #dc2626; padding: 16px 20px; margin: 20px 0; border-radius: 0 12px 12px 0; color: var(--fl-text, #17212b); }
.agh-info      { background: rgba(59, 130, 246, 0.08); border-right: 4px solid #3b82f6; padding: 16px 20px; margin: 20px 0; border-radius: 0 12px 12px 0; color: var(--fl-text, #17212b); }

/* ─── STEPS ─── */
.agh-step { display: flex; align-items: flex-start; gap: 16px; margin: 16px 0; padding: 18px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--fl-glass-border, rgba(0,0,0,0.05)); border-radius: 16px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); transition: transform 0.25s ease; }
.agh-step:hover { transform: translateX(-4px); }
.agh-step-num { background: var(--fl-primary, #2D5F93); color: #ffffff; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; box-shadow: 0 4px 12px rgba(45, 95, 147, 0.3); }
.agh-step-content { flex: 1; }
.agh-step-content h4 { margin: 0 0 6px; color: var(--fl-primary-dark, #1B3F63); font-size: 1.05rem; }
.agh-step-content p  { margin: 0; color: var(--fl-text-light, #64748B); font-size: 0.92rem; }


/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES (html.dark-mode .agh-*) — 100% Crisp WCAG AA Contrast
   ═══════════════════════════════════════════════════════════════════════════ */

html.dark-mode .agh-sec,
.dark-mode .agh-sec {
    color: #f1f5f9;
}

html.dark-mode .agh-glass,
.dark-mode .agh-glass {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

html.dark-mode .agh-sec h2, .dark-mode .agh-sec h2 { color: #93c5fd; }
html.dark-mode .agh-sec h3, .dark-mode .agh-sec h3 { color: #60a5fa; }
html.dark-mode .agh-sec h4, .dark-mode .agh-sec h4 { color: #93c5fd; }
html.dark-mode .agh-sec a,  .dark-mode .agh-sec a  { color: #38bdf8; }
html.dark-mode .agh-sec a:hover, .dark-mode .agh-sec a:hover { color: #c4d600; }

html.dark-mode .agh-badge, .dark-mode .agh-badge {
    background: rgba(196, 214, 0, 0.15);
    color: #d9ec00;
    border-color: rgba(196, 214, 0, 0.45);
}

html.dark-mode .agh-btn, .dark-mode .agh-btn,
html.dark-mode .elementor-button, .dark-mode .elementor-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(147, 197, 253, 0.45) !important;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}
html.dark-mode .agh-btn:hover, .dark-mode .agh-btn:hover,
html.dark-mode .elementor-button:hover, .dark-mode .elementor-button:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

html.dark-mode .agh-btn--accent, .dark-mode .agh-btn--accent {
    background: #c4d600 !important;
    color: #0b1220 !important;
    box-shadow: 0 4px 16px rgba(196, 214, 0, 0.3);
}
html.dark-mode .agh-btn--accent:hover, .dark-mode .agh-btn--accent:hover {
    background: #e2f500 !important;
    color: #0b1220 !important;
}

html.dark-mode .agh-card, .dark-mode .agh-card {
    background: rgba(15, 23, 42, 0.80);
    border-color: rgba(255, 255, 255, 0.10);
}
html.dark-mode .agh-card:hover, .dark-mode .agh-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}
html.dark-mode .agh-card__body h3, .dark-mode .agh-card__body h3 { color: #f1f5f9; }
html.dark-mode .agh-card__body p,  .dark-mode .agh-card__body p  { color: #cbd5e1; }

html.dark-mode .agh-table, .dark-mode .agh-table {
    background: rgba(15, 23, 42, 0.85);
}
html.dark-mode .agh-table th, .dark-mode .agh-table th {
    background: #1e3a8a;
    color: #f8fafc;
    border-bottom: 2px solid #3b82f6;
}
html.dark-mode .agh-table td, .dark-mode .agh-table td {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}
html.dark-mode .agh-table tr:nth-child(even) td, .dark-mode .agh-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.03);
}
html.dark-mode .agh-table tr:hover td, .dark-mode .agh-table tr:hover td {
    background: rgba(96, 165, 250, 0.12);
}

html.dark-mode .agh-faq details, .dark-mode .agh-faq details {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(255, 255, 255, 0.10);
}
html.dark-mode .agh-faq details[open], .dark-mode .agh-faq details[open] {
    border-color: #60a5fa;
}
html.dark-mode .agh-faq summary, .dark-mode .agh-faq summary {
    color: #f1f5f9;
}
html.dark-mode .agh-faq .agh-faq__a, .dark-mode .agh-faq .agh-faq__a {
    color: #cbd5e1;
}

html.dark-mode .agh-cta-band, .dark-mode .agh-cta-band {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    border: 1px solid rgba(96, 165, 250, 0.25);
}
html.dark-mode .agh-cta-band .agh-btn, .dark-mode .agh-cta-band .agh-btn {
    background: #38bdf8 !important;
    color: #0b1220 !important;
}

html.dark-mode .agh-formula, .dark-mode .agh-formula {
    background: rgba(30, 58, 138, 0.20);
    border-color: #60a5fa;
    color: #e2e8f0;
}
html.dark-mode .agh-formula strong, .dark-mode .agh-formula strong { color: #93c5fd; }

html.dark-mode .agh-highlight, .dark-mode .agh-highlight { background: rgba(196, 214, 0, 0.08); color: #f1f5f9; }
html.dark-mode .agh-warning,   .dark-mode .agh-warning   { background: rgba(239, 68, 68, 0.12); color: #f1f5f9; }
html.dark-mode .agh-info,      .dark-mode .agh-info      { background: rgba(59, 130, 246, 0.12); color: #f1f5f9; }

html.dark-mode .agh-step, .dark-mode .agh-step {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}
html.dark-mode .agh-step-num, .dark-mode .agh-step-num {
    background: #38bdf8;
    color: #0b1220;
}
html.dark-mode .agh-step-content h4, .dark-mode .agh-step-content h4 { color: #93c5fd; }
html.dark-mode .agh-step-content p,  .dark-mode .agh-step-content p  { color: #cbd5e1; }

/* ─── RESPONSIVE (≤768px) ─── */
@media (max-width: 768px) {
    .agh-glass { padding: 20px 16px; }
    .agh-sec h2 { font-size: 1.35rem; }
    .agh-grid--2, .agh-grid--3, .agh-grid--4 { grid-template-columns: 1fr !important; }
    .agh-card img { height: 140px; }
    .agh-table { font-size: 0.88rem; }
    .agh-table th, .agh-table td { padding: 10px 12px; }
    .agh-step { padding: 14px; gap: 12px; }
}
