/* Telegram bildirishnoma boti kartasi (notify-bot-ui.js). Ranglar sahifa tokenlaridan; tokenlar bo'lmasa — standart qiymatlar. */
.nbu { --nbu-card: var(--card-bg, #fff); --nbu-line: var(--border, #e7e4de); --nbu-ink: var(--text-main, #1c1c1e); --nbu-mute: var(--text-muted, #6b6b70);
  --nbu-soft: var(--surface-3, #f1efeb); --nbu-blue: var(--accent-blue, #3b82c4); --nbu-tg: #229ED9;
  background: var(--nbu-card); border: 1px solid var(--nbu-line); border-radius: 16px; padding: 22px; color: var(--nbu-ink); max-width: 1040px; }
.nbu-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--nbu-line); }
.nbu-logo { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(140deg, #2AABEE, #1E88D4); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 6px 16px rgba(34,158,217,.28); }
.nbu-logo svg { width: 24px; height: 24px; margin-left: -2px; }
.nbu-logo.sm { width: 28px; height: 28px; border-radius: 50%; box-shadow: none; }
.nbu-logo.sm svg { width: 15px; height: 15px; }
.nbu-head-t { flex: 1; min-width: 0; }
.nbu-head-t h3 { margin: 0; font-size: 17px; font-weight: 700; }
.nbu-head-t p { margin: 3px 0 0; font-size: 13.5px; color: var(--nbu-mute); }
.nbu-pill { font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: var(--nbu-soft); color: var(--nbu-mute); white-space: nowrap; }
.nbu-pill.on { background: rgba(46,160,90,.14); color: #2e9a58; }
.nbu-pill.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.nbu-warn { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(224,146,32,.12); color: #a96a12; font-size: 13.5px; }
.nbu-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; margin-top: 18px; }
.nbu-sec { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--nbu-line); }
.nbu-sec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.nbu-sec-h { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--nbu-mute); margin-bottom: 12px; }
.nbu-sec-h small { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; opacity: .8; }
.nbu-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--nbu-line); border-radius: 12px; margin-bottom: 8px; }
.nbu-ava { width: 36px; height: 36px; border-radius: 50%; background: rgba(34,158,217,.12); color: var(--nbu-tg); display: grid; place-items: center; flex-shrink: 0; }
.nbu-ava svg { width: 19px; height: 19px; }
.nbu-link-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nbu-link-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbu-link-t span { font-size: 12.5px; color: var(--nbu-mute); }
.nbu-empty { font-size: 13.5px; color: var(--nbu-mute); padding: 14px; border: 1px dashed var(--nbu-line); border-radius: 12px; text-align: center; }
.nbu-wait { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(34,158,217,.08); border: 1px solid rgba(34,158,217,.25); font-size: 13.5px; line-height: 1.5; }
.nbu-wait-s { color: var(--nbu-mute); font-size: 12.5px; margin-top: 3px; }
.nbu-wait a, .nbu-linkbtn { color: var(--nbu-tg); font-weight: 600; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.nbu-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(34,158,217,.3); border-top-color: var(--nbu-tg); animation: nbu-spin .8s linear infinite; flex-shrink: 0; margin-top: 2px; }
@keyframes nbu-spin { to { transform: rotate(360deg); } }
.nbu-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.nbu-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--nbu-line); background: var(--nbu-card); color: var(--nbu-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.nbu-btn:hover:not(:disabled) { background: var(--nbu-soft); }
.nbu-btn:disabled { opacity: .5; cursor: default; }
.nbu-btn.primary { background: var(--nbu-tg); border-color: var(--nbu-tg); color: #fff; }
.nbu-btn.primary:hover:not(:disabled) { background: #1c8cc2; }
.nbu-btn.primary svg { width: 17px; height: 17px; }
.nbu-btn[data-save] { background: var(--nbu-blue); border-color: var(--nbu-blue); }
.nbu-btn.ghost { height: 34px; padding: 0 12px; font-size: 13px; }
.nbu-btn.danger { color: #d6453f; }
.nbu-msg { font-size: 13px; font-weight: 600; }
.nbu-msg.ok { color: #2e9a58; } .nbu-msg.bad { color: #d6453f; }
.nbu-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--nbu-line); }
.nbu-row:first-of-type { border-top: 0; padding-top: 0; }
.nbu-row.col { flex-direction: column; align-items: stretch; gap: 10px; }
.nbu-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nbu-row-t b { font-size: 14.5px; }
.nbu-row-t span { font-size: 13px; color: var(--nbu-mute); line-height: 1.45; }
.nbu-time { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--nbu-mute); white-space: nowrap; }
.nbu-time select { height: 36px; border-radius: 9px; border: 1px solid var(--nbu-line); background: var(--nbu-card); color: var(--nbu-ink); padding: 0 8px; font: inherit; font-size: 14px; }
.nbu-sw { position: relative; width: 42px; height: 24px; flex-shrink: 0; cursor: pointer; }
.nbu-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.nbu-sw i { position: absolute; inset: 0; border-radius: 999px; background: var(--nbu-line); transition: background .15s; }
.nbu-sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.nbu-sw input:checked + i { background: var(--nbu-blue); }
.nbu-sw input:checked + i::after { transform: translateX(18px); }
.nbu-sw input:focus-visible + i { outline: 2px solid var(--nbu-blue); outline-offset: 2px; }
.nbu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nbu-seg { display: flex; gap: 6px; flex-shrink: 0; }
.nbu-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--nbu-line); font-size: 13.5px; font-weight: 600; cursor: pointer; user-select: none; color: var(--nbu-mute); }
.nbu-chip input { display: none; }
.nbu-chip.on { background: rgba(59,130,196,.12); border-color: var(--nbu-blue); color: var(--nbu-blue); }
.nbu-note { font-size: 12.5px; color: var(--nbu-mute); }
.nbu-side { min-width: 0; }
.nbu-phone { border-radius: 18px; background: #E6EBEE; padding: 0 0 16px; overflow: hidden; border: 1px solid var(--nbu-line); }
.nbu-phone-h { display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: #fff; font-size: 14px; color: #1c1c1e; border-bottom: 1px solid #dde3e7; }
.nbu-bubble { margin: 14px 12px 0; background: #fff; color: #1c1c1e; border-radius: 4px 14px 14px 14px; padding: 11px 12px; font-size: 12.8px; line-height: 1.55; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.nbu-bubble .up { color: #2e9a58; font-weight: 700; }
.nbu-bbtn { margin-top: 10px; text-align: center; font-weight: 600; color: #229ED9; background: #EEF6FB; border-radius: 8px; padding: 7px; font-size: 12.5px; }
.nbu-loading { height: 160px; background: linear-gradient(90deg, var(--nbu-soft), transparent, var(--nbu-soft)); background-size: 200% 100%; animation: nbu-sh 1.2s infinite; border-radius: 12px; }
@keyframes nbu-sh { to { background-position: -200% 0; } }
@media (max-width: 900px) { .nbu-grid { grid-template-columns: 1fr; } .nbu-side { max-width: 360px; } }
@media (max-width: 560px) { .nbu { padding: 16px; } .nbu-row { flex-wrap: wrap; } .nbu-time { width: 100%; padding-left: 56px; } }
