/* صفحه وضعیت سرویس — جمع‌وجور و در یک صفحه، در همه اندازه‌ها */
.status-page {
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vh, 36px) clamp(12px, 3vw, 32px);
}
.status-card {
  width: 100%; max-width: 980px; text-align: center;
  padding: clamp(18px, 3.2vh, 34px) clamp(16px, 3vw, 40px) clamp(14px, 2vh, 20px);
}

/* سربرگ */
.status-head { margin-bottom: clamp(14px, 2.4vh, 24px); }
.status-head .logo-ring { width: clamp(84px, 11vh, 112px); height: clamp(84px, 11vh, 112px); margin-bottom: clamp(8px, 1.4vh, 14px); }
.status-head .logo-ring::after { inset: -4px; border-width: 4px; }
.status-head .logo-ring img { width: 62%; height: 62%; }
.status-card h1 { margin: 0 0 4px; font-size: clamp(19px, 1vw + 2vh, 26px); font-weight: 700; line-height: 1.5; }
.title-bad { color: var(--bad); }
.subtitle { margin: 0 auto; max-width: 620px; color: var(--muted); font-size: clamp(13px, .25vw + 12px, 15px); line-height: 1.8; }

/* کاشی‌های اطلاعات */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.2vh, 12px); text-align: right; }
.tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(9px, 1.3vh, 13px) 14px; display: grid; gap: 3px; align-content: start; min-width: 0;
}
.tile .label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.tile .icon { font-size: 14px; flex: none; }
.tile .value { font-weight: 700; font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.tile .chip { font-size: 12px; padding: 1px 9px; }

.notice { margin-top: 12px; padding: 9px 14px; border-radius: 12px; font-size: 13.5px; color: var(--warn); background: rgba(217, 138, 0, .08); }
.actions { margin-top: clamp(14px, 2vh, 20px); display: flex; justify-content: center; }
.status-card footer {
  margin-top: clamp(12px, 2vh, 18px); padding-top: clamp(10px, 1.6vh, 14px); border-top: 1px solid var(--line);
  color: var(--soft); font-size: 12.5px; direction: ltr;
}

/* تبلت: دو ستون */
@media (max-width: 900px) {
  .status-card { max-width: 680px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* موبایل: یک ستون، هر کاشی یک ردیف افقی */
@media (max-width: 520px) {
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 2px 12px; }
  .tile {
    background: none; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 0;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
  }
  .tile:last-child { border-bottom: none; }
  .tile .label { white-space: nowrap; }
  .tile .value { justify-content: flex-end; text-align: left; }
  .actions .btn { width: 100%; }
}
/* موبایل خیلی باریک (۳۲۰ پیکسل): برچسب و مقدار دوباره زیر هم */
@media (max-width: 340px) {
  .tile { display: grid; gap: 2px; }
  .tile .value { justify-content: flex-start; }
}
/* صفحه‌های خیلی کوتاه (گوشی افقی): کارت از بالا شروع شود */
@media (max-height: 560px) {
  .status-page { align-items: flex-start; }
}
