/* ══════════════════════════════════════════════════════
   WAB DASHBOARD — Acronic Premium Design v3.0.1
   Full structural redesign matching acronic.club aesthetic
══════════════════════════════════════════════════════ */

/* ── Full-width breakout — strip all Divi / theme constraints ── */
.et_pb_section:has(.wab-dash),
.et_pb_section:has(.wab-auth-wall) { padding: 0 !important; overflow: visible !important; }

.et_pb_row:has(.wab-dash),
.et_pb_row:has(.wab-auth-wall) { padding: 0 !important; margin: 0 !important; max-width: 100% !important; width: 100% !important; overflow: visible !important; }

.et_pb_column:has(.wab-dash),
.et_pb_column:has(.wab-auth-wall),
.et_pb_module:has(.wab-dash),
.et_pb_module:has(.wab-auth-wall),
.et_pb_text_inner:has(.wab-dash),
.et_pb_text_inner:has(.wab-auth-wall),
.entry-content:has(.wab-dash),
.entry-content:has(.wab-auth-wall),
.post-content:has(.wab-dash),
.post-content:has(.wab-auth-wall),
.page-content:has(.wab-dash),
.page-content:has(.wab-auth-wall) { padding: 0 !important; margin: 0 !important; max-width: 100% !important; width: 100% !important; overflow: visible !important; }

/* Dashboard — fills full width within its container */
.wab-dash { width: 100% !important; max-width: 100% !important; box-sizing: border-box; margin: 0 !important; }

/* Auth wall — true viewport-width breakout so the split layout always shows */
.wab-auth-wall {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* ── Design tokens ───────────────────────────────────── */
.wab-dash, .wab-auth-wall, .auth-layout {
    --blue:       #1a56db;
    --blue-2:     #2979ff;
    --cyan:       #06b6d4;
    --navy:       #0a1628;
    --navy-2:     #0d1f3c;
    --navy-3:     #162036;
    --grad:       linear-gradient(135deg, #1a56db 0%, #06b6d4 100%);
    --grad-rev:   linear-gradient(135deg, #06b6d4 0%, #1a56db 100%);
    --grad-purple: linear-gradient(135deg, #6c3fb5 0%, #1a56db 100%);
    --bg:         #eef2ff;
    --surface:    #ffffff;
    --border:     #dde8ff;
    --text:       #0a1628;
    --muted:      #5b6e90;
    --green:      #10b981;
    --green-wa:   #25D366;
    --red:        #ef4444;
    --purple:     #7c3aed;
    --shadow-sm:  0 2px 8px rgba(26,86,219,.08);
    --shadow:     0 4px 20px rgba(26,86,219,.13);
    --shadow-lg:  0 8px 40px rgba(26,86,219,.22);
    --radius:     16px;
    --radius-lg:  24px;
    --radius-btn: 50px;
    font-family: inherit;
}

/* ── Root layout ────────────────────────────────────── */
.wab-dash {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg);
    color: var(--text);
}

/* ══════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════ */
.wab-sidebar {
    width: 272px;
    min-width: 272px;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

/* ── Sidebar user block (top of sidebar) ────────────── */
.wab-sb-user-block {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}

.wab-su-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(26,86,219,.35);
}
.wab-su-info { overflow: hidden; flex: 1; min-width: 0; }
.wab-su-info strong {
    display: block;
    font-size: .88rem;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wab-su-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    color: rgba(255,255,255,.45);
    margin-top: 2px;
}
.wab-su-status.connected { color: var(--green-wa); }

/* ── Nav ────────────────────────────────────────────── */
.wab-sidebar-nav {
    flex: 1;
    padding: 14px 12px;
    background-image: radial-gradient(circle at 1px 1px, rgba(41,121,255,.12) 1px, transparent 0);
    background-size: 28px 28px;
}

.wab-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255,255,255,.5);
    font-size: .86rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    margin-bottom: 3px;
    position: relative;
}
.wab-nav-item:hover {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.85);
}
.wab-nav-item.active {
    background: linear-gradient(90deg, rgba(26,86,219,.3), rgba(6,182,212,.15));
    color: #fff;
    font-weight: 600;
}

/* Circle icon background */
.wab-nav-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,.07);
    transition: all .2s;
}
.wab-nav-item:hover .wab-nav-icon-wrap {
    background: rgba(255,255,255,.12);
}
.wab-nav-item.active .wab-nav-icon-wrap {
    background: var(--grad);
    box-shadow: 0 3px 12px rgba(26,86,219,.5);
}
.wab-nav-icon-wrap svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}
.wab-nav-item.active .wab-nav-icon-wrap svg {
    stroke: #fff;
}

/* Active indicator bar (right side) */
.wab-nav-indicator {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    background: var(--grad);
    border-radius: 3px 0 0 3px;
}

/* ── Sidebar footer ─────────────────────────────────── */
.wab-sidebar-footer {
    padding: 14px 16px 18px;
    border-top: 1px solid rgba(255,255,255,.07);
    background-image: radial-gradient(circle at 1px 1px, rgba(41,121,255,.1) 1px, transparent 0);
    background-size: 28px 28px;
}

.wab-sb-phone-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(37,211,102,.12);
    border: 1px solid rgba(37,211,102,.25);
    color: #25D366;
    font-size: .75rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    word-break: break-all;
}

.wab-report-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 5px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: rgba(255,255,255,.4);
    font-size: .78rem;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    text-align: left;
    box-sizing: border-box;
}
.wab-report-btn:hover { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #ef4444; }
.wab-report-btn svg { stroke: currentColor; flex-shrink: 0; }

.wab-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.3);
    font-size: .78rem;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 8px;
    transition: all .2s;
    margin-top: 4px;
    width: 100%;
    box-sizing: border-box;
}
.wab-logout-btn svg { width:14px; height:14px; stroke:currentColor; flex-shrink:0; }
.wab-logout-btn:hover { color: #ef4444; background: rgba(239,68,68,.1); }

/* ══════════════════════════════════════════════════════
   MAIN AREA
══════════════════════════════════════════════════════ */
.wab-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.wab-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 62px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}
.wab-topbar-left { display: flex; align-items: center; gap: 0; }
.wab-topbar-title { font-size: .97rem; font-weight: 700; color: var(--text); }
.wab-topbar-right { display: flex; align-items: center; gap: 10px; }

.wab-badge-connected {
    display: flex; align-items: center; gap: 6px;
    background: var(--grad);
    color: #fff;
    font-size: .76rem; font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(26,86,219,.3);
}
.wab-badge-disconnected {
    display: flex; align-items: center; gap: 6px;
    background: rgba(91,110,144,.1);
    color: var(--muted);
    font-size: .76rem; font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
}
.wab-content { padding: 28px 32px; flex: 1; }

/* ── Dot pulse ──────────────────────────────────────── */
.wab-dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; flex-shrink: 0; display: inline-block; }
.wab-dot.online { background: var(--green-wa); box-shadow: 0 0 0 3px rgba(37,211,102,.25); animation: dotpulse 2s infinite; }
@keyframes dotpulse { 0%,100%{box-shadow:0 0 0 3px rgba(37,211,102,.25)}50%{box-shadow:0 0 0 6px rgba(37,211,102,.1)} }

/* ── Spinner ────────────────────────────────────────── */
.wab-spinner {
    width: 18px; height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════
   CONNECT TAB — HERO BANNER
══════════════════════════════════════════════════════ */
.wab-connect-hero {
    position: relative;
    background: linear-gradient(125deg, #0d1f3c 0%, #1a56db 45%, #06b6d4 100%);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(26,86,219,.3);
}

/* Animated dot-grid overlay */
.wab-connect-hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.1) 1px, transparent 0);
    background-size: 26px 26px;
    pointer-events: none;
    animation: dotshift 18s linear infinite;
}
@keyframes dotshift {
    0% { background-position: 0 0; }
    100% { background-position: 52px 52px; }
}

/* Glow orb behind content */
.wab-connect-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(6,182,212,.3) 0%, transparent 70%);
    pointer-events: none;
}
.wab-connect-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: 20%;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(26,86,219,.25) 0%, transparent 70%);
    pointer-events: none;
}

.wab-connect-hero-body {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.wab-connect-hero-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2);
}
.wab-connect-hero-icon svg {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 0 12px rgba(255,255,255,.3));
}

.wab-connect-hero-text h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.wab-connect-hero-text p {
    font-size: .9rem;
    color: rgba(255,255,255,.72);
    margin: 0;
    line-height: 1.6;
    max-width: 420px;
}

.wab-connect-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37,211,102,.18);
    border: 1px solid rgba(37,211,102,.35);
    color: #4ade80;
    font-size: .78rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    margin-top: 18px;
    backdrop-filter: blur(6px);
}

/* ══════════════════════════════════════════════════════
   CONNECT GRID (QR + Steps)
══════════════════════════════════════════════════════ */
.wab-connect-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}

/* ── QR Card ───────────────────────────────────────── */
.wab-qr-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
}
/* Top gradient bar */
.wab-qr-card::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--grad);
}

.wab-qr-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 14px;
    border-bottom: 1px solid #f0f4ff;
    background: linear-gradient(90deg, rgba(26,86,219,.03), transparent);
}
.wab-qr-card-label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--blue);
}

.wab-qr-card-body {
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

/* ── QR States (start / loading / qr / connected / error) ── */
.wab-qr-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: center;
}
.wab-qr-state p {
    color: var(--muted);
    font-size: .875rem;
    margin: 0;
    line-height: 1.5;
}

/* Start state — placeholder QR grid */
.wab-qr-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26,86,219,.04), rgba(6,182,212,.02));
    position: relative;
    overflow: hidden;
}
.wab-qr-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(26,86,219,.04) 100%);
}

.wab-qr-grid-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 20px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
.wab-qr-grid-demo div {
    border-radius: 6px;
    background: rgba(26,86,219,.12);
    aspect-ratio: 1;
}
.wab-qr-center {
    border-radius: 6px !important;
    background: rgba(26,86,219,.25) !important;
    position: relative;
}
.wab-qr-center::after {
    content: '';
    position: absolute;
    inset: 25%;
    background: var(--blue);
    border-radius: 2px;
    opacity: .7;
}

/* ── Loading Orb ────────────────────────────────────── */
.wab-loading-orb {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wab-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid transparent;
    border-top-color: var(--blue);
    border-right-color: rgba(26,86,219,.3);
    animation: orbspin 1.2s linear infinite;
}
.wab-orb-ring-2 {
    inset: 14px;
    border-top-color: var(--cyan);
    border-right-color: rgba(6,182,212,.3);
    animation: orbspin 0.9s linear infinite reverse;
}
@keyframes orbspin { to { transform: rotate(360deg); } }

.wab-loading-orb svg {
    position: relative;
    z-index: 1;
    stroke: var(--blue);
    filter: drop-shadow(0 0 8px rgba(26,86,219,.4));
}

.wab-loading-text {
    color: var(--muted) !important;
    font-size: .85rem !important;
    font-weight: 500;
}

/* ── QR Frame (decorative corners) ─────────────────── */
.wab-qr-frame {
    position: relative;
    display: inline-flex;
    padding: 14px;
}

.wab-qr-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--blue);
    border-style: solid;
    border-width: 0;
}
.wab-qr-corner-tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-radius: 4px 0 0 0; }
.wab-qr-corner-tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 4px 0 0; }
.wab-qr-corner-bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 4px; }
.wab-qr-corner-br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 4px 0; }

/* Animate corners on appear */
.wab-qr-corner { animation: cornerPulse 3s ease-in-out infinite; }
.wab-qr-corner-tr { animation-delay: .75s; }
.wab-qr-corner-bl { animation-delay: 1.5s; }
.wab-qr-corner-br { animation-delay: 2.25s; }
@keyframes cornerPulse {
    0%, 100% { border-color: var(--blue); opacity: 1; }
    50% { border-color: var(--cyan); opacity: .7; }
}

.wab-qr-img {
    width: 220px;
    height: 220px;
    display: block;
    border-radius: 10px;
    background: #fff;
}

.wab-qr-timer-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
}
.wab-qr-timer-bar svg { stroke: var(--muted); flex-shrink: 0; }
.wab-qr-timer-bar strong { color: var(--blue); }

/* ── Connected State ────────────────────────────────── */
.wab-qr-connected { gap: 12px; }

.wab-connected-badge {
    position: relative;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wab-connected-check {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #25D366);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,.4);
    position: relative;
    z-index: 1;
    animation: connectedPop .4s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes connectedPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.wab-connected-check svg { stroke: #fff; }

.wab-connected-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,.5);
    animation: connectedRing 2s ease-out infinite;
}
@keyframes connectedRing {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(2); opacity: 0; }
}

.wab-qr-connected h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--green-wa);
    margin: 4px 0 0;
}

.wab-phone-display {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: .02em;
    margin: 0;
}

/* ── Error State ────────────────────────────────────── */
.wab-error-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(239,68,68,.1);
    border: 2px solid rgba(239,68,68,.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wab-error-icon svg { stroke: var(--red); }

/* ══════════════════════════════════════════════════════
   STEPS CARD
══════════════════════════════════════════════════════ */
.wab-steps-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.wab-steps-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.wab-steps-card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f4ff;
    background: linear-gradient(90deg, rgba(6,182,212,.04), transparent);
}
.wab-steps-card-header h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px;
}
.wab-steps-card-header p {
    font-size: .8rem;
    color: var(--muted);
    margin: 0;
}

.wab-steps-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wab-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f0f4ff;
    position: relative;
}
.wab-step:last-child { border-bottom: none; }

/* Vertical line connecting steps */
.wab-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 52px;
    bottom: -16px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(26,86,219,.2), transparent);
}

.wab-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(26,86,219,.4);
    position: relative;
    z-index: 1;
}

.wab-step-body { flex: 1; min-width: 0; }
.wab-step-body strong {
    display: block;
    font-size: .88rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 4px;
}
.wab-step-body p {
    font-size: .8rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}
.wab-step-body em {
    font-style: normal;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1px 7px;
    border-radius: 4px;
    font-size: .76rem;
    color: var(--blue);
    font-weight: 500;
}

.wab-info-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 24px 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(26,86,219,.07), rgba(6,182,212,.04));
    border: 1px solid rgba(26,86,219,.15);
    border-radius: 10px;
    font-size: .8rem;
    color: var(--blue);
    font-weight: 500;
}
.wab-info-chip svg { stroke: var(--blue); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   PANELS (settings, integrations, etc.)
══════════════════════════════════════════════════════ */
.wab-panel {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.wab-panel::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--grad);
}
.wab-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f4ff;
}
.wab-panel-header h3 { font-size: .95rem; font-weight: 700; margin: 0; color: var(--text); display:flex; align-items:center; gap:8px; }
.wab-panel-header h3 svg { width:16px; height:16px; stroke: var(--blue); flex-shrink:0; }
.wab-panel-badge {
    background: linear-gradient(135deg, rgba(26,86,219,.1), rgba(6,182,212,.08));
    color: var(--blue);
    font-size: .72rem; font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(26,86,219,.15);
}
.wab-panel-body { padding: 24px; }
.wab-panel-desc { padding: 0 24px 4px; color: var(--muted); font-size: .87rem; }

/* ══════════════════════════════════════════════════════
   SETTINGS FORMS
══════════════════════════════════════════════════════ */
.wab-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wab-panel-full { grid-column: 1 / -1; }

.wab-field { margin-bottom: 18px; }
.wab-field:last-child { margin-bottom: 0; }
.wab-field label {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .78rem; font-weight: 600; color: var(--muted);
    margin-bottom: 6px; letter-spacing: .03em; text-transform: uppercase;
}
.wab-field small { font-size: .74rem; color: #94a3b8; display: block; margin-top: 4px; }

.wab-input, .wab-select, .wab-textarea {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px; font-size: .9rem;
    font-family: inherit; color: var(--text);
    background: #f8faff; box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.wab-input:focus, .wab-select:focus, .wab-textarea:focus {
    outline: none; border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
    background: #fff;
}
.wab-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.wab-textarea-lg { min-height: 180px; font-size: .88rem; }

.wab-prompt-tips { margin-top: 8px; }
.wab-tip { font-size: .76rem; color: var(--muted); display:flex; align-items:center; gap:4px; }
.wab-tip svg { width:12px; height:12px; stroke: var(--muted); flex-shrink:0; }
.wab-tip code { background: var(--bg); padding: 1px 6px; border-radius: 4px; font-size: .74rem; color: var(--blue); border: 1px solid var(--border); }

/* Toggle switch */
.wab-field-toggle { flex-direction: row; align-items: center; justify-content: space-between; display: flex; }
.wab-field-toggle label:first-child { margin-bottom: 0; }
.wab-toggle-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.wab-toggle-switch input { display: none; }
.wab-switch {
    width: 44px; height: 24px; background: #dde8ff;
    border-radius: 12px; position: relative;
    transition: background .2s; flex-shrink: 0;
}
.wab-switch::after {
    content: ''; position: absolute;
    width: 18px; height: 18px; background: #fff;
    border-radius: 50%; top: 3px; left: 3px;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.wab-toggle-switch input:checked + .wab-switch { background: var(--grad); }
.wab-toggle-switch input:checked + .wab-switch::after { transform: translateX(20px); }
.wab-switch-label { font-size: .85rem; color: var(--muted); }

/* Sliders */
.wab-sliders-row { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
input[type="range"] { width: 100%; accent-color: var(--blue); }
.wab-range-labels { display: flex; justify-content: space-between; font-size: .7rem; color: #94a3b8; margin-top: 3px; }

/* Save bar */
.wab-save-bar {
    display: flex; align-items: center; justify-content: flex-end; gap: 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 16px 32px; margin: 0 -32px -28px;
    position: sticky; bottom: 0; z-index: 40;
    box-shadow: 0 -4px 20px rgba(26,86,219,.06);
}
#wab-u-save-msg { font-size: .88rem; font-weight: 600; }

/* ══════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════ */
.wab-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-bottom: 24px;
}

.wab-stat-card {
    border-radius: var(--radius);
    padding: 28px 22px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.wab-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Decorative circle top-right */
.wab-stat-card::before {
    content: '';
    position: absolute;
    top: -28px; right: -28px;
    width: 110px; height: 110px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
}
.wab-stat-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -20px;
    width: 90px; height: 90px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}

/* Color variants */
.wab-stat-blue  { background: linear-gradient(135deg, #1a56db 0%, #2979ff 100%); }
.wab-stat-purple { background: linear-gradient(135deg, #6c3fb5 0%, #1a56db 100%); }
.wab-stat-cyan   { background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); }
.wab-stat-dark   { background: linear-gradient(135deg, #0a1628 0%, #162036 100%); }

.wab-stat-icon {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}
.wab-stat-icon svg { stroke: rgba(255,255,255,.85); }
.wab-stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.wab-stat-label {
    font-size: .78rem;
    color: rgba(255,255,255,.65);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════════════
   CONVERSATIONS / CHATS
══════════════════════════════════════════════════════ */
.wab-chats-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    height: calc(100vh - 140px);
    min-height: 500px;
}
.wab-contacts-panel { display: flex; flex-direction: column; overflow: hidden; }
.wab-contacts-panel .wab-panel-header { flex-shrink: 0; }
#wab-u-convs-wrap { overflow-y: auto; flex: 1; }

.wab-contact-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 18px; cursor: pointer;
    border-bottom: 1px solid #f0f4ff;
    transition: background .15s;
}
.wab-contact-item:hover { background: #f4f7ff; }
.wab-contact-item.active { background: linear-gradient(90deg,rgba(26,86,219,.08),rgba(6,182,212,.04)); border-left: 3px solid var(--blue); padding-left: 15px; }
.wab-contact-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--grad);
    color: #fff; font-size: .85rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wab-contact-info { flex: 1; min-width: 0; }
.wab-contact-row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.wab-contact-name { font-size: .88rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.wab-contact-time { font-size: .7rem; color: #94a3b8; white-space: nowrap; flex-shrink: 0; }
.wab-contact-row2 { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; }
.wab-contact-phone { font-size: .76rem; color: var(--muted); }
.wab-contact-badge { font-size: .68rem; background: linear-gradient(135deg,rgba(26,86,219,.12),rgba(6,182,212,.08)); color: var(--blue); padding: 2px 8px; border-radius: 20px; font-weight: 700; white-space: nowrap; flex-shrink: 0; border: 1px solid rgba(26,86,219,.15); }

.wab-chat-viewer { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.wab-chat-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; color: #c7d7f0; gap: 12px;
}
.wab-chat-empty svg { width: 56px; height: 56px; stroke: #c7d7f0; }
.wab-chat-empty p { font-size: .9rem; color: #94a3b8; }
#wab-chat-detail { display: none; flex-direction: column; height: 100%; }
.wab-chat-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f4ff; flex-shrink: 0;
    background: linear-gradient(90deg,rgba(26,86,219,.04),transparent);
}
.wab-chat-header-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--grad); color: #fff;
    font-size: .85rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wab-chat-header-info strong { display: block; font-size: .93rem; font-weight: 700; color: var(--text); }
.wab-chat-header-info span { font-size: .76rem; color: var(--muted); }
.wab-chat-messages {
    flex: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 10px;
    background: linear-gradient(180deg,#f4f7ff,#eef2ff);
}
.wab-chat-loading { display: flex; justify-content: center; padding: 40px; }

.wab-msg { display: flex; }
.wab-msg-user { justify-content: flex-end; }
.wab-msg-bot  { justify-content: flex-start; }
.wab-msg-bubble {
    max-width: 72%; padding: 10px 14px;
    border-radius: 16px; font-size: .875rem;
    line-height: 1.5; position: relative;
    white-space: pre-wrap; word-break: break-word;
}
.wab-msg-user .wab-msg-bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.wab-msg-bot .wab-msg-bubble { background: #fff; color: var(--text); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.wab-msg-time { display: block; font-size: .66rem; margin-top: 4px; text-align: right; opacity: .7; }

.wab-loading-row { display: flex; align-items: center; gap: 10px; padding: 28px 24px; color: var(--muted); font-size: .88rem; }

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.wab-btn svg { width:14px; height:14px; stroke:currentColor; flex-shrink:0; vertical-align:middle; }
.wab-btn-lg svg { width:16px; height:16px; }
.wab-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 7px; padding: 10px 22px;
    border-radius: var(--radius-btn);
    font-size: .88rem; font-weight: 600; cursor: pointer;
    border: 2px solid transparent; text-decoration: none;
    transition: all .25s; font-family: inherit;
    line-height: 1; white-space: nowrap;
}
.wab-btn-primary {
    background: var(--grad);
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 16px rgba(26,86,219,.35);
}
.wab-btn-primary:hover { background: linear-gradient(135deg,#0d40b0,#0598b5); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,86,219,.45); }
.wab-btn-lg { padding: 13px 30px; font-size: .95rem; }
.wab-btn-sm { padding: 6px 16px; font-size: .8rem; }
.wab-btn-ghost { background: transparent; color: var(--blue); border-color: var(--border); }
.wab-btn-ghost:hover { border-color: var(--blue); background: rgba(26,86,219,.06); }
.wab-btn-danger { background: transparent; color: var(--red); border-color: rgba(239,68,68,.3); }
.wab-btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.wab-btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════════
   TABLE
══════════════════════════════════════════════════════ */
.wab-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.wab-table th {
    background: linear-gradient(90deg,rgba(26,86,219,.06),rgba(6,182,212,.03));
    color: var(--blue); font-weight: 700; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 10px 20px; text-align: left;
    border-bottom: 1px solid var(--border);
}
.wab-table td { padding: 11px 20px; border-bottom: 1px solid #f0f4ff; color: var(--text); }
.wab-table tr:last-child td { border-bottom: none; }
.wab-table tr:hover td { background: #f4f7ff; }

/* ══════════════════════════════════════════════════════
   INTEGRATIONS
══════════════════════════════════════════════════════ */
.wab-int-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wab-int-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; min-width: 80px; }
.wab-int-value { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.wab-int-value code { font-family: monospace; font-size: .78rem; background: var(--bg); padding: 4px 8px; border-radius: 6px; color: var(--blue); border: 1px solid var(--border); word-break: break-all; }
.wab-int-settings-table { width: 100%; border-collapse: collapse; }
.wab-int-settings-table td { padding: 12px 0; border-bottom: 1px solid #f0f4ff; vertical-align: middle; font-size: .88rem; color: var(--text); }
.wab-int-settings-table td:first-child { font-weight: 600; padding-right: 24px; width: 160px; color: var(--muted); }
.wab-int-settings-table tr:last-child td { border-bottom: none; }
.wab-int-guide { margin-top: 14px; padding: 12px 16px; background: linear-gradient(135deg,rgba(26,86,219,.06),rgba(6,182,212,.04)); border: 1px solid rgba(26,86,219,.15); border-radius: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════ */
.wab-modal-overlay { position: fixed; inset: 0; background: rgba(10,22,40,.6); z-index: 99998; backdrop-filter: blur(3px); }
.wab-modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%; max-width: 520px;
    z-index: 99999;
    box-shadow: 0 24px 64px rgba(10,22,40,.35);
    overflow: hidden;
    border-top: 4px solid transparent;
    border-image: var(--grad) 1;
}
.wab-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px; border-bottom: 1px solid #f0f4ff;
    background: linear-gradient(90deg,rgba(26,86,219,.04),transparent);
}
.wab-modal-header h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.wab-modal-header h3 svg { stroke: var(--red); }
.wab-modal-close { background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; display: flex; align-items: center; transition: all .15s; }
.wab-modal-close:hover { background: var(--bg); color: var(--text); }
.wab-modal-body { padding: 20px 24px; }
.wab-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid #f0f4ff; background: var(--bg); }

.wab-report-types { display: flex; gap: 8px; flex-wrap: wrap; }
.wab-type-opt {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border: 2px solid var(--border);
    border-radius: 20px; cursor: pointer; font-size: .83rem;
    color: var(--muted); transition: all .15s; user-select: none;
}
.wab-type-opt input[type="radio"] { display: none; }
.wab-type-opt:hover { border-color: rgba(26,86,219,.35); color: var(--blue); }
.wab-type-opt.active { border-color: var(--blue); background: linear-gradient(135deg,rgba(26,86,219,.1),rgba(6,182,212,.07)); color: var(--blue); font-weight: 700; }

/* ══════════════════════════════════════════════════════
   AUTH WALL — Split layout redesign
══════════════════════════════════════════════════════ */
.wab-auth-wall {
    min-height: 100vh;
    display: grid !important;
    grid-template-columns: 45% 55%;
    background: var(--navy);
    overflow: hidden;
}

/* ── Left panel ──────────────────────────────────── */
.wab-auth-left {
    position: relative;
    background: linear-gradient(150deg, #0a1628 0%, #1a56db 55%, #06b6d4 120%);
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-height: 100vh;
}
.wab-auth-left-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.1) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    animation: dotshift 20s linear infinite;
}
.wab-auth-left-glow {
    position: absolute; top: -80px; right: -80px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(6,182,212,.35) 0%, transparent 70%);
    pointer-events: none;
}

.wab-auth-brand {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 52px;
    position: relative; z-index: 1;
}
.wab-auth-brand-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}
.wab-auth-brand-icon svg { stroke: #fff; }
.wab-auth-brand-name { font-size: 1.05rem; font-weight: 800; color: #fff; display: block; }
.wab-auth-brand-sub  { font-size: .72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; display: block; margin-top: 2px; }

.wab-auth-left-headline {
    position: relative; z-index: 1; margin-bottom: 40px;
}
.wab-auth-left-headline h1 {
    font-size: 2.4rem; font-weight: 900; color: #fff;
    margin: 0 0 16px; line-height: 1.15; letter-spacing: -.02em;
}
.wab-auth-left-headline h1 span {
    background: linear-gradient(90deg, #fff 0%, rgba(6,182,212,.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.wab-auth-left-headline p { color: rgba(255,255,255,.65); font-size: .95rem; margin: 0; line-height: 1.6; max-width: 340px; }

.wab-auth-features {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 16px;
    position: relative; z-index: 1;
}
.wab-auth-features li {
    display: flex; align-items: flex-start; gap: 14px;
}
.wab-af-icon {
    width: 32px; height: 32px; border-radius: 9px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.wab-af-icon svg { stroke: #fff; }
.wab-auth-features li strong { display: block; color: #fff; font-size: .88rem; font-weight: 700; }
.wab-auth-features li span   { display: block; color: rgba(255,255,255,.5); font-size: .78rem; margin-top: 1px; }

/* ── Right panel ──────────────────────────────────── */
.wab-auth-right {
    background: #f4f7ff;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 48px 52px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Tab switcher */
.wab-auth-tabs {
    display: flex;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
    position: relative;
    gap: 0;
}
.wab-auth-tab {
    flex: 1; padding: 10px; background: none; border: none;
    border-radius: 9px; font-size: .88rem; font-weight: 600;
    color: var(--muted); cursor: pointer; transition: color .2s;
    font-family: inherit; position: relative; z-index: 1;
}
.wab-auth-tab.active { color: var(--blue); }
.wab-auth-tab-ink {
    position: absolute; top: 4px; bottom: 4px;
    background: linear-gradient(135deg, rgba(26,86,219,.12), rgba(6,182,212,.08));
    border: 1px solid rgba(26,86,219,.2);
    border-radius: 9px; transition: left .25s cubic-bezier(.4,0,.2,1), width .25s cubic-bezier(.4,0,.2,1);
    z-index: 0;
}

/* Form area */
.wab-auth-form-wrap { max-width: 480px; }

.wab-auth-alert { padding: 12px 16px; border-radius: 10px; font-size: .875rem; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.wab-auth-alert-error   { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.wab-auth-alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* Input with icon */
.wab-input-icon-wrap { position: relative; }
.wab-input-icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    stroke: #94a3b8; pointer-events: none; flex-shrink: 0;
}
.wab-input-has-icon { padding-left: 40px !important; }
.wab-pass-eye {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 2px;
    color: #94a3b8; display: flex; align-items: center; line-height: 1;
    transition: color .15s;
}
.wab-pass-eye:hover { color: var(--blue); }
.wab-pass-eye svg { stroke: currentColor; }

/* Auth row (remember + forgot) */
.wab-auth-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; gap: 10px; flex-wrap: wrap;
}
.wab-auth-remember { display: flex; align-items: center; gap: 7px; font-size: .855rem; color: var(--muted); cursor: pointer; }
.wab-auth-forgot { font-size: .835rem; color: var(--blue); font-weight: 500; text-decoration: none; }
.wab-auth-forgot:hover { text-decoration: underline; }

/* Required badge */
.wab-field-required {
    background: rgba(239,68,68,.1); color: var(--red);
    font-size: .68rem; font-weight: 700; padding: 2px 8px;
    border-radius: 10px; text-transform: none; letter-spacing: 0;
}

.wab-auth-terms { font-size: .76rem; color: #94a3b8; margin: 14px 0 0; text-align: center; }
.wab-auth-terms a { color: var(--blue); text-decoration: none; }

/* ── Responsive auth ──────────────────────────────── */
@media (max-width: 768px) {
    .wab-auth-wall { grid-template-columns: 1fr !important; }
    .wab-auth-left { min-height: auto; padding: 40px 28px; }
    .wab-auth-left-headline h1 { font-size: 1.8rem; }
    .wab-auth-right { padding: 36px 24px; min-height: auto; }
    .wab-auth-brand { margin-bottom: 32px; }
    .wab-auth-left-headline { margin-bottom: 28px; }
    .wab-auth-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ══════════════════════════════════════════════════════
   CONNECT ACTION BUTTONS (download / report)
══════════════════════════════════════════════════════ */
.wab-connect-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.wab-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    box-shadow: var(--shadow-sm);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
.wab-action-btn:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(26,86,219,.12);
    transform: translateY(-2px);
}
.wab-action-btn-report:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(239,68,68,.12);
}
.wab-action-btn-report:hover .wab-action-btn-icon {
    background: rgba(239,68,68,.1);
    color: var(--red);
}

.wab-action-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(26,86,219,.1), rgba(6,182,212,.06));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
    transition: all .2s;
}
.wab-action-btn:hover .wab-action-btn-icon {
    background: var(--grad);
    color: #fff;
}
.wab-action-btn-icon svg { stroke: currentColor; }

.wab-action-btn-text { overflow: hidden; }
.wab-action-btn-text strong {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wab-action-btn-text span {
    display: block;
    font-size: .74rem;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════
   BOTTOM NAV (mobile)
══════════════════════════════════════════════════════ */
.wab-bottom-nav {
    display: none; /* hidden on desktop */
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 200;
    box-shadow: 0 -4px 24px rgba(10,22,40,.35);
}

.wab-bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: rgba(255,255,255,.4);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .02em;
    position: relative;
    transition: color .2s;
}
.wab-bn-item.active { color: #fff; }
.wab-bn-item:hover { color: rgba(255,255,255,.75); }

.wab-bn-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background .2s;
}
.wab-bn-icon svg { width: 20px; height: 20px; stroke: currentColor; }
.wab-bn-item.active .wab-bn-icon {
    background: linear-gradient(135deg, rgba(26,86,219,.4), rgba(6,182,212,.3));
}

.wab-bn-label { line-height: 1; }

/* Active indicator dot at top of button */
.wab-bn-dot {
    position: absolute;
    top: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan);
}

/* ══════════════════════════════════════════════════════
   MISC
══════════════════════════════════════════════════════ */
.wab-empty { text-align: center; padding: 48px 20px; color: #94a3b8; font-size: .9rem; }
.wab-spinner {
    width: 18px; height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    flex-shrink: 0;
    display: inline-block;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .wab-connect-grid { grid-template-columns: 1fr; }
    .wab-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .wab-settings-grid { grid-template-columns: 1fr; }
    .wab-connect-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    /* Hide sidebar, show bottom nav instead */
    .wab-sidebar { display: none; }
    .wab-bottom-nav { display: flex; }

    /* Add padding so content doesn't hide behind bottom nav */
    .wab-main { padding-bottom: 64px; }
    .wab-content { padding: 20px 16px; }
    .wab-topbar { padding: 0 16px; }
    .wab-save-bar { padding: 14px 16px; margin: 0 -16px -20px; }
    .wab-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .wab-auth-wall-cards { max-width: 420px; }
    .wab-chats-layout { grid-template-columns: 1fr; height: auto; }
    .wab-chat-viewer { min-height: 400px; }
    .wab-fields-row { grid-template-columns: 1fr; }
    .wab-connect-hero { padding: 24px 20px; }
    .wab-connect-hero-body { flex-direction: column; gap: 16px; text-align: center; }
    .wab-connect-hero-text h2 { font-size: 1.2rem; }
    .wab-connect-actions { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .wab-stats-grid { grid-template-columns: 1fr 1fr; }
    .wab-connect-hero-icon { width: 64px; height: 64px; }
    .wab-connect-hero-icon svg { width: 38px; height: 38px; }
}
