/* «سایت‌های من» (templates/hosting/*). Page rules only; tokens from dimo.css. */

.hs-page { max-width: 56rem; margin-inline: auto; }
.hs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
           gap: 1rem; margin-bottom: 1.75rem; }
.hs-lead { color: var(--color-text-muted); font-size: 0.875rem; line-height: 1.9; max-width: 38rem; }

.hs-card { padding: 1.25rem; margin-bottom: 1rem; }
.hs-card h2 { font-size: 1rem; font-weight: 800; margin: 0 0 0.75rem; color: var(--color-text-main); }
.hs-muted { color: var(--color-text-muted); font-size: 0.8125rem; line-height: 1.9; }
.hs-sep { border: 0; border-top: 1px solid var(--border-subtle); margin: 1rem 0; }

/* Site rows on the list */
.hs-list { display: grid; gap: 0.75rem; }
.hs-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; text-decoration: none;
          color: inherit; }
.hs-row-main { flex: 1 1 auto; min-width: 0; }
.hs-row-name { font-weight: 800; color: var(--color-text-main); overflow: hidden; text-overflow: ellipsis;
               white-space: nowrap; }
.hs-row-meta { color: var(--color-text-muted); font-size: 0.78rem; margin-top: 0.2rem;
               overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Status pill */
.hs-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem;
           border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap;
           background: var(--color-hover-strong); color: var(--color-text-muted); }
.hs-pill::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%;
                   background: currentColor; }
.hs-pill.is-live { background: var(--status-ok-bg); color: var(--status-ok); }
.hs-pill.is-bad { background: var(--status-bad-bg); color: var(--status-bad); }
.hs-pill.is-warn { background: rgb(250 204 21 / 0.14); color: #B7791F; }
:root:not([data-theme="light"]) .hs-pill.is-warn { color: #FACC15; }

/* Key/value facts */
.hs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; }
.hs-fact { padding: 0.85rem 1rem; }
.hs-fact dt { color: var(--color-text-muted); font-size: 0.75rem; margin-bottom: 0.25rem; }
.hs-fact dd { margin: 0; font-weight: 800; color: var(--color-text-main); font-size: 0.95rem; }

.hs-notice { padding: 0.85rem 1rem; border-radius: var(--radius); font-size: 0.85rem; line-height: 1.9;
             margin-bottom: 1rem; background: var(--color-hover-subtle);
             border: 1px solid var(--border-subtle); }
.hs-notice.is-bad { background: var(--status-bad-bg); color: var(--status-bad); border-color: transparent; }

/* Plan picker: tier cards + term chips */
.hs-tiers { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.hs-tier { position: relative; padding: 1rem; border-radius: var(--radius);
           border: 1px solid var(--border-subtle); cursor: pointer; display: block; }
.hs-tier:has(input:checked) { border-color: rgb(var(--primary-rgb) / 0.9);
                              background: rgb(var(--primary-rgb) / 0.07); }
.hs-tier input { position: absolute; opacity: 0; pointer-events: none; }
.hs-tier-name { font-weight: 800; color: var(--color-text-main); }
.hs-tier-spec { color: var(--color-text-muted); font-size: 0.75rem; margin: 0.35rem 0 0.6rem; }
.hs-tier-price { font-weight: 800; color: rgb(var(--primary-ink-rgb)); }
.hs-tier-badge { position: absolute; inset-block-start: -0.6rem; inset-inline-end: 0.75rem;
                 font-size: 0.68rem; font-weight: 800; padding: 0.1rem 0.5rem; border-radius: 999px;
                 background: rgb(var(--primary-rgb)); color: var(--color-text-on-primary); }
.hs-terms { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.hs-term { cursor: pointer; }
.hs-term input { position: absolute; opacity: 0; pointer-events: none; }
.hs-term span { display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.8rem;
                border: 1px solid var(--border-subtle); color: var(--color-text-muted); }
.hs-term input:checked + span { border-color: rgb(var(--primary-rgb) / 0.9); color: var(--color-text-main);
                                background: rgb(var(--primary-rgb) / 0.1); font-weight: 700; }
.hs-term input:focus-visible + span,
.hs-tier:has(input:focus-visible) { outline: 2px solid rgb(var(--primary-rgb) / 0.8); outline-offset: 2px; }
.hs-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.hs-total strong { font-size: 1.1rem; }

/* Domains */
.hs-domains { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.hs-domain { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; }
.hs-domain-name { flex: 1 1 12rem; min-width: 0; font-weight: 700; direction: ltr; text-align: left;
                  overflow: hidden; text-overflow: ellipsis; }
.hs-domain-error { flex-basis: 100%; color: var(--status-bad); font-size: 0.78rem; line-height: 1.8; }
.hs-dns { width: 100%; border-collapse: collapse; font-size: 0.8rem; direction: ltr; margin: 0.5rem 0; }
.hs-dns th, .hs-dns td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border-subtle); }
.hs-dns th { color: var(--color-text-muted); font-weight: 600; }
.hs-dns code { font-weight: 700; }
.hs-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hs-input { flex: 1 1 14rem; min-width: 0; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm);
            border: 1px solid var(--border-strong); background: var(--color-surface); color: var(--color-text-main);
            font: inherit; }
.hs-input.ltr { direction: ltr; text-align: left; }
.hs-input:focus { outline: 2px solid rgb(var(--primary-rgb) / 0.6); outline-offset: 1px; }

.hs-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hs-link-btn { background: none; border: 0; padding: 0.3rem 0.5rem; font: inherit; font-size: 0.8rem;
               color: rgb(var(--primary-ink-rgb)); cursor: pointer; border-radius: var(--radius-sm); }
.hs-link-btn:hover { background: var(--color-hover-subtle); }
.hs-link-btn.is-bad { color: var(--status-bad); }

.hs-log { margin: 0.5rem 0 0; max-height: 16rem; overflow: auto; white-space: pre-wrap; word-break: break-word;
          font-size: 0.72rem; line-height: 1.6; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
          background: rgb(0 0 0 / 0.25); color: var(--color-text-main); text-align: left; }
.hs-backups { display: grid; gap: 0.5rem; }
.hs-backup { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; cursor: pointer; }
.hs-backup span:nth-child(2) { flex: 1 1 auto; font-weight: 700; }
.hs-confirm { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0 0.5rem; }
.hs-prose { line-height: 2; font-size: 0.9rem; color: var(--color-text-main); }
.hs-prose h2 { margin: 1.25rem 0 0.4rem; }
.hs-prose ul { list-style: disc; padding-inline-start: 1.25rem; margin: 0; }
.hs-prose li { margin: 0.2rem 0; }
.hs-stack { display: grid; gap: 0.9rem; }
.hs-field { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--color-text-muted); }
.hs-field .hs-input { width: 100%; }
.hs-danger { border-color: rgb(224 90 114 / 0.35); }
.hs-empty { text-align: center; padding: 2.5rem 1.25rem; }
.hs-empty code, .hs-muted code { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 640px) {
    .hs-card { padding: 1rem; }
    .hs-row { padding: 0.85rem 1rem; }
}
