/* HC Links editor — modern app look */
.hl-app { --ink: #111; --mute: #6b6b6b; --line: #ececec; --soft: #f2f2f2; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Gurmukhi", sans-serif; color: var(--ink); background: #efefef; border-radius: 28px; padding: 16px; margin: 16px 0 48px; }
.hl-app *, .hl-app *::before, .hl-app *::after { box-sizing: border-box; }
/* the theme sets PT Serif on every element via :lang(); the editor uses a clean UI sans instead */
.hl-app, .hl-app *:not(iframe) { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Gurmukhi", sans-serif !important; }
/* neutralise theme button/label styles inside the app */
.hl-app button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 0; line-height: 1.3; }
.hl-app button:hover, .hl-app button:focus { color: inherit; background-color: transparent; }
.hl-app :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 10px; }
.hl-app label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mute); margin: 0 0 12px; line-height: 1.4; }
.hl-app input[type=text], .hl-app input[type=url], .hl-app input[type=datetime-local], .hl-app select, .hl-app textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid transparent; border-radius: 12px; background: var(--soft); font: 400 15px/1.4 inherit; color: var(--ink); transition: border-color .15s, background .15s; }
.hl-app input:focus, .hl-app select:focus, .hl-app textarea:focus { background: #fff; border-color: var(--ink); outline: none; }
.hl-app input[type=color] { width: 100%; height: 46px; border: 0; border-radius: 12px; padding: 4px; background: var(--soft); cursor: pointer; }
.hl-app h2 { font-size: 15px; font-weight: 700; margin: 24px 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hl-app h3 { font-size: 14px; margin: 20px 0 8px; }

.hl-shell { display: grid; gap: 16px; }
@media (min-width: 1024px) { .hl-shell { grid-template-columns: 76px minmax(0, 1fr) 330px; align-items: start; } }

/* side rail */
.hl-rail { display: flex; gap: 6px; overflow-x: auto; }
@media (min-width: 1024px) { .hl-rail { flex-direction: column; position: sticky; top: 96px; gap: 14px; padding-top: 24px; } }
.hl-rail button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 72px; padding: 6px 4px; font-size: 12px; font-weight: 600; color: var(--mute); }
.hl-rail button span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: #e2e2e2; color: var(--ink); transition: background .15s, transform .15s; }
.hl-rail button:hover span { transform: scale(1.06); }
.hl-rail button[aria-current=page] { color: var(--ink); }
.hl-rail button[aria-current=page] span { background: var(--ink); color: #fff; }

/* main card */
.hl-card { background: #fafafa; border-radius: 24px; padding: 28px clamp(16px, 4vw, 48px) 40px; box-shadow: 0 1px 2px rgba(0,0,0,.04); min-width: 0; }
.hl-card > * { max-width: 600px; margin-left: auto; margin-right: auto; }
.hl-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hl-top h1 { font-size: 22px; font-weight: 700; margin: 0; font-family: inherit; letter-spacing: -.01em; }
.hl-actions { display: flex; align-items: center; gap: 10px; }
.hl-app .hl-save { min-height: 42px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
.hl-app .hl-save:hover { background: #333; color: #fff; }
.hl-app .hl-save:disabled { background: #e2e2e2; color: var(--mute); cursor: default; }
.hl-msg { font-size: 13px; color: #1e7a3c; }
.hl-msg.is-bad { color: #b3261e; }
.hl-url { display: flex; align-items: center; gap: 8px; margin: 6px auto 20px; font-size: 14px; }
.hl-url a { color: var(--mute); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-url a:hover { color: var(--ink); text-decoration: underline; }
.hl-app .hl-ghost, .hl-app .hl-chip { padding: 6px 12px; border-radius: 999px; background: #e9e9e9; font-size: 12px; font-weight: 700; }
.hl-app .hl-ghost:hover, .hl-app .hl-chip:hover { background: #ddd; }

/* profile summary */
.hl-app .hl-profile { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 8px; border-radius: 18px; margin-bottom: 18px; }
.hl-app .hl-profile:hover { background: #f0f0f0; }
.hl-profile img, .hl-ph { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: #e2e2e2; font-size: 28px; font-weight: 700; }
.hl-profile__txt { display: grid; gap: 4px; min-width: 0; }
.hl-profile__txt b { font-size: 17px; }
.hl-profile__txt small { color: var(--mute); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-profile__soc { display: flex; gap: 6px; margin-top: 4px; }
.hl-profile__soc i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e9e9e9; font: 700 12px/1 inherit; font-style: normal; }
.hl-profile__soc .hl-plus { background: transparent; border: 1.5px solid #cfcfcf; }

/* add buttons */
.hl-addrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.hl-app .hl-pill { min-height: 48px; border-radius: 999px; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, transform .1s; }
.hl-app .hl-pill:active { transform: scale(.98); }
.hl-app .hl-pill--soft { background: #e4e4e4; }
.hl-app .hl-pill--soft:hover { background: #d9d9d9; }
.hl-app .hl-pill--dark { background: var(--ink); color: #fff; }
.hl-app .hl-pill--dark:hover { background: #2b2b2b; color: #fff; }
.hl-addmenu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; margin-bottom: 14px; background: #fff; border-radius: 18px; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.hl-addmenu[hidden] { display: none; }
.hl-app .hl-addmenu button { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; font-size: 13px; font-weight: 600; }
.hl-app .hl-addmenu button:hover { background: var(--soft); }
.hl-addmenu span { font-size: 22px; }
.hl-empty { color: var(--mute); text-align: center; padding: 28px 16px; border: 1.5px dashed #d6d6d6; border-radius: 18px; font-size: 14px; }

/* link rows */
.hl-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.hl-row2, .hl-hrow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; background: #fff; border-radius: 20px; padding: 10px 10px 10px 12px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s; }
.hl-row2:hover { box-shadow: 0 0 0 1px #d6d6d6, 0 4px 14px rgba(0,0,0,.05); }
.hl-row2.is-open { box-shadow: 0 0 0 2px var(--ink); }
.hl-row2.is-off .hl-row2__main, .hl-hrow.is-off input[type=text] { opacity: .45; }
.hl-row2__main { display: flex; align-items: center; gap: 14px; min-width: 0; cursor: pointer; padding: 4px; border-radius: 14px; }
.hl-tile { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--soft); font-size: 18px; overflow: hidden; }
.hl-tile img { width: 100%; height: 100%; object-fit: cover; }
.hl-row2__txt { display: grid; gap: 2px; min-width: 0; }
.hl-row2__txt b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-row2__txt small { font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-row2__txt em { color: #b3261e; font-style: normal; }
.hl-star { color: #f5b301; }
.hl-hrow input[type=text] { background: transparent; font-weight: 700; text-align: center; }
.hl-hrow input[type=text]:focus { background: var(--soft); }

/* toggle switch */
.hl-app .hl-tog { position: relative; display: inline-block; width: 42px; height: 24px; margin: 0; flex: none; }
.hl-tog input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.hl-tog i { position: absolute; inset: 0; border-radius: 999px; background: #d4d4d4; transition: background .15s; }
.hl-tog i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.hl-tog input:checked + i { background: #1e7a3c; }
.hl-tog input:checked + i::after { transform: translateX(18px); }
.hl-tog input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }

.hl-app .hl-dots { width: 36px; height: 36px; border-radius: 50%; font-size: 20px; font-weight: 700; display: grid; place-items: center; }
.hl-app .hl-dots:hover { background: var(--soft); }
.hl-pop { position: absolute; right: 10px; top: calc(100% - 6px); z-index: 20; min-width: 190px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.14); display: grid; }
.hl-app .hl-pop button { text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.hl-app .hl-pop button:hover { background: var(--soft); }
.hl-app .hl-pop .is-danger { color: #b3261e; }
.hl-edit { grid-column: 1 / -1; padding: 8px 6px 4px; border-top: 1px solid var(--line); margin-top: 6px; }

/* design tab */
.hl-prof { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.hl-prof img, .hl-prof .hl-ph { width: 72px; height: 72px; }
.hl-app .hl-prof label { display: inline-flex; margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; cursor: pointer; }
.hl-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hl-app .hl-theme { min-height: 120px; border-radius: 16px; display: grid; place-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .15s; }
.hl-app .hl-theme:hover { transform: translateY(-2px); }
.hl-theme span { display: block; width: 75%; padding: 7px 0; border-radius: 999px; }
.hl-app .hl-theme.is-on { box-shadow: 0 0 0 3px #fafafa, 0 0 0 5px var(--ink); }
.hl-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hl-two { display: grid; gap: 10px; }
@media (min-width: 600px) { .hl-two { grid-template-columns: 1fr 1fr; } }
.hl-app .hl-switch { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; font-size: 14px; }
.hl-switch input { width: 20px; height: 20px; accent-color: var(--ink); }

/* settings */
.hl-slug { display: flex; border-radius: 12px; overflow: hidden; background: var(--soft); }
.hl-slug span { display: flex; align-items: center; padding: 0 0 0 14px; color: var(--mute); font-weight: 400; font-size: 14px; white-space: nowrap; }
.hl-app .hl-slug input { background: transparent; padding-left: 2px; }
.hl-qr { background: #fff; padding: 14px; display: inline-block; border-radius: 18px; margin-bottom: 10px; box-shadow: 0 0 0 1px var(--line); }
.hl-app .hm-btn--ghost { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #e4e4e4; border: 0; color: var(--ink); font-weight: 700; font-size: 14px; }

/* analytics */
.hl-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hl-kpis div { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 0 0 1px var(--line); }
.hl-kpis b { display: block; font-size: 26px; }
.hl-kpis span { color: var(--mute); font-size: 13px; }
.hl-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding: 12px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.hl-chart i { flex: 1; min-width: 2px; background: var(--ink); border-radius: 4px 4px 0 0; }
.hl-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.hl-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-bar { height: 8px; background: #ececec; border-radius: 999px; overflow: hidden; }
.hl-bar i { display: block; height: 100%; background: var(--ink); }

/* preview phone */
.hl-phone { position: sticky; top: 96px; display: grid; justify-items: center; padding-top: 8px; }
.hl-phone__frame { width: 300px; height: 620px; border-radius: 42px; overflow: hidden; border: 9px solid #111; background: #111; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.hl-phone iframe { width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 1023px) { .hl-phone__frame { height: 520px; } }

/* ---------- HC Links landing (visitors) ---------- */
.hl-l-sec { padding-top: 4.5rem; }
.hl-l-center { text-align: center; margin-top: 1.5rem; }
.hl-l-phones { display: flex; gap: 28px; justify-content: center; overflow-x: auto; padding: 12px 4px 4px; scroll-snap-type: x mandatory; }
.hl-l-phones figure { margin: 0; flex: none; text-align: center; scroll-snap-align: center; }
.hl-l-phones figcaption { margin-top: 12px; font-weight: 700; font-size: .9375rem; }
.hl-l-phone { width: 270px; height: 560px; border: 9px solid #111; border-radius: 40px; overflow: hidden; background: #111; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.hl-l-phones figure:nth-child(2) .hl-l-phone { transform: translateY(-14px); }
.hl-l-phone iframe { width: 100%; height: 100%; border: 0; pointer-events: none; background: #fff; }
.hl-l-uses { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hl-l-use { background: #fff; border: 1px solid #ececec; border-radius: 20px; padding: 22px; transition: transform .2s, box-shadow .2s; }
.hl-l-use:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.hl-l-use span { font-size: 28px; }
.hl-l-use h3 { font-size: 1.0625rem; margin: 10px 0 6px; }
.hl-l-use p { margin: 0; color: #6b6b6b; font-size: .9375rem; line-height: 1.55; }
.hl-l-shots { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hl-l-shots { grid-template-columns: 1fr 1fr; } }
.hl-l-shot { margin: 0; }
.hl-l-shot figcaption { margin-top: 10px; font-size: .9375rem; color: #6b6b6b; line-height: 1.5; }
.hl-l-shot figcaption b { color: #111; }
.hl-app.hl-l-frame { margin: 0; padding: 12px; pointer-events: none; user-select: none; }
.hl-l-frame .hl-card { padding: 20px 20px 24px; }
.hl-l-frame .hl-card > * { max-width: none; }
.hl-l-frame .hl-top { margin-bottom: 14px; }
.hl-l-frame .hl-save { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: #111; color: #fff; font-weight: 700; font-size: 13px; }
.hl-l-frame .hl-themes .hl-theme { min-height: 84px; }
.hl-l-frame .hl-chart { height: 110px; }
.hl-l-qr { width: 120px; height: 120px; border-radius: 14px; border: 10px solid #fff; box-shadow: 0 0 0 1px #ececec; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.hl-l-steps { list-style: none; counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin: 0; }
.hl-l-steps li { counter-increment: s; background: #fff; border: 1px solid #ececec; border-radius: 20px; padding: 22px; display: grid; gap: 6px; }
.hl-l-steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #df2c2a; color: #fff; font-weight: 700; }
.hl-l-steps span { color: #6b6b6b; font-size: .9375rem; }

/* ---------- HC Landing Pages ---------- */
.lp-count { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e9e9e9; vertical-align: middle; margin-left: 6px; }
.lp-count.is-pro { background: #e8f6ec; color: #14532a; }
.lp-dash .hl-top { margin-bottom: 14px; }
.lp-dash .hl-ghost { text-decoration: none; color: #111; }
.lp-up { padding: 14px 16px; border-radius: 14px; background: #fff6f6; box-shadow: 0 0 0 1px #f3c9c8; font-size: 14px; }
.lp-up a { color: #df2c2a; font-weight: 700; }
.lp-tpls, .lp-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; padding: 10px; margin: 0 0 14px; background: #fff; border-radius: 18px; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.lp-tpls[hidden], .lp-types[hidden] { display: none; }
.lp-tpls p { grid-column: 1 / -1; margin: 0 0 4px; font-weight: 700; font-size: 14px; }
.hl-app .lp-tpls button, .hl-app .lp-types button { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; font-size: 13px; font-weight: 600; text-align: center; }
.hl-app .lp-tpls button:hover, .hl-app .lp-types button:hover { background: #f2f2f2; }
.lp-tpls span, .lp-types span:first-child { font-size: 24px; }
.lp-pro { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #111; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
.hl-app .lp-title { font-size: 20px; font-weight: 700; background: transparent; min-height: 40px; padding: 4px 8px; max-width: 320px; }
.lp-grip { cursor: grab; color: #9a9a9a; font-size: 18px; padding: 0 2px; }
.hl-row2.is-drag { opacity: .4; }
.hl-row2.is-over { box-shadow: 0 0 0 2px #df2c2a; }
/* explainer template cards */
.lp-mini { height: 130px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #ececec; padding: 10px; display: grid; gap: 6px; margin-bottom: 12px; }
.lp-mini i { display: block; height: 46px; border-radius: 8px; background: var(--c); }
.lp-mini b { display: block; height: 8px; border-radius: 4px; background: #e9e9e9; }
.lp-mini b + b { width: 70%; }
.lp-mini s { display: block; justify-self: center; width: 46%; height: 18px; border-radius: 999px; background: #df2c2a; text-decoration: none; }
.hl-l-days{display:flex;flex-wrap:wrap;gap:8px 14px;margin:0 0 12px}#bk-save~*,.hl-card>label{display:grid;gap:4px;margin-bottom:10px}.hl-app .hl-l-days label{display:flex;align-items:center;gap:6px}
/* Free plan vs Pro */
.hl-plan{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;font-size:12px;font-weight:700;text-decoration:none!important;background:#fdeceb;color:#c22422!important;white-space:nowrap}.hl-plan:hover{background:#df2c2a;color:#fff!important}.hl-plan.is-pro{background:#111;color:#fff!important}
.hl-limit{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 14px;padding:10px 14px;border-radius:12px;background:#f6f7f9;font-size:14px}.hl-limit__bar{flex:1;min-width:80px;height:6px;border-radius:9px;background:#e4e7ec;overflow:hidden}.hl-limit__bar i{display:block;height:100%;background:#df2c2a}.hl-limit a{font-weight:700;color:#df2c2a!important}
.hl-lock{display:grid;gap:6px;justify-items:start;margin:8px 0 16px;padding:16px;border:1.5px dashed #f6c9c8;border-radius:14px;background:#fff8f8}.hl-lock b{font-size:15px}.hl-lock span{font-size:13px;color:#667085}.hl-lock .hl-pill{margin-top:4px;text-decoration:none!important}
.hl-theme{position:relative}.hl-theme.is-locked{opacity:.75}.hl-theme.is-locked:hover{opacity:1}.hl-lk{position:absolute;top:6px;right:6px;font-style:normal;font-size:10px;font-weight:700;background:rgba(17,17,17,.85);color:#fff;border-radius:6px;padding:2px 6px}
.hl-sub{font-size:12px;font-weight:600;color:#667085;margin-left:6px}
.hl-blur{filter:blur(4px);opacity:.5;pointer-events:none;margin:12px 0 -6px}
