/* Reqlam — Divar-style classifieds UI */
.agh, .agh-nav, .agh-modal, .agh-toast, .agh-hs, .agh-has-suggest, .agh-services, .agh-flow, .agh-stats, .agh-features {
	--agh-primary: #a62626;
	--agh-text: #1f1f1f;
	--agh-muted: #6b6b6b;
	--agh-faint: #9a9a9a;
	--agh-line: #e8e8e8;
	--agh-bg: #ffffff;
	--agh-soft: #f6f6f6;
	--agh-ok: #2e7d32;
	--agh-warn: #b26a00;
	--agh-radius: 10px;
	font-family: Vazirmatn, "Vazir", Tahoma, sans-serif;
	direction: rtl;
	text-align: right;
	color: var(--agh-text);
	-webkit-font-smoothing: antialiased;
}
.agh *, .agh *::before, .agh *::after, .agh-modal *, .agh-modal *::before, .agh-modal *::after { box-sizing: border-box; }
.agh { max-width: 1200px; margin: 0 auto; padding: 12px 16px 32px; font-size: 15px; line-height: 1.8; }
.agh a { color: inherit; text-decoration: none; }
.agh img { max-width: 100%; display: block; }
.agh button, .agh input, .agh select, .agh textarea, .agh-modal button, .agh-modal input, .agh-modal select, .agh-modal textarea { font-family: inherit; font-size: 15px; }
.agh h1, .agh h2, .agh h3 { font-family: inherit; margin: 0; line-height: 1.6; color: var(--agh-text); }
.agh-h1 { font-size: 18px; font-weight: 700; }
.agh-h2 { font-size: 16px; font-weight: 700; margin: 24px 0 10px !important; }
.agh-hint { color: var(--agh-muted); font-size: 13px; }
.agh [hidden], .agh-modal [hidden] { display: none !important; }

/* Buttons */
.agh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; background: var(--agh-soft); color: var(--agh-text); font-weight: 600; cursor: pointer; white-space: nowrap; transition: filter .15s, background .15s; text-decoration: none !important; line-height: 1; }
.agh-btn:hover { filter: brightness(.96); }
.agh-btn:disabled { opacity: .55; cursor: default; }
.agh-btn-primary { background: var(--agh-primary); color: #fff !important; }
.agh-btn-outline { background: #fff; border-color: var(--agh-line); color: var(--agh-text); }
.agh-btn-ghost { background: #fff; border-color: var(--agh-line); color: var(--agh-muted); }
.agh-btn-danger { background: #fff; border-color: #f2caca; color: #c62828; }
.agh-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.agh-block { display: flex; width: 100%; margin-top: 8px; }
.agh-link { background: none; border: 0; padding: 0; color: var(--agh-muted); cursor: pointer; text-decoration: underline; font-size: 13px; }
.agh-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--agh-faint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.agh-icon-btn:hover { background: var(--agh-soft); }
.agh-icon-btn.is-on { color: var(--agh-primary); }
.agh-x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--agh-muted); }

/* Forms */
.agh input[type=text], .agh input[type=search], .agh input[type=tel], .agh input[type=number], .agh select, .agh textarea,
.agh-modal input[type=text], .agh-modal input[type=tel], .agh-modal select, .agh-modal textarea {
	width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--agh-line); border-radius: 8px; background: #fff; color: var(--agh-text); outline: none; transition: border-color .15s; box-shadow: none; margin: 0;
}
.agh textarea, .agh-modal textarea { height: auto; min-height: 140px; padding: 10px 12px; line-height: 1.9; resize: vertical; }
.agh input:focus, .agh select:focus, .agh textarea:focus, .agh-modal input:focus, .agh-modal textarea:focus, .agh-modal select:focus { border-color: var(--agh-primary); }
.agh-field { margin-bottom: 18px; }
.agh-field > label, .agh-filter > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.agh-field .agh-req { color: var(--agh-primary); }
.agh-field-err { color: #c62828; font-size: 13px; margin-top: 4px; }
.agh-field.has-err input, .agh-field.has-err select, .agh-field.has-err textarea { border-color: #c62828; }
.agh-switch { display: flex !important; align-items: center; gap: 10px; cursor: pointer; font-weight: 500 !important; margin: 8px 0 !important; user-select: none; }
.agh-switch input { position: absolute; opacity: 0; pointer-events: none; }
.agh-switch > input + span { width: 38px; height: 22px; border-radius: 22px; background: #d6d6d6; position: relative; flex: 0 0 auto; transition: background .2s; }
.agh-switch > input + span::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.agh-switch input:checked + span { background: var(--agh-primary); }
.agh-switch input:checked + span::after { transform: translateX(-16px); }
.agh-range { display: flex; gap: 8px; }
.agh-unit { position: relative; }
.agh-unit input { padding-left: 64px; }
.agh-unit em { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--agh-faint); font-size: 13px; }
.agh-words { font-size: 12px; color: var(--agh-muted); margin-top: 4px; min-height: 18px; }

/* Top bar */
.agh-topbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.agh-city-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid var(--agh-line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--agh-muted); max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agh-city-btn span { overflow: hidden; text-overflow: ellipsis; }
.agh-search { flex: 1; position: relative; margin: 0; }
.agh-search svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--agh-faint); pointer-events: none; }
.agh-search input[type=search] { padding-right: 38px; background: var(--agh-soft); border-color: var(--agh-soft); }
.agh-topbar-new { height: 44px; }

/* Chips */
.agh-chips { display: none; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
.agh-chips::-webkit-scrollbar { display: none; }
.agh-chip { flex: 0 0 auto; padding: 6px 14px; border: 1px solid var(--agh-line); border-radius: 20px; font-size: 13px; color: var(--agh-muted); background: #fff; white-space: nowrap; }
.agh-chip.is-active { border-color: var(--agh-primary); color: var(--agh-primary); }
.agh-chip-back { background: var(--agh-soft); }

/* Layout */
.agh-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.agh-side { position: sticky; top: 16px; }
.agh-side-head { display: none; }
.agh-box { background: #fff; border: 1px solid var(--agh-line); border-radius: var(--agh-radius); padding: 14px; margin-bottom: 14px; }
.agh-box-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.agh-cats ul { list-style: none; margin: 0; padding: 0; }
.agh-cats li a { display: flex; gap: 8px; padding: 6px 4px; border-radius: 6px; color: var(--agh-muted); font-size: 14px; }
.agh-cats li a:hover, .agh-cats li a.is-active { color: var(--agh-primary); background: var(--agh-soft); }
.agh-cat-back { display: block; font-size: 13px; color: var(--agh-muted); margin-bottom: 4px; }
.agh-cat-current { font-weight: 700; color: var(--agh-primary); padding: 4px; }
.agh-filter { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--agh-line); }
.agh-filter:last-of-type { border-bottom: 0; }
.agh-main-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.agh-main-tools { display: flex; gap: 8px; align-items: center; }
.agh-sort { width: auto !important; height: 36px !important; font-size: 13px !important; }
.agh-filter-btn { display: none; height: 36px; font-size: 13px; }

/* Cards */
.agh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 24px; }
.agh-card { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--agh-line); min-height: 168px; transition: background .15s; }
.agh-card:hover .agh-card-title { color: var(--agh-primary); }
.agh-card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.agh-card-title { font-size: 15px !important; font-weight: 700; line-height: 1.8 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: auto !important; }
.agh-card-lines { color: var(--agh-muted); font-size: 13px; margin-top: 6px; }
.agh-card-meta { color: var(--agh-faint); font-size: 12px; margin-top: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.agh-card-img { position: relative; width: 136px; height: 136px; flex: 0 0 136px; border-radius: 8px; overflow: hidden; background: var(--agh-soft); }
.agh-card-img img { width: 100%; height: 100%; object-fit: cover; }
.agh-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #cfcfcf; font-size: 13px; }
.agh-imgcount { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; border-radius: 4px; padding: 0 6px; }
.agh-chaticon { position: absolute; bottom: 6px; right: 6px; background: rgba(255,255,255,.9); color: var(--agh-muted); border-radius: 4px; width: 22px; height: 20px; display: flex; align-items: center; justify-content: center; }
.agh-card.is-featured .agh-card-img { box-shadow: 0 0 0 2px #f2b600; }
.agh-badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 6px; line-height: 20px; }
.agh-badge-urgent { background: var(--agh-primary); color: #fff; }
.agh-badge-shop { background: #eef3fb; color: #2b5797; }
.agh-badge-st { background: var(--agh-soft); color: var(--agh-muted); }
.agh-badge-st.st-publish { background: #e8f5e9; color: var(--agh-ok); }
.agh-badge-st.st-pending { background: #fff4e0; color: var(--agh-warn); }
.agh-badge-st.st-agh_rejected { background: #fdecea; color: #c62828; }
.agh-badge-st.st-agh_unpaid { background: #fdecea; color: #c62828; }
.agh-featured { background: #fffbea; border: 1px solid #f6e7a6; border-radius: var(--agh-radius); padding: 4px 14px; margin-bottom: 16px; }
.agh-featured .agh-card:last-child { border-bottom: 0; }
.agh-section-title { font-weight: 700; padding-top: 10px; font-size: 14px; }
.agh-star { color: #f2b600; }
.agh-more-wrap { text-align: center; padding: 20px 0; }
.agh-empty { text-align: center; padding: 48px 16px; color: var(--agh-muted); }
.agh-empty-icon { font-size: 40px; }
.agh-loading { padding: 60px; text-align: center; }
.agh-spinner { display: inline-block; width: 28px; height: 28px; border: 3px solid var(--agh-line); border-top-color: var(--agh-primary); border-radius: 50%; animation: agh-spin .8s linear infinite; }
@keyframes agh-spin { to { transform: rotate(360deg); } }

/* Single */
.agh-breadcrumb { font-size: 13px; color: var(--agh-muted); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.agh-breadcrumb a:hover { color: var(--agh-primary); }
.agh-owner-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--agh-soft); border-radius: var(--agh-radius); padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.agh-owner-actions { display: flex; gap: 8px; }
.agh-single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.agh-single-title { font-size: 21px !important; font-weight: 700; }
.agh-single-sub { color: var(--agh-muted); font-size: 13px; margin: 6px 0 16px; display: flex; gap: 8px; align-items: center; }
.agh-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agh-actions .agh-btn { min-width: 130px; }
.agh-actions-icons { margin-right: auto; display: flex; }
.agh-contact-box { margin-top: 12px; border: 1px solid var(--agh-line); border-radius: var(--agh-radius); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.agh-contact-box a { color: var(--agh-primary) !important; font-weight: 700; direction: ltr; font-size: 17px; }
.agh-safety { margin-top: 16px; font-size: 13px; color: var(--agh-muted); background: var(--agh-soft); border-radius: 8px; padding: 10px 12px; line-height: 2; }
.agh-specs { margin-top: 16px; }
.agh-spec { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--agh-line); font-size: 14px; }
.agh-spec span { color: var(--agh-muted); }
.agh-desc { white-space: normal; line-height: 2.1; font-size: 15px; overflow-wrap: anywhere; }
.agh-seller { display: flex; gap: 12px; align-items: center; margin-top: 20px; border: 1px solid var(--agh-line); border-radius: var(--agh-radius); padding: 12px; }
.agh-seller small { display: block; color: var(--agh-muted); }
.agh-seller-ico { font-size: 26px; }
.agh-single-foot { display: flex; justify-content: space-between; color: var(--agh-faint); font-size: 13px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--agh-line); }
.agh-gallery-main { position: relative; border-radius: var(--agh-radius); overflow: hidden; background: #111; aspect-ratio: 4 / 3; }
.agh-gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.agh-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: 24px; line-height: 1; cursor: pointer; }
.agh-gal-prev { right: 10px; }
.agh-gal-next { left: 10px; }
.agh-gal-count { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 0 8px; border-radius: 4px; }
.agh-gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.agh-gallery-thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.agh-gallery-thumbs button.is-active { border-color: var(--agh-primary); opacity: 1; }
.agh-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.agh-gallery-empty { aspect-ratio: 4 / 3; background: var(--agh-soft); border-radius: var(--agh-radius); }
.agh-map { height: 240px; border-radius: var(--agh-radius); overflow: hidden; margin-top: 16px; border: 1px solid var(--agh-line); z-index: 0; }
.agh-similar { margin-top: 32px; }
.agh-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100300; display: flex; align-items: center; justify-content: center; }
.agh-lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; }

/* Modal */
.agh-modal { position: fixed; inset: 0; z-index: 100200; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; animation: agh-fade .15s; }
.agh-modal-card { background: #fff; border-radius: 14px; width: 100%; max-width: 480px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.agh-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--agh-line); font-weight: 700; }
.agh-modal-body { padding: 16px; overflow-y: auto; flex: 1; }
.agh-modal-foot { padding: 12px 16px; border-top: 1px solid var(--agh-line); display: flex; gap: 8px; }
.agh-modal-foot .agh-btn { flex: 1; }
@keyframes agh-fade { from { opacity: 0; } }
.agh-list-select { list-style: none; margin: 0; padding: 0; }
.agh-list-select li { border-bottom: 1px solid var(--agh-line); }
.agh-list-select li > a, .agh-list-select li > button, .agh-list-select li > label { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 4px; background: none; border: 0; cursor: pointer; text-align: right; color: var(--agh-text); font-size: 15px; gap: 10px; }
.agh-list-select li > button:hover { color: var(--agh-primary); }
.agh-list-select .agh-chev { color: var(--agh-faint); }
.agh-list-select input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--agh-primary); }
.agh-toast { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); background: #2b2b2b; color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 100400; font-size: 14px; max-width: 90vw; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.agh-toast.is-err { background: #c62828; }

/* App: login / new / panel */
.agh-narrow { max-width: 640px; margin: 0 auto; }
.agh-login { max-width: 420px; margin: 24px auto; border: 1px solid var(--agh-line); border-radius: 14px; padding: 24px; }
.agh-login h1 { font-size: 18px; margin-bottom: 6px !important; }
.agh-login .agh-hint { margin-bottom: 18px; }
.agh-otp-input { text-align: center; letter-spacing: 10px; font-size: 22px !important; direction: ltr; }
.agh-steps { display: flex; gap: 6px; margin-bottom: 20px; }
.agh-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--agh-line); }
.agh-steps span.is-on { background: var(--agh-primary); }
.agh-catpick-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.agh-selected-cat { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: var(--agh-soft); border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.agh-uploader { display: flex; flex-wrap: wrap; gap: 10px; }
.agh-up-item, .agh-up-add { width: 96px; height: 96px; border-radius: 8px; position: relative; overflow: hidden; }
.agh-up-item img { width: 100%; height: 100%; object-fit: cover; }
.agh-up-item .agh-up-del { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; font-size: 16px; }
.agh-up-item .agh-up-main { position: absolute; bottom: 0; inset-inline: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; text-align: center; }
.agh-up-item.is-loading::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.7); }
.agh-up-item.is-loading .agh-spinner { position: absolute; top: 34px; left: 34px; z-index: 2; }
.agh-up-add { border: 1.5px dashed #c9c9c9; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--agh-muted); font-size: 12px; background: #fff; }
.agh-up-add svg { color: var(--agh-primary); }
.agh-map-pick { height: 260px; border-radius: 8px; border: 1px solid var(--agh-line); margin-top: 8px; z-index: 0; }
.agh-seg { display: flex; border: 1px solid var(--agh-line); border-radius: 8px; overflow: hidden; margin-top: 8px; }
.agh-seg label { flex: 1; text-align: center; padding: 8px 4px; cursor: pointer; font-size: 13px; color: var(--agh-muted); border-left: 1px solid var(--agh-line); margin: 0 !important; }
.agh-seg label:last-child { border-left: 0; }
.agh-seg input { display: none; }
.agh-seg label:has(input:checked) { background: var(--agh-soft); color: var(--agh-primary); font-weight: 700; }
.agh-fee-note { background: #fff4e0; color: #7a4a00; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 16px; }
.agh-submit-bar { position: sticky; bottom: 0; background: #fff; padding: 12px 0; border-top: 1px solid var(--agh-line); display: flex; gap: 8px; z-index: 5; }
.agh-submit-bar .agh-btn { flex: 1; height: 46px; }

.agh-panel { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.agh-pmenu { border: 1px solid var(--agh-line); border-radius: var(--agh-radius); overflow: hidden; position: sticky; top: 16px; }
.agh-pmenu-user { padding: 16px; border-bottom: 1px solid var(--agh-line); }
.agh-pmenu-user strong { display: block; }
.agh-pmenu-user small { color: var(--agh-muted); direction: ltr; display: inline-block; }
.agh-pmenu a { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--agh-line); color: var(--agh-muted); font-size: 14px; }
.agh-pmenu a:last-child { border-bottom: 0; }
.agh-pmenu a.is-active { color: var(--agh-primary); background: var(--agh-soft); font-weight: 700; }
.agh-count { background: var(--agh-primary); color: #fff; border-radius: 10px; font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
.agh-ptitle { font-size: 17px; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.agh-myad { display: flex; gap: 12px; border: 1px solid var(--agh-line); border-radius: var(--agh-radius); padding: 12px; margin-bottom: 12px; }
.agh-myad-img { width: 88px; height: 88px; flex: 0 0 88px; border-radius: 8px; overflow: hidden; background: var(--agh-soft); }
.agh-myad-img img { width: 100%; height: 100%; object-fit: cover; }
.agh-myad-body { flex: 1; min-width: 0; }
.agh-myad-title { font-weight: 700; font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agh-myad-meta { color: var(--agh-muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0; align-items: center; }
.agh-myad-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.agh-reject { background: #fdecea; color: #b71c1c; font-size: 13px; padding: 6px 10px; border-radius: 6px; margin-top: 6px; }
.agh-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.agh-tabs button { border: 1px solid var(--agh-line); background: #fff; border-radius: 20px; padding: 4px 14px; cursor: pointer; font-size: 13px; color: var(--agh-muted); white-space: nowrap; }
.agh-tabs button.is-active { border-color: var(--agh-primary); color: var(--agh-primary); }
.agh-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.agh-table th, .agh-table td { padding: 10px 8px; border-bottom: 1px solid var(--agh-line); text-align: right; }
.agh-table th { color: var(--agh-muted); font-weight: 600; }
.agh-st-paid { color: var(--agh-ok); }
.agh-st-failed { color: #c62828; }
.agh-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.agh-plan { border: 1px solid var(--agh-line); border-radius: var(--agh-radius); padding: 18px; display: flex; flex-direction: column; }
.agh-plan h3 { font-size: 16px !important; }
.agh-plan-price { font-size: 20px; font-weight: 800; color: var(--agh-primary); margin: 6px 0; }
.agh-plan-price small { font-size: 12px; color: var(--agh-muted); font-weight: 500; }
.agh-plan ul { list-style: none; padding: 0; margin: 8px 0 16px; font-size: 13px; color: var(--agh-muted); flex: 1; }
.agh-plan li::before { content: "\f00c"; font-family: "Font Awesome 7 Free"; font-weight: 900; color: var(--agh-ok); margin-left: 6px; font-size: 11px; }
.agh-plan-status { background: #e8f5e9; border-radius: var(--agh-radius); padding: 14px; margin-bottom: 16px; font-size: 14px; }
.agh-promo { border: 1px solid var(--agh-line); border-radius: var(--agh-radius); padding: 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.agh-promo:has(input:checked) { border-color: var(--agh-primary); background: color-mix(in srgb, var(--agh-primary) 5%, #fff); box-shadow: 0 0 0 1px var(--agh-primary); }
.agh-promo input { accent-color: var(--agh-primary); width: 18px; height: 18px; flex: 0 0 auto; }
.agh-promo div { flex: 1; }
.agh-promo strong { display: block; }
.agh-promo small { color: var(--agh-muted); display: block; line-height: 1.8; }
.agh-promo b { color: var(--agh-primary); white-space: nowrap; }
.agh-alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.agh-alert-ok { background: #e8f5e9; color: #1b5e20; }
.agh-alert-err { background: #fdecea; color: #b71c1c; }

/* Chat */
.agh-chat-list a { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--agh-line); align-items: center; }
.agh-chat-thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--agh-soft); flex: 0 0 52px; }
.agh-chat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.agh-chat-info { flex: 1; min-width: 0; }
.agh-chat-info strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agh-chat-info small { display: block; color: var(--agh-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agh-chat-side { text-align: left; font-size: 11px; color: var(--agh-faint); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.agh-chat { display: flex; flex-direction: column; height: min(72vh, 640px); border: 1px solid var(--agh-line); border-radius: var(--agh-radius); overflow: hidden; }
.agh-chat-head { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--agh-line); }
.agh-chat-head .agh-chat-info strong { font-size: 14px; }
.agh-chat-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f3f3f3; display: flex; flex-direction: column; gap: 6px; }
.agh-msg { max-width: 78%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; align-self: flex-end; border-bottom-left-radius: 4px; }
.agh-msg.is-mine { align-self: flex-start; background: #ffe7e7; border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; }
.agh-msg time { display: block; font-size: 10px; color: var(--agh-faint); text-align: left; }
.agh-msg-day { align-self: center; font-size: 11px; color: var(--agh-muted); background: #e4e4e4; border-radius: 10px; padding: 0 10px; }
.agh-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--agh-line); background: #fff; }
.agh-chat-form textarea { min-height: 44px !important; height: 44px; max-height: 120px; resize: none; padding: 10px 12px; }
.agh-chat-blocked { padding: 12px; text-align: center; color: var(--agh-muted); font-size: 13px; border-top: 1px solid var(--agh-line); }

/* Shop */
.agh-shop-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.agh-shop-logo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--agh-soft); display: flex; align-items: center; justify-content: center; font-size: 36px; flex: 0 0 84px; }
.agh-shop-logo img { width: 100%; height: 100%; object-fit: cover; }

/* Bottom nav */
.agh-nav { display: none; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
	.agh-layout, .agh-panel, .agh-single-grid { grid-template-columns: 1fr; }
	.agh-single-grid { gap: 16px; }
	.agh-single-media { order: -1; }
	.agh-chips { display: flex; }
	.agh-side { display: none; position: fixed; inset: 0; z-index: 99998; background: #fff; overflow-y: auto; padding: 16px; top: 0; }
	.agh-side.is-open { display: block; }
	.agh-side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
	.agh-side .agh-cats { display: none; }
	.agh-filter-btn { display: inline-flex; }
	.agh-pmenu { position: static; }
	.agh-pmenu-links { display: flex; overflow-x: auto; }
	.agh-pmenu-links a { flex: 0 0 auto; border-bottom: 0; border-left: 1px solid var(--agh-line); }
}
@media (max-width: 600px) {
	.agh { padding: 10px 16px 24px; }
	.agh-topbar-new { display: none; }
	.agh-city-btn { padding: 0 10px; }
	.agh-grid { grid-template-columns: 1fr; }
	.agh-card { min-height: 0; }
	.agh-card-img { width: 120px; height: 120px; flex-basis: 120px; }
	.agh-actions .agh-btn { flex: 1; min-width: 0; }
	.agh-actions-icons { width: 100%; justify-content: flex-end; }
	.agh-modal { align-items: flex-end; padding: 0; }
	.agh-modal-card { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; }
	.agh-main-head { flex-wrap: wrap; }
	.agh-h1 { font-size: 16px; }
	body.agh-has-nav .agh-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9990; background: #fff; border-top: 1px solid var(--agh-line); height: 60px; padding-bottom: env(safe-area-inset-bottom); }
	body.agh-has-nav { padding-bottom: 64px; }
	.agh-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--agh-faint); text-decoration: none; position: relative; }
	.agh-nav a.is-active { color: var(--agh-primary); }
	.agh-nav-badge { position: absolute; top: 6px; left: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--agh-primary); }
	.agh-submit-bar { bottom: 60px; }
	body:not(.agh-has-nav) .agh-submit-bar { bottom: 0; }
	.agh-chat { height: calc(100vh - 200px); }
}
.agh-layout > *, .agh-panel > *, .agh-single-grid > *, .agh-pcontent { min-width: 0; }

/* Tickets */
.agh-lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.agh-tickets { border: 1px solid var(--agh-line); border-radius: var(--agh-radius); overflow: hidden; }
.agh-ticket { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--agh-line); }
.agh-ticket:last-child { border-bottom: 0; }
.agh-ticket:hover { background: var(--agh-soft); }
.agh-ticket-main { min-width: 0; }
.agh-ticket-main strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agh-ticket-main small { color: var(--agh-muted); font-size: 12px; }
.agh-ticket-side { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.agh-tst { display: inline-block; font-size: 12px; border-radius: 6px; padding: 0 8px; line-height: 22px; background: var(--agh-soft); color: var(--agh-muted); white-space: nowrap; }
.agh-tst-open { background: #fff4e0; color: var(--agh-warn); }
.agh-tst-answered { background: #e8f5e9; color: var(--agh-ok); }
.agh-ticket-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--agh-muted); font-size: 13px; margin-bottom: 14px; align-items: center; }
.agh-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.agh-reply { border: 1px solid var(--agh-line); border-radius: 12px; padding: 10px 14px; background: #fff; margin-left: 12%; }
.agh-reply.is-staff { background: color-mix(in srgb, var(--agh-primary) 7%, #fff); border-color: color-mix(in srgb, var(--agh-primary) 25%, #fff); margin-left: 0; margin-right: 12%; }
.agh-reply-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--agh-muted); margin-bottom: 4px; }
.agh-reply-head strong { color: var(--agh-text); font-size: 13px; }
.agh-reply-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 2; font-size: 14px; }
.agh-reply-att img { max-width: 200px; border-radius: 8px; margin-top: 8px; }
.agh-ticket-form textarea { min-height: 110px; }
.agh-ticket-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.agh-ticket-actions .agh-btn-primary { margin-right: auto; }
.agh-attach-prev img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.agh-ticket-empty { border: 1px solid var(--agh-line); border-radius: var(--agh-radius); padding: 20px; text-align: center; }

/* Shop page */
.agh-shop-top { margin-bottom: 20px; }
.agh-shop-cover { height: 220px; border-radius: 18px; background: var(--agh-text) center / cover no-repeat; background-image: linear-gradient(135deg, color-mix(in srgb, var(--agh-primary) 80%, #000), color-mix(in srgb, var(--agh-primary) 45%, #fff)); }
.agh-shop-card { display: flex; align-items: flex-start; gap: 18px; padding: 12px 24px 0; flex-wrap: wrap; }
.agh-shop-logo { margin-top: -64px; width: 112px; height: 112px; border-radius: 26px; border: 5px solid #fff; background: #fff; overflow: hidden; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.12); flex: 0 0 auto; font-size: 44px; font-weight: 800; color: var(--agh-primary); }
.agh-shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.agh-shop-id { flex: 1; min-width: 220px; padding-top: 2px; }
.agh-shop-id .agh-h1 { font-size: 24px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agh-shop-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--agh-muted); font-size: 14px; margin-top: 2px; align-items: center; }
.agh-shop-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; align-items: center; }
.agh-verified { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-style: normal; font-weight: 700; color: #0B7A5C; background: #E3F6EF; border-radius: 6px; padding: 0 7px; line-height: 22px; }
.agh-open { font-size: 12.5px; font-weight: 700; border-radius: 6px; padding: 0 8px; line-height: 22px; }
.agh-open.is-open { color: #0B7A5C; background: #E3F6EF; }
.agh-open.is-closed { color: #9A3B32; background: #FCEBE9; }
.agh-shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.agh-shop-side { position: sticky; top: 90px; }
.agh-shop-about { line-height: 2.1; font-size: 14px; color: var(--agh-muted); }
.agh-hours { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.agh-hours li { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 6px; }
.agh-hours li.is-today { background: var(--agh-soft); font-weight: 700; }
.agh-shop-addr { margin: 0 0 8px; font-size: 14px; line-height: 2; }
.agh-shop-side .agh-map { height: 180px; margin: 0 0 6px; }
.agh-shop-facts > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--agh-line); }
.agh-shop-facts > div:last-child { border-bottom: 0; }
.agh-shop-facts span { color: var(--agh-muted); }
.agh-shop-facts a { color: var(--agh-primary); }
.agh-shop-cats { display: flex; margin-bottom: 14px; }
.agh-seller-logo { width: 54px; height: 54px; border-radius: 14px; overflow: hidden; background: var(--agh-soft); display: grid; place-items: center; font-weight: 800; color: var(--agh-primary); flex: 0 0 auto; font-size: 22px; }
.agh-seller-logo img { width: 100%; height: 100%; object-fit: cover; }
.agh-seller-info { display: flex; flex-direction: column; gap: 2px; }
.agh-seller-info strong { display: flex; align-items: center; gap: 6px; }
.agh-seller-info .agh-open { align-self: flex-start; }
@media (max-width: 900px) {
	.agh-shop-layout { grid-template-columns: 1fr; }
	.agh-shop-side { position: static; order: -1; }
	.agh-shop-cover { height: 150px; border-radius: 14px; }
	.agh-shop-card { padding: 10px 12px 0; gap: 12px; }
	.agh-shop-logo { width: 88px; height: 88px; border-radius: 20px; margin-top: -54px; }
	.agh-shop-actions { width: 100%; }
}

/* ---------- Font Awesome icon sizing ---------- */
.agh .fa-solid, .agh .fa-regular, .agh .fa-brands, .agh-nav i, .agh-modal i { line-height: 1; }
.agh-noimg i { font-size: 30px; color: #c7d3d1; }
.agh-imgcount i { font-size: 10px; margin-left: 2px; }
.agh-chaticon i, .agh-safeicon i { font-size: 11px; }
.agh-safeicon { position: absolute; bottom: 6px; right: 32px; background: rgba(255,255,255,.92); color: #0B7A5C; border-radius: 4px; width: 22px; height: 20px; display: flex; align-items: center; justify-content: center; }
.agh-badge i { font-size: 10px; }
.agh-cats .agh-cat-ico { width: 20px; text-align: center; color: var(--agh-primary); opacity: .8; }
.agh-cat-ico { display: inline-block; width: 22px; text-align: center; color: var(--agh-primary); margin-left: 6px; }
.agh-chip i { margin-left: 4px; color: var(--agh-primary); }
.agh-cat-i { color: var(--agh-primary); width: 22px; text-align: center; }
.agh-list-select .agh-chev { font-size: 12px; }
.agh-up-add i { font-size: 24px; color: var(--agh-primary); margin-bottom: 4px; }
.agh-icon-btn i { font-size: 19px; }
.agh-btn i { font-size: .95em; }
.agh-empty-icon i { font-size: 36px; color: var(--agh-faint); }
.agh-nav a i { font-size: 19px; }
.agh-safety i { color: #c38a1d; }
.agh-box-title i { color: var(--agh-primary); margin-left: 4px; }

/* ---------- Safe buy ---------- */
.agh-safebuy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border: 1.5px solid #9BD9C3; background: #F1FBF7; border-radius: 12px; flex-wrap: wrap; }
.agh-safebuy-txt { display: flex; align-items: center; gap: 10px; }
.agh-safebuy-txt > i { font-size: 24px; color: #0B7A5C; }
.agh-safebuy-txt strong { display: block; }
.agh-safebuy-txt small { color: var(--agh-muted); font-size: 12.5px; }
.agh-btn-safe { background: #0B7A5C; color: #fff !important; }
.agh-safe-intro { display: flex; gap: 12px; align-items: flex-start; background: #F1FBF7; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.agh-safe-intro > i { font-size: 26px; color: #0B7A5C; }
.agh-safe-intro strong { font-size: 18px; }
.agh-safe-intro p { margin: 2px 0 0; font-size: 13.5px; color: var(--agh-muted); line-height: 1.9; }
.agh-safe-steps { padding-right: 20px; margin: 6px 0 10px; font-size: 14px; line-height: 2.1; }
.agh-switch-safe { align-items: flex-start !important; }
.agh-switch-txt i { color: #0B7A5C; }
.agh-switch-txt { flex: 1 1 auto; min-width: 0; }
.agh-switch-txt small { display: block; color: var(--agh-muted); font-size: 12px; font-weight: 400; line-height: 1.8; }
.agh-check { display: flex !important; align-items: flex-start; gap: 8px; font-weight: 500 !important; cursor: pointer; }
.agh-check input { width: 18px; height: 18px; accent-color: var(--agh-primary); margin-top: 6px; flex: 0 0 auto; }
.agh-check a { color: var(--agh-primary); text-decoration: underline; }
.agh-rules-accept { background: var(--agh-soft); border-radius: 10px; padding: 10px 12px; margin-top: 14px; }
.agh-rules-accept.has-err { outline: 1.5px solid #c62828; }
.agh-rules-body { line-height: 2.1; font-size: 14.5px; }
.agh-rules-body h2 { font-size: 16px !important; margin: 14px 0 4px !important; }
.agh-gw-list i { color: var(--agh-primary); margin-left: 6px; }
.agh-toast-notif { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: #fff !important; max-width: 360px; bottom: auto; top: 18px; background: #0F2A33; }
.agh-toast-notif i { color: #F2A93B; margin-top: 4px; }
.agh-toast-notif strong { display: block; font-size: 14px; }
.agh-toast-notif small { display: block; opacity: .8; font-size: 12.5px; }

/* ---------- Responsive fixes: single ad ---------- */
.agh-single, .agh-single-grid > * { min-width: 0; }
.agh-desc, .agh-single-title { overflow-wrap: anywhere; }
.agh-spec strong { text-align: left; overflow-wrap: anywhere; }
@media (max-width: 900px) {
	.agh-single { padding-top: 6px; }
	.agh-single-media { margin: 0 calc(-1 * var(--agh-gutter, 16px)); }
	.agh-gallery-main { border-radius: 0 !important; }
	.agh-gallery-thumbs { padding: 0 var(--agh-gutter, 16px); }
	.agh-single-media .agh-map, .agh-single-media .agh-hint { margin-right: var(--agh-gutter, 16px); margin-left: var(--agh-gutter, 16px); }
	.agh-owner-bar { flex-direction: column; align-items: stretch; }
	.agh-owner-actions { justify-content: stretch; }
	.agh-owner-actions .agh-btn { flex: 1; }
	.agh-breadcrumb { white-space: nowrap; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
}
@media (max-width: 600px) {
	.agh-single-title { font-size: 19px !important; }
	.agh-actions { position: sticky; bottom: 64px; z-index: 20; background: #fff; margin: 0 calc(-1 * var(--agh-gutter, 16px)); padding: 10px var(--agh-gutter, 16px); border-top: 1px solid var(--agh-line); box-shadow: 0 -6px 16px rgba(0,0,0,.05); }
	body:not(.agh-has-nav) .agh-actions { bottom: 0; }
	.agh-actions-icons { width: auto; margin-right: 0; }
	.agh-actions { flex-wrap: nowrap; }
	.agh-actions .agh-btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
	.agh-safebuy .agh-btn { width: 100%; }
	.agh-gallery-main { aspect-ratio: 1 / 1; }
	.agh-modal-body { padding: 14px; }
}


/* =====================================================================
 * Search box (hero) + live suggestions
 * =================================================================== */
.agh-hs { position: relative; font-family: Vazirmatn, "Vazir", Tahoma, sans-serif; direction: rtl; text-align: right; color: var(--agh-text); z-index: 30; }
.agh-hs *, .agh-has-suggest .agh-suggest * { box-sizing: border-box; }
.agh-hs-bar { display: flex; align-items: stretch; background: #fff; border: 1px solid rgba(15, 42, 51, .12); border-radius: 18px; padding: 6px; box-shadow: 0 1px 2px rgba(15, 42, 51, .06), 0 14px 34px -14px rgba(15, 42, 51, .28); transition: box-shadow .2s, border-color .2s; min-height: 64px; }
.agh-hs.is-focus .agh-hs-bar { border-color: var(--agh-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--agh-primary) 16%, transparent), 0 14px 34px -14px rgba(15, 42, 51, .3); }
.agh-hs.is-suggesting .agh-hs-bar { border-bottom-right-radius: 6px; border-bottom-left-radius: 6px; }
.agh-hs-caret { position: absolute; left: 12px; font-size: 11px; pointer-events: none; }
.agh-hs-field { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.agh-hs-field > i { color: var(--agh-faint); font-size: 17px; }
.agh-hs-field input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; font: inherit; font-size: 16px; padding: 0 !important; height: 50px; color: var(--agh-text); }
.agh-hs-field input::-webkit-search-cancel-button { display: none; }
.agh-hs-field input::placeholder { color: var(--agh-faint); }
.agh-hs-clear { border: 0; background: var(--agh-soft); color: var(--agh-muted); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: 0 0 28px; }
.agh-hs-clear:hover { background: var(--agh-line); }
.agh-hs [hidden] { display: none !important; }
.agh-hs-city { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 0 14px; border-right: 1px solid var(--agh-line); font: inherit; font-size: 14px; font-weight: 600; color: var(--agh-text); cursor: pointer; white-space: nowrap; max-width: 170px; }
.agh-hs-city span { overflow: hidden; text-overflow: ellipsis; }
.agh-hs-city i { color: var(--agh-primary); }
.agh-hs-city:hover { background: var(--agh-soft); border-radius: 12px; }
.agh-hs-go { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 13px; background: var(--agh-primary); color: #fff; font: inherit; font-weight: 800; font-size: 15px; padding: 0 26px; cursor: pointer; margin-right: 6px; transition: filter .15s, transform .15s; }
.agh-hs-go:hover { filter: brightness(1.08); }
.agh-hs-go:active { transform: scale(.98); }
.agh-hs-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; font-size: 13px; color: var(--agh-muted); }
.agh-hs-pop > span { font-weight: 600; }
.agh-hs-pop > span i { color: #e8590c; }
.agh-hs-pop a { color: var(--agh-text) !important; text-decoration: none !important; background: rgba(255, 255, 255, .75); border: 1px solid rgba(15, 42, 51, .1); padding: 3px 12px; border-radius: 999px; transition: border-color .15s, background .15s; }
.agh-hs-pop a:hover { border-color: var(--agh-primary); background: #fff; color: var(--agh-primary) !important; }

/* Suggestion dropdown (shared by hero, header and list searches) */
.agh-has-suggest { position: relative; }
.agh-suggest { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 1000; background: #fff; border: 1px solid var(--agh-line); border-radius: 16px; box-shadow: 0 24px 48px -16px rgba(15, 42, 51, .35); padding: 6px; max-height: min(70vh, 520px); overflow-y: auto; font-family: Vazirmatn, "Vazir", Tahoma, sans-serif; text-align: right; direction: rtl; color: var(--agh-text, #1f1f1f); font-size: 14px; line-height: 1.7; min-width: 280px; }
.agh-hs .agh-suggest { top: calc(100% - 4px); border-top-right-radius: 6px; border-top-left-radius: 6px; }
.agh-hs-pop + .agh-suggest, .agh-hs .agh-suggest { top: 70px; }
.agh-suggest[hidden] { display: none !important; }
.agh-suggest.is-loading { opacity: .7; }
.agh-sg-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 4px; font-size: 12px; font-weight: 700; color: var(--agh-faint, #9a9a9a); }
.agh-sg-head i { margin-left: 4px; }
.agh-sg-head a, .agh-sg-head button { color: var(--agh-primary) !important; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.agh-sg-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--agh-text, #1f1f1f) !important; text-decoration: none !important; cursor: pointer; }
.agh-sg-item:hover, .agh-sg-item.is-active { background: var(--agh-soft, #f6f6f6); }
.agh-sg-item > i { color: var(--agh-faint, #9a9a9a); width: 18px; text-align: center; flex: 0 0 18px; }
.agh-sg-item > span { flex: 1; min-width: 0; }
.agh-sg-item > small { color: var(--agh-muted); font-size: 12px; background: var(--agh-soft, #f6f6f6); border-radius: 999px; padding: 0 9px; }
.agh-sg-item.is-active > small, .agh-sg-item:hover > small { background: #fff; }
.agh-sg-all > i { color: var(--agh-primary); }
.agh-sg-incat span b, .agh-sg-all span b { font-weight: 700; }
.agh-sg-fill { opacity: .55; transform: rotate(-45deg); }
.agh-sg-fill:hover { opacity: 1; color: var(--agh-primary); }
.agh-sg-cat-ic { width: 34px; height: 34px; flex: 0 0 34px !important; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--agh-primary) 10%, #fff); color: var(--agh-primary); }
.agh-sg-sub { display: block; color: var(--agh-muted); font-size: 12px; }
.agh-sg-thumb { width: 52px; height: 52px; flex: 0 0 52px !important; border-radius: 10px; overflow: hidden; background: var(--agh-soft, #f6f6f6); display: grid; place-items: center; color: var(--agh-faint); }
.agh-sg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agh-sg-ad-main { display: flex; flex-direction: column; }
.agh-sg-ad-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agh-sg-ad-main small { color: var(--agh-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agh-suggest mark { background: color-mix(in srgb, var(--agh-primary) 16%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.agh-sg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
.agh-sg-chip { padding: 4px 12px !important; border: 1px solid var(--agh-line); border-radius: 999px !important; font-size: 13px; }
.agh-sg-none { padding: 14px 12px; color: var(--agh-muted); font-size: 13.5px; }
.agh-sg-none i { margin-left: 6px; }
.agh-sg-item > .agh-badge { flex: 0 0 auto; font-size: 11px; padding: 1px 7px; border-radius: 6px; }

@media (max-width: 760px) {
	.agh-hs-bar { flex-wrap: wrap; padding: 6px; border-radius: 16px; min-height: 0; }
	.agh-hs-field { order: 1; flex: 1 1 100%; border-bottom: 1px solid var(--agh-line); padding: 0 8px; }
	.agh-hs-field input { height: 48px; font-size: 16px; }
	.agh-hs-cat { order: 2; flex: 1 1 0; border: 0 !important; max-width: none; min-width: 0; }
	.agh-hs-cat-btn { height: 48px; padding: 0 6px; }
	.agh-hs-city { order: 3; flex: 1 1 0; border-right: 1px solid var(--agh-line); height: 44px; max-width: none; padding: 0 10px; min-width: 0; }
	.agh-hs-go { order: 4; flex: 1 1 100%; justify-content: center; height: 46px; margin: 6px 0 0; }
	.agh-hs .agh-suggest { top: 62px; }
	.agh-hs-pop { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; padding-left: 16px; }
	.agh-hs-pop::-webkit-scrollbar { display: none; }
	.agh-hs-pop a, .agh-hs-pop > span { white-space: nowrap; }
	.agh-suggest { position: fixed; top: auto !important; bottom: 0; left: 0; right: 0; max-height: 62vh; border-radius: 18px 18px 0 0 !important; padding-bottom: calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 40px -10px rgba(15, 42, 51, .35); min-width: 0; }
	.agh-hs .agh-suggest { position: absolute; bottom: auto; max-height: 60vh; border-radius: 6px 6px 16px 16px !important; top: 62px !important; }
}

/* =====================================================================
 * Info pages: stats, features, steps, services, contact
 * =================================================================== */
.agh-lead { font-size: 17px; line-height: 2.1; color: var(--agh-text, #1f1f1f); }
.agh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 8px; }
.agh-stat { background: #fff; border: 1px solid var(--agh-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.agh-stat i { color: var(--agh-primary); font-size: 20px; margin-bottom: 6px; }
.agh-stat strong { font-size: 24px; font-weight: 800; line-height: 1.3; }
.agh-stat span { color: var(--agh-muted); font-size: 13px; }
.agh-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.agh-feature { background: #fff; border: 1px solid var(--agh-line); border-radius: 16px; padding: 18px; }
.agh-feature strong { display: block; font-size: 15.5px; margin: 10px 0 4px; }
.agh-feature p { margin: 0 !important; color: var(--agh-muted); font-size: 13.5px; line-height: 1.9; }
.agh-feature-ic, .agh-svc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--agh-primary) 11%, #fff); color: var(--agh-primary); font-size: 18px; flex: 0 0 42px; }
.agh-flow { list-style: none !important; padding: 0 !important; margin: 18px 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.agh-flow li { position: relative; background: #fff; border: 1px solid var(--agh-line); border-radius: 16px; padding: 18px 16px; margin: 0 !important; }
.agh-flow li::before { display: none !important; }
.agh-flow li:not(:last-child)::after { content: ""; position: absolute; top: 38px; left: -12px; width: 12px; border-top: 2px dashed color-mix(in srgb, var(--agh-primary) 40%, #fff); }
.agh-flow-ic { position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--agh-primary); color: #fff; font-size: 18px; }
.agh-flow-ic b { position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--agh-primary); font-size: 12px; display: grid; place-items: center; border: 2px solid var(--agh-primary); }
.agh-flow strong { display: block; margin: 12px 0 4px; font-size: 15px; }
.agh-flow p { margin: 0 !important; color: var(--agh-muted); font-size: 13.5px; line-height: 1.9; }

.agh-services { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.agh-svc { background: #fff; border: 1px solid var(--agh-line); border-radius: 20px; padding: 22px; }
.agh-svc > header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.agh-svc h2 { margin: 0 0 4px !important; font-size: 19px !important; }
.agh-svc header p { margin: 0 !important; color: var(--agh-muted); font-size: 14px; line-height: 1.9; }
.agh-svc .agh-flow { margin: 0 0 14px !important; }
.agh-svc .agh-flow li { background: var(--agh-soft, #f6f6f6); border-color: transparent; }
.agh-svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.agh-svc-card { position: relative; border: 1px solid var(--agh-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.agh-svc-card > i { color: var(--agh-primary); font-size: 20px; }
.agh-svc-card strong { font-size: 16px; }
.agh-svc-card p { margin: 0 !important; color: var(--agh-muted); font-size: 13.5px; line-height: 1.9; flex: 1; }
.agh-svc-price { font-size: 20px; font-weight: 800; color: var(--agh-text); margin-top: 4px; }
.agh-svc-price small { font-size: 13px; font-weight: 500; color: var(--agh-muted); }
.agh-svc-prices { list-style: none !important; margin: 6px 0 0 !important; padding: 0 !important; font-size: 13.5px; }
.agh-svc-prices li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0 !important; margin: 0 !important; border-top: 1px dashed var(--agh-line); }
.agh-svc-prices li::before { display: none !important; }
.agh-svc-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; }
.agh-svc-table th, .agh-svc-table td { text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--agh-line); }
.agh-svc-table th { background: var(--agh-soft, #f6f6f6); font-weight: 700; }
.agh-svc-free { color: var(--agh-ok, #2e7d32); font-weight: 600; }
.agh-plan.is-pop { border: 2px solid var(--agh-primary); }
.agh-plan-tag { position: absolute; top: -11px; left: 16px; background: var(--agh-primary); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.agh-plan-list { list-style: none !important; margin: 8px 0 12px !important; padding: 0 !important; font-size: 13.5px; flex: 1; }
.agh-plan-list li { margin: 0 0 6px !important; padding: 0 !important; }
.agh-plan-list li::before { display: none !important; }
.agh-plan-list i { color: var(--agh-ok, #2e7d32); margin-left: 4px; }
.agh-svc-help { display: flex; align-items: center; gap: 14px; background: color-mix(in srgb, var(--agh-primary) 7%, #fff); border-color: transparent; }
.agh-svc-help > div { flex: 1; }
.agh-svc-help p { margin: 0 !important; color: var(--agh-muted); }
.agh-services .agh-btn, .agh-contact .agh-btn { text-decoration: none !important; }

.agh.agh-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; padding: 0; margin-top: 18px; align-items: start; max-width: none; }
.agh-contact-info { display: flex; flex-direction: column; gap: 10px; }
.agh-contact-row { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--agh-line); border-radius: 14px; padding: 12px 14px; }
.agh-contact-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--agh-primary) 11%, #fff); color: var(--agh-primary); flex: 0 0 40px; }
.agh-contact-row small { color: var(--agh-muted); font-size: 12px; }
.agh-contact-row div > div { font-weight: 600; overflow-wrap: anywhere; }
.agh-contact-row a { color: var(--agh-text); }
.agh-contact-ticket { display: flex; gap: 12px; align-items: center; background: var(--agh-primary); color: #fff !important; border-radius: 14px; padding: 14px; }
.agh-contact-ticket > i:first-child { font-size: 20px; }
.agh-contact-ticket span { flex: 1; display: flex; flex-direction: column; }
.agh-contact-ticket small { opacity: .85; font-size: 12.5px; line-height: 1.8; }
.agh-contact-map { height: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--agh-line); }
.agh-contact-form { background: #fff; border: 1px solid var(--agh-line); border-radius: 18px; padding: 20px; }
.agh-contact-form h2 { font-size: 18px; margin: 0 0 12px !important; }
.agh-contact-form .agh-field { display: block; margin-bottom: 12px; }
.agh-contact-form .agh-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.agh-contact-form input, .agh-contact-form select, .agh-contact-form textarea { width: 100%; border: 1px solid var(--agh-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.agh-contact-form input:focus, .agh-contact-form select:focus, .agh-contact-form textarea:focus { outline: 0; border-color: var(--agh-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--agh-primary) 14%, transparent); }
.agh-contact-form .has-err input, .agh-contact-form .has-err textarea { border-color: #c62828; }
.agh-contact-form .agh-err { color: #c62828; font-size: 12.5px; }
.agh-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agh-hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.agh-contact-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.agh-contact-foot small { color: var(--agh-muted); }
.agh-contact-msg.is-err { color: #c62828; margin-top: 8px; font-size: 13.5px; }
.agh-contact-done { text-align: center; padding: 30px 10px; }
.agh-contact-done i { font-size: 46px; color: var(--agh-ok, #2e7d32); }
.agh-contact-done strong { display: block; font-size: 18px; margin: 12px 0 4px; }
.agh-contact-done p { color: var(--agh-muted); margin: 0; }

@media (max-width: 900px) {
	.agh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agh-features, .agh-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agh-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agh-flow li::after { display: none; }
	.agh.agh-contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.agh-features, .agh-svc-grid, .agh-flow { grid-template-columns: 1fr; }
	.agh-flow li { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; align-items: start; }
	.agh-flow li .agh-flow-ic { grid-row: span 2; }
	.agh-flow strong { margin: 0; }
	.agh-svc { padding: 16px; border-radius: 16px; }
	.agh-svc-help { flex-direction: column; align-items: stretch; text-align: center; }
	.agh-svc-help .agh-svc-ic { margin: 0 auto; }
	.agh-row2 { grid-template-columns: 1fr; gap: 0; }
	.agh-contact-form { padding: 16px; }
	.agh-stat strong { font-size: 20px; }
}

/* Promotion packages (panel modal) */
.ps-promos { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ps-promo { margin: 0 !important; align-items: flex-start !important; }
.ps-promo input { margin-top: 12px; }
.ps-promo-ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--agh-primary) 11%, #fff); color: var(--agh-primary); font-size: 17px; }
.ps-promo:has(input:checked) .ps-promo-ic { background: var(--agh-primary); color: #fff; }
.ps-promo-fx { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 2px; }
.ps-promo-fx em { font-style: normal; font-size: 11.5px; font-weight: 600; background: var(--agh-soft); color: var(--agh-text); border-radius: 6px; padding: 0 7px; line-height: 1.9; }
.ps-promo > div { min-width: 0; }
.ps-promo .ps-promo-price { display: block; font-size: 14px; margin-top: 4px; }
.agh-svc-fx { display: flex; flex-wrap: wrap; gap: 4px; }
.agh-svc-fx em { font-style: normal; font-size: 11.5px; font-weight: 600; background: var(--agh-soft, #f6f6f6); border-radius: 6px; padding: 0 7px; line-height: 1.9; }

/* =====================================================================
 * Category picker (search box)
 * =================================================================== */
.agh-hs-cat { display: flex; flex: 0 0 auto; border-left: 1px solid var(--agh-line); max-width: 230px; }
.agh-hs-cat-btn { --c: var(--agh-primary); display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; font: inherit; color: var(--agh-text); cursor: pointer; padding: 0 10px 0 12px; border-radius: 12px; text-align: right; min-width: 0; }
.agh-hs-cat-btn:hover, .agh-hs-cat.is-open .agh-hs-cat-btn { background: var(--agh-soft); }
.agh-hs-cat-txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; flex: 1; }
.agh-hs-cat-txt small { font-size: 11px; color: var(--agh-faint); }
.agh-hs-cat-txt b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agh-hs-caret { font-size: 11px; color: var(--agh-faint); transition: transform .2s; }
.agh-hs-cat.is-open .agh-hs-caret { transform: rotate(180deg); }
.agh-cp-ic { --c: inherit; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--agh-primary)) 13%, #fff); color: var(--c, var(--agh-primary)); font-size: 15px; transition: background .15s, color .15s; }
.agh-cp-ic-lg { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; font-size: 20px; }

.agh-cp { position: absolute; top: 76px; right: 0; width: min(780px, 100%); background: #fff; border: 1px solid var(--agh-line); border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(15, 42, 51, .4); z-index: 1001; overflow: hidden; text-align: right; }
.agh-cp[hidden] { display: none !important; }
.agh-cp-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--agh-line); }
.agh-cp-head strong { font-size: 15px; white-space: nowrap; }
.agh-cp-find { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--agh-soft); border-radius: 12px; padding: 0 12px; height: 40px; color: var(--agh-faint); }
.agh-cp-find input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; outline: 0 !important; box-shadow: none !important; font: inherit; font-size: 14px; padding: 0 !important; height: 38px; }
.agh-cp-x { display: none; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--agh-soft); cursor: pointer; color: var(--agh-muted); }
.agh-cp-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); max-height: min(62vh, 470px); }
.agh-cp-main { list-style: none; margin: 0; padding: 8px; overflow-y: auto; border-left: 1px solid var(--agh-line); background: #FBFCFC; }
.agh-cp-main li { margin: 0; padding: 0; }
.agh-cp-main li::before { display: none !important; }
.agh-cp-top { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--agh-text); cursor: pointer; text-align: right; }
.agh-cp-top:hover, .agh-cp-top.is-active { background: #fff; box-shadow: 0 1px 3px rgba(15, 42, 51, .08), 0 0 0 1px var(--agh-line); }
.agh-cp-top.is-active .agh-cp-ic { background: var(--c, var(--agh-primary)); color: #fff; }
.agh-cp-top.is-active::after { content: ""; position: absolute; left: -9px; top: 50%; width: 10px; height: 10px; background: #fff; border: 1px solid var(--agh-line); border-width: 1px 0 0 1px; transform: translateY(-50%) rotate(-45deg); }
.agh-cp-any .agh-cp-ic { --c: var(--agh-muted); }
.agh-cp-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agh-cp-go { font-size: 11px; color: var(--agh-faint); }
.agh-cp-panes { position: relative; overflow-y: auto; padding: 14px 16px 16px; }
.agh-cp-hint { display: grid; place-items: center; height: 100%; min-height: 200px; color: var(--agh-faint); font-size: 14px; }
.agh-cp-hint[hidden] { display: none; }
.agh-cp-pane[hidden] { display: none; }
.agh-cp-back { display: none; }
.agh-cp-all { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--c) 8%, #fff); color: var(--agh-text); font: inherit; cursor: pointer; text-align: right; margin-bottom: 12px; transition: background .15s; }
.agh-cp-all:hover { background: color-mix(in srgb, var(--c) 15%, #fff); }
.agh-cp-all > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.6; }
.agh-cp-all b { font-size: 15px; }
.agh-cp-all small { color: var(--agh-muted); font-size: 12px; }
.agh-cp-all > i { color: var(--c); font-size: 12px; }
.agh-cp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.agh-cp-sub > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--agh-text); cursor: pointer; text-align: right; }
.agh-cp-sub > button:hover, .agh-cp-sub > button.is-on { background: var(--agh-soft); color: var(--c); }
.agh-cp-sub > button.is-on::before { content: "\f00c"; font-family: "Font Awesome 7 Free"; font-weight: 900; font-size: 11px; margin-left: 4px; }
.agh-cp-sub small { font-size: 11px; color: var(--agh-faint); background: var(--agh-soft); border-radius: 999px; padding: 0 8px; font-weight: 500; }
.agh-cp-sub > button:hover small { background: #fff; }
.agh-cp-leaf { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 6px; }
.agh-cp-leaf button { border: 1px solid var(--agh-line); background: #fff; border-radius: 999px; padding: 1px 10px; font: inherit; font-size: 12px; color: var(--agh-muted); cursor: pointer; }
.agh-cp-leaf button:hover, .agh-cp-leaf button.is-on { border-color: var(--c); color: var(--c); }
.agh-cp-results { padding: 8px; max-height: min(62vh, 470px); overflow-y: auto; }
.agh-cp-results[hidden] { display: none; }
.agh-cp-results button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; font: inherit; cursor: pointer; text-align: right; color: var(--agh-text); }
.agh-cp-results button:hover, .agh-cp-results button:first-child { background: var(--agh-soft); }
.agh-cp-results button > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.6; }
.agh-cp-results small { color: var(--agh-muted); font-size: 12px; }
.agh-cp-none { padding: 18px; color: var(--agh-muted); text-align: center; }
.agh-cp-body[hidden] { display: none; }
html.agh-lock, html.agh-lock body { overflow: hidden; }

@media (max-width: 760px) {
	.agh-cp { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; height: min(86vh, 640px); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; box-shadow: 0 0 0 100vmax rgba(9, 26, 31, .5); z-index: 100001; animation: agh-sheet .22s ease-out; }
	.agh-hs:has(.agh-hs-cat.is-open) { z-index: 100001; }
	@keyframes agh-sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
	.agh-cp::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--agh-line); }
	.agh-cp-head { flex-wrap: wrap; padding: 18px 14px 10px; }
	.agh-cp-head strong { flex: 1; font-size: 16px; }
	.agh-cp-x { display: grid; place-items: center; }
	.agh-cp-find { order: 3; flex: 1 1 100%; }
	.agh-cp-body { display: block; flex: 1; max-height: none; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
	.agh-cp-results { flex: 1; max-height: none; }
	.agh-cp-main { border: 0; background: #fff; padding: 6px 10px; overflow: visible; }
	.agh-cp-top { padding: 10px 8px; font-size: 15px; border-bottom: 1px solid #F1F4F4; border-radius: 0; }
	.agh-cp-top:hover, .agh-cp-top.is-active { box-shadow: none; background: transparent; }
	.agh-cp-top.is-active .agh-cp-ic { background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); }
	.agh-cp-top.is-active::after { display: none; }
	.agh-cp-ic { width: 40px; height: 40px; flex-basis: 40px; }
	.agh-cp-panes { display: none; padding: 6px 14px 20px; overflow: visible; }
	.agh-cp.is-drill .agh-cp-main { display: none; }
	.agh-cp.is-drill .agh-cp-panes { display: block; }
	.agh-cp-hint { display: none !important; }
	.agh-cp-back { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--agh-muted); padding: 4px 0 12px; cursor: pointer; }
	.agh-cp-grid { grid-template-columns: 1fr; gap: 2px; }
	.agh-cp-sub > button { padding: 12px 8px; border-bottom: 1px solid #F1F4F4; border-radius: 0; font-size: 15px; }
	.agh-cp-leaf { padding: 8px 8px 10px; }
	.agh-cp-leaf button { font-size: 13px; padding: 4px 12px; }
}

/* Quick questions (ad page) and quick replies (chat) */
.agh-quickq { margin: 12px 0 4px; }
.agh-quickq-title { display: block; font-size: 13px; font-weight: 700; color: var(--agh-muted); margin-bottom: 8px; }
.agh-quickq-title i { color: var(--agh-primary); margin-left: 4px; }
.agh-quickq-list, .agh-chat-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.agh-quickq-list button, .agh-chat-quick button { border: 1px solid color-mix(in srgb, var(--agh-primary) 30%, var(--agh-line)); background: color-mix(in srgb, var(--agh-primary) 5%, #fff); color: var(--agh-text); border-radius: 999px; padding: 5px 13px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.agh-quickq-list button:hover, .agh-chat-quick button:hover { border-color: var(--agh-primary); background: color-mix(in srgb, var(--agh-primary) 12%, #fff); }
.agh-quickq-list button:disabled, .agh-chat-quick button:disabled { opacity: .5; }
.agh-chat-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 8px 10px 2px; border-top: 1px solid var(--agh-line); }
.agh-chat-quick::-webkit-scrollbar { display: none; }
@media (max-width: 600px) {
	.agh-quickq-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--agh-gutter, 16px)); padding: 0 var(--agh-gutter, 16px) 2px; }
	.agh-quickq-list::-webkit-scrollbar { display: none; }
}

/* Install-the-app bar (mobile web) */
.agh-appbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 9989; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e3e8e8; border-radius: 16px; padding: 10px 12px; box-shadow: 0 14px 34px -10px rgba(15, 42, 51, .35); font-family: Vazirmatn, Tahoma, sans-serif; direction: rtl; animation: agh-up .3s ease-out; }
.agh-appbar[hidden] { display: none; }
@keyframes agh-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.agh-appbar img { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 40px; }
.agh-appbar div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.agh-appbar strong { font-size: 14px; color: #13262b; }
.agh-appbar small { font-size: 11.5px; color: #6b7c80; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agh-appbar-go { border: 0; border-radius: 10px; background: #0E7C7B; color: #fff; font: inherit; font-weight: 700; font-size: 13px; padding: 8px 16px; cursor: pointer; }
.agh-appbar-x { border: 0; background: #f1f4f4; color: #6b7c80; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; flex: 0 0 28px; }
body.agh-has-nav .agh-appbar { bottom: calc(70px + env(safe-area-inset-bottom)); }
@media (min-width: 901px) { .agh-appbar { display: none !important; } }
.agh-stores { display: flex; flex-direction: column; gap: 8px; }
.agh-store { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--agh-line); border-radius: 14px; background: #fff; color: var(--agh-text) !important; text-decoration: none !important; font: inherit; font-weight: 700; cursor: pointer; text-align: right; width: 100%; }
.agh-store i { font-size: 22px; width: 30px; text-align: center; color: var(--agh-primary); }
.agh-store span { display: flex; flex-direction: column; line-height: 1.5; }
.agh-store small { font-weight: 400; color: var(--agh-muted); font-size: 12px; }
.agh-store-bazaar i { color: #2BB673; }
.agh-store-myket i { color: #1F6FEB; }
.agh-ios-steps { padding-right: 20px; line-height: 2.1; }
/* Inside the Android app: no «download the app» bits. */
body.agh-in-app .agh-appbar, body.agh-in-app .t-apps, body.agh-in-app .t-app { display: none !important; }

/* ---------- Ad video ---------- */
.agh-vup-add { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1.5px dashed var(--agh-line); border-radius: 14px; background: var(--agh-soft, #f6f8f8); color: var(--agh-primary); font: inherit; font-size: 14px; cursor: pointer; }
.agh-vup-add i { font-size: 18px; }
.agh-vup-add:hover { border-color: var(--agh-primary); }
.agh-vup-item { position: relative; width: 220px; max-width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #0f2a33; display: grid; place-items: center; }
.agh-vup-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agh-vup-item.is-loading img { opacity: .45; }
.agh-vup-ph { color: rgba(255,255,255,.5); font-size: 30px; }
.agh-vup-play { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; padding-inline-start: 3px; }
.agh-vup-len { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.agh-vup-x { position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.agh-vup-prog { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.agh-vup-prog b { display: block; height: 100%; background: var(--agh-accent, #F2A93B); transition: width .2s; }
.agh-vup-pct { position: relative; color: #fff; font-weight: 700; font-size: 18px; }
.agh-video { margin-bottom: 14px; border-radius: 16px; overflow: hidden; background: #000; }
.agh-video video { display: block; width: 100%; max-height: 70vh; background: #000; }
.agh-card-img { position: relative; }
.agh-card-video { position: absolute; bottom: 6px; left: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding-inline-start: 2px; }

/* ---------- Verified ticks ---------- */
.agh-badge-tick { display: inline-flex; vertical-align: -3px; margin-inline-start: 4px; line-height: 0; flex: none; }
.agh-badge-tick svg { display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.12)); }
.agh-shop-id .agh-h1 .agh-badge-tick { vertical-align: -5px; }

/* ---------- Number-plate cover editor ---------- */
.agh-pl-stage { position: relative; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #111; touch-action: none; user-select: none; }
.agh-pl-photo { display: block; width: 100%; height: auto; }
.agh-pl-st { position: absolute; height: auto; cursor: grab; transform-origin: 50% 50%; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); outline: 2px dashed rgba(242,169,59,.9); outline-offset: 3px; touch-action: none; }
.agh-pl-st:active { cursor: grabbing; }
.agh-pl-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.agh-pl-ctl label { display: grid; gap: 4px; font-size: 13px; color: var(--agh-muted, #6b7c80); }
.agh-pl-ctl input { width: 100%; }
.agh-vup { display: flex; flex-wrap: wrap; gap: 8px; }

/* Tablighoo ad slots */
.agh-tb { margin: 14px 0; text-align: center; overflow: hidden; max-width: 100%; }
.agh-tb:empty { display: none; }
.agh-tb img, .agh-tb iframe { max-width: 100%; height: auto; }
.agh-grid > .agh-tb { grid-column: 1 / -1; margin: 8px 0; padding: 8px 0; border-bottom: 1px solid var(--agh-line); }
.agh-tb-single-bottom { margin: 24px 0 8px; }
