@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #0e7a5f;
    --primary-dark: #0a5f4a;
    --primary-deep: #062e26;
    --primary-light: #e6f4ef;
    --accent: #c9a227;
    --accent-dark: #b08d1e;
    --accent-light: #faf3dd;
    --bg: #f6f8f7;
    --surface: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --danger: #dc2626;
    --success: #059669;
    --warning: #d97706;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.12);
    --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.9;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.5; font-weight: 700; }

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border-radius: 12px; border: 1px solid transparent;
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all .22s ease; line-height: 1.4; position: relative; overflow: hidden;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), #109576); color: #fff; box-shadow: 0 6px 18px rgba(14,122,95,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(14,122,95,.36); color: #fff; }
.btn-accent { background: linear-gradient(135deg, var(--accent), #e0b93f); color: #1f2937; box-shadow: 0 6px 18px rgba(201,162,39,.32); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201,162,39,.42); color: #1f2937; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--primary-dark); }
.btn-ghost-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-2px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 15px 34px; font-size: 16px; border-radius: 14px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: box-shadow .25s ease, transform .25s ease;
}
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* ---------- Forms ---------- */
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.form-control, .form-select, textarea.form-control {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border);
    border-radius: 11px; font-family: inherit; font-size: 14px; background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 122, 95, .12);
}
.form-error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 16px;
    border: 1px solid transparent; box-shadow: var(--shadow-sm);
}
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px;
    border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-muted { background: #f3f4f6; color: #4b5563; }

/* ---------- Progress ---------- */
.progress {
    display: flex; height: 10px; background: #e5e7eb; border-radius: 999px;
    overflow: hidden; direction: ltr;
}
.progress-bar {
    display: block; height: 100%; min-width: 0;
    background: linear-gradient(90deg, var(--primary), #10b981);
    border-radius: 999px; transition: width .8s cubic-bezier(.22,1,.36,1);
}
.progress-neon {
    height: 12px; background: rgba(14, 122, 95, .12);
    box-shadow: inset 0 0 10px rgba(16, 185, 129, .18);
}
.progress-neon .progress-bar {
    background: linear-gradient(90deg, #34d399, #10b981 40%, #a7f3d0 70%, #22d3ee);
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(52, 211, 153, .85), 0 0 22px rgba(34, 211, 238, .45);
    animation: neonBar 2.4s linear infinite;
}
@keyframes neonBar {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ---------- Layout helpers ---------- */
.section { padding: 78px 0; }
.section-alt { background: #fff; }
.section-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-light); color: var(--primary-dark);
    padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.section-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.section-title { font-size: 30px; margin-bottom: 12px; }
.section-title .accent { color: var(--primary); position: relative; }
.section-subtitle { color: var(--text-muted); max-width: 660px; margin: 0 auto 44px; text-align: center; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 24px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .section-title { font-size: 23px; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header .navbar { padding-block: 12px; transition: padding .3s ease; }
.site-header .navbar .container { display: flex; align-items: center; }
.site-header .navbar-brand {
    font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px;
    color: var(--text) !important; transition: color .3s ease;
}
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #14a37d);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 19px; box-shadow: 0 6px 16px rgba(14,122,95,.35);
    transition: transform .3s ease;
}
.navbar-brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { line-height: 1.3; }
.brand-text small { display: block; font-size: 10.5px; font-weight: 500; opacity: .65; }

.site-header .nav-link {
    color: var(--text) !important; font-weight: 600; font-size: 13.5px;
    padding: 8px 13px !important; position: relative; transition: color .25s ease;
}
.site-header .nav-link::after {
    content: ''; position: absolute; bottom: 2px; right: 13px; left: 13px; height: 2.5px;
    background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 99px;
    transform: scaleX(0); transform-origin: right center; transition: transform .28s ease;
}
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--primary-dark) !important; }

/* حالت روی هیرو (فقط صفحه اصلی، قبل از اسکرول) */
.home-page .site-header:not(.is-scrolled) { background: transparent; box-shadow: none; }
.home-page .site-header:not(.is-scrolled) .navbar-brand,
.home-page .site-header:not(.is-scrolled) .nav-link { color: #fff !important; }
.home-page .site-header:not(.is-scrolled) .nav-link:hover,
.home-page .site-header:not(.is-scrolled) .nav-link.active { color: #ffe9a3 !important; }
.home-page .site-header:not(.is-scrolled) .brand-text small { opacity: .8; }

/* حالت اسکرول‌شده / صفحات داخلی */
.site-header.is-scrolled, body:not(.home-page) .site-header {
    background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(15,23,42,.08);
}
.site-header.is-scrolled .navbar { padding-block: 8px; }

.btn-nav-donate {
    background: linear-gradient(135deg, var(--accent), #e0b93f); color: #1f2937 !important;
    font-weight: 700; border-radius: 999px; padding: 10px 22px !important;
    box-shadow: 0 6px 16px rgba(201,162,39,.35); transition: transform .22s ease, box-shadow .22s ease;
}
.btn-nav-donate:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 22px rgba(201,162,39,.45); color: #1f2937 !important; }
.btn-nav-donate::after { display: none !important; }
.navbar-toggler { border: none; padding: 6px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
    width: 1.4em; height: 1.4em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231f2937' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.home-page .site-header:not(.is-scrolled) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 70px); padding-bottom: 120px;
    background: linear-gradient(135deg, #062e26 0%, #0a5f4a 38%, #0e7a5f 68%, #129373 100%);
    background-size: 180% 180%;
    animation: heroGradient 14s ease infinite;
}
@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 26px 26px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 85%);
}
.hero.hero-custom-bg {
    animation: none;
    background-size: cover;
    background-position: center;
}
.hero.hero-custom-bg::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(135deg, rgba(6,46,38,.88) 0%, rgba(10,95,74,.78) 45%, rgba(14,122,95,.65) 100%);
}
.hv-img {
    width: min(100%, 420px);
    max-height: 420px;
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(4,50,38,.4);
    position: relative;
    z-index: 2;
    animation: fadeUp .8s .2s ease both;
}
.hv-center {
    position: relative; z-index: 2;
    width: 240px; height: 240px; border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,.12);
    border: 6px solid rgba(255,255,255,.55);
    box-shadow: 0 24px 60px rgba(4,50,38,.4), 0 0 0 14px rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    animation: fadeUp .8s .2s ease both;
}
.hv-center-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.hv-center .hv-svg { width: 100%; height: 100%; }
.hero-blob {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: .38; pointer-events: none;
    animation: blobFloat 12s ease-in-out infinite;
}
.hero-blob.b1 { width: 420px; height: 420px; background: #34d399; top: -120px; left: -90px; }
.hero-blob.b2 { width: 340px; height: 340px; background: #c9a227; bottom: -140px; right: -70px; animation-delay: -4s; opacity: .3; }
.hero-blob.b3 { width: 220px; height: 220px; background: #2dd4bf; top: 34%; right: 28%; animation-delay: -7s; opacity: .22; }
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(26px, -34px) scale(1.07); }
    66% { transform: translate(-22px, 20px) scale(.94); }
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px;
    backdrop-filter: blur(8px); animation: fadeUp .7s ease both;
}
.hero-badge i { color: #ffe9a3; }
.hero h1 {
    font-size: 42px; font-weight: 900; line-height: 1.45; margin-bottom: 18px;
    animation: fadeUp .7s .1s ease both;
}
.hero h1 .hero-accent {
    background: linear-gradient(120deg, #ffe9a3, #f5d76e);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
    font-size: 17px; opacity: .94; max-width: 600px; margin-bottom: 30px;
    animation: fadeUp .7s .2s ease both;
}
.hero-cta {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 12px; width: fit-content; max-width: 100%;
    animation: fadeUp .7s .3s ease both;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: nowrap; }
.hero-cta-row .btn {
    flex: 1 1 0; justify-content: center; align-items: center;
    white-space: nowrap; overflow: hidden; min-width: max-content;
}
.hero-pwa-install {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; margin: 0; padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.28); border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), #fff3c4 58%, #e8fff6);
    color: #06352c; font-family: inherit; cursor: pointer;
    box-shadow: 0 10px 24px rgba(4, 40, 32, .18);
    text-align: right;
}
.hero-pwa-install:hover { color: #06352c; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(4, 40, 32, .22); }
.hero-pwa-icon {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), #109576); color: #fff; font-size: 20px;
    box-shadow: 0 8px 16px rgba(14,122,95,.28);
}
.hero-pwa-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.hero-pwa-copy strong { font-size: 15px; font-weight: 800; }
.hero-pwa-copy small { font-size: 11.5px; font-weight: 600; opacity: .72; }
body.is-pwa .hero-pwa-install { display: none !important; }
.hero-trust {
    display: flex; gap: 26px; flex-wrap: wrap; margin-top: 36px;
    animation: fadeUp .7s .4s ease both;
}
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .92; }
.hero-trust-item i {
    width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.14); font-size: 16px;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* کارت شیشه‌ای هیرو */
.hero-panel {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    border-radius: 26px; padding: 30px; backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: fadeUp .8s .35s ease both;
}
.hero-panel-title { font-size: 14px; font-weight: 700; opacity: .9; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.hero-panel-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
    border-radius: 15px; padding: 14px 16px; margin-bottom: 12px;
    transition: transform .25s ease, background .25s ease;
}
.hero-panel-row:hover { transform: translateX(-5px); background: rgba(255,255,255,.16); }
.hero-panel-row .label { font-size: 12.5px; opacity: .85; }
.hero-panel-row .value { font-size: 17px; font-weight: 800; color: #ffe9a3; }
.hero-panel .progress { background: rgba(255,255,255,.18); height: 8px; }
.hero-panel .progress-bar { background: linear-gradient(90deg, #ffe9a3, #e0b93f); }

.hero-wave { position: absolute; bottom: -1px; right: 0; left: 0; line-height: 0; z-index: 3; }
.hero-wave svg { width: 100%; height: 74px; display: block; }

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero h1 { font-size: 32px; }
    .hero { padding-bottom: 90px; }
    .hero-cta { width: 100%; gap: 10px; }
    .hero-cta-row { flex-wrap: nowrap; gap: 10px; }
    .hero-cta-row .btn { padding: 12px 10px; font-size: 13.5px; }
    .hero-pwa-install { padding: 11px 12px; border-radius: 14px; }
    .hero-pwa-icon { width: 38px; height: 38px; font-size: 18px; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 26px; }
    .hero-lead { font-size: 15px; }
    .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 64px; }
    .hero-visual { min-height: 220px; }
    .hero-cta { width: 100%; }
    .hero-cta-row { flex-wrap: nowrap; }
    .hero-cta-row .btn { font-size: 12.5px; padding: 11px 8px; gap: 6px; }
    .hero-cta-row .btn i { font-size: 14px; flex-shrink: 0; }
    .hero-pwa-copy strong { font-size: 14px; }
    .hero-pwa-copy small { font-size: 11px; }
}

/* ---------- Stats ---------- */
.stats-band { margin-top: -46px; position: relative; z-index: 5; }
.stat-card {
    text-align: center; padding: 30px 18px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-card .stat-icon {
    width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 17px;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    background: var(--primary-light); color: var(--primary);
}
.stat-card .stat-icon.gold { background: var(--accent-light); color: var(--accent-dark); }
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.stat-card .stat-label { color: var(--text-muted); font-size: 13px; margin-top: 6px; }

/* ---------- Features ---------- */
.feature-card {
    background:
        radial-gradient(circle at 88% -10%, rgba(201, 162, 39, .22), transparent 42%),
        radial-gradient(circle at 8% 110%, rgba(16, 185, 129, .2), transparent 46%),
        linear-gradient(165deg, #ffffff 0%, #f3fbf7 58%, #eef7f3 100%);
    border: 1px solid rgba(14, 122, 95, .12);
    border-radius: var(--radius-lg);
    padding: 30px 26px; height: 100%; position: relative; overflow: hidden;
    box-shadow: 0 10px 28px rgba(6, 46, 38, .06);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.feature-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.45), transparent 42%);
}
.feature-card::after {
    content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(14, 122, 95, .16); border-color: transparent; }
.feature-card:hover::after { transform: scaleY(1); }
.feature-card .icon {
    width: 58px; height: 58px; border-radius: 18px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center; font-size: 25px;
    background: linear-gradient(135deg, #d8f5ea, #c9f0e0); color: var(--primary);
    box-shadow: 0 8px 18px rgba(14, 122, 95, .14);
    transition: transform .28s ease;
}
.feature-card:hover .icon { transform: rotate(-7deg) scale(1.08); }
.feature-card h4 { font-size: 17px; margin-bottom: 10px; position: relative; }
.feature-card p { color: var(--text-muted); font-size: 13.5px; margin: 0; position: relative; }

/* ---------- Contact page ---------- */
.contact-info-card { border-radius: var(--radius-lg); transition: transform .25s ease, box-shadow .25s ease; }
.contact-info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-info-card .card-body { padding: 20px; }
.contact-info-icon {
    width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 19px;
    background: linear-gradient(135deg, var(--primary-light), #d4efe4); color: var(--primary);
}
.contact-info-card h6 { font-size: 14px; font-weight: 700; }
.contact-info-card a, .contact-info-card .text-muted { font-size: 13.5px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.contact-intro p { color: var(--text-muted); margin-bottom: 22px; }
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-info-card .card-body { min-height: 132px; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-social-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 14px; border: 1px solid var(--border);
    background: #fff; color: var(--text); font-weight: 700; font-size: 13.5px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-social-btn:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-sm); color: var(--primary); }
.contact-form-card { border-radius: var(--radius-lg); overflow: hidden; }
.contact-form-card .card-header { font-weight: 800; }
.contact-empty { padding: 22px; border-radius: 16px; background: #eff6ff; color: #1e40af; }
@media (max-width: 991.98px) {
    .contact-layout, .contact-info-grid { grid-template-columns: 1fr; }
}

/* ---------- Section head ---------- */
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .section-title { margin-bottom: 10px; }

/* ---------- Cards: projects & articles ---------- */
.project-card {
    overflow: hidden; display: flex; flex-direction: column; border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0%, rgba(201, 162, 39, .16), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(14, 122, 95, .14), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
    border-color: rgba(14, 122, 95, .1);
    box-shadow: 0 12px 32px rgba(6, 46, 38, .07);
}
.project-card .card-img-wrap { overflow: hidden; position: relative; }
.project-card .card-img { height: 200px; object-fit: cover; width: 100%; transition: transform .5s ease; }
.project-card:hover .card-img { transform: scale(1.07); }
.project-card .card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.project-card .card-title { font-size: 17px; margin-bottom: 8px; }
.project-card-thumb { display: block; overflow: hidden; }
.project-card-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .5s ease; }
.project-card:hover .project-card-thumb img { transform: scale(1.05); }
.project-cover img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; display: block; margin-bottom: 6px; }
.project-card .card-title a:hover { color: var(--primary); }
.project-card .card-text { color: var(--text-muted); font-size: 13px; flex: 1; }
.project-card .card-footer { padding: 14px 22px; border-top: 1px solid var(--border); }

.article-card { overflow: hidden; border-radius: var(--radius-lg); }
.article-card .card-img-wrap { overflow: hidden; position: relative; }
.article-card .card-img { height: 180px; object-fit: cover; width: 100%; transition: transform .5s ease; }
.article-card:hover .card-img { transform: scale(1.07); }
.article-card-thumb { display: block; overflow: hidden; }
.article-card-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .5s ease; }
.article-card:hover .article-card-thumb img { transform: scale(1.06); }
.article-cover img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius-lg); display: block; }

/* ---------- Projects tabs ---------- */
.projects-tabs {
    display: inline-flex; gap: 6px; background: #fff; border: 1px solid var(--border);
    border-radius: 999px; padding: 5px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.projects-tab {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px;
    border-radius: 999px; font-size: 13.5px; font-weight: 700;
    color: var(--text-muted); text-decoration: none; transition: all .2s ease;
}
.projects-tab:hover { color: var(--primary); }
.projects-tab.active {
    background: linear-gradient(135deg, var(--primary), #109576);
    color: #fff; box-shadow: 0 6px 16px rgba(14, 122, 95, .3);
}
@media (max-width: 575.98px) {
    .projects-tabs { display: flex; width: 100%; }
    .projects-tab { flex: 1 1 0; justify-content: center; padding: 9px 10px; font-size: 12.5px; }
}

/* ---------- Article sidebar (latest) ---------- */
.article-aside-card { position: sticky; top: 90px; border-radius: var(--radius-lg); overflow: hidden; }
.article-aside-head { padding: 15px 18px; border-bottom: 1px solid var(--border); }
.article-aside-head h5 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.article-aside-head i { color: var(--primary); }
.article-aside-link {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    text-decoration: none; color: var(--text); border-bottom: 1px solid #f1f3f2;
    transition: background .2s ease, color .2s ease;
}
.article-aside-link:last-child { border-bottom: none; }
.article-aside-link:hover { background: #f8fbfa; color: var(--primary); }
.article-aside-thumb { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--primary-light); }
.article-aside-title { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.8; }
.article-aside-date { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 991.98px) { .article-aside-card { position: static; margin-top: 8px; } }
.article-card .card-body { padding: 20px; }
.article-card .card-title { font-size: 16px; }
.article-card .meta { font-size: 12px; color: var(--text-muted); margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.article-card .cat-chip {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: rgba(255,255,255,.92); color: var(--primary-dark);
    padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
}
.img-fallback {
    height: 180px; width: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #d4efe4); color: var(--primary);
    font-size: 40px;
}

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; border-radius: 28px; text-align: center;
    padding: 60px 30px; color: #fff;
    background: linear-gradient(135deg, #062e26, #0a5f4a 55%, #0e7a5f);
    box-shadow: 0 24px 60px rgba(6,46,38,.35);
}
.cta-band::before {
    content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: rgba(201,162,39,.25); filter: blur(50px); top: -120px; left: -80px;
}
.cta-band::after {
    content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
    background: rgba(52,211,153,.28); filter: blur(50px); bottom: -130px; right: -60px;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
.cta-band p { opacity: .92; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background: linear-gradient(135deg, #0a5f4a, #0e7a5f);
    color: #fff; padding: 46px 0 40px; position: relative; overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 24px 24px; pointer-events: none;
}
.page-hero h1 { font-size: 28px; margin: 0; position: relative; z-index: 2; }
.page-hero .lead { opacity: .9; margin: 8px 0 0; position: relative; z-index: 2; font-size: 14.5px; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.page-hero-detail { padding: 56px 0 48px; }
.page-hero-detail.has-cover {
    background-image: linear-gradient(180deg, rgba(6,46,38,.78), rgba(10,95,74,.88)), var(--hero-image);
    background-size: cover; background-position: center;
}
.page-hero-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-top: 14px; position: relative; z-index: 2; font-size: 13.5px;
}
.page-hero-meta span, .page-hero-meta .badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
    color: #fff; padding: 5px 12px; border-radius: 999px;
}
.page-hero-meta .project-card-code { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Accordion (FAQ) ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius) !important; margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion-button { font-weight: 700; font-size: 15px; background: #fff; }
.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-light), #f0faf6);
    color: var(--primary-dark); box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(14,122,95,.12); }
.accordion-body { font-size: 14px; color: var(--text-muted); }

/* ---------- Donate / payment tabs ---------- */
.pay-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    background: #eef2f0; padding: 8px; border-radius: 16px; margin-bottom: 28px;
}
.pay-tab {
    border: none; background: transparent; padding: 13px 12px; border-radius: 12px;
    font-family: inherit; font-size: 14px; font-weight: 700; color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
    transition: all .22s ease;
}
.pay-tab.active {
    background: #fff; color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(15,23,42,.1);
}
.pay-tab:hover:not(.active) { color: var(--primary); }

.c2c-card {
    position: relative; overflow: hidden; border-radius: 20px; color: #fff;
    background: linear-gradient(135deg, #0b3d31, #0e7a5f 60%, #14a37d);
    padding: 26px 26px 22px; margin-bottom: 20px;
    box-shadow: 0 18px 40px rgba(14,122,95,.3);
}
.c2c-card::before {
    content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%;
    background: rgba(255,255,255,.08); top: -70px; left: -40px;
}
.c2c-card::after {
    content: ''; position: absolute; width: 130px; height: 130px; border-radius: 50%;
    background: rgba(201,162,39,.25); bottom: -60px; right: -30px;
}
.c2c-card > * { position: relative; z-index: 2; }
.c2c-card .bank { font-size: 12.5px; opacity: .85; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.c2c-card .holder { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.c2c-card .number {
    font-family: ui-monospace, 'Consolas', monospace; font-size: 21px; font-weight: 700;
    letter-spacing: 2.5px; direction: ltr; text-align: left; margin-bottom: 14px;
}
.c2c-card .row-end { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.c2c-card .iban { font-size: 11.5px; opacity: .8; direction: ltr; text-align: left; }
.c2c-card .btn-copy {
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff;
    padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    cursor: pointer; transition: all .2s ease; display: inline-flex; align-items: center; gap: 6px;
}
.c2c-card .btn-copy:hover { background: rgba(255,255,255,.28); }

/* ---------- Donate: plan toggle ---------- */
.plan-toggle {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    background: #eef2f0; padding: 8px; border-radius: 18px; margin-bottom: 8px;
}
.plan-btn {
    border: none; background: transparent; padding: 14px 12px; border-radius: 13px;
    font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
    transition: all .28s cubic-bezier(.4, 0, .2, 1);
}
.plan-btn i { font-size: 17px; }
.plan-btn.active {
    background: linear-gradient(135deg, var(--primary), #14a37d); color: #fff;
    box-shadow: 0 8px 20px rgba(14,122,95,.35);
    transform: translateY(-1px);
}
.plan-btn:hover:not(.active) { color: var(--primary); background: #e3efe9; }

/* ---------- Donate: amount ---------- */
.amount-presets {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px;
}
.amount-preset {
    border: 2px solid var(--border); background: #fff; padding: 13px 6px; border-radius: 14px;
    font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-muted);
    cursor: pointer; transition: all .22s cubic-bezier(.4, 0, .2, 1);
}
.amount-preset:hover {
    border-color: var(--primary); color: var(--primary); transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14,122,95,.12);
}
.amount-preset.active {
    border-color: var(--primary); background: linear-gradient(135deg, var(--primary), #14a37d);
    color: #fff; transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14,122,95,.3);
}
.amount-input-wrap { position: relative; }
.amount-input { padding-left: 74px; text-align: left; font-weight: 700; font-size: 17px; }
.amount-input:focus { box-shadow: 0 0 0 4px rgba(14,122,95,.12); border-color: var(--primary); }
.amount-unit {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    font-size: 13px; font-weight: 700; color: var(--text-muted); pointer-events: none;
}
@keyframes amountPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.03); }
    100% { transform: scale(1); }
}
.amount-pop { animation: amountPop .35s ease; }

/* ---------- Donate: bank card (عابر بانک) ---------- */
.bank-card {
    position: relative; overflow: hidden; border-radius: 24px; color: #fff;
    background:
        radial-gradient(circle at 92% -8%, rgba(201,162,39,.32), transparent 42%),
        radial-gradient(circle at -5% 108%, rgba(52,211,153,.22), transparent 45%),
        linear-gradient(135deg, #04241d 0%, #0a5f4a 52%, #0e7a5f 100%);
    padding: 26px 26px 22px; margin-bottom: 22px;
    box-shadow: 0 24px 50px rgba(6,46,38,.45), inset 0 1px 0 rgba(255,255,255,.08);
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.bank-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(135deg, rgba(0,0,0,.5), transparent 60%);
}
.bank-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 30px 60px rgba(6,46,38,.52), inset 0 1px 0 rgba(255,255,255,.1); }
.bank-card-top {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
    position: relative; z-index: 1;
}
.bank-card-chip {
    width: 50px; height: 37px; border-radius: 9px;
    background: linear-gradient(135deg, #f0d98c, #c9a227 60%, #a8861c);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #6b510e;
    box-shadow: inset 0 0 0 1px rgba(107,81,14,.4), 0 2px 6px rgba(0,0,0,.25);
    position: relative;
}
.bank-card-chip::after {
    content: ''; position: absolute; inset: 5px 8px;
    border: 1px solid rgba(107,81,14,.35); border-radius: 5px;
}
.bank-card-contactless { font-size: 20px; opacity: .8; transform: rotate(90deg); }
.bank-card-bank {
    font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; opacity: .95;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.bank-card-number {
    font-family: ui-monospace, 'Consolas', monospace; font-size: clamp(19px, 4.5vw, 25px);
    font-weight: 700; letter-spacing: 3.5px; direction: ltr; text-align: left;
    margin-bottom: 22px; text-shadow: 0 2px 10px rgba(0,0,0,.3);
    position: relative; z-index: 1;
}
.bank-card-bottom {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-bottom: 18px; position: relative; z-index: 1;
}
.bank-card-holder, .bank-card-iban { display: flex; flex-direction: column; gap: 3px; }
.bank-card-iban { direction: ltr; text-align: left; }
.bank-card-label { font-size: 10.5px; opacity: .6; letter-spacing: .6px; text-transform: uppercase; }
.bank-card-value { font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.bank-card-copy {
    width: 100%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12);
    color: #fff; padding: 11px 16px; border-radius: 13px; font-family: inherit;
    font-size: 13.5px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .25s ease; position: relative; z-index: 1;
    backdrop-filter: blur(4px);
}
.bank-card-copy:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.bank-card-copy.copied { background: #10b981; border-color: #10b981; }

/* ---------- Donate: source card input ---------- */
.source-card-input {
    border: 2px solid var(--border); border-radius: 15px; padding: 14px 17px;
    font-family: ui-monospace, 'Consolas', monospace; font-weight: 700; letter-spacing: 2.5px;
    transition: all .3s cubic-bezier(.22,1,.36,1); background: #fbfdfc;
}
.source-card-input:focus {
    border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 5px rgba(14,122,95,.14);
    transform: translateY(-1px);
}
.source-card-last4 { text-align: center; letter-spacing: 12px; font-size: 18px; }
.bank-detect {
    font-size: 12.5px; font-weight: 700; color: var(--primary); margin-top: 6px;
    min-height: 18px; transition: opacity .3s ease;
}

/* ---------- Donate: amount & plan animations ---------- */
.amount-preset {
    transition: all .28s cubic-bezier(.22,1,.36,1);
}
.amount-preset:hover { transform: translateY(-2px); }
.amount-preset.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(14,122,95,.35); transform: translateY(-2px);
}
.amount-pop { animation: amountPop .45s cubic-bezier(.22,1,.36,1); }
@keyframes amountPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.04); }
    100% { transform: scale(1); }
}
.plan-btn { transition: all .28s cubic-bezier(.22,1,.36,1); }
.plan-btn:hover:not(.active) { transform: translateY(-2px); }
.plan-btn.active { transform: translateY(-1px); }

.donate-submit { transition: all .3s cubic-bezier(.22,1,.36,1); }
.donate-submit:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(14,122,95,.4); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Content ---------- */
.content-body { font-size: 15px; line-height: 2.1; overflow-wrap: break-word; }
.content-body img { border-radius: 12px; margin: 18px 0; max-width: 100%; height: auto; }
.content-body h2, .content-body h3, .content-body h4 { margin: 26px 0 12px; }
.content-body blockquote {
    border-right: 4px solid var(--accent); background: var(--accent-light);
    padding: 14px 20px; border-radius: 0 10px 10px 0; margin: 18px 0;
}
.content-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.content-body th, .content-body td { border: 1px solid var(--border); padding: 10px 14px; text-align: right; }
.content-body th { background: #f9fafb; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 44px; margin-bottom: 14px; opacity: .5; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px; border: 1px solid var(--border); background: #fff; font-size: 14px; padding: 0 12px;
    transition: all .2s ease;
}
.pager .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ---------- Toast ---------- */
.toast-container { position: fixed; top: 20px; left: 20px; z-index: 9999; max-width: 380px; }
.toast {
    background: #fff; border-radius: 13px; box-shadow: var(--shadow-lg);
    padding: 14px 18px; margin-bottom: 10px; font-size: 14px;
    border-right: 4px solid var(--primary); animation: slideIn .3s ease;
}
.toast-success { border-color: var(--success); }
.toast-danger { border-color: var(--danger); }
.toast-warning { border-color: var(--warning); }
@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer {
    position: relative; margin-top: 80px; color: #cfe0da;
    background: linear-gradient(180deg, #0b3d31 0%, #062e26 100%);
}
.site-footer::before {
    content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: rgba(201,162,39,.1); filter: blur(60px); top: -80px; right: -60px; pointer-events: none;
}
.site-footer .footer-top {
    position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px;
    padding: 60px 0 44px;
}
.site-footer h5, .site-footer h6 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.site-footer h6::after {
    content: ''; display: block; width: 32px; height: 3px; border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), transparent); margin-top: 8px;
}
.site-footer a { color: #b8d4cb; transition: all .2s ease; display: inline-block; }
.site-footer a:hover { color: #fff; transform: translateX(-4px); }
.site-footer .brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.site-footer .brand .brand-mark { width: 46px; height: 46px; font-size: 21px; }
.footer-desc { font-size: 13.5px; color: #a8c5bb; max-width: 300px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 11px; font-size: 13.5px; display: flex; align-items: flex-start; gap: 9px; }
.footer-list li i { color: var(--accent); margin-top: 4px; font-size: 14px; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
    width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #d7e5e0; font-size: 17px;
}
.footer-socials a:hover { background: var(--accent); color: #1f2937; transform: translateY(-3px); }
.footer-socials a img { width: 22px; height: 22px; object-fit: contain; display: block; }
.contact-social-btn { display: inline-flex; align-items: center; }
.contact-social-btn img { width: 18px; height: 18px; object-fit: contain; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.footer-badge {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    font-size: 11.5px; color: #d7e5e0;
}
.footer-badge i { color: #ffe9a3; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: 12.5px; color: #8fb3a7;
}
.footer-bottom a { color: #b8d4cb; }
.footer-heart { color: #ff7b7b; }

@media (max-width: 992px) {
    .site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .site-footer .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ---------- Scroll to top ---------- */
.to-top {
    position: fixed; bottom: 24px; left: 24px; z-index: 1000;
    width: 46px; height: 46px; border-radius: 15px; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--primary), #14a37d); color: #fff; font-size: 18px;
    box-shadow: 0 10px 24px rgba(14,122,95,.4);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s ease;
    display: flex; align-items: center; justify-content: center;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Nav account buttons ---------- */
.btn-nav-login {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: var(--primary-dark) !important;
    font-weight: 700; font-size: 14px;
    border: 1px solid rgba(255,255,255,.95); border-radius: 999px; padding: 9px 20px !important;
    box-shadow: 0 8px 20px rgba(4,50,38,.3);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-nav-login:hover {
    background: linear-gradient(135deg, var(--accent), #e0b93f); color: #1f2937 !important;
    transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201,162,39,.4);
}
.btn-nav-login::after { display: none !important; }
.btn-nav-account {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.96); color: var(--primary-dark) !important;
    font-weight: 700; font-size: 13.5px;
    border: 1px solid rgba(14,122,95,.18);
    border-radius: 999px; padding: 6px 8px 6px 16px !important; max-width: 230px;
    box-shadow: 0 8px 20px rgba(4,50,38,.25);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-nav-account .avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #14a37d); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
    overflow: hidden;
}
.btn-nav-account .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn-nav-account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-nav-account:hover {
    background: #fff; color: var(--primary-dark) !important;
    transform: translateY(-2px); box-shadow: 0 12px 26px rgba(4,50,38,.3);
}
.btn-nav-account::after { display: none !important; }
.nav-actions { flex-shrink: 0; }
@media (max-width: 991.98px) {
    .site-header .navbar .container { position: relative; }
    .site-header .navbar-collapse {
        position: absolute; top: calc(100% + 6px); inset-inline: 12px;
        z-index: 1040; display: none; height: auto !important;
        background: #fff; border-radius: 18px; padding: 12px 14px 16px;
        box-shadow: 0 18px 40px rgba(6, 46, 38, .18);
        border: 1px solid var(--border);
        max-height: min(78vh, 560px); overflow-y: auto;
    }
    .site-header .navbar-collapse.collapsing { display: block; height: auto !important; overflow: hidden; }
    .site-header .navbar-collapse.show { display: block; }
    .site-header .navbar-nav { margin: 0 !important; padding: 4px 0 8px; }
    .site-header .nav-link { padding: 10px 8px !important; }
    .nav-actions { margin-top: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); }
    .home-page .site-header:not(.is-scrolled).nav-open {
        background: transparent; box-shadow: none;
    }
    body.nav-open { overflow: hidden; }
    body.nav-open::after {
        content: ''; position: fixed; inset: 0; z-index: 1025;
        background: rgba(6, 46, 38, .38);
    }
    .site-header { z-index: 1035; }
}

/* ---------- Hero visual (animated) ---------- */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.hv-svg { width: min(100%, 420px); height: auto; position: relative; z-index: 2; }
.hv-ring {
    position: absolute; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.22);
    pointer-events: none; z-index: 1;
}
.hv-ring-1 { width: 300px; height: 300px; animation: hvSpin 26s linear infinite; }
.hv-ring-2 { width: 370px; height: 370px; animation: hvSpin 38s linear infinite reverse; border-style: solid; border-color: rgba(255,255,255,.1); }
.hv-ring-3 { width: 240px; height: 240px; animation: hvSpin 20s linear infinite; border-color: rgba(255,255,255,.3); }
@keyframes hvSpin { to { transform: rotate(360deg); } }

.hv-heart { transform-origin: 212px 197px; animation: hvPulse 2.2s ease-in-out infinite; }
@keyframes hvPulse {
    0%, 100% { transform: scale(1); }
    12% { transform: scale(1.08); }
    24% { transform: scale(1); }
    36% { transform: scale(1.06); }
    50% { transform: scale(1); }
}

.hv-orbit {
    position: absolute; z-index: 3;
    width: 64px; height: 64px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 28px rgba(4,50,38,.28);
    display: flex; align-items: center; justify-content: center;
}
.hv-orbit-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.hv-orbit-icon { font-size: 24px; color: var(--primary); display: flex; }
.hv-orbit-emoji { font-size: 26px; line-height: 1; }
.hv-orbit-label {
    position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
    white-space: nowrap; font-size: 11px; font-weight: 700; color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
    pointer-events: none;
}
.hv-orbit-a { top: 6%; right: 18%; animation: hvFloatY 4.5s ease-in-out infinite; }
.hv-orbit-b { bottom: 10%; right: 4%; animation: hvFloatY 5.2s ease-in-out infinite .6s; }
.hv-orbit-c { bottom: 14%; left: 4%; animation: hvFloatY 4.8s ease-in-out infinite 1.2s; }
@keyframes hvFloatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hv-dove { animation: hvDoveFloat 5.2s ease-in-out infinite; }
@keyframes hvDoveFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-6px, -10px) rotate(-4deg); }
}
.hv-dove-wing {
    transform-box: fill-box; transform-origin: 85% 95%;
    animation: hvFlap 1.5s ease-in-out infinite;
}
@keyframes hvFlap {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-24deg); }
}
.hv-mini-heart { animation: hvFloatY 3.8s ease-in-out infinite; }

.hv-float-card {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.95); color: #0f3d31; border-radius: 14px;
    padding: 10px 14px; font-size: 12.5px; font-weight: 700;
    box-shadow: 0 14px 34px rgba(4,50,38,.28); backdrop-filter: blur(6px);
}
.hv-float-card i { color: var(--primary); font-size: 16px; }
.hv-card-1 { top: 12%; right: 2%; animation: hvFloatCard 5s ease-in-out infinite; }
.hv-card-2 { bottom: 14%; left: 0; animation: hvFloatCard 5.8s ease-in-out infinite 1s; }
@keyframes hvFloatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@media (max-width: 991.98px) {
    .hero-visual { min-height: 300px; margin-top: 10px; }
    .hv-center { width: 180px; height: 180px; border-width: 4px; }
    .hv-orbit { width: 48px; height: 48px; }
    .hv-orbit-icon { font-size: 18px; }
    .hv-orbit-emoji { font-size: 20px; }
    .hv-orbit-label { display: none; }
    .hv-float-card { display: none; }
}

/* ---------- Plan cards ---------- */
.plan-card { border: 1px solid rgba(15,23,42,.06); border-radius: 20px; transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.plan-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(15,23,42,.1); }
.plan-icon {
    width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(14,122,95,.12), rgba(201,162,39,.16)); color: var(--primary); font-size: 24px;
}
.plan-card .card-footer { background: #fff; border-top: 1px solid rgba(15,23,42,.06); padding: 14px 20px 20px; }

/* ---------- Account panel (member dashboard) ---------- */
body.account-page { background: #f1f5f3; }

.panel-header {
    position: sticky; top: 0; z-index: 1040; overflow: visible;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); padding: 10px 0;
    box-shadow: 0 2px 14px rgba(15, 23, 42, .05);
}
.panel-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow: visible; }
.panel-menu-toggle {
    display: none; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    border: 1px solid var(--border); background: #fff; color: var(--text);
    align-items: center; justify-content: center; font-size: 22px; cursor: pointer;
}
.panel-menu-toggle:hover { border-color: var(--primary); color: var(--primary); }
.panel-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 17px; min-width: 0; flex: 1; }
.panel-brand:hover { color: var(--primary-dark); }
.panel-brand img { height: 38px; }
.panel-brand-text { line-height: 1.25; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-brand-text small { display: block; font-size: 10.5px; font-weight: 600; color: var(--primary); }
.panel-header-actions { display: flex; gap: 8px; flex-wrap: nowrap; align-items: center; flex-shrink: 0; }
.panel-sidebar-head { display: none; }
.panel-sidebar-backdrop { display: none; }

.panel-wrap {
    display: grid; grid-template-columns: 275px minmax(0, 1fr);
    gap: 24px; align-items: start; padding-top: 26px; padding-bottom: 48px;
}
.panel-main { min-width: 0; }

/* sidebar */
.panel-sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.panel-user {
    position: relative; overflow: hidden; text-align: center; color: #fff;
    background: linear-gradient(135deg, #062e26, #0a5f4a 55%, #0e7a5f);
    border-radius: 20px; padding: 22px 18px; box-shadow: var(--shadow);
}
.panel-user::after {
    content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%;
    background: rgba(201, 162, 39, .3); filter: blur(40px); top: -70px; left: -50px;
}
.panel-avatar {
    position: relative; z-index: 2;
    width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%;
    background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .42);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800;
    overflow: hidden;
}
.panel-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-user-info { position: relative; z-index: 2; }
.panel-user-info strong { display: block; font-size: 15.5px; }
.panel-user-info span { display: block; font-size: 13px; opacity: .85; }
.panel-user-badge {
    position: relative; z-index: 2; margin-top: 10px;
    background: rgba(255, 255, 255, .15); color: #fff;
    border: 1px solid rgba(255, 255, 255, .32);
}

.panel-nav {
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    padding: 10px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm);
}
.panel-nav-item {
    display: flex; align-items: center; gap: 11px; padding: 11px 14px;
    border-radius: 12px; color: var(--text); font-weight: 600; font-size: 14px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.panel-nav-item i { width: 21px; text-align: center; font-size: 16px; color: var(--text-muted); transition: color .2s ease; }
.panel-nav-item:hover { background: var(--primary-light); color: var(--primary-dark); transform: translateX(-3px); }
.panel-nav-item:hover i { color: var(--primary); }
.panel-nav-item.active {
    background: linear-gradient(135deg, rgba(14, 122, 95, .14), rgba(14, 122, 95, .05));
    color: var(--primary-dark);
    box-shadow: inset -3px 0 0 var(--primary);
}
.panel-nav-item.active i { color: var(--primary); }
.panel-nav-item .nav-arrow { margin-inline-start: auto; font-size: 13px; opacity: .7; width: auto; }
.panel-nav-divider { height: 1px; background: var(--border); margin: 6px 8px; }
.panel-nav-donate { background: var(--accent-light); color: var(--accent-dark); }
.panel-nav-donate i { color: var(--accent-dark); }
.panel-nav-donate:hover { background: var(--accent); color: #1f2937; }
.panel-nav-donate:hover i { color: #1f2937; }
.panel-nav-logout { color: var(--danger); }
.panel-nav-logout i { color: var(--danger); }
.panel-nav-logout:hover { background: #fef2f2; color: var(--danger); }
.panel-nav-logout:hover i { color: var(--danger); }
.panel-nav-logout-form { display: contents; }
button.panel-nav-item {
    background: none; border: 0; width: 100%; font-family: inherit;
    text-align: start; cursor: pointer;
}

.panel-sidebar-note {
    display: flex; gap: 9px; background: #fff; border: 1px dashed var(--border);
    border-radius: 16px; padding: 14px; font-size: 12px; color: var(--text-muted); line-height: 1.8;
}
.panel-sidebar-note i { color: var(--primary); font-size: 16px; margin-top: 3px; }
.panel-sidebar-note p { margin: 0; }

/* page head */
.panel-page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.panel-page-head h1 {
    font-size: 21px; margin: 0 0 4px; display: flex; align-items: center; gap: 9px;
}
.panel-page-head h1 i { color: var(--primary); }
.panel-page-head p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

/* hero */
.panel-hero {
    position: relative; overflow: hidden; border-radius: 22px; color: #fff;
    background: linear-gradient(135deg, #062e26, #0a5f4a 55%, #0e7a5f);
    padding: 30px; margin-bottom: 22px; box-shadow: 0 18px 44px rgba(6, 46, 38, .25);
}
.panel-hero-blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .35; pointer-events: none; }
.hb-1 { width: 240px; height: 240px; background: #34d399; top: -90px; left: -60px; }
.hb-2 { width: 200px; height: 200px; background: #c9a227; bottom: -90px; right: -40px; opacity: .3; }
.panel-hero-body {
    position: relative; z-index: 2; display: flex; align-items: center;
    justify-content: space-between; gap: 20px; flex-wrap: nowrap;
}
.panel-hero-kicker {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 700;
}
.panel-hero-text { flex: 1; min-width: 0; }
.panel-hero-text h1 { font-size: 24px; margin: 0 0 6px; }
.panel-hero-text p { margin: 0; opacity: .85; font-size: 14px; max-width: 520px; }
.panel-hero-actions {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    width: 200px; flex: 0 0 200px;
}
.panel-hero-donate { width: 100%; justify-content: center; margin: 0; box-sizing: border-box; }
.panel-hero-alert {
    position: relative; z-index: 2; display: flex; align-items: center; gap: 9px;
    margin-top: 18px; background: rgba(255, 255, 255, .12); border: 1px dashed rgba(255, 255, 255, .42);
    color: #fff; padding: 10px 16px; border-radius: 13px; font-size: 13.5px; font-weight: 600;
    transition: background .2s ease;
}
.panel-hero-alert:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.panel-announcement {
    display: flex; align-items: flex-start; gap: 14px; margin: -6px 0 22px;
    background: #fff8e8; border: 1px solid #f1d48a; border-radius: 16px; padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
.panel-announcement-icon {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: #c9a227; color: #fff; font-size: 18px;
}
.panel-announcement-body { min-width: 0; }
.panel-announcement-body strong { display: block; font-size: 15px; color: #5c4308; margin-bottom: 4px; }
.panel-announcement-body p { margin: 0; font-size: 13.5px; line-height: 1.8; color: #6b5420; }

/* stats */
.panel-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.panel-stat {
    display: flex; align-items: center; gap: 14px; background: #fff;
    border: 1px solid var(--border); border-radius: 18px; padding: 18px;
    box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.panel-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.panel-stat-icon {
    width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    background: linear-gradient(135deg, rgba(14, 122, 95, .14), rgba(16, 185, 129, .18)); color: var(--primary);
}
.panel-stat-icon.gold { background: var(--accent-light); color: var(--accent-dark); }
.panel-stat-icon.blue { background: #dbeafe; color: #1d4ed8; }
.panel-stat-icon.purple { background: #ede9fe; color: #6d28d9; }
.panel-stat-value {
    display: block; font-size: 21px; font-weight: 800; color: var(--primary-dark);
    line-height: 1.5; font-variant-numeric: tabular-nums;
}
.panel-stat-label { display: block; font-size: 12.5px; color: var(--text-muted); }
.score-value { display: flex; align-items: center; gap: 8px; }
.score-stars { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; color: #c9a227; }
.score-stars .bi-star { color: #e2e8f0; }
.score-num { font-size: 21px; font-weight: 800; color: var(--primary-dark); font-variant-numeric: tabular-nums; }

/* hero score (جایگزین دکمه کمک در کارت خوش‌آمد) */
.hero-score {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    width: 100%; min-width: 0; padding: 14px 18px; border-radius: 20px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
    color: #fff; text-decoration: none;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.hero-score:hover,
.hero-score:focus-visible {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .26);
    color: #fff;
}
.hero-score-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .2px; opacity: .92;
}
.hero-score-body { display: inline-flex; align-items: center; gap: 11px; }
.hero-score .score-stars { font-size: 19px; gap: 3px; }
.hero-score .score-stars .bi-star { color: rgba(255, 255, 255, .32); }
.hero-score .score-stars .bi-star-fill { color: #ffd75e; text-shadow: 0 2px 8px rgba(255, 209, 102, .5); }
.hero-score .score-num { font-size: 27px; font-weight: 800; color: #fff; line-height: 1; }
.hero-score .score-num::after {
    content: 'امتیاز'; font-size: 11px; font-weight: 600; opacity: .75; margin-inline-start: 5px;
}

.panel-hero-gradient {
    background:
        radial-gradient(circle at 85% 10%, rgba(201,162,39,.35), transparent 42%),
        radial-gradient(circle at 8% 92%, rgba(52,211,153,.22), transparent 46%),
        linear-gradient(135deg, #062e26, #0a5f4a 55%, #0e7a5f);
    box-shadow: 0 18px 44px rgba(6,46,38,.32);
}
.panel-stat-gradient-green {
    background: linear-gradient(145deg, #e8f7f1 0%, #ffffff 78%);
    border-color: rgba(14,122,95,.24);
}
.panel-stat-gradient-gold {
    background: linear-gradient(145deg, #fdf3dd 0%, #ffffff 78%);
    border-color: rgba(217,119,6,.24);
}
.panel-stat-gradient-blue {
    background: linear-gradient(145deg, #e6f6fb 0%, #ffffff 78%);
    border-color: rgba(6,182,212,.24);
}
.panel-stat-gradient-purple {
    background: linear-gradient(145deg, #f1ecfe 0%, #ffffff 78%);
    border-color: rgba(139,92,246,.24);
}
.panel-stat-gradient-green .panel-stat-icon {
    background: linear-gradient(135deg, #065f46, #0e7a5f); color: #fff;
    box-shadow: 0 6px 16px rgba(14,122,95,.3);
}
.panel-stat-gradient-gold .panel-stat-icon {
    background: linear-gradient(135deg, #b45309, #d97706); color: #fff;
    box-shadow: 0 6px 16px rgba(217,119,6,.3);
}
.panel-stat-gradient-blue .panel-stat-icon {
    background: linear-gradient(135deg, #0e7490, #06b6d4); color: #fff;
    box-shadow: 0 6px 16px rgba(6,182,212,.3);
}
.panel-stat-gradient-purple .panel-stat-icon {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6); color: #fff;
    box-shadow: 0 6px 16px rgba(139,92,246,.3);
}

/* ---------- Donate card ---------- */
.donate-card {
    background: #fff; border-radius: 24px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(6,46,38,.14); border: 1px solid var(--border);
}
.donate-card .pay-tabs { border-bottom: 1px solid var(--border); }
.donate-card .pay-tab { border-radius: 0; }
.donate-card .pay-tab.active { background: var(--primary); }
.donate-card .pay-tab:not(.active):hover { background: #f0fdf7; }

/* ---------- Enhanced Profile Hero ---------- */
.profile-hero {
    position: relative; border-radius: 28px; overflow: hidden; margin-bottom: 32px;
    background:
        radial-gradient(circle at 90% 5%, rgba(201,162,39,.4), transparent 45%),
        radial-gradient(circle at 5% 95%, rgba(52,211,153,.25), transparent 50%),
        linear-gradient(135deg, #04241d 0%, #0a5f4a 45%, #0e7a5f 80%, #129373 100%);
    box-shadow: 0 24px 60px rgba(6,46,38,.35);
    transition: transform .3s ease, box-shadow .3s ease;
}
.profile-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 80px rgba(6,46,38,.45);
}
.profile-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(45deg, rgba(255,255,255,.1) 0%, transparent 100%);
    z-index: 1;
}
.profile-hero-bg {
    position: absolute; inset: 0; opacity: .6;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,.12) 0, transparent 45%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0, transparent 45%);
}
.profile-hero-decorations {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.profile-hero-decorations .hero-decoration {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: rgba(255,255,255,.3);
    animation: floatDecoration 8s ease-in-out infinite;
}
.profile-hero-decorations .hero-decoration:nth-child(1) {
    top: 20%; right: 15%; animation-delay: 0s;
}
.profile-hero-decorations .hero-decoration:nth-child(2) {
    top: 60%; left: 10%; animation-delay: 2s;
}
.profile-hero-decorations .hero-decoration:nth-child(3) {
    bottom: 25%; right: 25%; animation-delay: 4s;
}
.profile-hero-body { 
    position: relative; z-index: 2; text-align: center; padding: 52px 32px 44px; color: #fff;
}
.profile-avatar-wrapper {
    position: relative; display: inline-block; margin-bottom: 18px;
}
.profile-avatar-ring {
    position: relative; display: inline-block;
    background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.05));
    border-radius: 50%; padding: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.profile-avatar {
    width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,.15);
    border: 4px solid rgba(255,255,255,.6); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 42px; font-weight: 900; color: #fff;
    transition: transform .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-ring:hover .profile-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.profile-avatar-badge {
    position: absolute; bottom: 4px; inset-inline-end: 4px;
    width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #059669);
    border: 3px solid #0a5f4a; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
    box-shadow: 0 4px 12px rgba(16,185,129,.4);
}
.profile-score-badge {
    position: absolute; top: -12px; inset-inline-end: -12px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0,0,0,.2);
    transition: transform .2s ease;
}
.profile-score-badge:hover {
    transform: scale(1.05);
}
.profile-hero-content {
    margin: 20px 0 28px;
}
.profile-hero h1 { 
    margin: 0 0 10px; font-size: 32px; font-weight: 900; 
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.profile-hero-phone { 
    margin: 0 0 24px; font-size: 15px; opacity: .95;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.profile-meta-info {
    display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px;
}
.profile-meta-item {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px; padding: 8px 16px;
    backdrop-filter: blur(6px); font-size: 13.5px; font-weight: 600;
}
.profile-hero-stats {
    display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
    margin-top: 32px; position: relative; z-index: 3;
}
.phs-item {
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px; padding: 16px 26px; min-width: 130px;
    backdrop-filter: blur(8px); transition: all .3s ease;
    position: relative; overflow: hidden;
}
.phs-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
    opacity: 0; transition: opacity .3s ease;
}
.phs-item:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255,255,255,.2);
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.phs-item:hover::before {
    opacity: 1;
}
.phs-item.phs-highlight {
    background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
    border-color: rgba(255,255,255,.4);
}
.phs-icon-wrapper {
    position: absolute; top: 8px; inset-inline-start: 8px;
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(255,255,255,.2); display: flex;
    align-items: center; justify-content: center; font-size: 14px;
}
.phs-value { 
    display: block; font-size: 22px; font-weight: 800; color: #fff;
    margin-top: 20px; position: relative; z-index: 1;
}
.phs-label { 
    display: block; font-size: 12px; opacity: .85; margin-top: 4px;
    position: relative; z-index: 1;
}
.completion-bar-wrapper {
    background: rgba(255,255,255,.1); border-radius: 12px; padding: 16px 20px;
    min-width: 180px; border: 1px solid rgba(255,255,255,.2);
}
.completion-bar-container {
    position: relative;
}
.completion-bar-track {
    height: 8px; background: rgba(255,255,255,.15); border-radius: 999px;
    overflow: hidden; margin-bottom: 8px;
}
.completion-bar-fill {
    height: 100%; background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 999px; transition: width 1.5s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 0 12px rgba(16,185,129,.5);
}
.completion-text {
    font-size: 11.5px; opacity: .9; font-weight: 600;
}

/* ---------- Enhanced Profile Information Card ---------- */
.profile-info-card {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fafdfb 100%);
    border: 1px solid rgba(14,122,95,.12);
}
.profile-info-card::before {
    content: ''; position: absolute; top: 0; inset-inline-start: 0;
    width: 4px; height: 100%; background: linear-gradient(180deg, var(--primary), var(--accent));
}
.profile-info-card .panel-card-head {
    background: rgba(14,122,95,.02); padding: 20px 24px;
}
.profile-info-card .panel-card-title {
    font-size: 16px; font-weight: 700;
}
.profile-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), #d1fae5);
    color: var(--primary-dark); border: 1px solid rgba(14,122,95,.2);
}
.profile-info-container {
    padding: 20px;
}
.profile-info-list {
    margin: 0; padding: 0; list-style: none;
}
.profile-info-item {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px;
    border-bottom: 1px solid #f1f3f2; transition: all .2s ease;
    position: relative; overflow: hidden;
}
.profile-info-item:hover {
    background: linear-gradient(90deg, rgba(14,122,95,.03), transparent);
    transform: translateX(-4px);
}
.profile-info-item::before {
    content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
    width: 3px; background: linear-gradient(180deg, var(--primary), transparent);
    opacity: 0; transition: opacity .2s ease;
}
.profile-info-item:hover::before {
    opacity: 1;
}
.profile-info-item[data-label="نام کامل"]::before { background: linear-gradient(180deg, #10b981, transparent); }
.profile-info-item[data-label="شماره موبایل"]::before { background: linear-gradient(180deg, #3b82f6, transparent); }
.profile-info-item[data-label="تاریخ عضویت"]::before { background: linear-gradient(180deg, #8b5cf6, transparent); }
.profile-info-item[data-label="آخرین کمک"]::before { background: linear-gradient(180deg, #f59e0b, transparent); }

.profile-info-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #e6f4ef, #d1fae5); color: #0e7a5f;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    box-shadow: 0 4px 12px rgba(14,122,95,.15);
    transition: transform .3s ease;
}
.profile-info-item:hover .profile-info-icon {
    transform: scale(1.1);
}
.info-content {
    flex: 1;
}
.info-label {
    display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px;
    font-weight: 600;
}
.info-value {
    display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
}
.profile-info-item:last-child {
    border-bottom: none;
}
.profile-quick-actions {
    padding: 0 20px 20px; display: flex; gap: 10px; flex-wrap: wrap;
}
.profile-quick-actions .btn {
    flex: 1; min-width: 120px; font-size: 12.5px; padding: 10px 14px;
    transition: all .2s ease; position: relative; overflow: hidden;
}
.profile-quick-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14,122,95,.2);
}
.profile-quick-actions .btn-primary {
    background: linear-gradient(135deg, var(--accent), #e0b93f);
    color: #1f2937; font-weight: 700; border: none;
    box-shadow: 0 6px 18px rgba(201,162,39,.32);
}
.profile-quick-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(201,162,39,.42);
    background: linear-gradient(135deg, #e0b93f, var(--accent));
}
.profile-quick-actions .btn-primary i {
    color: #1f2937;
}
@media (max-width: 640px) {
    .profile-quick-actions {
        flex-direction: column;
    }
    .profile-quick-actions .btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* ---------- Enhanced Edit Profile Card ---------- */
.profile-edit-card {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
}
.profile-edit-card::before {
    content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 100%;
    height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    animation: gradientShift 4s ease-in-out infinite;
}
.edit-form-container {
    padding: 24px;
}
.form-section {
    margin-bottom: 28px;
}
.form-section-title {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
    font-size: 15.5px; font-weight: 700; color: var(--primary-dark);
}
.form-section-title i {
    width: 32px; height: 32px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-light), #d4efe4);
    color: var(--primary); display: flex; align-items: center;
    justify-content: center; font-size: 14px;
}
.form-group {
    position: relative; transition: all .3s ease;
    margin-bottom: 20px;
}
.form-group.error {
    animation: shake 0.4s ease;
}
.form-group.error .form-control {
    border-color: var(--danger); background: rgba(254,242,242,.5);
}
.form-group.locked {
    opacity: 0.7;
    pointer-events: none;
}
.label-icon {
    width: 16px; height: 16px; display: inline-flex; align-items: center;
    justify-content: center; margin-inline-end: 8px;
}
.input-wrapper {
    position: relative; transition: transform .2s ease;
}
.input-wrapper:hover {
    transform: translateY(-2px);
}
.input-status {
    position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(255,255,255,.8); backdrop-filter: blur(4px);
}
.form-group.success .input-status {
    background: #d1fae5;
}
.form-group.error .input-status {
    background: #fee2e2;
}
.form-group .form-control {
    transition: all .3s ease; position: relative; z-index: 1;
    padding-inline-start: 46px;
}
.form-group .form-control:focus {
    border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,122,95,.12);
    transform: translateY(-1px);
}
.form-group.locked .form-control {
    background: #f9fafb; border-color: var(--border); cursor: not-allowed;
    opacity: 0.7;
}
.form-group .form-text {
    margin-top: 6px; font-size: 12.5px; display: flex; align-items: center; gap: 6px;
}
.form-group.locked .form-text {
    background: var(--primary-light); border: 1px solid rgba(14,122,95,.2);
    border-radius: 8px; padding: 10px 12px; margin-top: 10px;
}
.error-message {
    color: var(--danger); font-size: 12.5px; margin-top: 6px; height: 18px;
    opacity: 0; transition: opacity .3s ease;
}
.error-message.show {
    opacity: 1;
}
.form-actions {
    display: flex; gap: 12px; margin-top: 32px; justify-content: flex-end;
}
.form-actions .btn {
    min-width: 140px; transition: all .3s ease; position: relative;
    overflow: hidden;
}
.form-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(14,122,95,.3);
}
.form-actions .btn:active {
    transform: translateY(-1px);
}

/* ---------- Enhanced Logout Card ---------- */
.logout-card {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
    border-color: #fecaca;
}
.logout-card::before {
    content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 100%;
    height: 4px; background: linear-gradient(90deg, var(--danger), #ef4444, var(--danger));
}
.logout-content {
    padding: 24px;
}
.logout-icon {
    width: 56px; height: 56px; border-radius: 16px; background: #fee2e2;
    color: var(--danger); display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 20px; box-shadow: 0 6px 20px rgba(220,38,38,.15);
    animation: pulseDanger 2s ease-in-out infinite;
}
.logout-text {
    text-align: center; margin-bottom: 24px;
}
.logout-description {
    font-size: 14.5px; color: var(--text); margin-bottom: 16px; display: block;
}
.logout-notes {
    list-style: none; padding: 0; margin: 0; text-align: right;
    max-width: 320px; margin: 0 auto;
}
.logout-notes li {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
    font-size: 13.5px; color: var(--text-muted);
}
.logout-form {
    margin-top: 24px;
}
.logout-form .btn {
    width: 100%; transition: all .3s ease; position: relative; overflow: hidden;
}
.logout-form .btn:hover {
    transform: translateY(-3px) translateX(-5px);
    box-shadow: 0 12px 30px rgba(220,38,38,.4);
}
.logout-form .btn i:last-child {
    opacity: 0; transition: all .3s ease;
}
.logout-form .btn:hover i:last-child {
    opacity: 1; transform: translateX(-8px);
}

/* ---------- Toast Notifications ---------- */
.toast-container {
    position: fixed; top: 24px; inset-inline-start: 24px; z-index: 9999;
    max-width: 380px; pointer-events: none;
}
.toast {
    background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
    padding: 16px 20px; margin-bottom: 12px;
    border-right: 4px solid var(--primary); opacity: 0;
    transform: translateX(-20px); transition: all .3s cubic-bezier(.4, 0, .2, 1);
    pointer-events: auto; position: relative; overflow: hidden;
}
.toast.show {
    opacity: 1; transform: translateX(0);
}
.toast::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
    opacity: 0; transition: opacity .3s ease;
}
.toast:hover::before {
    opacity: 1;
}
.toast-content {
    display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500;
}
.toast-success { border-color: var(--success); }
.toast-success .toast-content i {
    color: var(--success); background: #d1fae5; width: 28px; height: 28px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.toast-info { border-color: var(--primary); }
.toast-info .toast-content i {
    color: var(--primary); background: var(--primary-light); width: 28px; height: 28px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.toast-danger { border-color: var(--danger); }
.toast-danger .toast-content i {
    color: var(--danger); background: #fee2e2; width: 28px; height: 28px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ---------- Animations ---------- */
@keyframes floatDecoration {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-15px) rotate(180deg); opacity: 0.6; }
}
@keyframes gradientShift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
@keyframes pulseDanger {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ---------- Responsive Enhancements ---------- */
@media (max-width: 991.98px) {
    .profile-hero {
        border-radius: 20px; margin-bottom: 16px;
    }
    .profile-hero:hover { transform: none; }
    .profile-hero-body {
        padding: 28px 16px 18px;
    }
    .profile-avatar {
        width: 72px; height: 72px; font-size: 30px;
    }
    .profile-hero h1 {
        font-size: 22px;
    }
    .profile-meta-info {
        justify-content: center;
        gap: 10px;
        margin-bottom: 12px;
    }
    .profile-hero-content {
        margin: 10px 0 12px;
    }
    .profile-hero-phone { margin-bottom: 10px; font-size: 13px; }
    .profile-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
        width: 100%;
    }
    .phs-item {
        width: auto; max-width: none; min-width: 0;
        padding: 12px 6px 10px; border-radius: 14px;
        text-align: center;
    }
    .phs-item:hover { transform: none; }
    .phs-icon-wrapper { display: none; }
    .phs-value { font-size: 15px; margin-top: 0; }
    .phs-label { font-size: 11px; margin-top: 2px; }
    .phs-item.completion-bar-wrapper { display: none; }
    .profile-info-card .panel-card-head {
        flex-direction: column; align-items: flex-start !important;
        gap: 12px;
    }
    .profile-quick-actions .btn {
        min-width: 100%;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
    }
}
@media (max-width: 640px) {
    .profile-hero {
        border-radius: 14px;
        margin-bottom: 12px;
    }
    .profile-hero:hover { transform: none; }
    .profile-hero-body {
        padding: 18px 12px 14px;
    }
    .profile-avatar-wrapper { margin-bottom: 8px; }
    .profile-avatar {
        width: 56px; height: 56px; border-width: 3px;
    }
    .profile-avatar-badge {
        width: 22px; height: 22px; font-size: 10px; border-width: 2px;
    }
    .profile-score-badge {
        top: -8px; inset-inline-end: -8px;
        padding: 3px 8px; font-size: 10px;
    }
    .profile-hero h1 { font-size: 18px; margin-bottom: 4px; }
    .profile-hero-phone { margin-bottom: 8px; font-size: 12px; }
    .profile-hero-content { margin: 6px 0 8px; }
    .profile-meta-info {
        flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 8px;
    }
    .profile-meta-info .meta-item,
    .profile-meta-item {
        padding: 4px 10px; font-size: 11px;
    }
    .profile-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-top: 10px;
        width: 100%;
    }
    .phs-item {
        width: auto; max-width: none; min-width: 0;
        padding: 10px 4px 8px; border-radius: 12px;
        text-align: center;
    }
    .phs-item:hover { transform: none; }
    .phs-icon-wrapper { display: none; }
    .phs-value { font-size: 13px; margin-top: 0; }
    .phs-label { font-size: 10px; margin-top: 2px; }
    .phs-item.completion-bar-wrapper {
        display: none;
    }
    .info-value {
        font-size: 13px;
    }
    .logout-icon {
        width: 48px; height: 48px; font-size: 20px;
    }
    .profile-info-item { padding: 10px 12px; gap: 10px; }
    .profile-info-card .panel-card-head { padding: 14px 16px; }
    .profile-info-container { padding: 8px; }
}

.profile-info-list { list-style: none; margin: 0; padding: 0; }
.profile-info-list li {
    display: flex; align-items: center; gap: 14px; padding: 14px 20px;
    border-bottom: 1px solid #f1f3f2;
}
.profile-info-list li:last-child { border-bottom: none; }
.profile-info-icon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #e6f4ef, #d1fae5); color: #0e7a5f;
    display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.profile-info-list li div span { display: block; font-size: 11.5px; color: var(--text-muted); }
.profile-info-list li div strong { font-size: 14px; }

/* ---------- Maintenance ---------- */
.maintenance-wrap {
    min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px;
}
.maintenance-card {
    text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 24px;
    padding: 48px 40px; max-width: 460px; width: 100%; box-shadow: 0 24px 60px rgba(6,46,38,.12);
}
.maintenance-icon {
    width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
    background: linear-gradient(135deg, #e6f4ef, #d1fae5); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 34px;
    animation: float 3s ease-in-out infinite;
}
.maintenance-card h1 { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.maintenance-card p { color: var(--text-muted); margin: 0; }

/* ---------- Rich content snippets (editor templates) ---------- */
.ed-alert {
    background: #fffbeb; border-right: 4px solid #f59e0b; border-radius: 0 12px 12px 0;
    padding: 14px 18px; margin: 18px 0; color: #78350f;
}
.ed-quote {
    border-right: 4px solid var(--primary); background: #f0fdf7; border-radius: 0 12px 12px 0;
    padding: 14px 20px; margin: 18px 0; color: #374151;
}
.ed-cta {
    background:
        radial-gradient(circle at 90% 10%, rgba(201,162,39,.35), transparent 45%),
        linear-gradient(135deg, #062e26, #0e7a5f);
    color: #fff; border-radius: 20px; padding: 30px 26px; text-align: center; margin: 24px 0;
}
.ed-cta h3 { color: #fff; margin: 0 0 8px; font-weight: 800; }
.ed-cta p { margin: 0 0 6px; opacity: .95; }
.ed-cta-btn {
    display: inline-block; background: #c9a227; color: #1f2937 !important;
    padding: 10px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; margin-top: 8px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ed-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(201,162,39,.4); color: #1f2937 !important; }

/* cards */
.panel-card {
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    box-shadow: var(--shadow-sm); overflow: hidden; height: 100%;
}
.panel-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.panel-card-title { font-size: 15.5px; margin: 0; display: flex; align-items: center; gap: 8px; }
.panel-card-title i { color: var(--primary); }
.panel-card-link { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.panel-card .panel-muted { padding: 16px 20px; display: block; }
.panel-card-body { padding: 18px 20px; }
.panel-project-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px; align-items: stretch;
}

/* table */
.panel-table-wrap { overflow-x: auto; }
.panel-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.panel-table thead th {
    background: #f8faf9; color: var(--text-muted); font-size: 12px; font-weight: 700;
    padding: 12px 20px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.panel-table tbody td { padding: 13px 20px; border-bottom: 1px solid #f1f3f2; vertical-align: middle; }
.panel-table tbody tr:last-child td { border-bottom: none; }
.panel-table tbody tr { transition: background .18s ease; }
.panel-table tbody tr:hover { background: #f8fbfa; }
.panel-table .mono { font-family: 'SFMono-Regular', Consolas, monospace; direction: ltr; letter-spacing: .4px; font-size: 12.5px; }
.panel-table .strong { font-weight: 700; white-space: nowrap; }
.panel-row-link {
    display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600;
    background: var(--primary-light); color: var(--primary-dark);
    padding: 5px 12px; border-radius: 999px; white-space: nowrap; transition: all .2s ease;
}
.panel-row-link:hover { background: var(--primary); color: #fff; }
.panel-table-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--border);
}
.panel-pager { display: flex; gap: 6px; flex-wrap: wrap; }
.panel-pager-item {
    min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px;
    border: 1px solid var(--border); background: #fff; color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; transition: all .2s ease;
}
.panel-pager-item:hover { border-color: var(--primary); color: var(--primary); }
.panel-pager-item.active {
    background: linear-gradient(135deg, var(--primary), #109576);
    border-color: transparent; color: #fff; box-shadow: 0 5px 14px rgba(14, 122, 95, .3);
}

/* payment method + transaction meta */
.pay-method {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 700; white-space: nowrap;
}
.pay-method i { font-size: 13px; }
.pay-c2c { background: #fef3c7; color: #92400e; }
.pay-gateway { background: #dbeafe; color: #1e40af; }
.pay-unknown { background: #f3f4f6; color: #6b7280; }
.txn-tracking, .txn-card { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.txn-card { color: var(--text); font-weight: 600; letter-spacing: .5px; }
.txn-reject { font-size: 11.5px; line-height: 1.7; max-width: 230px; white-space: normal; }
.txn-cell { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.txn-cell .txn-tracking, .txn-cell .txn-card { display: inline-flex; align-items: center; gap: 4px; }
.txn-cell .txn-tracking i, .txn-cell .txn-card i { font-size: 11px; opacity: .75; }

/* project code chip */
.project-card-code {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    direction: ltr; letter-spacing: .6px;
    background: rgba(14, 122, 95, .08); color: var(--primary-dark);
    border: 1px dashed rgba(14, 122, 95, .34);
    padding: 3px 10px; border-radius: 9px;
    font-size: 11.5px; font-weight: 700;
}
.project-card-code.is-none {
    background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; border-style: solid;
    font-family: inherit; letter-spacing: 0;
}
/* receipt: project code + name */
.receipt-project-name { margin-inline-start: 8px; font-weight: 600; }
.project-card .project-card-code { margin-bottom: 10px; }

/* bottom nav (پنل روی موبایل — حالت اپلیکیشن) */
.panel-bottom-nav,
.site-bottom-nav { display: none; }
.bottom-nav-item {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 2px; border-radius: 14px; text-decoration: none; position: relative;
    color: var(--text-muted); font-size: 10.5px; font-weight: 700;
    transition: color .18s ease, background .18s ease;
}
.bottom-nav-item i { font-size: 21px; line-height: 1; }
.bottom-nav-item.active { color: var(--primary); background: var(--primary-light); }
.bottom-nav-badge {
    position: absolute; top: 2px; inset-inline-end: 18%;
    min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px;
    background: #dc2626; color: #fff; font-size: 9px; font-style: normal;
    font-weight: 800; line-height: 16px; text-align: center;
}
.bottom-nav-logout { border: none; background: none; cursor: pointer; }
.bottom-nav-logout button {
    all: unset; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--text-muted); font-size: 10.5px; font-weight: 700; cursor: pointer;
    padding: 7px 2px; border-radius: 14px;
}
.bottom-nav-logout button i { font-size: 21px; line-height: 1; }

/* summary + filters */
.panel-summary-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.panel-summary {
    background: linear-gradient(160deg, #ffffff 0%, #f4faf8 100%);
    border: 1px solid var(--border); border-radius: 16px;
    padding: 14px 18px; box-shadow: var(--shadow-sm);
}
.panel-summary-gold { background: linear-gradient(150deg, #fffbeb 0%, #ffffff 80%); border-color: rgba(217,119,6,.22); }
.panel-summary-green { background: linear-gradient(150deg, #ecfdf5 0%, #ffffff 80%); border-color: rgba(14,122,95,.22); }
.panel-summary-amber { background: linear-gradient(150deg, #fff7ed 0%, #ffffff 80%); border-color: rgba(245,158,11,.25); }
.panel-summary-blue { background: linear-gradient(150deg, #eff6ff 0%, #ffffff 80%); border-color: rgba(37,99,235,.22); }
.panel-summary-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.panel-summary-value { display: block; font-size: 17px; font-weight: 800; color: var(--primary-dark); }
.panel-summary-value.gold { color: var(--accent-dark); }
.panel-summary-value.warn { color: var(--warning); }
.panel-summary-value small { font-weight: 500; font-size: 12px; color: var(--text-muted); }

.panel-filter-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-chip {
    display: inline-flex; align-items: center; gap: 7px; background: #fff;
    border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px;
    font-size: 13px; font-weight: 600; color: var(--text); transition: all .2s ease;
}
.panel-chip:hover { border-color: var(--primary); color: var(--primary); }
.panel-chip.active {
    background: linear-gradient(135deg, var(--primary), #109576);
    border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(14, 122, 95, .3);
}
.panel-chip-count {
    background: rgba(0, 0, 0, .06); border-radius: 999px;
    padding: 1px 8px; font-size: 11.5px; font-weight: 700;
}
.panel-chip.active .panel-chip-count { background: rgba(255, 255, 255, .22); }

/* empty state */
.panel-empty { text-align: center; padding: 46px 20px; }
.panel-empty-icon {
    width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center; font-size: 32px;
    background: var(--primary-light); color: var(--primary);
}
.panel-empty h3 { font-size: 17px; margin-bottom: 6px; }
.panel-empty p { color: var(--text-muted); font-size: 13.5px; margin-bottom: 18px; }
.panel-muted { color: var(--text-muted); font-size: 13.5px; }

/* dashboard: mini plan list */
.panel-plan-list { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 16px; }
.panel-plan-mini {
    display: flex; flex-direction: column; gap: 9px; background: #fff;
    border: 1px solid var(--border); border-radius: 16px; padding: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.panel-plan-mini:hover { border-color: rgba(14, 122, 95, .4); box-shadow: var(--shadow-sm); }
.panel-plan-mini-head { display: flex; align-items: center; gap: 10px; }
.panel-plan-mini .plan-icon { width: 44px; height: 44px; border-radius: 13px; font-size: 19px; flex-shrink: 0; }
.panel-plan-mini-head strong { display: block; font-size: 14px; line-height: 1.6; }
.panel-plan-mini-head span { display: block; font-size: 12px; color: var(--text-muted); }
.panel-plan-mini-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); }
.panel-plan-mini-meta b { color: var(--primary-dark); font-weight: 700; }

/* plans page */
.panel-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panel-plan-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--border); border-radius: 20px;
    padding: 22px 20px 20px; box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.panel-plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.panel-plan-card.mine { border-color: rgba(201, 162, 39, .6); }
.panel-plan-mine-badge {
    position: absolute; top: 14px; inset-inline-end: 14px;
    background: var(--accent-light); color: var(--accent-dark);
    font-size: 11.5px; font-weight: 700; border-radius: 999px;
    padding: 4px 11px; display: inline-flex; align-items: center; gap: 5px;
}
.panel-plan-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-inline-end: 96px; }
.panel-plan-card.mine .panel-plan-card-head { padding-inline-end: 132px; }
.panel-plan-card-title h2 { font-size: 16.5px; margin: 0; line-height: 1.6; }
.panel-plan-card-title span { font-size: 12.5px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }
.panel-plan-card-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.panel-plan-card-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px;
    background: #f8faf9; border: 1px solid #eef2f1; border-radius: 14px;
    padding: 12px 14px; margin-bottom: 12px;
}
.panel-plan-card-stats .label { display: block; font-size: 11.5px; color: var(--text-muted); }
.panel-plan-card-stats .value { display: block; font-size: 14.5px; font-weight: 800; color: var(--primary-dark); }
.panel-plan-progress-label { font-size: 12px; color: var(--text-muted); margin: -4px 0 14px; }
.panel-plan-my {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--accent-light); border: 1px dashed rgba(201, 162, 39, .55);
    border-radius: 14px; padding: 11px 14px; margin-bottom: 14px; font-size: 12.5px;
}
.panel-plan-my span { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-dark); font-weight: 700; }
.panel-plan-my strong { font-size: 14.5px; color: var(--text); }
.panel-plan-my small { margin-inline-start: auto; color: var(--text-muted); }
.panel-plan-card .btn { margin-top: auto; }

/* note */
.panel-note {
    display: flex; gap: 10px; margin-top: 18px; font-size: 13px;
    background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
    border-radius: 15px; padding: 14px 16px;
}
.panel-note i { color: #2563eb; margin-top: 3px; }
.panel-note p { margin: 0; }

/* profile */
.panel-profile-card { text-align: center; padding: 26px 22px 22px; }
.panel-profile-avatar {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), #14a37d); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 800; box-shadow: 0 10px 26px rgba(14, 122, 95, .35);
}
.panel-profile-name { font-size: 18px; margin-bottom: 8px; }
.panel-profile-info { list-style: none; padding: 0; margin: 16px 0 18px; text-align: right; }
.panel-profile-info li {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 4px; border-bottom: 1px solid #f1f3f2;
}
.panel-profile-info li:last-child { border-bottom: none; }
.panel-profile-info li i {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.panel-profile-info li div { display: flex; flex-direction: column; line-height: 1.7; }
.panel-profile-info li span { font-size: 11.5px; color: var(--text-muted); }
.panel-profile-info li strong { font-size: 13.5px; }
.panel-danger-card { border-color: #fecaca; }
.panel-danger-card .panel-card-title i { color: var(--danger); }
.otp-input {
    text-align: center; font-size: 21px; font-weight: 700;
    letter-spacing: .45em; direction: ltr;
}

/* footer */
.panel-footer {
    background: #fff; border-top: 1px solid var(--border);
    padding: 16px 0; font-size: 13px; color: var(--text-muted);
}
.panel-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-footer-links { display: inline-flex; gap: 16px; }
.panel-footer-links a { color: var(--text-muted); }
.panel-footer-links a:hover { color: var(--primary); }

@media (max-width: 991.98px) {
    .panel-wrap { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 24px; }
    .panel-header-inner { position: relative; justify-content: space-between; gap: 8px; min-height: 44px; }
    .panel-menu-toggle { display: inline-flex; position: relative; z-index: 2; }
    .panel-brand {
        position: absolute; inset: 0; padding-inline: 96px;
        display: flex; justify-content: center; align-items: center;
        flex: none; pointer-events: none; text-align: center; z-index: 1;
    }
    .panel-brand img, .panel-brand .brand-mark, .panel-brand-text { pointer-events: auto; }
    .panel-brand-text { text-align: center; }
    .panel-header-actions { position: relative; z-index: 2; margin-inline-start: auto; }
    .panel-header-site { display: none; }
    .panel-header-donate { display: none; }
    .panel-hero-body { flex-wrap: wrap; }
    .panel-hero-actions { width: 100%; flex: 1 1 100%; }
    .panel-hero-donate { width: 100%; }
    .panel-sidebar-head {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        padding: 4px 4px 12px; font-weight: 800; font-size: 15px; color: var(--text);
    }
    .panel-sidebar-close {
        width: 36px; height: 36px; border: 0; border-radius: 10px; flex-shrink: 0;
        background: var(--primary-light); color: var(--primary); cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
    }
    .panel-sidebar {
        position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 1080;
        width: min(340px, 92vw); max-width: 340px; height: 100dvh; max-height: 100dvh;
        background: #f1f5f3;
        padding: calc(14px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
        overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
        transform: translateX(110%); transition: transform .25s ease, visibility .25s ease;
        box-shadow: none; visibility: hidden; pointer-events: none;
        display: flex; flex-direction: column; gap: 14px;
    }
    .panel-sidebar .panel-user {
        flex: 0 0 auto; overflow: hidden; padding: 18px 16px 16px;
    }
    .panel-sidebar .panel-avatar { width: 72px; height: 72px; margin-bottom: 12px; }
    .panel-sidebar .panel-user-info strong,
    .panel-sidebar .panel-user-info span {
        white-space: normal; overflow: visible; word-break: break-word;
    }
    .panel-sidebar .panel-user-badge { display: inline-flex; }
    .panel-sidebar .panel-nav { flex: 1 1 auto; min-height: 0; }
    body.account-menu-open .panel-sidebar {
        transform: translateX(0); visibility: visible; pointer-events: auto;
        box-shadow: -16px 0 40px rgba(4, 50, 38, .28);
    }
    .panel-sidebar-backdrop {
        display: block; position: fixed; inset: 0; z-index: 1070;
        background: rgba(6, 46, 38, .42); opacity: 0; pointer-events: none;
        transition: opacity .22s ease; visibility: hidden;
    }
    body.account-menu-open .panel-sidebar-backdrop {
        opacity: 1; pointer-events: auto; visibility: visible;
    }
    .panel-sidebar .panel-sidebar-note { display: none; }
    .panel-bottom-nav,
    .site-bottom-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
        background: rgba(255, 255, 255, .94);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 28px rgba(4, 50, 38, .1);
        gap: 2px; padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    }
    .site-bottom-nav { z-index: 1020; }
    .panel-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .auth-shell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    .panel-stat-grid, .panel-summary-row { grid-template-columns: repeat(2, 1fr); }
    .panel-plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .panel-stat-grid, .panel-summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-plan-grid { grid-template-columns: 1fr; }
    /* کارت‌های آماری در موبایل: دو ستون و چیدمان فشرده */
    .panel-stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 16px; }
    .panel-stat-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
    .panel-stat-value { font-size: 18px; }
    .panel-stat-label { font-size: 11.5px; line-height: 1.6; }
    .panel-summary { padding: 12px 14px; border-radius: 14px; }
    .panel-summary-value { font-size: 15px; }
    .panel-summary-label { font-size: 11px; }
    .panel-hero { padding: 22px 18px; }
    .panel-hero-text h1 { font-size: 20px; }
    .panel-hero-actions { width: 100%; flex: 1 1 100%; }
    .panel-hero-actions .btn, .hero-score, .panel-hero-donate { width: 100%; }
    .hero-score { padding: 15px 18px; }
    .panel-page-head { flex-direction: column; align-items: stretch; }
    .panel-header-actions .btn-outline { display: none; }
    .panel-brand-text { font-size: 14px; }
    .panel-nav-item { flex: 1 1 100%; }
    .panel-table thead th, .panel-table tbody td { padding-inline: 14px; }
    .panel-table-wrap { -webkit-overflow-scrolling: touch; }
    .panel-footer .container { justify-content: center; text-align: center; }

    /* پروژه‌ها روی موبایل — حالت اپلیکیشن */
    .panel-project-grid { grid-template-columns: 1fr; }
    .project-card { border-radius: 20px; box-shadow: 0 10px 28px rgba(4, 50, 38, .08); }
    .project-card .card-title a { font-size: 17px; }
    .project-card .card-body { padding: 18px; }
    .project-card .card-footer { padding: 14px 18px; background: none; border-top: 0; }
    .project-card .btn { padding: 13px; font-size: 15px; font-weight: 700; border-radius: 14px; }
    .panel-row-link, .panel-chip { min-height: 40px; }
    .panel-chip { padding: 9px 15px; font-size: 13.5px; }
    .bottom-nav-item { padding: 9px 2px; }
}

/* ---------- Auth pages (member login/register/otp) ---------- */
body.auth-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(201,162,39,.16), transparent 38%),
        radial-gradient(circle at 90% 100%, rgba(52,211,153,.14), transparent 42%),
        linear-gradient(160deg, #f3f8f6 0%, #eef6f3 55%, #f6f8f7 100%);
    min-height: 100vh;
}
.auth-shell { padding: 52px 0 84px; display: flex; align-items: flex-start; justify-content: center; }
.auth-card-single {
    position: relative; width: 100%; max-width: 460px; margin: 0 auto;
    background: #fff; border-radius: 28px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(4,50,38,.16), 0 2px 8px rgba(4,50,38,.06);
    border: 1px solid rgba(14,122,95,.08);
    animation: authIn .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes authIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.acs-head {
    position: relative; padding: 26px 30px 52px; color: #fff; text-align: center;
    background:
        radial-gradient(circle at 18% 0%, rgba(201,162,39,.34), transparent 48%),
        radial-gradient(circle at 85% 20%, rgba(52,211,153,.25), transparent 42%),
        linear-gradient(150deg, #0a5f4a, #0e7a5f 65%, #14a37d);
}
.acs-head::before {
    content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%;
    border: 1.5px dashed rgba(255,255,255,.14); top: -110px; inset-inline-start: -70px;
}
.acs-head::after {
    content: ''; position: absolute; bottom: -26px; left: -12%; width: 124%; height: 52px;
    background: #fff; border-radius: 50%;
}
.acs-brand {
    position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
    color: #fff; font-weight: 800; font-size: 14.5px; margin-bottom: 18px;
}
.acs-brand:hover { color: #fff; }
.acs-brand .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; background: rgba(255,255,255,.16); box-shadow: none; }
.acs-icon {
    position: relative; z-index: 2; width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 14px;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; font-size: 27px; color: #fff;
    box-shadow: 0 10px 24px rgba(4,50,38,.25);
}
.acs-head h1 { position: relative; z-index: 2; font-size: 21px; margin: 0 0 6px; }
.acs-head p { position: relative; z-index: 2; margin: 0; font-size: 13px; opacity: .88; line-height: 1.9; }
.acs-body { padding: 20px 32px 32px; }
.acs-body .form-label { font-size: 12.5px; font-weight: 700; }
.acs-body .form-control {
    border-radius: 13px; padding: 13px 15px; font-size: 15px;
    background: #f7faf9; border-color: #e1e9e5;
}
.acs-body .form-control:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3.5px rgba(14,122,95,.13); }
.acs-body .btn-primary { border-radius: 13px; padding: 13px; font-size: 15px; font-weight: 700; margin-top: 4px; box-shadow: 0 10px 22px rgba(14,122,95,.3); }
.acs-body .btn-primary:hover { transform: translateY(-1px); }
.auth-label-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.auth-label-row .form-label { margin-bottom: 8px; }
.auth-forgot {
    font-size: 12.5px; font-weight: 700; color: var(--primary); margin-bottom: 8px;
    white-space: nowrap;
}
.auth-switch {
    margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--text-muted);
    padding-top: 16px; border-top: 1px dashed #e2e8e5;
}
.auth-switch a { color: var(--primary); font-weight: 700; }
.auth-method-tabs {
    display: flex; gap: 8px; background: #f3f6f5; border-radius: 12px; padding: 4px;
}
.auth-method-tabs a {
    flex: 1; text-align: center; padding: 8px 10px; border-radius: 10px;
    font-size: 13px; font-weight: 700; color: var(--text-muted); text-decoration: none;
}
.auth-method-tabs a.active { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(14,122,95,.12); }
.auth-dev-code {
    background: linear-gradient(135deg, #fffbeb, #fdf3d7);
    border: 1.5px dashed var(--accent); border-radius: 16px;
    padding: 14px; text-align: center; margin-bottom: 16px;
}
.auth-dev-code .small { font-size: 11.5px; color: #92400e; font-weight: 700; margin-bottom: 4px; }
.auth-dev-code .code { font-size: 28px; font-weight: 800; letter-spacing: .45em; direction: ltr; color: #7a5c07; }

/* ---------- Reverse OTP (ارسال کد از موبایل به شماره پنل) ---------- */
.otp-reverse-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.otp-reverse-step {
    display: flex; align-items: center; gap: 12px; background: #f8faf9;
    border: 1px solid var(--border); border-radius: 15px; padding: 12px 14px;
}
.otp-reverse-step-muted { background: #fff; }
.otp-reverse-num {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), #14a37d); color: #fff;
    font-size: 13px; font-weight: 800;
}
.otp-reverse-content { flex: 1; min-width: 0; }
.otp-reverse-label { display: block; font-size: 11.5px; color: var(--text-muted); margin-bottom: 2px; }
.otp-reverse-code {
    font-size: 26px; font-weight: 800; letter-spacing: .32em;
    color: var(--primary-dark); font-family: 'SFMono-Regular', Consolas, monospace;
    line-height: 1.25; direction: ltr;
}
.otp-reverse-number {
    font-size: 18px; font-weight: 800; letter-spacing: .06em; color: var(--text);
    font-family: 'SFMono-Regular', Consolas, monospace; direction: ltr;
}
.otp-reverse-phone { font-size: 14px; font-weight: 700; color: var(--text); direction: ltr; }
.otp-reverse-warn { font-size: 12.5px; color: #b45309; font-weight: 700; }
.otp-copy {
    width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border);
    background: #fff; color: var(--primary); flex-shrink: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .2s ease;
}
.otp-copy:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.otp-waiting {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    background: var(--primary-light); color: var(--primary-dark);
    border-radius: 13px; padding: 12px 14px; font-size: 13px; font-weight: 700;
}
.otp-sms-open {
    display: none; align-items: center; justify-content: center; gap: 8px;
    margin-top: 10px; width: 100%; border-radius: 13px; padding: 12px 14px;
    background: var(--primary); color: #fff; font-size: 14px; font-weight: 700;
    text-decoration: none;
}
.otp-sms-open:hover { color: #fff; opacity: .92; }
@media (max-width: 640px) {
    .otp-sms-open { display: inline-flex; }
}
.otp-reverse-hint {
    display: flex; gap: 8px; margin-top: 12px; font-size: 12px; line-height: 1.8;
    color: var(--text-muted);
}
.otp-reverse-hint i { color: var(--primary); margin-top: 3px; }
.otp-manual { margin-top: 14px; }
.otp-manual summary { cursor: pointer; font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.otp-manual summary:hover { color: var(--primary); }
@media (max-width: 640px) {
    .otp-reverse-code { font-size: 22px; letter-spacing: .24em; }
    .otp-reverse-number { font-size: 16px; }
}
.auth-otp-input {
    text-align: center; font-size: 25px; font-weight: 800;
    letter-spacing: .5em; direction: ltr; padding: 15px !important;
}
@media (max-width: 640px) {
    .auth-shell { padding: 28px 0 calc(96px + env(safe-area-inset-bottom)); }
    .acs-head { padding: 22px 22px 46px; }
    .acs-body { padding: 16px 22px 26px; }
    .acs-head h1 { font-size: 19px; }
}

.notif-menu { position: relative; overflow: visible; }
.notif-bell {
    position: relative; width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--border); background: #fff; color: var(--primary-dark);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.notif-bell i { font-size: 18px; }
.notif-badge {
    position: absolute; top: -4px; inset-inline-end: -4px;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: #dc2626; color: #fff; font-size: 10px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.notif-badge.is-hidden { display: none; }
.notif-dropdown {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 1080;
    width: min(340px, calc(100vw - 32px)); background: #fff;
    border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .14); overflow: hidden;
}
@media (max-width: 991.98px) {
    .account-page .notif-menu { position: static; }
    .account-page .notif-dropdown {
        position: fixed; top: 62px; inset-inline: 12px; width: auto;
        max-height: min(70vh, 440px); z-index: 1090;
    }
    .account-page .notif-dropdown-list { max-height: min(58vh, 360px); }
}
.notif-dropdown-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.notif-dropdown-list { max-height: 360px; overflow: auto; }
.notif-dropdown-empty { padding: 22px 16px; text-align: center; color: var(--text-muted); font-size: 13px; }
.notif-dropdown-item {
    display: block; padding: 12px 14px; border-bottom: 1px solid #f1f3f2; color: var(--text);
}
.notif-dropdown-item strong { display: block; font-size: 13.5px; }
.notif-dropdown-item span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.notif-dropdown-item small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.notif-dropdown-item.is-unread { background: var(--primary-light); }
.notif-nav-count {
    margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: #dc2626; color: #fff; font-size: 10px;
    display: inline-flex; align-items: center; justify-content: center;
}
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 20px; border-bottom: 1px solid #f1f3f2;
}
.notif-item.is-unread { background: #f4fbf8; }
.notif-icon {
    width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.notif-body { flex: 1; min-width: 0; }
.notif-body strong { display: block; font-size: 14.5px; }
.notif-body p { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.notif-time { display: block; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.notif-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
@media (max-width: 640px) {
    .notif-item { flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
    .notif-body strong { font-size: 14px; }
    .notif-actions { flex-direction: row; width: 100%; }
    .notif-actions .btn { flex: 1; }
}
.pwa-install {
    display: none;
    position: fixed; inset-inline: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 1060; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--primary), #109576); color: #fff;
    border: 0; border-radius: 18px; padding: 10px 10px 10px 14px; font-family: inherit;
    box-shadow: 0 12px 28px rgba(14,122,95,.35); max-width: 420px;
}
.pwa-install-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent; border: 0; color: #fff; font-family: inherit;
    font-size: 14px; font-weight: 800; cursor: pointer; padding: 8px 6px;
}
.pwa-install-close {
    width: 36px; height: 36px; border: 0; border-radius: 12px; flex-shrink: 0;
    background: rgba(255,255,255,.16); color: #fff; font-size: 22px; line-height: 1;
    cursor: pointer;
}
.pwa-install:hover, .pwa-install-btn:hover { color: #fff; }
@media (max-width: 991.98px) {
    .pwa-install { display: flex; bottom: calc(84px + env(safe-area-inset-bottom)); }
    .account-page .pwa-install { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

.project-goal-card {
    background:
        radial-gradient(circle at 50% -20%, rgba(167, 243, 208, .55), transparent 46%),
        radial-gradient(circle at 100% 100%, rgba(201, 162, 39, .22), transparent 40%),
        linear-gradient(165deg, #06352c 0%, #0e7a5f 55%, #0a5f4a 100%);
    color: #fff; border: 0; overflow: hidden;
    box-shadow: 0 18px 40px rgba(6, 46, 38, .28);
}
.project-goal-card .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; }
.project-goal-card .btn-primary:hover { color: var(--primary-dark); }
.project-goal-card .alert { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); color: #fff; }
.project-goal-head { text-align: center; margin-bottom: 16px; }
.project-goal-pct {
    font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -.03em;
    text-shadow: 0 0 18px rgba(167, 243, 208, .7);
}
.project-goal-pct small { font-size: 22px; margin-inline-start: 2px; }
.project-goal-pct.is-amount { font-size: 22px; }
.project-goal-caption { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.78); }
.project-goal-meta { display: grid; gap: 8px; margin-bottom: 16px; }
.project-goal-meta > div { display: flex; justify-content: space-between; font-size: 13px; }
.project-goal-meta span { color: rgba(255,255,255,.72); }
.project-goal-card .progress-neon { background: rgba(255,255,255,.16); }
.project-goal-card hr { border-color: rgba(255,255,255,.18); opacity: 1; }
.project-goal-card h6 { color: #fff; }
.project-goal-card ul li span { color: rgba(255,255,255,.78); }

.receipt-page { background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, .16), transparent 36%),
    radial-gradient(circle at 90% 100%, rgba(201, 162, 39, .14), transparent 40%),
    var(--bg);
}
.receipt-shell { max-width: 460px; margin: 28px auto 56px; padding-inline: 16px; }
.receipt-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(201, 162, 39, .16), transparent 36%),
        linear-gradient(180deg, #fff 0%, #f7fbf9 100%);
    border: 1px solid rgba(14, 122, 95, .1);
    border-radius: 24px; padding: 22px 20px 18px;
    box-shadow: 0 18px 46px rgba(6, 46, 38, .1);
}
.receipt-status { text-align: center; margin-bottom: 16px; }
.receipt-status-icon {
    width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center; font-size: 28px;
    background: #e6f4ef; color: var(--primary);
}
.receipt-card--success .receipt-status-icon { background: #d1fae5; color: #047857; }
.receipt-card--danger .receipt-status-icon { background: #fee2e2; color: #b91c1c; }
.receipt-card--warning .receipt-status-icon { background: #fef3c7; color: #b45309; }
.receipt-status h1 { font-size: 20px; margin: 0; }
.receipt-status p { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; }
.receipt-amount {
    text-align: center; padding: 14px 12px; margin-bottom: 14px; border-radius: 16px;
    background: linear-gradient(135deg, #0e7a5f, #109576);
    color: #fff; box-shadow: 0 10px 24px rgba(14, 122, 95, .28);
}
.receipt-amount span { display: block; font-size: 12px; opacity: .85; }
.receipt-amount strong { display: block; font-size: 22px; }
.receipt-rows { list-style: none; margin: 0; padding: 0; }
.receipt-rows li {
    display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
    padding: 9px 0; border-bottom: 1px dashed #e5e7eb; font-size: 13px;
}
.receipt-rows li span { color: var(--text-muted); flex-shrink: 0; }
.receipt-rows li strong { text-align: end; font-weight: 700; }
.receipt-project { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; align-items: center; }
.receipt-project em { font-style: normal; font-weight: 600; }
.receipt-note {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
    padding: 12px; border-radius: 14px; background: #eff6ff; color: #1e40af; font-size: 12.5px;
}
.receipt-note p { margin: 0; }
.receipt-note--danger { background: #fef2f2; color: #991b1b; }
.receipt-actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
@media print {
    .site-header, .site-footer, .site-bottom-nav, .panel-bottom-nav, .receipt-actions, .pwa-install, .to-top { display: none !important; }
    .receipt-shell { margin: 0; max-width: none; }
    .receipt-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ---------- Mobile app shell ---------- */
@media (max-width: 991.98px) {
    html, body { overflow-x: hidden; }
    body {
        padding-bottom: env(safe-area-inset-bottom);
        -webkit-tap-highlight-color: rgba(14, 122, 95, .12);
    }
    .container { padding-inline: 16px; }
    .form-control, .form-select, textarea.form-control, .btn { font-size: 16px; }
    .btn { min-height: 46px; border-radius: 14px; }
    .btn-sm { min-height: 38px; font-size: 13.5px; }
    .btn-lg { min-height: 50px; }
    .card, .feature-card, .project-card, .article-card, .contact-info-card, .contact-form-card, .plan-card {
        border-radius: 20px;
        box-shadow: 0 10px 28px rgba(6, 46, 38, .07);
    }
    .card-hover:hover, .feature-card:hover, .project-card:hover, .stat-card:hover, .plan-card:hover {
        transform: none;
    }

    .page-hero { padding: 28px 0 34px; border-radius: 0 0 28px 28px; margin-bottom: 8px; }
    .page-hero h1 { font-size: 22px; }
    .page-hero .lead { font-size: 13.5px; }
    .page-hero-detail { padding: 36px 0 28px; }
    .breadcrumb { font-size: 12px; margin-bottom: 10px; }

    .section { padding: 36px 0; }
    .section-head { margin-bottom: 22px; }
    .section-title { font-size: 22px; }
    .section-subtitle { margin-bottom: 18px; font-size: 13.5px; }

    .stats-band { margin-top: -28px; }
    .stat-card { padding: 18px 12px; border-radius: 18px; }
    .stat-card .stat-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 8px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card .stat-label { font-size: 12px; }

    .feature-card { padding: 22px 18px; }
    .feature-card .icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 12px; }
    .feature-card h4 { font-size: 16px; }
    .feature-card p { font-size: 13px; }

    .project-card .card-body, .article-card .card-body { padding: 16px; }
    .project-card .card-title, .article-card .card-title { font-size: 16px; }
    .project-card-thumb img, .article-card-thumb img, .project-card .card-img, .article-card .card-img { height: 168px; }
    .project-card .card-footer { padding: 12px 16px 16px; }
    .project-card .btn, .article-card .btn { width: 100%; }

    .cta-band { padding: 36px 18px; border-radius: 22px; }
    .cta-band h2 { font-size: 22px; }
    .cta-band .btn { width: 100%; }

    .site-footer { margin-top: 36px; }
    .site-footer .footer-top { padding: 32px 0 24px; gap: 22px; }
    .footer-desc { max-width: none; }

    .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); left: 14px; width: 44px; height: 44px; }

    .content-body { font-size: 15px; }
    .content-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    .pager { margin-top: 22px; }
    .pager a, .pager span { min-width: 42px; height: 42px; }

    .projects-tabs { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
    .projects-tab { flex: 0 0 auto; }

    table.table:not(.table-borderless),
    table.panel-table {
        width: 100%;
    }
    table.table:not(.table-borderless) thead,
    table.panel-table thead { display: none; }
    table.table:not(.table-borderless) tbody,
    table.panel-table tbody { display: block; }
    table.table:not(.table-borderless) tbody tr,
    table.panel-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 12px 14px 8px;
        margin-bottom: 12px;
        box-shadow: 0 8px 22px rgba(6, 46, 38, .06);
    }
    table.table:not(.table-borderless) tbody td,
    table.panel-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        border: 0;
        border-bottom: 1px dashed #eef2f1;
        padding: 9px 2px;
        text-align: end;
        white-space: normal;
    }
    table.table:not(.table-borderless) tbody td:last-child,
    table.panel-table tbody td:last-child { border-bottom: 0; }
    table.table:not(.table-borderless) tbody td::before,
    table.panel-table tbody td::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 700;
        color: var(--text-muted);
        text-align: start;
        flex: 0 0 38%;
        max-width: 42%;
    }
    table.table:not(.table-borderless) tbody td:empty { display: none; }
    .panel-table-wrap, .table-wrap { overflow: visible; }

    .panel-card { border-radius: 20px; overflow: hidden; }
    .panel-filter-row {
        flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
        padding-bottom: 6px; margin-inline: -4px; padding-inline: 4px;
    }
    .panel-chip { flex: 0 0 auto; }
    .panel-page-head h1 { font-size: 20px; }
    .panel-page-head .btn { width: 100%; }
    .panel-hero { border-radius: 22px; }
    .auth-shell { padding: 24px 0 calc(96px + env(safe-area-inset-bottom)); }
    .auth-card-single { border-radius: 24px; }
    .contact-form-card .card-body { padding: 16px; }
    .receipt-shell { margin: 16px auto 40px; }
}

@media (max-width: 640px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hero-trust { gap: 10px; margin-top: 22px; }
    .hero-trust-item { font-size: 11.5px; gap: 7px; }
    .hero-trust-item i { width: 30px; height: 30px; font-size: 14px; border-radius: 9px; }
    .hero-badge { font-size: 12px; padding: 6px 12px; margin-bottom: 14px; }
    .brand-text small { display: none; }
    .navbar-brand img { height: 34px; }
    .site-header .navbar { padding-block: 8px; }
    main > .container.pt-4 { padding-top: 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .progress-neon .progress-bar { animation: none; }
}
