/* =========================================================
   ڕووکاری «مۆنیتەری چاودێری» — ڕەنگی ئەمبەر (سیگناڵ) و مۆری لێنز
   ڕووناک لەسەر :root ، تاریک لە [data-theme="dark"]
   ========================================================= */
:root {
  --bg: #f2f4f8;
  --bg-alt: #e9edf4;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --border: #dfe4ee;
  --text: #121521;
  --muted: #5c6479;
  --primary: #f2a312;
  --primary-ink: #1d1404;
  --accent-text: #a05c00;
  --lens: #5b4dff;
  --lens-soft: rgba(91, 77, 255, .1);
  --amber-soft: rgba(242, 163, 18, .14);
  --rec: #e5283c;
  --ok: #138a4a;
  --danger: #d92638;
  --grid-dot: rgba(18, 21, 33, .07);
  --shadow: 0 1px 2px rgba(18, 21, 33, .04), 0 12px 32px -18px rgba(18, 21, 33, .22);
  --shadow-lg: 0 30px 80px -30px rgba(18, 21, 33, .45);
  --nav-bg: rgba(242, 244, 248, .78);
  --monitor: #0e1119;
  --monitor-line: #262c3d;
  --font-display: "Noto Kufi Arabic", "Vazirmatn", Tahoma, sans-serif;
  --font-body: "Vazirmatn", "Noto Sans Arabic", Tahoma, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 20px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0d13;
  --bg-alt: #0f121a;
  --surface: #141823;
  --surface-2: #1a1f2d;
  --border: #252b3c;
  --text: #edeff6;
  --muted: #8d95ab;
  --primary: #ffb326;
  --primary-ink: #1d1404;
  --accent-text: #ffbf47;
  --lens: #8f84ff;
  --lens-soft: rgba(143, 132, 255, .13);
  --amber-soft: rgba(255, 179, 38, .12);
  --rec: #ff4d5e;
  --ok: #2fd27c;
  --danger: #ff5f6f;
  --grid-dot: rgba(237, 239, 246, .05);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 90px -20px rgba(0, 0, 0, .8);
  --nav-bg: rgba(11, 13, 19, .74);
  --monitor: #07090e;
  --monitor-line: #222838;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html:has(dialog[open]) { overflow: hidden; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  line-height: 1.85;
  transition: background-color .3s, color .3s;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.45; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.center { text-align: center; }
.pre { white-space: pre-line; }
.lead { font-size: 1.06rem; max-width: 62ch; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.hl { color: var(--accent-text); }

/* ---------- دوگمەکان ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: transform .18s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn i { font-size: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 26px -12px var(--primary); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px var(--primary); }
.btn-ghost { background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn-lens { background: var(--lens-soft); color: var(--lens); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: .86rem; border-radius: 11px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .spin { display: none; }
.btn.loading .spin { display: inline-block; animation: rot .8s linear infinite; }
.btn.loading .ico { display: none; }
@keyframes rot { to { transform: rotate(360deg); } }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; flex-shrink: 0;
  border-radius: 13px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; font-size: 1.2rem; transition: .2s;
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }
[data-theme="dark"] .icon-light, [data-theme="light"] .icon-dark { display: none; }
.link { color: var(--accent-text); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- کونجی ڤیووفایندەر (هێمای کامێرا) ---------- */
.vf { position: relative; }
.vf::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none; opacity: 0; transition: opacity .25s, inset .25s;
  --c: var(--primary);
  background:
    linear-gradient(var(--c), var(--c)) top right / 16px 2px, linear-gradient(var(--c), var(--c)) top right / 2px 16px,
    linear-gradient(var(--c), var(--c)) top left / 16px 2px, linear-gradient(var(--c), var(--c)) top left / 2px 16px,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 2px, linear-gradient(var(--c), var(--c)) bottom right / 2px 16px,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 2px, linear-gradient(var(--c), var(--c)) bottom left / 2px 16px;
  background-repeat: no-repeat;
}
.vf:hover::after, .vf:focus-visible::after { opacity: 1; inset: 6px; }

/* ---------- ناڤبار ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--text); color: var(--bg); font-size: 1.25rem; position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; top: 6px; left: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rec); box-shadow: 0 0 0 2px var(--text); animation: blink 1.6s steps(2) infinite;
}
.brand-mark.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 1.9rem; margin-inline: auto; }
@keyframes blink { 50% { opacity: .15; } }
.nav-links { display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.nav-links a { padding: 6px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .95rem; transition: .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; }

/* ---------- سەرەتا: مۆنیتەری NVR ---------- */
.hero { padding: 56px 0 30px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-text { min-width: 0; }
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border); font-size: .88rem; font-weight: 600;
}
.status .live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; background: var(--rec); color: #fff; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; }
.status .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2) infinite; }
.hero h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); font-weight: 800; margin: 18px 0 4px; letter-spacing: -.01em; }
.hero h1 .name { position: relative; white-space: nowrap; }
.hero h1 .name::after {
  content: ""; position: absolute; inset: auto -4px 6px; height: .32em; background: var(--primary); opacity: .55; z-index: -1; border-radius: 4px;
}
.hero-sub { font-family: var(--font-body); font-size: clamp(1.05rem, 2.3vw, 1.3rem); font-weight: 600; color: var(--accent-text); margin-bottom: 10px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 1.25rem;
  background: var(--surface); border: 1px solid var(--border); transition: .2s;
}
.socials a:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-3px); }

.monitor {
  background: var(--monitor); border-radius: 26px; padding: 12px; color: #e9ecf4;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--monitor-line); position: relative; min-width: 0;
}
.monitor-bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 8px 10px; font-family: var(--font-mono); font-size: .72rem; color: #8b93a8; direction: ltr; }
.monitor-bar .dots { display: flex; gap: 6px; }
.monitor-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3042; display: block; }
.monitor-bar .dots i:first-child { background: var(--rec); }
.feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feed {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #1c2233, #0b0e15 70%);
  display: grid; place-items: center; text-align: center; padding: 26px 10px 22px; min-width: 0;
}
.feed::before { /* هێڵی سکان */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.feed::after { /* هێڵی سکانی جووڵاو */
  content: ""; position: absolute; inset-inline: 0; height: 30%; top: -30%; pointer-events: none;
  background: linear-gradient(transparent, rgba(255, 179, 38, .06), transparent); animation: scan 5s linear infinite;
}
@keyframes scan { to { top: 110%; } }
.feed-tag, .feed-time {
  position: absolute; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; direction: ltr;
  padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, .45); color: #cfd5e4; z-index: 1;
}
.feed-tag { top: 8px; left: 8px; display: inline-flex; gap: 5px; align-items: center; }
.feed-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); animation: blink 1.4s steps(2) infinite; }
.feed-time { bottom: 8px; right: 8px; }
.feed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.feed .avatar-fallback { font-size: 4rem; color: #3b4459; }
.feed b { direction: ltr; display: block; font-family: var(--font-mono); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; color: #ffb326; line-height: 1.1; }
.feed b::after { content: "+"; font-size: .6em; vertical-align: top; margin-inline-start: 2px; }
.feed span { font-size: .85rem; color: #aab2c6; }
.feed.main { box-shadow: inset 0 0 0 2px #ffb326; }

/* ---------- بەشەکان ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.page-top { padding-top: 40px; min-height: 70vh; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-weight: 700; font-size: .9rem; margin-bottom: 6px;
}
.eyebrow .mono { font-size: .72rem; padding: 2px 8px; border-radius: 6px; background: var(--amber-soft); direction: ltr; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .25s, border-color .25s, box-shadow .25s;
}

/* خزمەتگوزارییەکان */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.service { padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.service:hover { transform: translateY(-4px); }
.service-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
  background: var(--amber-soft); color: var(--accent-text); border: 1px dashed var(--primary);
}
.service:nth-child(even) .service-icon { background: var(--lens-soft); color: var(--lens); border-color: var(--lens); }
.service h3 { font-size: 1.1rem; }

/* دەربارە + لۆگی ئەزموون */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.about-grid > * { min-width: 0; }
.about-grid h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 12px; }
.contact-list { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--accent-text); }
.log { display: grid; gap: 14px; }
.log-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 20px 22px; }
.log-time {
  font-family: var(--font-mono); font-size: .78rem; color: var(--accent-text); direction: ltr; white-space: nowrap;
  padding-top: 4px; border-inline-start: 2px solid var(--primary); padding-inline-start: 12px; height: fit-content;
}
.log-item h3 { font-size: 1.08rem; }
.log-company { color: var(--muted); font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }

/* پرۆژەکان */
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 11px;
  border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--muted); transition: .2s;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); }
.project { overflow: hidden; text-align: start; cursor: pointer; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--border); }
.project.hidden { display: none; }
.project:hover, .product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.thumb-media {
  aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 3rem; color: var(--accent-text);
  background: linear-gradient(135deg, var(--amber-soft), var(--lens-soft)); position: relative; overflow: hidden;
}
.thumb-media img { font-size: .8rem; color: transparent; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .thumb-media img, .product-card:hover .thumb-media img { transform: scale(1.05); }
.cat-tag {
  position: absolute; top: 12px; right: 12px; z-index: 1; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  background: var(--surface); color: var(--text); display: inline-flex; gap: 4px; align-items: center; box-shadow: var(--shadow);
}
.card-body { padding: 16px 20px 20px; display: grid; gap: 4px; flex: 1; align-content: start; }
.card-body h3 { font-size: 1.06rem; }
.more { color: var(--accent-text); font-weight: 700; font-size: .9rem; display: inline-flex; gap: 4px; align-items: center; margin-top: 6px; }

/* بەرهەمەکان */
.product-card { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.product-card .thumb-media { aspect-ratio: 1; }
.badge { font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 5px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.badge.off { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.product-card .badge { position: absolute; top: 12px; right: 12px; z-index: 1; background: var(--surface); }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; gap: 8px; }
.price { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; direction: ltr; unicode-bidi: isolate; }
.price small { font-family: var(--font-body); font-size: .72em; font-weight: 600; color: var(--muted); }
.price.big { font-size: 1.9rem; }
.views { color: var(--muted); font-size: .84rem; display: inline-flex; gap: 4px; align-items: center; font-family: var(--font-mono); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.product-detail > * { min-width: 0; }
.product-detail .thumb-media { aspect-ratio: 1; border-radius: 18px; font-size: 5rem; }
.pd-info { display: grid; gap: 12px; align-content: start; }
.pd-info h2, .pd-info h1 { font-size: clamp(1.35rem, 3vw, 2rem); }
.pd-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* پەیوەندی */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  background: var(--monitor); color: #eef0f7; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(500px 260px at 85% 0%, rgba(255, 179, 38, .25), transparent 70%),
              radial-gradient(400px 260px at 0% 100%, rgba(143, 132, 255, .25), transparent 70%);
}
.cta > * { position: relative; min-width: 0; }
.cta h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
.cta p { color: #aeb5c8; }
.cta .eyebrow { color: #ffbf47; }
.cta-actions { display: grid; gap: 10px; }
.cta .btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #eef0f7; justify-content: flex-start; }
.cta .btn-ghost:hover { border-color: #ffb326; }
.cta .btn-ghost .val { margin-inline-start: auto; font-family: var(--font-mono); font-size: .85rem; color: #aeb5c8; direction: ltr; }
.cta .btn-primary { background: #ffb326; color: #1d1404; }

/* ---------- فۆرم ---------- */
.form { display: grid; gap: 16px; }
.form label, .form .field { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; min-width: 0; }
.form input:not([type="checkbox"]):not([type="file"]), .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--border);
  background: var(--surface-2); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; font-weight: 400;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--amber-soft); }
.form textarea { resize: vertical; min-height: 110px; }
.alert.form-error { display: none; }
.alert.form-error.show { display: flex; }
.alert { padding: 12px 16px; border-radius: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.alert.success { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.alert.error { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- پۆپئەپ (dialog) ---------- */
.modal {
  border: 0; padding: 0; background: transparent; color: var(--text);
  width: calc(100% - 32px); max-width: 600px; margin: auto; overflow: visible; max-height: none;
}
.modal.wide { max-width: 880px; }
.modal.sm { max-width: 420px; }
.modal::backdrop { background: rgba(6, 8, 13, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg);
  max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden;
}
.modal[open] .modal-box { animation: pop .32s cubic-bezier(.2, .9, .3, 1.15); }
.modal[open]::backdrop { animation: fade .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 1.08rem; display: flex; gap: 10px; align-items: center; min-width: 0; }
.modal-head h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); flex-shrink: 0; animation: blink 1.4s steps(2) infinite; }
.modal-body { padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
.modal-loading { display: grid; place-items: center; padding: 40px; font-size: 2rem; color: var(--accent-text); }
.modal-loading i { animation: rot .8s linear infinite; }
.confirm-box { padding: 28px 24px 22px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.confirm-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); margin-bottom: 6px; }
.confirm-box h3 { font-size: 1.15rem; }
.modal-actions { display: flex; gap: 10px; margin-top: 12px; width: 100%; }
.modal-actions .btn { flex: 1; }

/* ئاگادارکردنەوە (toast) */
.toasts {
  position: fixed; z-index: 1000; top: calc(16px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none;
}
.toast {
  display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; pointer-events: auto;
  background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .35s cubic-bezier(.2, .9, .3, 1.2);
}
.toast i { font-size: 1.3rem; }
.toast.success i { color: var(--ok); }
.toast.error i { color: var(--danger); }
.toast.out { opacity: 0; transform: translateY(-10px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.95); } }

/* ---------- فووتەر ---------- */
.footer { padding: 36px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 28px; border-top: 1px solid var(--border); }
.copyright { margin-top: 20px; font-size: .88rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wa-float {
  position: fixed; z-index: 40; left: calc(20px + env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 18px; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.8rem;
  box-shadow: 0 12px 28px -10px #25d366; transition: transform .2s;
}
.wa-float:hover { transform: translateY(-3px) rotate(-6deg); }
.empty-page { text-align: center; padding: 100px 0; display: grid; gap: 12px; justify-items: center; min-height: 70vh; align-content: center; }
.empty-page > i { font-size: 4rem; color: var(--accent-text); }
.empty-page h1 { font-family: var(--font-mono); font-size: 4rem; }

/* دەرکەوتن (تەنها کاتێک JS هەیە) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- مۆبایل ---------- */
@media (max-width: 960px) {
  .hero-inner, .about-grid, .cta { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .menu-btn { display: inline-grid; }
  .nav-links {
    position: absolute; top: 72px; inset-inline: 16px; flex-direction: column; padding: 8px;
    box-shadow: var(--shadow-lg); border-radius: 18px;
    transform: translateY(-8px) scale(.98); opacity: 0; pointer-events: none; transition: .22s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .section { padding: 60px 0; }
}
@media (max-width: 640px) {
  .product-detail { grid-template-columns: 1fr; }
  .log-item { grid-template-columns: 1fr; gap: 6px; }
  .log-time { padding-top: 0; }
  .hero-cta .btn { flex: 1; }
  .footer-inner { flex-direction: column; text-align: center; }
  .copyright { justify-content: center; text-align: center; }
  .feed { padding: 22px 6px 20px; }
  .feed-time { display: none; }
  /* پۆپئەپ وەک bottom sheet لە مۆبایل */
  .modal, .modal.wide, .modal.sm { width: 100%; max-width: 100%; margin: auto 0 0; }
  .modal-box { border-radius: 24px 24px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .modal[open] .modal-box { animation: sheet .34s cubic-bezier(.2, .9, .3, 1); }
  .modal-head { position: relative; padding-top: 22px; }
  .modal-head::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 4px; background: var(--border); }
  @keyframes sheet { from { transform: translateY(100%); } }
}
@media (max-width: 520px) { .hide-xs { display: none; } }
