/* ==========================================================================
   WP BCM – Dashboard & auth styles. Navy · White · Gradient. RTL-ready.
   ========================================================================== */

:root {
	--navy-950: #040e24;
	--navy-900: #071a3d;
	--navy-800: #0b2556;
	--navy-700: #12306b;
	--blue-600: #1f5bff;
	--blue-500: #2f6bff;
	--blue-50: #eef3ff;
	--cyan-400: #22c7f0;
	--white: #fff;
	--bg: #f3f6fb;
	--gray-50: #f7f9fc;
	--gray-100: #eef2f8;
	--gray-200: #e3e9f2;
	--gray-300: #cdd6e4;
	--gray-400: #9aa7bd;
	--gray-500: #6b7a96;
	--gray-700: #36445e;
	--ink: #0b1630;
	--good: #12a150;
	--good-bg: #e7f7ee;
	--bad: #dc2626;
	--bad-bg: #fdecec;
	--warn: #c97a06;
	--warn-bg: #fff4e0;
	--info: #1f5bff;
	--info-bg: #eaf1ff;
	--grad: linear-gradient(135deg, #0b2556 0%, #1f5bff 60%, #22c7f0 100%);
	--grad-soft: linear-gradient(135deg, #2f6bff 0%, #22c7f0 100%);
	--grad-side: linear-gradient(180deg, #071a3d 0%, #0b2556 100%);
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(7, 26, 61, .04), 0 6px 20px rgba(7, 26, 61, .06);
	--shadow-lg: 0 24px 60px rgba(7, 26, 61, .22);
	--font: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--side-w: 268px;
}
html[lang="ar"] { --font: "Cairo", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; color: var(--navy-900); }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em; }
code { background: var(--gray-100); padding: 2px 6px; border-radius: 6px; color: var(--navy-700); word-break: break-all; }
[hidden] { display: none !important; }
.wb-icon { flex-shrink: 0; vertical-align: middle; }
[dir="rtl"] .wb-flip-rtl { transform: scaleX(-1); }
[dir="ltr"] .wb-flip-ltr { transform: scaleX(-1); }
:focus-visible { outline: 3px solid rgba(34, 199, 240, .6); outline-offset: 2px; }
.wb-muted { color: var(--gray-500); }
.wb-nowrap { white-space: nowrap; }
.wb-center { text-align: center; }
.wb-text-good { color: var(--good); display: inline-flex; gap: 6px; align-items: center; }
.wb-text-bad { color: var(--bad); }
.wb-label { display: block; font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
html[lang="ar"] .wb-label { letter-spacing: 0; font-size: 13px; }
.wb-hint { font-size: 13px; color: var(--gray-500); margin: 8px 0 0; }
.wb-hint code { font-size: 12px; }
.wb-section-title { font-size: 18px; margin: 30px 0 14px; }

/* Buttons */
.wb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 11px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s, color .2s, border-color .2s, opacity .2s; white-space: nowrap; text-decoration: none; background: none; }
.wb-btn:hover { transform: translateY(-1px); }
.wb-btn:disabled, .wb-btn.is-loading { opacity: .65; pointer-events: none; }
.wb-btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: wb-spin .7s linear infinite; }
.wb-btn--primary { background: var(--grad-soft); color: var(--white); box-shadow: 0 8px 20px rgba(31, 91, 255, .28); }
.wb-btn--primary:hover { color: var(--white); box-shadow: 0 12px 26px rgba(31, 91, 255, .38); }
.wb-btn--outline { border-color: var(--blue-500); color: var(--blue-600); background: var(--white); }
.wb-btn--outline:hover { background: var(--blue-500); color: var(--white); }
.wb-btn--ghost { background: var(--white); border-color: var(--gray-200); color: var(--gray-700); }
.wb-btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.wb-btn--danger { background: var(--white); border-color: #f5c2c2; color: var(--bad); }
.wb-btn--danger:hover { background: var(--bad); color: var(--white); border-color: var(--bad); }
.wb-btn--light { background: rgba(255, 255, 255, .95); color: var(--navy-800); }
.wb-btn--light:hover { background: var(--white); color: var(--blue-600); }
.wb-btn--sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.wb-btn--lg { padding: 13px 24px; font-size: 15px; }
.wb-btn--block { width: 100%; }
.wb-btn--icon { padding: 10px; width: 44px; height: 44px; border-radius: 50%; }
.wb-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--gray-500); cursor: pointer; transition: background .2s, color .2s; padding: 0; vertical-align: middle; }
.wb-icon-btn:hover { background: var(--gray-100); color: var(--blue-600); }
.wb-icon-btn--danger:hover { background: var(--bad-bg); color: var(--bad); }
.wb-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }

/* Forms */
.wb-form { display: grid; gap: 16px; }
.wb-form--inline { display: block; }
.wb-field { display: grid; gap: 6px; min-width: 0; }
.wb-field > label, .wb-fieldset legend { font-weight: 700; font-size: 14px; color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wb-field small { color: var(--gray-500); font-size: 12.5px; }
.wb-field__link { font-weight: 600; font-size: 13px; }
.wb-form input[type="text"], .wb-form input[type="email"], .wb-form input[type="url"], .wb-form input[type="tel"], .wb-form input[type="password"], .wb-form input[type="number"], .wb-form input[type="search"], .wb-form input[type="datetime-local"], .wb-form input:not([type]), .wb-form select, .wb-form textarea, .wb-toolbar select, .wb-bulk select, .wb-chats select {
	width: 100%; padding: 10px 13px; border: 1px solid var(--gray-300); border-radius: 10px; background: var(--white); font: inherit; font-size: 14.5px; color: var(--ink); transition: border-color .2s, box-shadow .2s; min-height: 42px;
}
.wb-form textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.wb-form input:focus, .wb-form select:focus, .wb-form textarea:focus, .wb-toolbar select:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 107, 255, .12); }
.wb-form input[readonly] { background: var(--gray-50); }
.wb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wb-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wb-fieldset { border: 1px solid var(--gray-200); border-radius: 14px; padding: 16px; margin: 0; display: grid; gap: 14px; }
.wb-fieldset legend { padding: 0 6px; }
.wb-check { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 14px; }
.wb-check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue-600); flex-shrink: 0; }
.wb-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.wb-checks--grid { display: grid; grid-template-columns: 1fr 1fr; }
.wb-checks .wb-badge { margin-inline-start: 4px; }
.wb-choice { display: grid; gap: 10px; }
.wb-choice--row { grid-template-columns: repeat(3, 1fr); }
.wb-choice__item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid var(--gray-200); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.wb-choice__item:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); }
.wb-choice__item input { margin-top: 4px; accent-color: var(--blue-600); }
.wb-choice__item strong { display: block; font-size: 14px; color: var(--navy-900); }
.wb-choice__item small { color: var(--gray-500); font-size: 13px; }
.wb-switch-field { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.wb-switch-field input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wb-toggle { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--gray-300); transition: background .2s; flex-shrink: 0; }
.wb-toggle::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.wb-switch-field input:checked + .wb-toggle { background: var(--good); }
.wb-switch-field input:checked + .wb-toggle::after { transform: translateX(18px); }
[dir="rtl"] .wb-switch-field input:checked + .wb-toggle::after { transform: translateX(-18px); }
.wb-switch-field input:focus-visible + .wb-toggle { outline: 3px solid rgba(34, 199, 240, .6); }
.wb-upload { display: flex; gap: 8px; align-items: center; }
.wb-upload input { flex: 1; }
.wb-upload label { cursor: pointer; flex-shrink: 0; }
.wb-dropzone { border: 2px dashed var(--gray-300); border-radius: 14px; padding: 24px; text-align: center; color: var(--gray-500); background: var(--gray-50); }
.wb-dropzone p { margin: 8px 0; font-weight: 700; color: var(--navy-900); }
.wb-dropzone input { margin: 6px auto 10px; display: block; max-width: 100%; }
.wb-or { display: flex; align-items: center; gap: 12px; color: var(--gray-400); font-size: 13px; }
.wb-or::before, .wb-or::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }
.wb-input-group { display: flex; gap: 8px; }
.wb-input-group input { flex: 1; min-width: 0; }
.wb-form__foot { display: flex; justify-content: flex-end; gap: 10px; }
.wb-details { border: 1px solid var(--gray-200); border-radius: 12px; padding: 0 14px; }
.wb-details summary { cursor: pointer; padding: 11px 0; font-weight: 700; font-size: 14px; color: var(--navy-900); }
.wb-details[open] { padding-bottom: 14px; }
.wb-details .wb-copy { margin-bottom: 10px; }
.wb-hp { position: absolute; inset-inline-start: -9999px; }
.wb-counter { font-size: 12px; color: var(--gray-400); text-align: end; margin-top: -2px; }

/* Layout */
.wb-app { display: flex; min-height: 100vh; }
.wb-sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--side-w); background: var(--grad-side); color: rgba(255, 255, 255, .78); display: flex; flex-direction: column; z-index: 60; transition: transform .3s; }
.wb-sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; }
.wb-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 19px; }
.wb-logo:hover { color: var(--white); }
.wb-sidebar__close { display: none; background: none; border: 0; color: var(--white); cursor: pointer; }
.wb-sidebar__nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.wb-sidebar__group { margin: 16px 12px 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .38); }
html[lang="ar"] .wb-sidebar__group { letter-spacing: 0; font-size: 12px; }
.wb-sidebar__link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: rgba(255, 255, 255, .74); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; margin-bottom: 2px; }
.wb-sidebar__link:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.wb-sidebar__link.is-active { background: var(--grad-soft); color: var(--white); box-shadow: 0 8px 18px rgba(31, 91, 255, .35); }
.wb-sidebar__plan { margin: 0 14px 16px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 6px; }
.wb-sidebar__plan-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255, 255, 255, .55); }
.wb-sidebar__plan strong { color: var(--white); font-size: 15px; }
.wb-sidebar__plan small { color: rgba(255, 255, 255, .6); font-size: 12px; }
.wb-sidebar__plan .wb-btn { margin-top: 6px; }
.wb-sidebar__plan .wb-meter { background: rgba(255, 255, 255, .12); }
.wb-sidebar-backdrop { display: none; }
.wb-app__main { flex: 1; min-width: 0; margin-inline-start: var(--side-w); display: flex; flex-direction: column; }
.wb-topbar { position: sticky; top: 0; z-index: 40; height: 66px; display: flex; align-items: center; gap: 14px; padding: 0 26px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); }
.wb-topbar__burger { display: none; background: none; border: 0; cursor: pointer; color: var(--navy-900); padding: 4px; }
.wb-topbar__title { font-weight: 800; color: var(--navy-900); font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-topbar__actions { display: flex; align-items: center; gap: 8px; }
.wb-topbar__icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; color: var(--gray-500); }
.wb-topbar__icon:hover { background: var(--gray-100); color: var(--blue-600); }
.wb-lang { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--gray-200); color: var(--gray-700); font-weight: 700; font-size: 13px; background: var(--white); }
.wb-lang:hover { border-color: var(--blue-500); color: var(--blue-600); }
.wb-user { position: relative; }
.wb-user__btn { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border: 0; background: none; cursor: pointer; border-radius: 12px; font: inherit; color: var(--ink); text-align: start; }
.wb-user__btn:hover { background: var(--gray-100); }
.wb-user__meta strong { display: block; font-size: 14px; line-height: 1.2; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-user__meta small { color: var(--gray-500); font-size: 12px; }
.wb-avatar { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--grad-soft); color: var(--white); font-weight: 800; flex-shrink: 0; }
.wb-avatar--sm { width: 30px; height: 30px; font-size: 13px; vertical-align: middle; margin-inline-end: 6px; }
.wb-dropdown { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); padding: 6px; display: none; z-index: 50; }
.wb-user.is-open .wb-dropdown { display: block; }
.wb-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--gray-700); font-weight: 600; font-size: 14px; }
.wb-dropdown a:hover { background: var(--gray-100); color: var(--blue-600); }
.wb-dropdown a.is-danger { color: var(--bad); }
.wb-app__content { padding: 26px; max-width: 1400px; width: 100%; }

/* Page head */
.wb-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.wb-page-head h1 { font-size: 24px; margin-bottom: 4px; }
.wb-page-head p { margin: 0; color: var(--gray-500); }
.wb-page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Cards & grids */
.wb-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200); padding: 20px; margin-bottom: 20px; min-width: 0; }
.wb-card--soft { background: var(--gray-50); box-shadow: none; }
.wb-card--flush { padding: 0; overflow: hidden; }
.wb-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.wb-card__head h3 { margin: 0; font-size: 16px; }
.wb-grid { display: grid; gap: 20px; }
.wb-grid > .wb-card { margin-bottom: 0; }
.wb-grid + .wb-grid, .wb-grid + .wb-card, .wb-stats + .wb-grid { margin-top: 20px; }
.wb-grid--main { grid-template-columns: 1.6fr 1fr; }
.wb-grid--half { grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
.wb-grid--side { grid-template-columns: 260px 1fr; align-items: start; }
.wb-grid--send { grid-template-columns: 1.4fr 1fr; align-items: start; }
.wb-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.wb-cards-grid > .wb-card { margin: 0; }
.wb-stack > .wb-card { margin-bottom: 14px; }

/* Stats */
.wb-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 20px; }
.wb-stats--4 { grid-template-columns: repeat(4, 1fr); }
.wb-stat { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--white); border-radius: 14px; border: 1px solid var(--gray-200); box-shadow: var(--shadow); min-width: 0; }
.wb-stat small { display: block; color: var(--gray-500); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-stat strong { font-size: 22px; color: var(--navy-900); font-weight: 800; }
.wb-stat > div { min-width: 0; }
.wb-stat__icon { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; flex-shrink: 0; }
.wb-stat__icon--blue { background: #e9f0ff; color: #1f5bff; }
.wb-stat__icon--cyan { background: #e2f8fd; color: #0aa3c9; }
.wb-stat__icon--green { background: var(--good-bg); color: var(--good); }
.wb-stat__icon--violet { background: #f1ecff; color: #6d4aff; }
.wb-stat__icon--navy { background: #e8ecf6; color: var(--navy-700); }
.wb-stat__icon--orange { background: #fff1e4; color: #e46f0b; }
.wb-stat__icon--red { background: var(--bad-bg); color: var(--bad); }

/* Meter */
.wb-meter { height: 6px; border-radius: 99px; background: var(--gray-100); overflow: hidden; }
.wb-meter span { display: block; height: 100%; background: var(--grad-soft); border-radius: inherit; transition: width .6s; }
.wb-meter--lg { height: 9px; }
.wb-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--good); }
.wb-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: wb-pulse 1.6s infinite; }
@keyframes wb-pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, .5); } 70% { box-shadow: 0 0 0 8px rgba(18, 161, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 161, 80, 0); } }

/* Onboarding */
.wb-onboard { background: var(--grad); border: 0; color: var(--white); }
.wb-onboard h3 { color: var(--white); margin: 0; }
.wb-onboard p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 13px; }
.wb-onboard__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.wb-onboard__head .wb-meter { width: 200px; background: rgba(255, 255, 255, .2); }
.wb-onboard__head .wb-meter span { background: var(--white); }
.wb-onboard__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wb-onboard__step { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--white); font-weight: 600; font-size: 14px; }
.wb-onboard__step:hover { background: rgba(255, 255, 255, .18); color: var(--white); }
.wb-onboard__step span { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); font-weight: 800; font-size: 13px; flex-shrink: 0; }
.wb-onboard__step.is-done span { background: var(--white); color: var(--good); }
.wb-onboard__step.is-done { opacity: .8; }

/* Tables */
.wb-table-wrap { overflow-x: auto; margin-inline: -4px; }
.wb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wb-table th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
html[lang="ar"] .wb-table th { letter-spacing: 0; font-size: 13px; }
.wb-table td { padding: 12px 10px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.wb-table tbody tr:hover td { background: var(--gray-50); }
.wb-table tbody tr:last-child td { border-bottom: 0; }
.wb-table--compact td, .wb-table--compact th { padding: 8px 10px; }
.wb-col-check { width: 36px; }
.wb-col-check input { width: 16px; height: 16px; accent-color: var(--blue-600); }
.wb-row-actions { text-align: end; white-space: nowrap; }
.wb-cell-msg { max-width: 420px; }
.wb-dir { display: inline-flex; width: 24px; height: 24px; border-radius: 6px; align-items: center; justify-content: center; font-weight: 800; }
.wb-dir--out { background: var(--info-bg); color: var(--info); }
.wb-dir--in { background: var(--good-bg); color: var(--good); }
.wb-count { margin: 0 0 8px; font-size: 13px; }

/* Badges & tags */
.wb-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.6; }
.wb-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wb-badge--good { background: var(--good-bg); color: var(--good); }
.wb-badge--bad { background: var(--bad-bg); color: var(--bad); }
.wb-badge--warn { background: var(--warn-bg); color: var(--warn); }
.wb-badge--info { background: var(--info-bg); color: var(--info); }
.wb-badge--muted { background: var(--gray-100); color: var(--gray-500); }
.wb-sidebar .wb-badge--muted { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }
.wb-tag { display: inline-block; padding: 2px 9px; border-radius: 7px; background: var(--blue-50); color: var(--blue-600); font-size: 12px; font-weight: 700; margin: 2px 0; }
.wb-tag--muted { background: var(--gray-100); color: var(--gray-500); }
.wb-kw { font-size: 12px; }
.wb-req { color: var(--bad); font-weight: 700; }

/* Alerts */
.wb-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; border: 1px solid transparent; }
.wb-alert p { margin: 0; flex: 1; }
.wb-alert p + p { margin-top: 4px; }
.wb-alert .wb-icon { margin-top: 1px; }
.wb-alert--good { background: var(--good-bg); color: #0b6b37; border-color: #bfe8cf; }
.wb-alert--bad { background: var(--bad-bg); color: #a11c1c; border-color: #f6c6c6; display: block; }
.wb-alert--warn { background: var(--warn-bg); color: #8a5300; border-color: #f7dcae; }
.wb-alert--info { background: var(--info-bg); color: #163fa8; border-color: #cbdafe; }
.wb-alert--banner { align-items: center; }
.wb-alert--banner .wb-btn { flex-shrink: 0; }
.wb-alert--sm { padding: 8px 12px; margin: 10px 0 0; font-size: 13px; }

/* Empty */
.wb-empty { text-align: center; padding: 40px 20px; }
.wb-empty__icon { display: inline-flex; width: 70px; height: 70px; border-radius: 22px; align-items: center; justify-content: center; background: linear-gradient(135deg, #eaf1ff, #e2f8fd); color: var(--blue-600); margin-bottom: 14px; }
.wb-empty h3 { font-size: 17px; margin-bottom: 6px; }
.wb-empty p { color: var(--gray-500); max-width: 420px; margin: 0 auto 18px; }

/* Lists */
.wb-list { list-style: none; margin: 0; padding: 0; }
.wb-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--gray-100); }
.wb-list li:last-child { border-bottom: 0; }
.wb-list li > div { flex: 1; min-width: 0; }
.wb-list li strong { display: block; font-size: 14px; }
.wb-list li small { color: var(--gray-500); font-size: 12.5px; }
.wb-list__icon { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center; background: #e7f8ee; color: #1ba85a; }
.wb-list__col { flex-direction: column; align-items: stretch !important; gap: 8px !important; }
.wb-list__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wb-list--compact li { padding: 7px 0; font-size: 13.5px; }
.wb-list--compact li span { flex: 1; }

/* Chart */
.wb-chart { height: 260px; position: relative; }
.wb-chart svg { width: 100%; height: 100%; overflow: visible; }
.wb-chart__legend { display: flex; gap: 16px; justify-content: center; font-size: 12.5px; color: var(--gray-500); margin-top: 6px; flex-wrap: wrap; }
.wb-chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.wb-chart__legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.wb-chart__tip { position: absolute; pointer-events: none; background: var(--navy-900); color: var(--white); padding: 8px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; z-index: 2; }

/* Modal */
.wb-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; background: rgba(4, 14, 36, .55); backdrop-filter: blur(4px); overflow-y: auto; animation: wb-fade .2s; }
.wb-modal__dialog { width: 100%; max-width: 620px; background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); animation: wb-rise .25s ease; }
.wb-modal__dialog--sm { max-width: 440px; }
.wb-modal__dialog--lg { max-width: 820px; }
.wb-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--gray-200); }
.wb-modal__head h3 { margin: 0; font-size: 17px; }
.wb-modal__dialog > .wb-form, .wb-modal__dialog > div:not(.wb-modal__head) { padding: 20px 22px; }
.wb-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }
@keyframes wb-fade { from { opacity: 0; } }
@keyframes wb-rise { from { opacity: 0; transform: translateY(14px); } }
body.wb-modal-open { overflow: hidden; }

/* Toasts */
.wb-toasts { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 300; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.wb-toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; background: var(--navy-900); color: var(--white); box-shadow: var(--shadow-lg); font-size: 14px; animation: wb-rise .25s; }
.wb-toast--good .wb-icon { color: #4ade80; }
.wb-toast--bad { background: #7f1d1d; }
.wb-toast--bad .wb-icon { color: #fca5a5; }
.wb-toast.is-leaving { opacity: 0; transform: translateY(10px); transition: all .3s; }

/* Spinner */
.wb-spinner { width: 34px; height: 34px; border: 3px solid var(--gray-200); border-top-color: var(--blue-500); border-radius: 50%; animation: wb-spin .8s linear infinite; margin: 0 auto; }
@keyframes wb-spin { to { transform: rotate(360deg); } }

/* Copy field */
.wb-copy { display: grid; gap: 6px; margin-bottom: 12px; }
.wb-copy label { font-weight: 700; font-size: 13px; color: var(--navy-900); }
.wb-copy__row { display: flex; gap: 8px; }
.wb-copy__row input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--gray-300); border-radius: 10px; background: var(--gray-50); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--navy-800); }
.wb-pre { background: var(--navy-950); color: #cfe1ff; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: 12.5px; line-height: 1.7; text-align: left; margin: 14px 0; }
.wb-pre code { background: none; color: inherit; padding: 0; word-break: normal; }

/* Instances */
.wb-instances { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; margin-bottom: 20px; }
.wb-instances > .wb-card { margin: 0; }
.wb-instance { display: flex; flex-direction: column; gap: 14px; }
.wb-instance__head { display: flex; align-items: center; gap: 12px; }
.wb-instance__title { flex: 1; min-width: 0; }
.wb-instance__title h3 { margin: 0; font-size: 16px; }
.wb-instance__title small { color: var(--gray-500); }
.wb-instance__icon { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; align-items: center; justify-content: center; background: var(--gray-100); color: var(--gray-400); }
.wb-instance__icon.is-online { background: #e3f8ec; color: #25d366; }
.wb-instance__meta { margin: 0; display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--gray-50); }
.wb-instance__meta div { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13.5px; }
.wb-instance__meta dt { color: var(--gray-500); }
.wb-instance__meta dd { margin: 0; font-weight: 600; text-align: end; }
.wb-instance__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-instance__actions .wb-btn { padding: 8px 12px; font-size: 13px; }
.wb-qr { text-align: center; }
.wb-qr__box { width: 280px; height: 280px; max-width: 100%; margin: 0 auto 14px; border-radius: 18px; border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; background: var(--white); overflow: hidden; }
.wb-qr__box img { width: 100%; height: 100%; object-fit: contain; }
.wb-qr__box.is-done { background: var(--good-bg); color: var(--good); }
.wb-qr__status { font-weight: 700; color: var(--navy-900); }
.wb-qr__steps { text-align: start; color: var(--gray-700); font-size: 14px; display: grid; gap: 4px; padding-inline-start: 22px; margin: 0; }

/* Send preview */
.wb-preview-card { position: sticky; top: 86px; }
.wb-wa-preview { border-radius: 18px; overflow: hidden; background: #e8ddd3; background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px); background-size: 14px 14px; padding: 24px 16px; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.wb-wa-preview .wb-bubble { position: relative; align-self: flex-end; max-width: 88%; padding: 8px 10px 20px; border-radius: 12px; border-start-end-radius: 3px; background: #d9fdd3; color: #111b21; font-size: 14px; white-space: normal; word-break: break-word; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); min-width: 90px; }
.wb-wa-preview [data-preview-output] { white-space: pre-wrap; display: block; unicode-bidi: plaintext; }
.wb-msg > span[dir], .wb-tpl__body, .wb-campaign__msg, .wb-cell-msg { unicode-bidi: plaintext; }
.wb-wa-preview .wb-bubble time { position: absolute; bottom: 4px; inset-inline-end: 8px; font-size: 10.5px; color: #667781; }
.wb-bubble__media { margin: -4px -6px 8px; border-radius: 9px; overflow: hidden; background: rgba(0, 0, 0, .06); min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; font-size: 13px; color: #54656f; }
.wb-bubble__media img { display: block; max-width: 100%; max-height: 220px; margin: -10px; }
.wb-result { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.wb-result.is-good { background: var(--good-bg); color: #0b6b37; }
.wb-result.is-bad { background: var(--bad-bg); color: #a11c1c; }
.wb-result pre { margin: 8px 0 0; white-space: pre-wrap; font-size: 12px; }

/* Chats */
.wb-chats { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 66px - 52px); min-height: 460px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow); overflow: hidden; }
.wb-chats__list { border-inline-end: 1px solid var(--gray-200); display: flex; flex-direction: column; min-height: 0; }
.wb-chats__search { display: flex; align-items: center; gap: 8px; padding: 14px; border-bottom: 1px solid var(--gray-200); color: var(--gray-400); }
.wb-chats__search input { flex: 1; border: 0; outline: 0; font: inherit; background: transparent; padding: 6px 0; }
.wb-chats__items { flex: 1; overflow-y: auto; }
.wb-chats__loading { padding: 30px; }
.wb-chat-item { display: flex; gap: 12px; padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--gray-100); border-inline-start: 3px solid transparent; transition: background .15s; width: 100%; background: none; border-top: 0; border-inline-end: 0; text-align: start; font: inherit; color: inherit; }
.wb-chat-item:hover { background: var(--gray-50); }
.wb-chat-item.is-active { background: var(--blue-50); border-inline-start-color: var(--blue-500); }
.wb-chat-item > div { flex: 1; min-width: 0; }
.wb-chat-item__top { display: flex; justify-content: space-between; gap: 8px; }
.wb-chat-item strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-chat-item time { font-size: 11.5px; color: var(--gray-400); flex-shrink: 0; }
.wb-chat-item p { margin: 2px 0 0; font-size: 13px; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-chats__thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #f0ebe4; background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px); background-size: 14px 14px; }
.wb-chats__placeholder { margin: auto; text-align: center; color: var(--gray-400); }
.wb-chats__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.wb-chats__head strong { display: block; }
.wb-chats__head small { color: var(--gray-500); }
.wb-chats__back { display: none; }
.wb-chats__messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.wb-msg { max-width: 72%; padding: 7px 10px 18px; border-radius: 10px; font-size: 14px; position: relative; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); min-width: 90px; }
.wb-msg--in { align-self: flex-start; background: var(--white); border-start-start-radius: 3px; }
.wb-msg--out { align-self: flex-end; background: #d9fdd3; border-start-end-radius: 3px; }
.wb-msg time { position: absolute; bottom: 3px; inset-inline-end: 8px; font-size: 10.5px; color: #667781; white-space: nowrap; }
.wb-msg__type { display: inline-block; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .06); border-radius: 5px; padding: 0 6px; margin-bottom: 3px; }
.wb-msg--failed { background: #fde2e2; }
.wb-msg a { word-break: break-all; }
.wb-chats__composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; background: var(--white); border-top: 1px solid var(--gray-200); }
.wb-chats__composer textarea { flex: 1; resize: none; border: 1px solid var(--gray-300); border-radius: 20px; padding: 10px 14px; font: inherit; max-height: 140px; min-height: 44px; outline: 0; }
.wb-chats__composer textarea:focus { border-color: var(--blue-500); }
.wb-chats__instance { width: 160px !important; flex-shrink: 0; }
.wb-chats__empty { padding: 30px 16px; text-align: center; color: var(--gray-400); }

/* Templates */
.wb-tpl { display: flex; flex-direction: column; gap: 10px; }
.wb-tpl__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wb-tpl__head h3 { margin: 0; font-size: 16px; }
.wb-tpl__body { flex: 1; background: #d9fdd3; color: #111b21; border-radius: 12px; border-start-end-radius: 3px; padding: 12px 14px; font-size: 14px; max-height: 190px; overflow: auto; word-break: break-word; }
.wb-tpl__media { margin: 0; font-size: 13px; color: var(--gray-500); }
.wb-tpl__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Contacts */
.wb-groups { position: sticky; top: 86px; }
.wb-groups__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wb-groups__list li { display: flex; align-items: center; border-radius: 10px; }
.wb-groups__list li a { flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 10px; color: var(--gray-700); font-weight: 600; font-size: 14px; min-width: 0; }
.wb-groups__list li a span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-groups__list li a em { font-style: normal; font-size: 12px; color: var(--gray-400); }
.wb-groups__list li:hover { background: var(--gray-50); }
.wb-groups__list li.is-active { background: var(--blue-50); }
.wb-groups__list li.is-active a { color: var(--blue-600); }
.wb-groups__actions { display: none; }
.wb-groups__list li:hover .wb-groups__actions { display: flex; }
.wb-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.wb-toolbar select { width: auto; min-width: 140px; }
.wb-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--gray-300); border-radius: 10px; color: var(--gray-400); background: var(--white); }
.wb-search input { flex: 1; border: 0; outline: 0; padding: 10px 0; font: inherit; background: transparent; min-width: 0; }
.wb-bulk { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: var(--blue-50); flex-wrap: wrap; }
.wb-bulk span { font-weight: 700; color: var(--blue-600); font-size: 14px; }
.wb-bulk select { width: auto; }

/* Pagination */
.wb-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.wb-pagination a, .wb-pagination span { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--gray-200); color: var(--gray-700); font-weight: 700; font-size: 14px; padding: 0 8px; }
.wb-pagination a:hover { border-color: var(--blue-500); color: var(--blue-600); }
.wb-pagination .is-current { background: var(--grad-soft); color: var(--white); border-color: transparent; }

/* Campaigns */
.wb-tabs-inline { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.wb-tabs-inline a { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-700); font-weight: 700; font-size: 13px; }
.wb-tabs-inline a.is-active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.wb-campaigns { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.wb-campaigns > .wb-card { margin: 0; }
.wb-campaign { display: flex; flex-direction: column; gap: 12px; }
.wb-campaign__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.wb-campaign__head h3 { margin: 0; font-size: 16px; }
.wb-campaign__msg { margin: 0; color: var(--gray-700); font-size: 14px; background: var(--gray-50); padding: 10px 12px; border-radius: 10px; }
.wb-campaign__nums { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--gray-500); }
.wb-campaign__nums b { color: var(--navy-900); font-size: 15px; }
.wb-campaign__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-campaign__actions .wb-btn { padding: 7px 12px; font-size: 13px; }

/* Webhooks / integrations */
.wb-hook { display: flex; flex-direction: column; gap: 12px; }
.wb-hook__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wb-hook__head h3 { margin: 0 0 4px; font-size: 16px; }
.wb-hook__url { display: block; font-size: 13.5px; margin-bottom: 8px; }
.wb-hook__events { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-hook__status { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.wb-hook__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-int-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.wb-int-types > .wb-card { margin: 0; }
.wb-int-type { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wb-int-type h3 { margin: 6px 0 0; font-size: 16px; }
.wb-int-type p { color: var(--gray-500); font-size: 13.5px; flex: 1; }
.wb-int-type__icon { display: inline-flex; min-width: 48px; height: 48px; padding: 0 8px; border-radius: 14px; align-items: center; justify-content: center; background: var(--grad); color: var(--white); }
.wb-int-type__icon--text { font-weight: 900; font-size: 14px; }
.wb-rules { display: grid; gap: 10px; }
.wb-rule { display: grid; gap: 4px; }
.wb-rule label { font-weight: 700; font-size: 13.5px; }
.wb-rule textarea { min-height: 60px !important; }
.wb-rule--row { grid-template-columns: 130px 1fr auto; align-items: start; gap: 8px; }
.wb-roles-help { display: grid; gap: 4px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-100); color: var(--gray-500); font-size: 13.5px; }
.wb-roles-help p { margin: 0; display: flex; gap: 8px; align-items: center; }

/* Billing */
.wb-current-plan { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--grad); color: var(--white); border: 0; }
.wb-current-plan h2 { color: var(--white); margin: 0 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 22px; }
.wb-current-plan .wb-label, .wb-current-plan .wb-muted { color: rgba(255, 255, 255, .75); }
.wb-current-plan p { margin: 0; }
.wb-current-plan__limits { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.wb-current-plan__limits li { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 16px; text-align: center; min-width: 110px; }
.wb-current-plan__limits strong { display: block; font-size: 20px; }
.wb-current-plan__limits span { font-size: 12px; color: rgba(255, 255, 255, .75); }
.wb-switch { display: flex; width: max-content; max-width: 100%; margin: 0 auto 22px; padding: 5px; border-radius: 12px; background: var(--white); border: 1px solid var(--gray-200); gap: 4px; flex-wrap: wrap; }
.wb-switch button { border: 0; background: transparent; color: var(--gray-700); font: inherit; font-weight: 700; padding: 8px 18px; border-radius: 9px; cursor: pointer; font-size: 14px; }
.wb-switch button.is-active { background: var(--navy-900); color: var(--white); }
.wb-plans { display: none; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-bottom: 14px; }
.wb-plans.is-active { display: grid; }
.wb-plan { position: relative; padding: 26px 22px; border-radius: 18px; background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.wb-plan--featured { border: 2px solid var(--blue-500); }
.wb-plan.is-wanted { box-shadow: 0 0 0 4px rgba(47, 107, 255, .2), var(--shadow); }
.wb-plan__ribbon { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--grad-soft); color: var(--white); padding: 3px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
[dir="rtl"] .wb-plan__ribbon { transform: translateX(50%); }
.wb-plan__period { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); font-weight: 800; font-size: 12.5px; margin-bottom: 10px; }
.wb-plan h3 { font-size: 18px; margin: 0; }
.wb-plan__price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 16px; flex-wrap: wrap; }
.wb-plan__price strong { font-size: 32px; font-weight: 900; color: var(--navy-900); }
.wb-plan__price span { color: var(--gray-500); font-weight: 600; font-size: 14px; }
.wb-plan ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; flex: 1; font-size: 14px; }
.wb-plan li { display: flex; gap: 8px; align-items: flex-start; color: var(--gray-700); }
.wb-plan li .wb-icon { color: var(--good); margin-top: 3px; }
.wb-plan__actions { display: grid; gap: 8px; }
.wb-pay-summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--gray-50); border: 1px solid var(--gray-200); font-weight: 700; }
.wb-pay-summary strong { font-size: 20px; color: var(--blue-600); }
.wb-pay-instructions div p { margin: 0 0 6px; }
.wb-account-id { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--gray-100); }
.wb-account-id .wb-label { margin: 0; }

/* Auth ------------------------------------------------------------------- */
.wb-auth-body { background: var(--white); }
.wb-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.wb-auth__brand { background: linear-gradient(160deg, #040e24 0%, #0b2556 50%, #1f5bff 100%); color: var(--white); display: flex; align-items: center; justify-content: center; padding: 50px; position: relative; overflow: hidden; }
.wb-auth__brand::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: #22c7f0; filter: blur(120px); opacity: .25; bottom: -200px; inset-inline-end: -160px; }
.wb-auth__brand-inner { max-width: 440px; position: relative; z-index: 1; }
.wb-auth__brand h2 { color: var(--white); font-size: 32px; margin: 40px 0 26px; line-height: 1.35; }
.wb-auth__brand ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.wb-auth__brand li { display: flex; gap: 10px; align-items: center; color: rgba(255, 255, 255, .85); font-size: 16px; }
.wb-auth__brand li .wb-icon { color: var(--cyan-400); }
.wb-auth__quote { margin-top: 40px; display: flex; }
.wb-auth__quote .wb-bubble { position: relative; padding: 10px 14px 20px; border-radius: 14px; border-start-end-radius: 3px; background: var(--grad-soft); color: var(--white); font-size: 14.5px; max-width: 300px; margin-inline-start: auto; }
.wb-auth__quote time { position: absolute; bottom: 4px; inset-inline-end: 10px; font-size: 11px; color: rgba(255, 255, 255, .7); }
.wb-auth__main { display: flex; flex-direction: column; padding: 24px 40px 40px; }
.wb-auth__top { display: flex; justify-content: space-between; align-items: center; }
.wb-auth__back { display: inline-flex; gap: 6px; align-items: center; color: var(--gray-500); font-weight: 700; font-size: 14px; }
.wb-auth__card { width: 100%; max-width: 440px; margin: auto; padding: 30px 0; }
.wb-auth__card h1 { font-size: 28px; margin-bottom: 6px; }
.wb-auth__sub { color: var(--gray-500); margin-bottom: 26px; }
.wb-auth__switch { text-align: center; margin-top: 22px; color: var(--gray-500); }
.wb-auth__switch a { font-weight: 800; }

/* Instant navigation progress bar ------------------------------------------ */
.wb-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 400; pointer-events: none; opacity: 0; }
.wb-progress::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--grad-soft); box-shadow: 0 0 10px rgba(34, 199, 240, .7); }
.wb-progress.is-active { opacity: 1; }
.wb-progress.is-active::before { animation: wb-progress 8s cubic-bezier(.1, .7, .2, 1) forwards; }
.wb-progress.is-done::before { width: 100% !important; animation: none; transition: width .2s; }
.wb-progress.is-done { opacity: 0; transition: opacity .3s .15s; }
@keyframes wb-progress { 0% { width: 0; } 20% { width: 45%; } 60% { width: 75%; } 100% { width: 92%; } }
.wb-app__content:focus { outline: 0; }

/* Sidebar extras */
.wb-sidebar__link span { flex: 1; min-width: 0; }
.wb-sidebar__badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #25d366; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.wb-logo__img { display: block; max-height: 40px; width: auto; }

/* Stats: never cut the labels */
.wb-stat small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }

/* Alerts with icons */
.wb-alert--bad { display: flex; }
.wb-alert > div { flex: 1; min-width: 0; }
.wb-alert--banner .wb-icon-btn { flex-shrink: 0; color: inherit; }
.wb-tag--bad { background: var(--bad-bg); color: var(--bad); }

/* Password tools */
.wb-pass { position: relative; }
.wb-pass input { padding-inline-end: 44px !important; }
.wb-pass-toggle { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--gray-400); cursor: pointer; }
.wb-pass-toggle:hover, .wb-pass-toggle.is-on { color: var(--blue-600); background: var(--gray-100); }
.wb-strength { position: relative; height: 6px; border-radius: 99px; background: var(--gray-100); margin-top: 2px; }
.wb-strength span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; transition: width .25s, background .25s; }
.wb-strength::after { content: attr(data-label); position: absolute; inset-inline-end: 0; top: 8px; font-size: 11.5px; font-weight: 700; color: var(--gray-500); }
.wb-strength.is-weak span { width: 33%; background: var(--bad); }
.wb-strength.is-medium span { width: 66%; background: #e8a20c; }
.wb-strength.is-strong span { width: 100%; background: var(--good); }
.wb-strength:not([hidden]) + small { margin-top: 14px; }

/* Chats extras */
.wb-chats__who { flex: 1; min-width: 0; }
.wb-chats__who strong, .wb-chats__who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-chat-item.is-waiting strong { font-weight: 800; }
.wb-chat-item p { position: relative; padding-inline-end: 16px; }
.wb-chat-item__dot { position: absolute; inset-inline-end: 0; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: #25d366; }
.wb-chats__composer { position: relative; }
.wb-chats__composer textarea { overflow-y: hidden; line-height: 1.5; }
.wb-chats__quick { flex-shrink: 0; width: 40px; height: 44px; color: var(--blue-600); }
.wb-quick { position: absolute; bottom: calc(100% + 6px); inset-inline-start: 10px; width: min(360px, calc(100% - 20px)); max-height: 300px; overflow-y: auto; background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 5; }
.wb-quick button { display: block; width: 100%; text-align: start; border: 0; background: none; padding: 9px 10px; border-radius: 9px; cursor: pointer; font: inherit; color: var(--ink); }
.wb-quick button:hover { background: var(--gray-100); }
.wb-quick strong { display: block; font-size: 13.5px; }
.wb-quick span { display: block; font-size: 12.5px; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-quick p { margin: 8px; font-size: 13px; }

.wb-dropdown__btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: var(--gray-700); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-align: start; }
.wb-dropdown__btn:hover { background: var(--gray-100); color: var(--blue-600); }

/* Theme toggle icons */
.wb-theme-sun { display: none; }
.wb-dark .wb-theme-sun { display: inline; }
.wb-dark .wb-theme-moon { display: none; }
button.wb-topbar__icon { border: 0; background: none; cursor: pointer; padding: 0; }

/* Plan price extras */
.wb-plan__price del { width: 100%; color: var(--gray-400); font-weight: 600; font-size: 14px; }

/* Dark mode (dashboard) ------------------------------------------------------ */
html.wb-dark { color-scheme: dark; --blue-600: #5b8cff; --navy-700: #9cc0ff; --bg: #0b1324; --ink: #e3eaf6; --gray-50: #131f37; --gray-100: #19263f; --gray-200: #243350; --gray-300: #33445f; --gray-400: #7f8ea8; --gray-500: #98a6bd; --gray-700: #c3cee0; --blue-50: #172a52; --good-bg: rgba(18, 161, 80, .16); --bad-bg: rgba(220, 38, 38, .16); --warn-bg: rgba(201, 122, 6, .16); --info-bg: rgba(47, 107, 255, .18); --info: #7aa5ff; --good: #34d17a; --bad: #f87171; --warn: #f2b14a; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); }
.wb-dark body { background: var(--bg); color: var(--ink); }
.wb-dark h1, .wb-dark h2, .wb-dark h3, .wb-dark h4 { color: #f1f5fc; }
.wb-dark .wb-onboard h3, .wb-dark .wb-current-plan h2 { color: #fff; }
.wb-dark .wb-card, .wb-dark .wb-stat, .wb-dark .wb-modal__dialog, .wb-dark .wb-dropdown, .wb-dark .wb-plan, .wb-dark .wb-chats, .wb-dark .wb-chats__head, .wb-dark .wb-chats__composer, .wb-dark .wb-switch, .wb-dark .wb-tabs-inline a, .wb-dark .wb-quick, .wb-dark .wb-qr__box, .wb-dark .wb-lang, .wb-dark .wb-search { background: #111c33; border-color: var(--gray-200); }
.wb-dark .wb-card--soft { background: #0f182c; }
.wb-dark .wb-topbar { background: rgba(11, 19, 36, .9); border-color: var(--gray-200); }
.wb-dark .wb-topbar__title, .wb-dark .wb-topbar__burger, .wb-dark .wb-field > label, .wb-dark .wb-fieldset legend, .wb-dark .wb-choice__item strong, .wb-dark .wb-stat strong, .wb-dark .wb-plan__price strong, .wb-dark .wb-campaign__nums b, .wb-dark .wb-qr__status, .wb-dark .wb-copy label, .wb-dark .wb-dropzone p, .wb-dark .wb-details summary, .wb-dark .wb-user__btn { color: #e8eefb; }
.wb-dark .wb-form input[type="text"], .wb-dark .wb-form input[type="email"], .wb-dark .wb-form input[type="url"], .wb-dark .wb-form input[type="tel"], .wb-dark .wb-form input[type="password"], .wb-dark .wb-form input[type="number"], .wb-dark .wb-form input[type="search"], .wb-dark .wb-form input[type="datetime-local"], .wb-dark .wb-form input:not([type]), .wb-dark .wb-form select, .wb-dark .wb-form textarea, .wb-dark .wb-toolbar select, .wb-dark .wb-bulk select, .wb-dark .wb-chats select, .wb-dark .wb-chats__composer textarea, .wb-dark .wb-copy__row input { background: #0d1729; border-color: var(--gray-300); color: var(--ink); }
.wb-dark .wb-form input[readonly] { background: #101a2e; }
.wb-dark .wb-btn--ghost, .wb-dark .wb-btn--outline, .wb-dark .wb-btn--danger { background: #111c33; }
.wb-dark .wb-btn--ghost { color: var(--gray-700); }
.wb-dark .wb-btn--danger { border-color: rgba(248, 113, 113, .4); }
.wb-dark code { background: #19263f; color: #9cc0ff; }
.wb-dark .wb-tabs-inline a.is-active, .wb-dark .wb-switch button.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.wb-dark .wb-switch button { color: var(--gray-700); }
.wb-dark .wb-table tbody tr:hover td { background: #131f37; }
.wb-dark .wb-alert--good { color: #7ee2a8; border-color: rgba(52, 209, 122, .3); }
.wb-dark .wb-alert--bad { color: #fca5a5; border-color: rgba(248, 113, 113, .3); }
.wb-dark .wb-alert--warn { color: #f5c97a; border-color: rgba(242, 177, 74, .3); }
.wb-dark .wb-alert--info { color: #a9c3ff; border-color: rgba(122, 165, 255, .3); }
.wb-dark .wb-result.is-good { color: #7ee2a8; }
.wb-dark .wb-result.is-bad { color: #fca5a5; }
.wb-dark .wb-empty__icon, .wb-dark .wb-stat__icon--blue, .wb-dark .wb-stat__icon--cyan, .wb-dark .wb-stat__icon--violet, .wb-dark .wb-stat__icon--navy, .wb-dark .wb-stat__icon--orange { background: #172a52; }
.wb-dark .wb-stat__icon--navy { color: #9cc0ff; }
.wb-dark .wb-list__icon, .wb-dark .wb-instance__icon.is-online { background: rgba(37, 211, 102, .14); }
.wb-dark .wb-chats__thread, .wb-dark .wb-wa-preview { background-color: #0c1628; background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px); }
.wb-dark .wb-msg--in { background: #19263f; color: var(--ink); }
.wb-dark .wb-msg--out, .wb-dark .wb-wa-preview .wb-bubble, .wb-dark .wb-tpl__body { background: #12452f; color: #e3f6ea; }
.wb-dark .wb-msg time, .wb-dark .wb-wa-preview .wb-bubble time { color: #8fb5a1; }
.wb-dark .wb-msg--failed { background: #4a1d24; }
.wb-dark .wb-modal { background: rgba(0, 0, 0, .6); }
.wb-dark .wb-pay-summary { background: #131f37; border-color: var(--gray-200); }
.wb-dark .wb-instance__meta { background: #0f182c; }
.wb-dark .wb-campaign__msg { background: #0f182c; color: var(--gray-700); }
.wb-dark .wb-chart__tip { background: #000; }
.wb-dark .wb-progress::before { box-shadow: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1280px) {
	.wb-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
	.wb-grid--main, .wb-grid--send { grid-template-columns: 1fr; }
	.wb-preview-card { position: static; }
	.wb-onboard__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.wb-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
	[dir="rtl"] .wb-sidebar { transform: translateX(100%); }
	.wb-sidebar.is-open { transform: none; }
	.wb-sidebar__close { display: inline-flex; }
	.wb-sidebar-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(4, 14, 36, .5); z-index: 55; }
	.wb-app__main { margin-inline-start: 0; }
	.wb-topbar { padding: 0 16px; }
	.wb-topbar__burger { display: inline-flex; }
	.wb-user__meta { display: none; }
	.wb-app__content { padding: 18px 16px; }
	.wb-grid--half, .wb-grid--side { grid-template-columns: 1fr; }
	.wb-groups { position: static; }
	.wb-auth { grid-template-columns: 1fr; }
	.wb-auth__brand { display: none; }
	.wb-chats { grid-template-columns: 1fr; height: calc(100vh - 66px - 36px); }
	.wb-chats.is-thread .wb-chats__list { display: none; }
	.wb-chats:not(.is-thread) .wb-chats__thread { display: none; }
	.wb-chats__back { display: inline-flex; }
}
@media (max-width: 680px) {
	.wb-stats, .wb-stats--4 { grid-template-columns: repeat(2, 1fr); }
	.wb-grid-2, .wb-grid-4, .wb-checks--grid, .wb-choice--row { grid-template-columns: 1fr; }
	.wb-hide-sm { display: none; }
	.wb-instances, .wb-campaigns { grid-template-columns: 1fr; }
	.wb-lang--app span, .wb-topbar__icon { display: none; }
	.wb-page-head h1 { font-size: 21px; }
	.wb-rule--row { grid-template-columns: 1fr auto; }
	.wb-rule--row textarea { grid-column: 1 / -1; grid-row: 2; }
	.wb-auth__main { padding: 18px 20px 30px; }
	.wb-onboard__steps { grid-template-columns: 1fr; }
	.wb-onboard__head { flex-direction: column; align-items: flex-start; }
	.wb-chats__instance { width: 110px !important; }
	.wb-modal { padding-top: 16px; }
}
