/* =============================================================
   PA Notary Dashboard — Design v2.4
   Full-bleed hero · upgraded typography · linked notifications
   Compatible with template v1.2 class names
   ============================================================= */

/* ── WooCommerce / WPBakery layout overrides ─────────────────── */
.pandb-account-page .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.pandb-account-page .vc_column-inner,
.pandb-account-page .wpb_wrapper { padding: 0 !important; }
.pandb-full-width-escape { width: 100%; max-width: 100%; }

/* ── App Shell content container — strip padding & radius ────── */
/* The app shell wraps dashboard content in a white rounded card.
   We need to flatten it so the hero can bleed edge-to-edge.      */
.panas-app .woocommerce-MyAccount-content {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}
/* Strip border-radius from any card/wrapper the app shell renders */
.panas-app .pandb-full-width-escape,
.panas-app .pandb-full-width-escape > *:first-child,
.panas-app .panas-content-card,
.panas-app .panas-card,
.panas-app [class*="panas-content"] {
    border-radius: 0 !important;
    padding: 0 !important;
}
/* Ensure the dashboard itself has no stray top padding */
.panas-app .pandb-dashboard { padding: 0 !important; margin: 0 !important; }

/* ── Base reset ──────────────────────────────────────────────── */
:root {
    --pandb-red:    #CC0000;
    --pandb-dark:   #0f0f0f;
    --pandb-green:  #2e7d32;
    --pandb-gold:   #c8a84b;
    --pandb-radius: 10px;
}

.pandb-dashboard,
.pandb-dashboard * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.pandb-dashboard {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f6f6f6;
}

/* ── Topbar ──────────────────────────────────────────────────── */
.pandb-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 48px 0;
    background: #f6f6f6;
}
.pandb-topbar-user { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: inherit; }
.pandb-topbar-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--pandb-red); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pandb-topbar-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.pandb-topbar-tier { font-size: 10px; background: rgba(204,0,0,.1); color: var(--pandb-red); padding: 2px 8px; border-radius: 10px; display: inline-block; margin-top: 2px; }

/* ── HERO — full-bleed dark ──────────────────────────────────── */
.pandb-welcome-bar {
    background: var(--pandb-dark);
    background-image:
        linear-gradient(135deg, rgba(204,0,0,.18) 0%, transparent 55%),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
    border-bottom: 3px solid var(--pandb-red);
    border-radius: 0;
    padding: 52px 48px 40px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}
.pandb-welcome-bar::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 320px; height: 200px;
    background: radial-gradient(ellipse, rgba(204,0,0,.2) 0%, transparent 70%);
    pointer-events: none;
}
.pandb-welcome-bar::before {
    content: 'YOUR NEXT STEP';
    position: absolute;
    top: 24px; left: 48px;
    font-size: 10px; font-weight: 700;
    letter-spacing: 3px;
    color: var(--pandb-red);
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pandb-welcome-headline {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px !important;
    line-height: 1.15 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: none !important;
}
.pandb-welcome-body { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.7); margin: 0; max-width: 520px; }
.pandb-welcome-cta {
    flex-shrink: 0;
    background: var(--pandb-red);
    color: #fff !important;
    font-size: 15px; font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(204,0,0,.35);
    transition: background .2s, transform .15s;
    position: relative; z-index: 1;
}
.pandb-welcome-cta:hover { background: #aa0000; transform: translateY(-1px); text-decoration: none !important; }

/* ── Section labels ──────────────────────────────────────────── */
.pandb-section-lbl { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 20px; }
.pandb-bottom-lbl { margin-top: 0; padding: 24px 48px 0; background: #f6f6f6; }

/* ── Journey progress — white card ──────────────────────────── */
.pandb-progress-section { background: #ffffff; border-bottom: 1px solid #e8e8e8; padding: 26px 48px 28px; }

.pandb-progress-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
}
.pandb-progress-strip--3 { grid-template-columns: 1fr auto 1fr auto 1fr; }

.pandb-prog-step { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none !important; color: inherit; padding: 4px 6px; gap: 8px; }
.pandb-prog-step:hover .pandb-prog-num { transform: scale(1.08); }

.pandb-prog-num { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; flex-shrink: 0; transition: transform .15s; }
.pandb-prog-done .pandb-prog-num     { background: var(--pandb-green); color: #fff; }
.pandb-prog-active .pandb-prog-num   { background: var(--pandb-red); color: #fff; box-shadow: 0 0 0 4px rgba(204,0,0,.15); }
.pandb-prog-upcoming .pandb-prog-num { background: #ebebeb; color: #aaa; }

.pandb-prog-label { font-size: 13px; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
.pandb-prog-upcoming .pandb-prog-label { color: #aaa; }
.pandb-prog-sub { font-size: 11px; font-weight: 500; }
.pandb-prog-done .pandb-prog-sub     { color: var(--pandb-green); }
.pandb-prog-active .pandb-prog-sub   { color: var(--pandb-red); font-weight: 700; }
.pandb-prog-upcoming .pandb-prog-sub { color: #bbb; }

.pandb-prog-conn { flex: 0 0 24px; padding: 0; display: flex; align-items: center; margin-bottom: 30px; }
.pandb-prog-conn-line { height: 3px; width: 100%; border-radius: 2px; }
.pandb-conn-done     { background: var(--pandb-green); }
.pandb-conn-active   { background: linear-gradient(90deg, var(--pandb-green), var(--pandb-red)); }
.pandb-conn-upcoming { background: #e0e0e0; }

/* ── Self-report ─────────────────────────────────────────────── */
.pandb-self-report-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}
.pandb-self-report-wrap > div,
.pandb-self-report-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.pandb-self-report-btn { background: #0f0f0f; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; padding: 11px 20px; cursor: pointer; white-space: nowrap; transition: background .2s; }
.pandb-self-report-btn:hover    { background: var(--pandb-red); }
.pandb-self-report-btn:disabled { background: var(--pandb-green); cursor: default; }
.pandb-self-report-note    { font-size: 13px; color: #888; line-height: 1.4; }
.pandb-self-report-success { font-size: 14px; font-weight: 600; color: var(--pandb-green); }

/* ── Supplies prompt ─────────────────────────────────────────── */
.pandb-supplies { display: flex; align-items: center; gap: 16px; padding: 18px 48px; flex-wrap: wrap; }
.pandb-supplies--heads-up { background: #fffbf0; border-top: 1px solid #f0e8cc; border-bottom: 1px solid #f0e8cc; }
.pandb-supplies--celebrate { background: var(--pandb-dark); border-top: 3px solid var(--pandb-gold); }
.pandb-supplies-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pandb-supplies--heads-up .pandb-supplies-icon  { background: rgba(200,168,75,.12); }
.pandb-supplies--celebrate .pandb-supplies-icon { background: rgba(200,168,75,.15); }
.pandb-supplies-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pandb-supplies-title { font-size: 14px; font-weight: 700; }
.pandb-supplies--heads-up .pandb-supplies-title  { color: #5a4200; }
.pandb-supplies--celebrate .pandb-supplies-title { color: var(--pandb-gold); }
.pandb-supplies-text { font-size: 13px; line-height: 1.5; }
.pandb-supplies--heads-up .pandb-supplies-text  { color: #7a6030; }
.pandb-supplies--celebrate .pandb-supplies-text { color: rgba(255,255,255,.6); }
.pandb-supplies-cta { background: var(--pandb-gold); color: #3a2a00 !important; font-size: 13px; font-weight: 700; padding: 10px 20px; border-radius: 7px; text-decoration: none !important; white-space: nowrap; flex-shrink: 0; transition: opacity .15s; }
.pandb-supplies-cta:hover { opacity: .85; }

/* ── Bottom zone ─────────────────────────────────────────────── */
.pandb-bottom-zone { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; padding: 14px 48px 48px; background: #f6f6f6; }
.pandb-bottom-single { grid-template-columns: 1fr; }

/* Video */
.pandb-video-panel { background: #fff; border: 1px solid #e8e8e8; border-radius: var(--pandb-radius); overflow: hidden; }
.pandb-video-player { position: relative; background: #111; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.pandb-video-player iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.pandb-video-meta { padding: 16px 18px; }
.pandb-video-eyeline { font-size: 9px; font-weight: 700; color: var(--pandb-red); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.pandb-video-title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 3px; line-height: 1.3; }
.pandb-video-sub { font-size: 12px; color: #888; }

/* Feed / notifications */
.pandb-feed-panel { background: #fff; border: 1px solid #e8e8e8; border-radius: var(--pandb-radius); overflow: hidden; display: flex; flex-direction: column; }
.pandb-feed-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 12px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }
.pandb-feed-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #1a1a1a; }
.pandb-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pandb-green); flex-shrink: 0; animation: pandb-live-pulse 1.8s ease-in-out infinite; }
@keyframes pandb-live-pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.pandb-feed-count { font-size: 12px; color: #aaa; }

.pandb-feed-window { position: relative; flex: 1; overflow: hidden; min-height: 240px; max-height: 320px; }
.pandb-feed-window::before { content:''; position:absolute; top:0; left:0; right:0; height:28px; background:linear-gradient(to bottom,#fff,transparent); z-index:2; pointer-events:none; }
.pandb-feed-window::after  { content:''; position:absolute; bottom:0; left:0; right:0; height:28px; background:linear-gradient(to top,#fff,transparent); z-index:2; pointer-events:none; }
.pandb-feed-scroll { animation: pandb-scroll-up 28s linear infinite; }
.pandb-feed-scroll:hover { animation-play-state: paused; }
@keyframes pandb-scroll-up { 0%{transform:translateY(0);} 100%{transform:translateY(-50%);} }

.pandb-feed-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #f5f5f5; position: relative; transition: background .12s; }
.pandb-feed-item:hover { background: #fafafa; }
.pandb-feed-item:last-child { border-bottom: none; }
.pandb-fi-broadcast { border-left: 3px solid var(--pandb-red); padding-left: 13px; }

.pandb-fi-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; margin-top: 2px; }
.pandb-av-red    { background: var(--pandb-red); }
.pandb-av-teal   { background: #0F6E56; }
.pandb-av-blue   { background: #185FA5; }
.pandb-av-amber  { background: #BA7517; }
.pandb-av-purple { background: #534AB7; }
.pandb-av-green  { background: #3B6D11; }
.pandb-av-coral  { background: #993C1D; }

.pandb-fi-body { flex: 1; min-width: 0; }

/* v2.2.0 — clickable notice body when broadcast has a link */
a.pandb-fi-body--clickable { display: block; color: inherit; text-decoration: none; cursor: pointer; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; transition: background-color .12s; }
a.pandb-fi-body--clickable:hover { background-color: rgba(204, 17, 17, 0.04); }
a.pandb-fi-body--clickable:hover .pandb-fi-link { text-decoration: underline; }
a.pandb-fi-body--clickable:focus-visible { outline: 2px solid var(--pandb-red); outline-offset: 2px; }
.pandb-fi-name { font-size: 12px; font-weight: 700; color: var(--pandb-red); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pandb-fi-broadcast .pandb-fi-name { color: var(--pandb-red); }
.pandb-fi-type { font-size: 9px; font-weight: 700; color: #777; text-transform: uppercase; letter-spacing: .07em; background: #f0f0f0; padding: 1px 6px; border-radius: 20px; }

/* Full title — no truncation */
.pandb-fi-text { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.4; margin-bottom: 3px; white-space: normal; overflow: visible; }
.pandb-fi-meta { font-size: 11px; color: #aaa; margin-top: 3px; }
.pandb-fi-link { color: var(--pandb-red) !important; text-decoration: none !important; font-weight: 600; }
.pandb-fi-link:hover { text-decoration: underline !important; }

.pandb-bc-dismiss { background: none; border: none; color: #ddd; font-size: 18px; cursor: pointer; padding: 4px; flex-shrink: 0; align-self: center; line-height: 1; transition: color .12s; min-width: 28px; min-height: 28px; display: flex; align-items: center; justify-content: center; }
.pandb-bc-dismiss:hover { color: var(--pandb-red); }

.pandb-feed-footer { padding: 12px 18px; border-top: 1px solid #f0f0f0; flex-shrink: 0; }
.pandb-feed-cta { font-size: 13px; font-weight: 700; color: var(--pandb-red); text-decoration: none; }
.pandb-feed-cta:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pandb-welcome-bar { padding: 40px 28px 28px; }
    .pandb-welcome-bar::before { left: 28px; }
    .pandb-progress-section { padding: 22px 28px 24px; }
    .pandb-bottom-lbl  { padding: 20px 28px 0; }
    .pandb-bottom-zone { padding: 12px 28px 36px; }
    .pandb-supplies    { padding: 16px 28px; }
}
@media (max-width: 760px) {
    .pandb-welcome-bar { flex-direction: column; align-items: flex-start; gap: 20px; padding: 36px 20px 24px; }
    .pandb-welcome-bar::before { left: 20px; top: 14px; }
    .pandb-welcome-headline { font-size: 24px !important; }
    .pandb-welcome-cta { width: 100%; text-align: center; justify-content: center; display: flex; }
    .pandb-bottom-zone { grid-template-columns: 1fr; padding: 12px 20px 32px; }
    .pandb-bottom-lbl  { padding: 18px 20px 0; }
    .pandb-progress-section { padding: 18px 20px 20px; }
    .pandb-supplies { padding: 14px 20px; }
}
@media (max-width: 560px) {
    .pandb-progress-strip,
    .pandb-progress-strip--3 { grid-template-columns: 1fr; }
    .pandb-prog-step { flex-direction: row; text-align: left; padding: 11px 0; border-bottom: 1px solid #f0f0f0; gap: 12px; }
    .pandb-prog-step:last-child { border-bottom: none; }
    .pandb-prog-conn { display: none; }
    .pandb-supplies { flex-direction: column; align-items: flex-start; }
    .pandb-supplies-cta { width: 100%; text-align: center; }
}
@media (max-width: 400px) {
    .pandb-welcome-headline { font-size: 20px !important; }
    .pandb-prog-num { width: 38px; height: 38px; font-size: 14px; }
}
