/* دیجی‌لینک (DigiLink Pro) — Bento.me + Editorial Standalone Stylesheet */
* { box-sizing:border-box; }
body.dtlb-body, body.dtlb-pub-body { margin:0; padding:0; font-family:'Vazirmatn',system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
.dtlb-loading { text-align:center; padding:80px 16px; color:#94a3b8; }

/* ===================== BUILDER WORKSPACE ===================== */
.dtlb-studio { min-height:100vh; background:#090d16; color:#f8fafc; overflow-x:clip; }
.dtlb-header { height:64px; background:#0f172a; border-bottom:1px solid #1e293b; padding:0 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; position:sticky; top:0; z-index:100; }
.dtlb-h-left { display:flex; align-items:center; gap:10px; min-width:0; }
.dtlb-logo-dot { width:13px; height:13px; border-radius:50%; background:linear-gradient(135deg,#10b981,#6366f1); flex-shrink:0; }
.dtlb-url-chip { font-size:12px; color:#818cf8; background:rgba(99,102,241,.14); border:1px solid rgba(99,102,241,.3); padding:5px 11px; border-radius:999px; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:260px; }
.dtlb-h-actions { display:flex; gap:8px; flex-shrink:0; }

.dtlb-workspace { display:grid; grid-template-columns:1fr 370px; gap:24px; max-width:1320px; margin:0 auto; padding:22px; align-items:start; }
.dtlb-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.dtlb-tab { background:#111c33; border:1px solid #1e293b; color:#94a3b8; padding:9px 14px; border-radius:11px; font-size:13px; font-weight:600; font-family:inherit; cursor:pointer; }
.dtlb-tab.active { background:linear-gradient(135deg,#6366f1,#4f46e5); color:#fff; border-color:transparent; }

.dtlb-card { background:#111c33; border:1px solid #1e293b; border-radius:18px; padding:20px; margin-bottom:18px; }
.dtlb-card h2 { margin:0 0 14px; font-size:16.5px; }
.dtlb-card h3 { margin:0 0 10px; font-size:14.5px; color:#cbd5e1; }
.dtlb-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.dtlb-field { margin-bottom:11px; }
.dtlb-field label { display:block; font-size:12px; color:#94a3b8; margin-bottom:5px; font-weight:600; }
.dtlb-input { width:100%; min-height:44px; padding:9px 12px; border-radius:10px; border:1px solid #263449; background:#090d16; color:#f8fafc; font-size:13.5px; font-family:inherit; }

.dtlb-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; }
.dtlb-btn-primary { background:linear-gradient(135deg,#6366f1,#4f46e5); color:#fff; }
.dtlb-btn-ghost { background:#1e293b; color:#e2e8f0; border:1px solid #334155; }
.dtlb-btn-sm { min-height:36px; padding:6px 12px; font-size:12px; }
.dtlb-add-bar { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }

.dtlb-blk-item { background:#0b1222; border:1px solid #1e293b; border-radius:14px; padding:14px; margin-bottom:10px; }
.dtlb-blk-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:13px; }
.dtlb-blk-ctrls { display:flex; gap:6px; }
.dtlb-blk-ctrls button { width:30px; height:30px; border-radius:8px; border:1px solid #334155; background:#1e293b; color:#e2e8f0; cursor:pointer; }
.dtlb-blk-ctrls button.is-del { color:#f87171; }
.dtlb-blk-opts { display:flex; flex-wrap:wrap; gap:14px; margin-top:10px; font-size:12px; color:#94a3b8; }

.dtlb-net-picker { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.dtlb-net-chip { background:#0b1222; border:1px solid #263449; color:#e2e8f0; padding:6px 10px; border-radius:9px; font-size:12px; font-family:inherit; cursor:pointer; }
.dtlb-net-chip:hover { border-color:#6366f1; }
.dtlb-soc-row { display:flex; gap:8px; margin-bottom:8px; }

.dtlb-theme-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px; }
.dtlb-theme-card { background:#0b1222; border:2px solid #1e293b; border-radius:14px; padding:10px; color:#e2e8f0; cursor:pointer; text-align:center; font-family:inherit; }
.dtlb-theme-card.active { border-color:#10b981; }
.dtlb-theme-swatch { display:block; height:54px; border-radius:10px; margin-bottom:8px; border:1px solid rgba(255,255,255,.15); }
.dtlb-theme-card strong { font-size:12px; }

.dtlb-kpi-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }
.dtlb-kpi { background:#0b1222; border:1px solid #1e293b; border-radius:14px; padding:14px; text-align:center; }
.dtlb-kpi span { display:block; font-size:12px; color:#94a3b8; margin-bottom:4px; }
.dtlb-kpi strong { font-size:22px; }
.dtlb-table { width:100%; border-collapse:collapse; font-size:13px; }
.dtlb-table th, .dtlb-table td { text-align:right; padding:10px; border-bottom:1px solid #1e293b; }

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

.dtlb-preview-col { position:sticky; top:84px; }
.dtlb-prev-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:13px; color:#94a3b8; }
.dtlb-phone-frame { background:#020617; border:7px solid #1e293b; border-radius:38px; padding:10px; box-shadow:0 24px 60px rgba(0,0,0,.45); }
.dtlb-phone-inner { border-radius:28px; padding:24px 14px; min-height:560px; max-height:640px; overflow-y:auto; text-align:center; }
.dtlb-mob-prev-fab { display:none; }

.dtlb-guest { min-height:100vh; background:#090d16; color:#f8fafc; display:flex; align-items:center; justify-content:center; padding:24px; }
.dtlb-guest-card { max-width:540px; background:#111c33; border:1px solid #1e293b; border-radius:24px; padding:36px 26px; text-align:center; }
.dtlb-pill { display:inline-block; background:rgba(99,102,241,.2); color:#818cf8; padding:6px 14px; border-radius:999px; font-size:12px; font-weight:700; margin-bottom:14px; }
.dtlb-guest-btns { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:20px; }

/* ===================== PUBLIC BIO PROFILE + 8 DESIGNER THEMES ===================== */
.dtlb-pub-body { min-height:100vh; display:flex; justify-content:center; padding:24px 16px 48px; }
.dtlb-pub-container { width:100%; max-width:520px; }
.dtlb-pub-top-actions { display:flex; justify-content:space-between; margin-bottom:14px; }
.dtlb-pub-mini-btn { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); color:inherit; padding:7px 14px; border-radius:999px; font-size:12px; font-weight:700; font-family:inherit; cursor:pointer; backdrop-filter:blur(8px); }
.dtlb-pub-header { text-align:center; margin-bottom:24px; }
.dtlb-pub-avatar { width:96px; height:96px; border-radius:50%; object-fit:cover; margin:0 auto 12px; display:block; border:3px solid rgba(255,255,255,.28); box-shadow:0 12px 30px rgba(0,0,0,.25); }
.dtlb-pub-avatar-fallback { background:linear-gradient(135deg,#10b981,#6366f1); color:#fff; display:flex; align-items:center; justify-content:center; font-size:36px; font-weight:800; }
.dtlb-pub-name { margin:0; font-size:22px; font-weight:800; display:inline-flex; align-items:center; gap:6px; }
.dtlb-verified { width:20px; height:20px; border-radius:50%; background:#38bdf8; color:#fff; font-size:12px; display:inline-flex; align-items:center; justify-content:center; }
.dtlb-pub-handle { font-size:13px; opacity:.68; margin-top:2px; }
.dtlb-pub-bio { margin:10px auto 0; max-width:420px; font-size:14px; line-height:1.8; opacity:.88; }
.dtlb-pub-socials { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:16px; }
.dtlb-soc-pill { width:42px; height:42px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; font-size:19px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); transition:transform .16s; }
.dtlb-soc-pill:hover { transform:translateY(-3px) scale(1.06); }

.dtlb-bento-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.dtlb-section-heading { grid-column:1 / -1; margin:12px 0 2px; font-size:14px; font-weight:800; opacity:.8; text-align:right; }
.dtlb-tile { grid-column:1 / -1; display:flex; align-items:center; gap:12px; padding:15px 16px; text-decoration:none; color:inherit; background:var(--tile-bg); border:1px solid var(--tile-border); transition:transform .16s, box-shadow .16s; text-align:right; font-family:inherit; cursor:pointer; }
.dtlb-tile.is-half { grid-column:span 1; flex-direction:column; align-items:flex-start; gap:10px; padding:16px; }
.dtlb-tile:hover { transform:translateY(-2px); }
.dtlb-tile.is-highlight { border-color:#10b981; box-shadow:0 0 0 2px rgba(16,185,129,.25); }
.dtlb-tile-icon { width:42px; height:42px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.dtlb-tile-text { flex:1; min-width:0; }
.dtlb-tile-text strong { display:block; font-size:14.5px; font-weight:700; }
.dtlb-tile-text small { display:block; font-size:12px; opacity:.72; margin-top:2px; }
.dtlb-tile-arrow { opacity:.55; font-size:16px; }
.dtlb-copy-badge { background:#f59e0b; color:#09090b; font-size:11px; font-weight:800; padding:4px 10px; border-radius:999px; }

.dtlb-lead-tile { flex-direction:column; align-items:stretch; cursor:default; }
.dtlb-lead-tile p { margin:4px 0 10px; font-size:12.5px; opacity:.78; }
.dtlb-lead-form { display:flex; flex-direction:column; gap:8px; }
.dtlb-lead-form input { min-height:42px; padding:8px 12px; border-radius:10px; border:1px solid var(--tile-border); background:rgba(0,0,0,.15); color:inherit; font-family:inherit; font-size:14px; }
.dtlb-lead-form button { min-height:42px; border:0; border-radius:10px; background:#10b981; color:#fff; font-weight:700; font-family:inherit; cursor:pointer; }
.dtlb-lead-msg { font-size:12px; font-weight:700; }

.dtlb-pub-footer { text-align:center; margin-top:34px; font-size:12px; opacity:.65; }
.dtlb-pub-footer a { color:inherit; text-decoration:none; }
.dtlb-qr-modal { position:fixed; inset:0; background:rgba(2,6,23,.75); backdrop-filter:blur(5px); z-index:9999; align-items:center; justify-content:center; padding:16px; }
.dtlb-qr-card { background:#0f172a; color:#f8fafc; border:1px solid #334155; border-radius:22px; padding:24px; text-align:center; max-width:340px; width:100%; }

/* 8 DESIGNER THEMES */
.theme-midnight { background:radial-gradient(circle at top right,#1e1b4b,#090d16 70%); color:#f8fafc; --tile-bg:rgba(255,255,255,.07); --tile-border:rgba(255,255,255,.14); }
.theme-bento_light { background:#f4f5f7; color:#0f172a; --tile-bg:#ffffff; --tile-border:#e2e8f0; }
.theme-bento_light .dtlb-pub-mini-btn, .theme-bento_light .dtlb-soc-pill { background:#fff; border-color:#cbd5e1; color:#0f172a; }
.theme-emerald { background:linear-gradient(155deg,#022c22,#064e3b 60%,#021d17); color:#ecfdf5; --tile-bg:rgba(255,255,255,.08); --tile-border:rgba(16,185,129,.28); }
.theme-obsidian_gold { background:linear-gradient(155deg,#09090b,#18181b); color:#fef3c7; --tile-bg:rgba(245,158,11,.08); --tile-border:rgba(245,158,11,.35); }
.theme-sunset { background:linear-gradient(155deg,#4c1d95,#9d174d 55%,#c2410c); color:#fff; --tile-bg:rgba(255,255,255,.12); --tile-border:rgba(255,255,255,.24); }
.theme-pastel_aurora { background:linear-gradient(155deg,#e0e7ff,#fce7f3 55%,#dcfce7); color:#1e1b4b; --tile-bg:rgba(255,255,255,.78); --tile-border:rgba(99,102,241,.2); }
.theme-pastel_aurora .dtlb-pub-mini-btn, .theme-pastel_aurora .dtlb-soc-pill { background:rgba(255,255,255,.8); border-color:rgba(99,102,241,.25); color:#1e1b4b; }
.theme-cyber_neon { background:#020617; color:#e0f2fe; --tile-bg:rgba(14,165,233,.08); --tile-border:rgba(56,189,248,.42); }
.theme-paper_editorial { background:#f5f0e6; color:#1c1917; --tile-bg:#fffdf9; --tile-border:#d6cfc2; }
.theme-paper_editorial .dtlb-pub-mini-btn, .theme-paper_editorial .dtlb-soc-pill { background:#fffdf9; border-color:#d6cfc2; color:#1c1917; }

/* 4 BUTTON GEOMETRIES */
.btnstyle-rounded .dtlb-tile { border-radius:18px; }
.btnstyle-pill .dtlb-tile { border-radius:999px; }
.btnstyle-pill .dtlb-tile.is-half, .btnstyle-pill .dtlb-lead-tile { border-radius:22px; }
.btnstyle-brutalist .dtlb-tile { border-radius:6px; border-width:2px; box-shadow:4px 4px 0 rgba(0,0,0,.38); }
.btnstyle-glass .dtlb-tile { border-radius:18px; backdrop-filter:blur(14px); }

@media (max-width: 960px) {
    .dtlb-workspace { grid-template-columns:1fr; padding:14px 12px 86px; }
    .dtlb-url-chip { display:none; }
    .dtlb-preview-col { display:none; position:fixed; inset:0; background:rgba(2,6,23,.92); z-index:999; padding:16px; overflow-y:auto; }
    .dtlb-preview-col.is-open { display:block; }
    .dtlb-mob-prev-fab { display:inline-flex; position:fixed; left:16px; bottom:18px; z-index:950; background:linear-gradient(135deg,#10b981,#059669); color:#fff; border:0; border-radius:999px; padding:12px 18px; font-weight:800; font-family:inherit; font-size:13px; box-shadow:0 12px 30px rgba(16,185,129,.4); cursor:pointer; }
}
@media (max-width: 640px) {
    .dtlb-grid2 { grid-template-columns:1fr; }
    .dtlb-input { font-size:16px; min-height:46px; }
    .dtlb-soc-row { flex-direction:column; }
    .dtlb-soc-row select { max-width:100% !important; }
    .dtlb-kpi-row { grid-template-columns:1fr; }
}
