/* دیجی‌کوتاه (DigiShort Pro) — Standalone Mobile-First SaaS CSS */
* { box-sizing:border-box; }
body.dtsh-body { margin:0; padding:0; font-family:'Vazirmatn',system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
.dtsh-loading { text-align:center; padding:80px 16px; color:#94a3b8; }
.dtsh-shell { min-height:100vh; display:flex; flex-direction:column; overflow-x:clip; }
.dtsh-shell.is-dark { --bg:#070b14; --surface:#0f172a; --card:#111c33; --border:#1e293b; --text:#f8fafc; --muted:#94a3b8; background:var(--bg); color:var(--text); }
.dtsh-shell.is-light { --bg:#f4f5f7; --surface:#ffffff; --card:#ffffff; --border:#e2e8f0; --text:#0f172a; --muted:#64748b; background:var(--bg); color:var(--text); }

.dtsh-header { height:64px; background:var(--surface); border-bottom:1px solid var(--border); padding:0 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; position:sticky; top:0; z-index:100; }
.dtsh-brand { display:flex; align-items:center; gap:9px; font-size:17px; }
.dtsh-dot { width:13px; height:13px; border-radius:50%; background:linear-gradient(135deg,#10b981,#6366f1); }
.dtsh-tag { font-size:11px; background:rgba(99,102,241,.18); color:#818cf8; padding:2px 8px; border-radius:999px; font-weight:700; }
.dtsh-h-right { display:flex; align-items:center; gap:8px; }
.dtsh-user-pill { font-size:12px; background:var(--card); border:1px solid var(--border); padding:6px 11px; border-radius:999px; }
.dtsh-icon-btn { width:38px; height:38px; border-radius:10px; border:1px solid var(--border); background:var(--card); color:var(--text); cursor:pointer; }

.dtsh-main { flex:1; max-width:980px; width:100%; margin:0 auto; padding:28px 16px 48px; }
.dtsh-hero { text-align:center; margin-bottom:24px; }
.dtsh-hero h1 { margin:0 0 10px; font-size:clamp(22px,3.2vw,32px); font-weight:900; }
.dtsh-hero p { margin:0 auto; max-width:620px; color:var(--muted); font-size:14px; line-height:1.85; }

.dtsh-tabs { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-bottom:18px; }
.dtsh-tab { background:var(--card); border:1px solid var(--border); color:var(--muted); padding:9px 15px; border-radius:11px; font-size:13px; font-weight:700; font-family:inherit; cursor:pointer; }
.dtsh-tab.active { background:linear-gradient(135deg,#6366f1,#4f46e5); color:#fff; border-color:transparent; }

.dtsh-card { background:var(--card); border:1px solid var(--border); border-radius:20px; padding:22px; margin-bottom:20px; }
.dtsh-card h2 { margin:0 0 14px; font-size:17px; }
.dtsh-main-input-row { display:flex; gap:10px; }
.dtsh-input { width:100%; min-height:44px; padding:10px 14px; border-radius:12px; border:1px solid var(--border); background:var(--bg); color:var(--text); font-size:14px; font-family:inherit; }
.dtsh-big-input { min-height:52px; font-size:15px; }
.dtsh-big-btn { min-height:52px; padding:0 24px; white-space:nowrap; }
.dtsh-sub-row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; margin-top:12px; }
.dtsh-alias-wrap { display:flex; align-items:center; background:var(--bg); border:1px solid var(--border); border-radius:11px; padding:0 10px; flex:1; max-width:360px; }
.dtsh-alias-wrap span { font-size:12.5px; color:var(--muted); white-space:nowrap; }
.dtsh-alias-wrap input { border:0; background:transparent; color:var(--text); padding:9px 6px; width:100%; font-family:inherit; font-size:13.5px; outline:none; }

.dtsh-adv-box { margin-top:14px; padding-top:14px; border-top:1px dashed var(--border); }
.dtsh-utm-presets { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-bottom:10px; font-size:12px; color:var(--muted); }
.dtsh-chip { background:var(--bg); border:1px solid var(--border); color:var(--text); padding:5px 10px; border-radius:999px; font-size:12px; font-family:inherit; cursor:pointer; }
.dtsh-grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }

.dtsh-result-box { margin-top:18px; background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.4); border-radius:14px; padding:16px; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; }
.dtsh-result-box small { display:block; font-size:12px; color:var(--muted); margin-bottom:4px; }
.dtsh-result-url { font-size:17px; font-weight:800; color:#10b981; text-decoration:none; }
.dtsh-res-btns { display:flex; gap:8px; }

.dtsh-btn { min-height:42px; padding:9px 16px; border-radius:11px; border:0; font-family:inherit; font-size:13px; font-weight:700; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.dtsh-btn-primary { background:linear-gradient(135deg,#6366f1,#4f46e5); color:#fff; }
.dtsh-btn-success { background:#10b981; color:#fff; }
.dtsh-btn-ghost { background:var(--bg); color:var(--text); border:1px solid var(--border); }
.dtsh-btn-sm { min-height:36px; padding:6px 11px; font-size:12px; }

.dtsh-alert { padding:12px 15px; border-radius:12px; margin-bottom:14px; font-size:13px; }
.dtsh-alert.ok { background:rgba(16,185,129,.15); border:1px solid rgba(16,185,129,.4); color:#10b981; }
.dtsh-alert.err { background:rgba(239,68,68,.15); border:1px solid rgba(239,68,68,.4); color:#f87171; }

.dtsh-table { width:100%; border-collapse:collapse; font-size:13px; }
.dtsh-table th, .dtsh-table td { text-align:right; padding:10px; border-bottom:1px solid var(--border); }
.dtsh-kpi-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.dtsh-kpi { background:var(--bg); border:1px solid var(--border); border-radius:14px; padding:16px; text-align:center; }
.dtsh-kpi span { display:block; font-size:12px; color:var(--muted); margin-bottom:4px; }
.dtsh-kpi strong { font-size:26px; }
.dtsh-stat-box { background:var(--bg); border:1px solid var(--border); border-radius:14px; padding:14px; }
.dtsh-stat-box h3 { margin:0 0 10px; font-size:14px; }
.dtsh-stat-line { display:flex; justify-content:space-between; font-size:12.5px; padding:6px 0; border-bottom:1px solid var(--border); }

.dtsh-seo-section { margin-top:28px; }
.dtsh-seo-section h2 { font-size:19px; margin:0 0 10px; }
.dtsh-seo-section p { color:var(--muted); font-size:13.5px; line-height:1.85; }
.dtsh-feat { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:18px; }
.dtsh-feat h3 { margin:0 0 8px; font-size:15px; }
.dtsh-feat p { margin:0; font-size:13px; }

.dtsh-footer { background:var(--surface); border-top:1px solid var(--border); padding:16px; text-align:center; font-size:12px; color:var(--muted); }
.dtsh-modal-bg { position:fixed; inset:0; background:rgba(2,6,23,.75); backdrop-filter:blur(4px); z-index:9999; display:flex; align-items:center; justify-content:center; padding:16px; }
.dtsh-modal { background:var(--card); border:1px solid var(--border); border-radius:20px; padding:24px; text-align:center; max-width:340px; width:100%; }

@media (max-width: 680px) {
    .dtsh-main-input-row { flex-direction:column; }
    .dtsh-grid3 { grid-template-columns:1fr; }
    .dtsh-input { font-size:16px; }
    .dtsh-tag, .dtsh-user-pill { display:none; }
    .dtsh-alias-wrap { max-width:100%; }
}

.dtsh-promo-strip { margin-top:14px; display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px 14px; border-radius:12px; background:rgba(99,102,241,.09); border:1px dashed rgba(99,102,241,.4); font-size:12px; }
.dtsh-promo-pill { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.08); color:inherit; text-decoration:none; font-weight:700; border:1px solid var(--border); }
.dtsh-promo-pill.is-accent { background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; border-color:transparent; }
