/* ==========================================================================
   Mobile Ghesti – front-end styles (RTL, mobile first)
   ========================================================================== */
:root {
	--mg-navy: #0C1322;
	--mg-navy-2: #0F1A2E;
	--mg-navy-3: #1B2E52;
	--mg-blue: #2F6BFF;
	--mg-blue-2: #5B8CFF;
	--mg-bg: #F6F7F9;
	--mg-white: #FFFFFF;
	--mg-line: #E7E9EE;
	--mg-muted: #5B6472;
	--mg-faint: #9AA1AD;
	--mg-green: #16C784;
	--mg-green-2: #3BE0A0;
	--mg-amber: #F0A020;
	--mg-radius: 18px;
	--mg-shadow: 0 30px 70px -30px rgba(12, 19, 34, .28);
	--mg-font: Vazirmatn, Tahoma, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html.mg-lock { overflow: hidden; }
body { font-family: var(--mg-font); background: var(--mg-bg); color: var(--mg-navy); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body :where(button, input, select, textarea) { font-family: inherit; }
::selection { background: var(--mg-blue); color: #fff; }

/* ---- Neutralise theme spacing so our full-width sections sit edge to edge ---- */
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > main,
.wp-site-blocks > main > .wp-block-group,
.wp-site-blocks > main > .entry-content,
body .wp-site-blocks > * { margin-block-start: 0 !important; }
.home .wp-site-blocks > main,
.home .wp-site-blocks > main .wp-block-post-content { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.home .wp-block-post-content > * { margin-block: 0 !important; max-width: none !important; }
.home .wp-block-post-content > .alignfull { margin-inline: 0 !important; }
.mg-hero, .mg-section, .mg-contact { width: 100%; }

.mg-wrap { max-width: 1200px; margin-inline: auto !important; padding-inline: 20px; box-sizing: border-box; width: 100%; }
.mg-narrow { max-width: 860px; }

/* ---- Buttons ---- */
.mg-btn, .mg-hero .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--mg-blue); color: #fff !important; font-weight: 700; font-size: 15px;
	padding: 14px 24px; border-radius: 13px; border: 0; cursor: pointer; text-decoration: none !important;
	box-shadow: 0 12px 28px rgba(47, 107, 255, .35); transition: transform .15s, background .15s; line-height: 1.4;
}
.mg-btn:hover, .mg-hero .wp-block-button__link:hover { background: #2458e0; transform: translateY(-1px); }
.mg-btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 11px; }
.mg-btn-block { width: 100%; }
.mg-btn-ghost, .mg-hero .mg-btn-ghost .wp-block-button__link {
	background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .18) !important; box-shadow: none !important; color: #fff !important;
}
.mg-btn:disabled { opacity: .6; cursor: wait; }

/* ==========================================================================
   Header
   ========================================================================== */
.mg-header { position: sticky; top: 0; z-index: 60; background: rgba(12, 19, 34, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-bar .mg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mg-header { top: 0; } }
.mg-header-in { height: 70px; display: flex; align-items: center; gap: 28px; }
.mg-logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: #fff !important; flex-shrink: 0; }
.mg-logo-ico { width: 40px; height: 40px; flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(47, 107, 255, .45)); }
.mg-logo span { display: flex; flex-direction: column; line-height: 1.25; }
.mg-logo b { font-size: 19px; font-weight: 900; color: #fff; letter-spacing: -.2px; }
.mg-logo b em { font-style: normal; color: var(--mg-blue-2); }
.mg-logo small { font-size: 10.5px; color: rgba(255, 255, 255, .55); margin-top: 1px; }
.mg-nav { display: flex; align-items: center; gap: 24px; }
.mg-nav a { color: rgba(255, 255, 255, .75) !important; font-size: 14.5px; font-weight: 500; text-decoration: none !important; transition: color .15s; white-space: nowrap; }
.mg-nav a:hover { color: #fff !important; }
.mg-header-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.mg-call { display: inline-flex; align-items: center; gap: 7px; color: #fff !important; font-weight: 700; font-size: 14.5px; text-decoration: none !important; }
.mg-call svg { width: 17px; height: 17px; fill: var(--mg-green-2); }
.mg-burger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.mg-burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.mg-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mg-burger.is-open span:nth-child(2) { opacity: 0; }
.mg-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mg-drawer { background: var(--mg-navy); border-top: 1px solid rgba(255, 255, 255, .08); padding: 10px 20px 20px; }
.mg-drawer nav { display: flex; flex-direction: column; }
.mg-drawer nav a { color: #fff !important; text-decoration: none !important; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 15.5px; }
.mg-drawer .mg-call { margin-top: 16px; font-size: 16px; }

@media (max-width: 1080px) { .mg-nav { display: none; } .mg-burger { display: flex; } }
@media (max-width: 560px) {
	.mg-header-in { height: 62px; gap: 10px; }
	.mg-header-cta .mg-call { display: none; }
	.mg-logo small { display: none; }
	.mg-logo-ico { width: 36px; height: 36px; }
	.mg-logo b { font-size: 17px; }
	.mg-header-cta { gap: 8px; }
	.mg-btn-sm { padding: 9px 13px; font-size: 13px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.mg-hero { background: radial-gradient(1200px 600px at 22% -10%, var(--mg-navy-3) 0%, var(--mg-navy) 55%); color: #fff; position: relative; overflow: hidden; padding: 0 !important; }
.mg-hero-grid { display: grid !important; grid-template-columns: 1.1fr .9fr; gap: 40px !important; align-items: center; padding-block: 80px 88px; margin: 0 auto !important; }
.mg-hero-grid > * { flex-basis: auto !important; min-width: 0; }
.mg-pill { display: inline-flex !important; align-items: center; gap: 8px; background: rgba(22, 199, 132, .12); border: 1px solid rgba(22, 199, 132, .3); color: var(--mg-green-2); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 100px; margin: 0 0 24px !important; }
.mg-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mg-green); box-shadow: 0 0 0 4px rgba(22, 199, 132, .2); }
.mg-hero-title { font-size: clamp(34px, 5.4vw, 58px) !important; line-height: 1.25 !important; font-weight: 900 !important; letter-spacing: -.5px; margin: 0 0 20px !important; color: #fff !important; }
.mg-accent { color: var(--mg-blue-2); }
.mg-hero-lead { font-size: 17px; line-height: 2; color: rgba(255, 255, 255, .7); max-width: 540px; margin: 0 0 32px !important; }
.mg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px !important; margin: 0 0 40px !important; }
.mg-hero-actions .wp-block-button__link, .mg-hero-actions .mg-btn { font-size: 16px; padding: 15px 28px; }
.mg-hero-stats { display: flex; gap: 32px; align-items: stretch; }
.mg-hero-stats i { width: 1px; background: rgba(255, 255, 255, .12); }
.mg-hero-stats strong { display: block; font-size: 26px; font-weight: 900; }
.mg-hero-stats span { font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.mg-hero-media { position: relative; display: flex; justify-content: center; }
.mg-hero-media::before { content: ''; position: absolute; width: 340px; height: 340px; max-width: 90%; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, .35), transparent 70%); filter: blur(20px); }
.mg-hero-img { margin: 0 !important; position: relative; animation: mg-float 6s ease-in-out infinite; }
.mg-hero-img img { width: 300px; max-width: 70vw; height: auto; display: block; }
@keyframes mg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .mg-hero-img { animation: none; } html { scroll-behavior: auto; } }
.mg-brandbar { border-top: 1px solid rgba(255, 255, 255, .08); }
.mg-brandbar .mg-wrap { display: flex; align-items: center; gap: 36px; padding-block: 20px; flex-wrap: wrap; }
.mg-brandbar span { font-size: 13px; color: rgba(255, 255, 255, .45); }
.mg-brandbar b { font-size: 18px; font-weight: 800; color: rgba(255, 255, 255, .82); direction: ltr; }

@media (max-width: 900px) {
	.mg-hero-grid { grid-template-columns: 1fr; text-align: center; padding-block: 44px 52px; gap: 28px !important; }
	.mg-hero-copy { display: flex; flex-direction: column; align-items: center; }
	.mg-hero-lead { margin-inline: auto !important; font-size: 15.5px; }
	.mg-hero-actions { justify-content: center; }
	.mg-hero-stats { justify-content: center; gap: 20px; }
	.mg-hero-media { order: -1; }
	.mg-hero-img img { width: 150px; }
	.mg-brandbar .mg-wrap { gap: 10px 22px; justify-content: center; }
	.mg-brandbar span { width: 100%; text-align: center; }
	.mg-brandbar b { font-size: 15px; }
}
@media (max-width: 480px) {
	.mg-hero-actions { width: 100%; flex-direction: column; }
	.mg-hero-actions .wp-block-button, .mg-hero-actions .wp-block-button__link, .mg-hero-actions .mg-btn { width: 100%; }
	.mg-hero-stats strong { font-size: 21px; }
	.mg-hero-stats span { font-size: 12px; }
	.mg-hero-img img { width: 120px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.mg-section { padding: 88px 0 !important; background: var(--mg-bg); }
.mg-section-white { background: #fff; }
.mg-head { text-align: center; margin-bottom: 40px !important; }
.mg-eyebrow { font-size: 13px; font-weight: 800; color: var(--mg-blue); margin: 0 0 10px !important; letter-spacing: .3px; }
.mg-h2 { font-size: clamp(26px, 3.6vw, 40px) !important; font-weight: 900 !important; line-height: 1.4 !important; margin: 0 0 12px !important; color: inherit; }
.mg-sub { font-size: 16px; color: var(--mg-muted); max-width: 580px; margin: 0 auto !important; line-height: 1.9; }
@media (max-width: 600px) { .mg-section { padding: 56px 0 !important; } .mg-head { margin-bottom: 26px !important; } .mg-sub { font-size: 14.5px; } }

/* ---- Steps ---- */
.mg-steps { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 18px !important; }
.mg-steps > .wp-block-column { flex-basis: auto !important; }
.mg-step { background: var(--mg-bg); border: 1px solid var(--mg-line); border-radius: 20px; padding: 28px; }
.mg-step h3 { font-size: 18px !important; font-weight: 800 !important; margin: 0 0 8px !important; }
.mg-step p:not(.mg-step-num) { font-size: 14.5px; color: var(--mg-muted); line-height: 1.9; margin: 0 !important; }
.mg-step-num { width: 44px; height: 44px; border-radius: 12px; background: var(--mg-blue); color: #fff; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; margin: 0 0 20px !important; }
.mg-step-done .mg-step-num { background: var(--mg-green); }
@media (max-width: 960px) { .mg-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mg-steps { grid-template-columns: 1fr; gap: 12px !important; } .mg-step { padding: 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; } .mg-step-num { grid-row: span 2; margin: 0 !important; } }

/* ---- Terms ---- */
.mg-terms { display: grid !important; grid-template-columns: .85fr 1.15fr; gap: 56px !important; align-items: center; }
.mg-terms > .wp-block-column { flex-basis: auto !important; min-width: 0; }
.mg-terms .mg-eyebrow, .mg-terms .mg-h2 { text-align: start; }
.mg-terms-media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }
.mg-terms-media::before { content: ''; position: absolute; width: 340px; max-width: 86%; height: 410px; border-radius: 44px; background: var(--mg-blue); transform: rotate(8deg); }
.mg-terms-img { position: relative; margin: 0 !important; }
.mg-terms-img img { width: 280px; max-width: 70vw; height: auto; display: block; }
.mg-checklist { list-style: none !important; padding: 0 !important; margin: 18px 0 0 !important; }
.mg-checklist li { position: relative; padding: 16px 38px 16px 0; border-bottom: 1px solid var(--mg-line); font-size: 14.5px; color: var(--mg-muted); line-height: 1.9; }
.mg-checklist li:last-child { border-bottom: 0; }
.mg-checklist li::before { content: '✓'; position: absolute; right: 4px; top: 15px; color: var(--mg-green); font-size: 19px; font-weight: 800; }
.mg-checklist li.mg-warn::before { content: '!'; color: var(--mg-amber); right: 9px; }
.mg-checklist li strong { display: block; color: var(--mg-navy); font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.mg-more a { font-weight: 700; text-decoration: none; }
@media (max-width: 900px) { .mg-terms { grid-template-columns: 1fr; gap: 24px !important; } .mg-terms-media { min-height: 300px; } .mg-terms-media::before { width: 230px; height: 280px; } .mg-terms-img img { width: 190px; } }

/* ---- FAQ ---- */
.mg-faqs { display: grid; gap: 12px; }
.mg-faq { border: 1px solid var(--mg-line); border-radius: 16px; background: #fff; overflow: hidden; margin: 0 !important; }
.mg-faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mg-faq summary::-webkit-details-marker { display: none; }
.mg-faq summary::after { content: '+'; color: var(--mg-blue); font-size: 24px; font-weight: 400; line-height: 1; flex-shrink: 0; }
.mg-faq[open] summary::after { content: '−'; }
.mg-faq > p, .mg-faq > :not(summary) { padding: 0 22px 20px; margin: 0 !important; color: var(--mg-muted); font-size: 15px; line-height: 2; }
@media (max-width: 600px) { .mg-faq summary { font-size: 15px; padding: 17px 18px; } .mg-faq > :not(summary) { padding: 0 18px 18px; font-size: 14px; } }

/* ---- Contact band ---- */
.mg-contact { background: linear-gradient(160deg, var(--mg-navy-2), var(--mg-navy)); color: #fff; padding: 88px 0; }
.mg-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.mg-contact .mg-eyebrow { color: var(--mg-blue-2); }
.mg-contact .mg-h2 { color: #fff; margin-bottom: 24px !important; }
.mg-contact-item { margin-bottom: 22px; }
.mg-contact-item span { display: block; font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 4px; }
.mg-contact-item p { font-size: 16px; line-height: 1.9; color: rgba(255, 255, 255, .9); margin: 0; }
.mg-contact-item a { color: #fff; text-decoration: none; font-weight: 700; }
.mg-contact-row { display: flex; gap: 34px; flex-wrap: wrap; }
.mg-contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.mg-map { border-radius: 20px; overflow: hidden; min-height: 340px; background: #e5e7eb; }
.mg-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.mg-map-dark { border: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 900px) { .mg-contact { padding: 56px 0; } .mg-contact-grid { grid-template-columns: 1fr; gap: 28px; } .mg-map, .mg-map iframe { min-height: 280px; } }
@media (max-width: 480px) { .mg-contact-actions .mg-btn { flex: 1; } }

/* ==========================================================================
   Product list
   ========================================================================== */
.mg-filters { background: #fff; border: 1px solid var(--mg-line); border-radius: 20px; padding: 14px; margin-bottom: 16px; box-shadow: 0 10px 30px -22px rgba(12, 19, 34, .3); }
.mg-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mg-cats::-webkit-scrollbar { display: none; }
.mg-cats button { flex-shrink: 0; border: 0; background: var(--mg-bg); color: var(--mg-muted); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 12px; cursor: pointer; transition: background .15s, color .15s; }
.mg-cats button span { font-size: 12px; opacity: .7; margin-inline-start: 4px; }
.mg-cats button.is-on { background: var(--mg-navy); color: #fff; }
.mg-filter-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 10px; }
.mg-search { position: relative; display: block; }
.mg-search svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: var(--mg-faint); }
.mg-search input, .mg-filter-row select { width: 100%; height: 46px; border: 1px solid var(--mg-line); background: var(--mg-bg); border-radius: 12px; font-size: 14.5px; color: var(--mg-navy); box-sizing: border-box; }
.mg-search input { padding: 0 42px 0 14px; }
.mg-filter-row select { padding: 0 12px; cursor: pointer; min-width: 130px; }
.mg-search input:focus, .mg-filter-row select:focus { outline: 2px solid var(--mg-blue); outline-offset: -1px; background: #fff; }
.mg-brands { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mg-brands:empty { display: none; }
.mg-chip { border: 1px solid var(--mg-line); background: #fff; color: var(--mg-navy); font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 100px; cursor: pointer; transition: all .15s; line-height: 1.5; }
.mg-chip:hover { border-color: var(--mg-blue-2); }
.mg-chip.is-on { background: var(--mg-blue); border-color: var(--mg-blue); color: #fff; }
.mg-list-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--mg-faint); margin: 0 4px 10px; }
.mg-count { font-weight: 700; color: var(--mg-muted); }
.mg-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.mg-item { display: flex; align-items: stretch; gap: 14px; text-align: right; width: 100%; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 16px 18px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.mg-item:hover { border-color: var(--mg-blue-2); box-shadow: 0 16px 36px -22px rgba(47, 107, 255, .55); transform: translateY(-1px); }
.mg-item:focus-visible { outline: 2px solid var(--mg-blue); outline-offset: 2px; }
.mg-item.is-off { opacity: .6; }
.mg-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mg-item-tags, .mg-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.mg-tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 7px; background: #EEF3FF; color: var(--mg-blue); line-height: 1.6; }
.mg-tag-new { background: #E8F9F1; color: #0E9F68; }
.mg-tag-used { background: #FFF4E0; color: #B26B00; }
.mg-tag-off { background: #FDECEC; color: #C23434; }
.mg-tag-soft { background: var(--mg-bg); color: var(--mg-muted); }
.mg-item-name { font-size: 16.5px; font-weight: 800; text-align: right; line-height: 1.5; overflow-wrap: anywhere; }
.mg-item-specs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--mg-muted); }
.mg-item-specs em { font-style: normal; color: var(--mg-line); }
.mg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, #cbd5e1); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); margin-inline-end: 4px; vertical-align: -1px; }
.mg-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; flex-shrink: 0; text-align: left; }
.mg-item-price { font-size: 17px; font-weight: 900; white-space: nowrap; }
.mg-item-price small { font-size: 11px; font-weight: 500; color: var(--mg-faint); }
.mg-item-inst { font-size: 12px; color: var(--mg-muted); white-space: nowrap; }
.mg-item-inst b { color: #0E9F68; font-weight: 800; }
.mg-item-cta { font-size: 12.5px; font-weight: 800; color: var(--mg-blue); background: #EEF3FF; padding: 6px 12px; border-radius: 9px; white-space: nowrap; }
.mg-item:hover .mg-item-cta { background: var(--mg-blue); color: #fff; }
.mg-more-btn { display: block; margin: 20px auto 0; border: 1px solid var(--mg-line); background: #fff; color: var(--mg-navy); font-weight: 700; font-size: 14.5px; padding: 12px 26px; border-radius: 12px; cursor: pointer; }
.mg-more-btn:hover { border-color: var(--mg-blue); color: var(--mg-blue); }
.mg-empty { text-align: center; color: var(--mg-muted); padding: 30px 10px; }

@media (max-width: 960px) { .mg-list { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
	.mg-filters { padding: 10px; border-radius: 16px; margin-inline: -4px; }
	.mg-filter-row { grid-template-columns: 1fr 1fr; }
	.mg-search { grid-column: 1 / -1; }
	.mg-filter-row select { min-width: 0; }
	.mg-brands { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -10px; padding-inline: 10px; }
	.mg-brands::-webkit-scrollbar { display: none; }
	.mg-chip { flex-shrink: 0; }
	.mg-item { flex-direction: column; gap: 12px; padding: 14px; }
	.mg-item-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px dashed var(--mg-line); padding-top: 10px; text-align: right; }
	.mg-item-price { order: 1; }
	.mg-item-inst { order: 3; width: 100%; }
	.mg-item-cta { order: 2; }
}

/* ==========================================================================
   Calculator
   ========================================================================== */
.mg-calc { background: #fff; border: 1px solid var(--mg-line); border-radius: 26px; box-shadow: var(--mg-shadow); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; max-width: 1080px; margin: 0 auto; }
.mg-calc-in { padding: 40px; }
.mg-field { margin-bottom: 28px; }
.mg-field:last-child { margin-bottom: 0; }
.mg-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.mg-field-head label, .mg-lbl { font-size: 15px; font-weight: 700; display: block; }
.mg-lbl { margin-bottom: 10px; }
.mg-val { font-size: 18px; font-weight: 900; }
.mg-val small { font-size: 12px; color: var(--mg-faint); font-weight: 500; margin-inline-start: 4px; }
.mg-price-input { width: 170px; border: 1px solid var(--mg-line); background: var(--mg-bg); border-radius: 10px; padding: 7px 10px; font-size: 17px; font-weight: 800; text-align: left; direction: ltr; color: var(--mg-navy); }
.mg-price-input:focus { outline: 2px solid var(--mg-blue); background: #fff; }
.mg-field-head small { font-size: 12px; color: var(--mg-faint); }
.mg-calc input[type=range], .mg-modal input[type=range] { width: 100%; accent-color: var(--mg-blue); height: 6px; cursor: pointer; direction: rtl; }
.mg-range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--mg-faint); margin-top: 6px; }
.mg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-chips .mg-chip { min-width: 44px; text-align: center; }

.mg-calc-out { padding: 40px; background: linear-gradient(160deg, var(--mg-navy-2), var(--mg-navy)); color: #fff; display: flex; flex-direction: column; }
.mg-out-label { font-size: 14px; color: rgba(255, 255, 255, .6); margin-bottom: 4px; }
.mg-out-big { font-size: clamp(30px, 4vw, 42px); font-weight: 900; line-height: 1.3; }
.mg-out-big small { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.mg-out-note { font-size: 14px; color: var(--mg-green-2); font-weight: 600; margin-top: 6px; }
.mg-out-rows { margin: 24px 0 22px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.mg-out-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mg-out-rows div:last-child { border-bottom: 0; }
.mg-out-rows dt { color: rgba(255, 255, 255, .62); font-size: 14px; }
.mg-out-rows dd { margin: 0; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.mg-out-rows .is-total dd { font-size: 16px; font-weight: 900; }
.mg-calc-out .mg-btn { margin-top: auto; }
.mg-out-hint { text-align: center; font-size: 12px; color: rgba(255, 255, 255, .45); margin: 10px 0 0; line-height: 1.8; }
@media (max-width: 860px) { .mg-calc { grid-template-columns: 1fr; border-radius: 20px; } .mg-calc-in, .mg-calc-out { padding: 24px 20px; } }

/* ==========================================================================
   Modal (product details, calculator, booking)
   ========================================================================== */
.mg-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mg-modal[hidden] { display: none; }
.mg-modal-bg { position: absolute; inset: 0; background: rgba(8, 12, 22, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .18s; }
.mg-modal-box { position: relative; background: #fff; border-radius: 24px; width: 100%; max-width: 760px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .18s, opacity .18s; }
.mg-modal.is-open .mg-modal-bg { opacity: 1; }
.mg-modal.is-open .mg-modal-box { transform: none; opacity: 1; }
.mg-modal-x { position: sticky; top: 12px; float: left; margin: 12px 12px 0 0; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--mg-bg); font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; color: var(--mg-navy); }
.mg-modal-x:hover { background: var(--mg-line); }
.mg-modal-body { padding: 26px 28px 28px; }
.mg-m-head { margin-bottom: 18px; padding-left: 40px; }
.mg-m-head h3 { font-size: 24px; font-weight: 900; margin: 8px 0 4px; text-align: right; line-height: 1.4; }
.mg-m-head p { margin: 0; color: var(--mg-muted); font-size: 14px; }
.mg-back { border: 0; background: none; color: var(--mg-blue); font-weight: 700; cursor: pointer; padding: 0; font-size: 14px; }
.mg-specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0 0 22px; }
.mg-specs-grid div { background: var(--mg-bg); border-radius: 12px; padding: 10px 12px; }
.mg-specs-grid dt { font-size: 12px; color: var(--mg-faint); margin-bottom: 2px; }
.mg-specs-grid dd { margin: 0; font-weight: 700; font-size: 14.5px; }
.mg-m-sec { margin-bottom: 22px; }
.mg-m-sec h4 { font-size: 15px; font-weight: 800; margin: 0 0 10px; }
.mg-popts { display: grid; gap: 8px; }
.mg-popt { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--mg-line); border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.mg-popt input { accent-color: var(--mg-blue); width: 18px; height: 18px; margin: 0; }
.mg-popt span { flex: 1; font-size: 14px; color: var(--mg-muted); }
.mg-popt b { font-size: 18px; font-weight: 900; white-space: nowrap; }
.mg-popt b small { font-size: 11px; font-weight: 500; color: var(--mg-faint); }
.mg-popt.is-on { border-color: var(--mg-blue); background: #F4F7FF; }
.mg-popts.is-single .mg-popt input { display: none; }
.mg-m-calc { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--mg-line); border-radius: 20px; overflow: hidden; }
.mg-m-fields { padding: 22px; }
.mg-m-out { padding: 22px; }
.mg-m-out .mg-out-big { font-size: 30px; }
.mg-m-out .mg-out-rows { margin: 16px 0; }
.mg-m-out .mg-out-rows div { padding: 9px 0; }

@media (max-width: 700px) {
	.mg-modal { padding: 0; align-items: flex-end; }
	.mg-modal-box { border-radius: 22px 22px 0 0; max-height: 94vh; max-height: 94dvh; transform: translateY(40px); }
	.mg-modal-body { padding: 18px 16px 24px; }
	.mg-m-head h3 { font-size: 20px; }
	.mg-m-calc { grid-template-columns: 1fr; }
	.mg-m-fields, .mg-m-out { padding: 18px 16px; }
	.mg-specs-grid { grid-template-columns: repeat(2, 1fr); }
	.mg-popt b { font-size: 16px; }
}

/* ---- Booking form ---- */
.mg-book { display: block; }
.mg-book-ctx { background: var(--mg-bg); border-radius: 14px; padding: 12px 14px; margin-bottom: 20px; }
.mg-book-ctx span { display: block; font-size: 12px; color: var(--mg-faint); }
.mg-book-ctx strong { display: block; font-size: 15px; }
.mg-book-ctx small { display: block; color: var(--mg-muted); font-size: 12.5px; margin-top: 2px; }
.mg-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mg-days::-webkit-scrollbar { display: none; }
.mg-day { flex-shrink: 0; border: 1.5px solid var(--mg-line); background: #fff; border-radius: 14px; padding: 9px 14px; cursor: pointer; text-align: center; min-width: 82px; color: var(--mg-navy); }
.mg-day small { display: block; font-size: 12px; color: var(--mg-muted); }
.mg-day b { display: block; font-size: 14px; font-weight: 800; }
.mg-day.is-on { border-color: var(--mg-blue); background: var(--mg-blue); color: #fff; }
.mg-day.is-on small { color: rgba(255, 255, 255, .8); }
.mg-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.mg-slots .mg-chip { border-radius: 10px; padding: 8px 4px; }
.mg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-input { display: block; margin-bottom: 14px; }
.mg-input span { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.mg-input input, .mg-input textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--mg-line); background: var(--mg-bg); border-radius: 12px; padding: 12px 14px; font-size: 16px; color: var(--mg-navy); }
.mg-input input:focus, .mg-input textarea:focus { outline: 2px solid var(--mg-blue); outline-offset: -1px; background: #fff; }
.mg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mg-form-msg { background: #FDECEC; color: #B42318; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 0 0 12px; }
.mg-book .mg-out-hint { color: var(--mg-faint); }
.mg-done { text-align: center; padding: 16px 4px; }
.mg-done-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #E8F9F1; color: var(--mg-green); font-size: 32px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.mg-done h3 { font-size: 22px; margin: 0 0 12px; }
.mg-done p { color: var(--mg-muted); line-height: 1.9; margin: 0 0 8px; }
.mg-code strong { font-size: 22px; color: var(--mg-blue); letter-spacing: 1px; }
@media (max-width: 560px) { .mg-grid2 { grid-template-columns: 1fr; gap: 0; } }

.mg-booking-inline { background: #fff; border: 1px solid var(--mg-line); border-radius: 20px; padding: 24px; box-shadow: 0 10px 30px -22px rgba(12, 19, 34, .3); }
@media (max-width: 560px) { .mg-booking-inline { padding: 16px; } }

/* ==========================================================================
   Inner pages (terms, about, …)
   ========================================================================== */
body:not(.home) .wp-site-blocks > main { padding-block: 48px 72px !important; }
body:not(.home) .wp-block-post-title { font-size: clamp(28px, 4vw, 40px) !important; font-weight: 900 !important; margin-bottom: 24px !important; }
body:not(.home) .wp-block-post-content { font-size: 16px; line-height: 2.1; }
body:not(.home) .wp-block-post-content h2 { font-size: 22px; font-weight: 800; margin-top: 36px; }
.mg-lead { font-size: 18px !important; color: var(--mg-muted); line-height: 2.1; }
.mg-info-table { background: #fff; border: 1px solid var(--mg-line); border-radius: 18px; overflow: hidden; }
.mg-info-table > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--mg-line); line-height: 1.9; }
.mg-info-table > div:last-child { border-bottom: 0; }
.mg-info-table span { color: var(--mg-faint); font-size: 14px; }
.mg-info-table strong { font-weight: 700; font-size: 15px; }
.mg-info-table a { text-decoration: none; }
.mg-social { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-info-table .mg-social a { background: var(--mg-bg); padding: 2px 12px; border-radius: 8px; font-size: 13.5px; }
.mg-steps-list li { margin-bottom: 10px; }
body:not(.home) .mg-calc { margin-top: 28px; }
body:not(.home) .mg-calc .mg-wrap, body:not(.home) .mg-wrap { padding-inline: 0; }
@media (max-width: 560px) { .mg-info-table > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; } body:not(.home) .wp-site-blocks > main { padding-block: 28px 48px !important; } .mg-lead { font-size: 16px !important; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.mg-footer { background: #0A0F1C; color: #fff; padding: 60px 0 26px; }
.mg-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mg-footer h4 { font-size: 14px; font-weight: 800; color: rgba(255, 255, 255, .45); margin: 0 0 14px; }
.mg-footer p { font-size: 14px; color: rgba(255, 255, 255, .58); line-height: 2; margin: 14px 0 0; max-width: 320px; }
.mg-flinks { display: grid; gap: 10px; }
.mg-flinks a, .mg-fcontact a, .mg-footer .mg-social a { color: rgba(255, 255, 255, .75) !important; text-decoration: none !important; font-size: 14.5px; }
.mg-flinks a:hover, .mg-fcontact a:hover { color: #fff !important; }
.mg-fcontact p { margin: 0 0 8px; font-size: 14px; }
.mg-footer .mg-social { margin-top: 16px; }
.mg-footer .mg-social a { background: rgba(255, 255, 255, .07); padding: 5px 12px; border-radius: 9px; font-size: 13px; }
.mg-enamad { margin-top: 14px; background: #fff; border-radius: 12px; display: inline-block; padding: 6px; }
.mg-enamad img { display: block; max-width: 110px; height: auto; }
.mg-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .4); }
@media (max-width: 900px) { .mg-footer-grid { grid-template-columns: 1fr 1fr; } .mg-footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .mg-footer { padding-top: 44px; } .mg-footer-grid { gap: 28px 18px; } .mg-footer-bottom { justify-content: center; text-align: center; } }

/* Two action buttons under the calculator result */
.mg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.mg-actions .mg-btn { padding-inline: 10px; font-size: 14.5px; }
.mg-m-out .mg-actions, .mg-calc-out .mg-actions { margin-top: 4px; }
@media (max-width: 380px) { .mg-actions { grid-template-columns: 1fr; } }

/* Top bar: clock + US dollar rate */
.mg-ticker { background: #070B15; color: rgba(255, 255, 255, .78); font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mg-ticker-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 38px; }
.mg-clock { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.mg-clock-time { color: #fff; font-weight: 800; font-size: 14px; min-width: 42px; }
.mg-usd { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mg-usd-val { color: #fff; font-weight: 800; font-size: 14px; }
.mg-usd-ch { font-style: normal; font-size: 12px; font-weight: 700; }
.mg-usd-ch.up { color: var(--mg-green-2); }
.mg-usd-ch.down { color: #FF7A7A; }
.mg-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mg-green); }
.mg-pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mg-green); opacity: 0; animation: mg-pulse 2s ease-out infinite; }
@keyframes mg-pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 560px) {
	.mg-ticker { font-size: 12px; }
	.mg-ticker-in { height: 34px; gap: 8px; }
	.mg-usd > span:not(.mg-pulse) { display: none; }
	.mg-usd::before { content: 'دلار'; }
	.mg-clock { gap: 6px; }
}

/* Calculator (old-site formula): help lines, down-payment amount, cheque options */
.mg-help { font-size: 12.5px; color: var(--mg-faint); line-height: 1.9; margin: 8px 0 0; }
.mg-warn-msg { font-size: 12.5px; color: #B26B00; background: #FFF4E0; border-radius: 10px; padding: 7px 11px; margin: 8px 0 0; line-height: 1.8; }
.mg-down-box { display: inline-flex; align-items: center; gap: 6px; }
.mg-down-box small { font-size: 12px; color: var(--mg-faint); }
.mg-down-input { width: 150px; border: 1px solid var(--mg-line); background: var(--mg-bg); border-radius: 10px; padding: 7px 10px; font-size: 16px; font-weight: 800; text-align: left; direction: ltr; color: var(--mg-navy); font-family: inherit; }
.mg-down-input:focus { outline: 2px solid var(--mg-blue); background: #fff; }
.mg-chip-2 { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.4; padding: 7px 16px; border-radius: 12px; }
.mg-chip-2 b { font-size: 14px; }
.mg-chip-2 small { font-size: 11px; opacity: .75; font-weight: 500; }
.mg-cheques { gap: 8px; align-items: center; }
.mg-cq-opts { display: contents; }
.mg-cq-custom { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--mg-line); border-radius: 12px; padding: 5px 8px; font-size: 12.5px; color: var(--mg-muted); }
.mg-cq-custom button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--mg-line); background: #fff; color: var(--mg-navy); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.mg-cq-custom button:hover { border-color: var(--mg-blue-2); }
.mg-cq-input { width: 46px; border: 1px solid var(--mg-line); background: var(--mg-bg); border-radius: 9px; padding: 5px 4px; font-size: 15px; font-weight: 800; text-align: center; color: var(--mg-navy); font-family: inherit; }
.mg-cq-input:focus { outline: 2px solid var(--mg-blue); background: #fff; }
.mg-out-contact { text-align: center; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .85); background: rgba(47, 107, 255, .16); border: 1px solid rgba(91, 140, 255, .3); border-radius: 12px; padding: 9px 12px; margin: 14px 0 0; }
.mg-out-contact a { color: #fff !important; font-weight: 800; text-decoration: none; white-space: nowrap; }
.mg-hero-badge { display: inline-block; background: linear-gradient(90deg, rgba(240, 160, 32, .2), rgba(240, 160, 32, .08)); border: 1px solid rgba(240, 160, 32, .45); color: #FFC867; font-weight: 800; font-size: 15px; padding: 9px 16px; border-radius: 12px; margin: -12px 0 28px !important; }
@media (max-width: 420px) {
	.mg-field-head { align-items: center; }
	.mg-down-input { width: 128px; font-size: 15px; }
}

/* Floating contact buttons: column at the bottom-left on desktop, a bottom bar on phones */
.mg-float { position: fixed; left: 18px; bottom: 18px; z-index: 9990; display: flex; flex-direction: column; gap: 10px; }
.mg-float-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px 11px 14px; border-radius: 100px; color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 14px; box-shadow: 0 12px 28px -10px rgba(12, 19, 34, .45); transition: transform .15s; }
.mg-float-btn:hover { transform: translateY(-2px); }
.mg-float-btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.mg-float-call { background: var(--mg-blue); }
.mg-float-wa { background: #25D366; }
.mg-float-bale { background: #2BB7A8; }
@media (max-width: 700px) {
	.mg-float { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; background: #fff; border-top: 1px solid var(--mg-line); box-shadow: 0 -8px 24px -16px rgba(12, 19, 34, .4); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
	.mg-float-btn { flex: 1; justify-content: center; flex-direction: column; gap: 3px; padding: 8px 4px; border-radius: 12px; font-size: 11.5px; margin: 0 3px; box-shadow: none; text-align: center; line-height: 1.4; }
	.mg-float-btn svg { width: 20px; height: 20px; }
	body:has(.mg-float) { padding-bottom: 76px; }
}
