/* =====================================================================
 * PARPARTA Member Dashboard — premium SaaS UI, 100% on the design tokens
 * (assets/css/theme.css). Light + dark + responsive come from the tokens; the
 * only intentionally-dark surfaces (hero banner, refer card) stay dark in both.
 * No colour is hardcoded except those brand surfaces. NO inline styles in the
 * markup — every rule lives here and is reused across panels.
 * ===================================================================== */

/* Reset the shared .zno-app shell (flex card w/ margin+border) to a full-bleed
 * block app — the member dashboard is a full-page layout, not a boxed card. */
.pp.zno-app { display: block; margin: 0; max-width: none; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.pp { color: var(--zno-text); background: var(--zno-bg); }
.pp *, .pp *::before, .pp *::after { box-sizing: border-box; }
.pp :focus-visible { outline: 2px solid var(--zno-primary); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .pp *, .pp *::before, .pp *::after { transition: none !important; animation-duration: .001ms !important; } }

/* v2.94.2 Dashboard Layout Hotfix.
 * The sidebar nav, quick-action cards and buttons are <button> elements. A front-end
 * theme's generic `button {}` rule can outrank the plugin's single-class styles on
 * specificity — e.g. `.content button { display: inline-block }` (0,1,1) beats
 * `.pp-quick-item { display: flex }` (0,1,0) — which COLLAPSES the card layout so the
 * icon and label overlap and the action cards stop laying out. (This is why only the
 * button-based dashboard cards/actions were affected; the KPI/stat cards are <div>s and
 * tables/forms/calendar/sidebar rendered fine.) Re-assert BOTH the native-appearance
 * reset and the flex layout at higher, .pp-scoped specificity (0,2,0) so no theme rule
 * can affect the dashboard components. Same values as the base rules — no redesign. */
.pp .pp-nav-link, .pp .pp-quick-item, .pp .pp-btn, .pp .pp-iconbtn {
    -webkit-appearance: none; appearance: none; font-family: inherit;
}
.pp .pp-nav-link { display: flex; align-items: center; border: 0; background: transparent; box-shadow: none; }
.pp .pp-quick-item { display: flex; flex-direction: column; align-items: center; justify-content: center; width: auto; min-width: 0; text-align: center; }
.pp .pp-btn { display: inline-flex; align-items: center; justify-content: center; }
.pp .pp-iconbtn { display: inline-flex; align-items: center; justify-content: center; }

/* ---- Top bar ---- */
.pp-top { position: sticky; top: var(--zno-adminbar, 0); z-index: 40; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 12px 24px; background: var(--zno-card); border-bottom: 1px solid var(--zno-border); }
.pp-top-left { display: flex; align-items: center; gap: 14px; }
.pp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pp-brand svg { display: block; }
.pp-brand-name { font-weight: 800; letter-spacing: .04em; font-size: 19px; color: var(--zno-text); line-height: 1.1; }
.pp-brand-sub { display: block; font-size: 8px; letter-spacing: .26em; color: var(--zno-primary); font-weight: 700; margin-top: 2px; }
.pp-top-actions { display: flex; align-items: center; gap: 12px; }
.pp-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
    background: transparent; border: 0; color: var(--zno-muted); cursor: pointer; transition: background .15s, color .15s; }
.pp-iconbtn:hover { background: var(--zno-hover); color: var(--zno-text); }
.pp-badge-dot { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    background: var(--zno-primary); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pp-top-user { display: inline-flex; align-items: center; gap: 8px; color: var(--zno-text); text-decoration: none; font-weight: 600; font-size: 14px;
    padding: 4px 8px 4px 4px; border-radius: 999px; transition: background .15s; }
.pp-top-user:hover { background: var(--zno-hover); color: var(--zno-text); }
.pp-top-menu { display: none; }

/* ---- Layout: sidebar + content ---- */
.pp-body { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 0; max-width: 1720px; margin: 0 auto; }
.pp-side { padding: 22px 16px; border-right: 1px solid var(--zno-border); display: flex; flex-direction: column; gap: 10px; }
.pp-content { padding: 26px 30px 44px; min-width: 0; }

/* ---- Sidebar nav ---- */
.pp-nav { display: flex; flex-direction: column; gap: 3px; }
.pp-nav-group > .pp-nav-link { color: var(--zno-primary); font-weight: 700; cursor: default; }
.pp-nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent;
    color: var(--zno-gray-700, #3c434a); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; width: 100%; text-align: left;
    transition: background .15s, color .15s; }
[data-theme="dark"] .pp-nav-link { color: var(--zno-muted); }
.pp-nav-link:hover { background: var(--zno-hover); color: var(--zno-text); }
.pp-nav-group > .pp-nav-link:hover { background: transparent; color: var(--zno-primary); }
/* A clickable group header (e.g. the PP Token Wallet group whose header opens the wallet). */
.pp-nav-group > .pp-nav-grouphead { cursor: pointer; }
.pp-nav-group > .pp-nav-grouphead:hover { background: var(--zno-hover); }
.pp-nav-group > .pp-nav-grouphead.is-active { background: var(--zno-primary-soft); }
.pp-nav-link.is-active { background: var(--zno-primary-soft); color: var(--zno-primary); font-weight: 700; }
.pp-nav-link.is-active .dashicons { color: var(--zno-primary); }
.pp-nav-link .dashicons { font-size: 19px; width: 19px; height: 19px; flex: 0 0 19px; }
.pp-nav-caret { margin-left: auto; font-size: 15px !important; width: 15px !important; height: 15px !important; opacity: .7; }
.pp-nav-sub { display: flex; flex-direction: column; gap: 3px; margin: 3px 0 6px 9px; padding-left: 9px; border-left: 1px solid var(--zno-border); }
.pp-nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--zno-primary); color: #fff;
    font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pp-side-sep { height: 1px; background: var(--zno-border); margin: 14px 4px; border: 0; }

/* ---- PP balance card ---- */
.pp-bal { background: var(--zno-primary-soft); border: 1px solid color-mix(in srgb, var(--zno-primary) 22%, transparent); border-radius: 16px; padding: 16px; text-align: center; }
.pp-bal-top { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 8px; }
.pp-bal-label { color: var(--zno-muted); font-size: 12px; font-weight: 600; text-align: left; line-height: 1.25; }
.pp-bal-amt { font-size: 26px; font-weight: 800; color: var(--zno-text); line-height: 1; margin-bottom: 14px; letter-spacing: -.01em; }
.pp-coin { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 2px solid var(--zno-primary); color: var(--zno-primary);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }

/* ---- Refer card (always dark / neon) ---- */
.pp-refer { background: #15080f; border: 1px solid #3a1228; border-radius: 16px; padding: 16px; color: #fff; position: relative; overflow: hidden; }
.pp-refer h4 { margin: 0 0 4px; font-size: 14px; }
.pp-refer p { margin: 0 0 12px; font-size: 12px; color: #d7a6c0; line-height: 1.45; max-width: 70%; }
.pp-refer .pp-btn { background: transparent; border: 1px solid rgba(255,255,255,.85); color: #fff; }
.pp-refer .pp-btn:hover { background: rgba(255,255,255,.12); }
.pp-refer-coin { position: absolute; right: -8px; bottom: -16px; width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--zno-pink);
    box-shadow: 0 0 18px var(--zno-pink), inset 0 0 12px var(--zno-pink); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; }

/* ---- Buttons ---- */
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 10px; font-weight: 700;
    font-size: 14px; line-height: 1.1; border: 1px solid transparent; cursor: pointer; text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s; }
.pp-btn:active { transform: translateY(1px); }
.pp-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }
.pp-btn-primary { background: var(--zno-primary); color: #fff; box-shadow: 0 1px 2px color-mix(in srgb, var(--zno-primary) 40%, transparent); }
.pp-btn-primary:hover { background: var(--zno-primary-hover); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--zno-primary) 38%, transparent); }
.pp-btn-outline { background: var(--zno-card); border-color: var(--zno-primary); color: var(--zno-primary); }
.pp-btn-outline:hover { background: var(--zno-primary-soft); }
.pp-btn-ghost { background: var(--zno-card); border-color: var(--zno-border); color: var(--zno-text); }
.pp-btn-ghost:hover { border-color: var(--zno-primary); color: var(--zno-primary); }
.pp-btn-block { width: 100%; }
/* v2.94.3 overflow — sidebar-card buttons must fit inside their card: allow the label to
 * wrap to 2 lines instead of overflowing (e.g. "Earn More Parparta PP Token", "Invite Now").
 * The referral button sits above the decorative coin. Layout-only, no restyle. */
.pp-side .pp-btn { white-space: normal; overflow-wrap: break-word; max-width: 100%; height: auto; }
.pp-refer .pp-btn { position: relative; z-index: 1; }
.pp-btn-sm { padding: 8px 13px; font-size: 13px; }
.pp-btn[disabled], .pp-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- Headings / text ---- */
.pp-h1 { font-size: 27px; font-weight: 800; margin: 0 0 5px; color: var(--zno-text); letter-spacing: -.02em; }
.pp-sub { color: var(--zno-muted); margin: 0 0 22px; font-size: 14px; line-height: 1.5; }
.pp-h2 { display: block; font-size: 18px; font-weight: 800; margin: 28px 0 14px; color: var(--zno-text); letter-spacing: -.01em; }
.pp .is-hidden { display: none !important; }
.pp-card-pad > .pp-h2:first-child, .pp-card-pad > h3:first-child { margin-top: 0; }
.pp-rail > .pp-h2 { margin: 0 0 8px; }
.pp-link { color: var(--zno-primary); font-weight: 700; text-decoration: none; font-size: 13px; transition: opacity .15s; }
.pp-link:hover { opacity: .75; text-decoration: underline; }
/* CRM detail/form back link — block-level, left-aligned to the content card below,
   icon vertically centred with the label, with breathing room before the card. */
.pp-crm-back { display: flex; align-items: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 18px; }
.pp-crm-back .dashicons { font-size: 16px; width: 16px; height: 16px; }
.pp-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.pp-row-head .pp-h2 { margin: 0; }
.pp-card-pad > .pp-row-head:first-child { margin: 0 0 10px; }
.pp-mb-0 { margin-bottom: 0; }

/* ---- Card primitive (elevation + interactive lift) ---- */
.pp-card { background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: 16px; box-shadow: var(--zno-shadow);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.pp-card-pad { padding: 18px; }
.pp-card-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.pp-card-actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---- Notices inside the dashboard ---- */
.pp-content .zno-notice { margin-bottom: 16px; }
.pp-card-pad > .zno-empty:only-child, .pp-card-pad > .zno-empty:last-child { margin: 0; }

/* ---- Empty-state component ---- */
.pp-empty-state { text-align: center; padding: 52px 24px; }
.pp-empty-ico { font-size: 42px; width: 42px; height: 42px; color: var(--zno-primary); opacity: .85; }
.pp-empty-state h3 { margin: 14px 0 5px; font-size: 17px; color: var(--zno-text); }
.pp-empty-state .pp-sub { margin: 0 auto 16px; max-width: 360px; }

/* ---- Skeleton loaders (reuse the global shimmer) ---- */
.pp-skel { background: var(--zno-bg-chip); border-radius: 10px; position: relative; overflow: hidden; }
.pp-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); animation: zno-shimmer 1.3s infinite; }
[data-theme="dark"] .pp-skel::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); }

/* =====================================================================
 * Calendar page: main + right rail
 * ===================================================================== */
.pp-cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 24px; align-items: start; }
.pp-cal-main { min-width: 0; }
.pp-rail { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Calendar card = just the container; FullCalendar itself is themed globally in
 * theme.css (.fc …) so there is no duplicated calendar CSS here. */
.pp-cal-card { background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: 16px; padding: 16px 18px 20px; box-shadow: var(--zno-shadow); min-height: 440px; }
/* The shared [zno_calendar] template uses a 300px+1fr grid for its sidebar. When
 * embedded in a dashboard with sidebar="no" the lone calendar column would
 * collapse into the 300px track — force it full-width inside the card. */
.pp-cal-card .zno-cal-page { display: block; max-width: none; margin: 0; }
.pp-cal-card .zno-cal-main { min-width: 0; }
.pp-cal-card .zno-calendar-wrap { max-width: none; margin: 0; }
.pp-cal-card .zno-calendar { min-height: 400px; }

/* ---- Event cards (horizontal scroll row) ---- */
.pp-evrow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(174px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.pp-evrow.pp-evrow-5 { grid-template-columns: repeat(5, 1fr); grid-auto-flow: initial; }
.pp-evcard { background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit;
    scroll-snap-align: start; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; display: block; }
.pp-evcard:hover { transform: translateY(-4px); box-shadow: var(--zno-shadow-hover); border-color: color-mix(in srgb, var(--zno-primary) 30%, var(--zno-border)); }
.pp-evcard-img { position: relative; aspect-ratio: 16/11; background: var(--zno-primary-soft); overflow: hidden; }
.pp-evcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pp-evcard:hover .pp-evcard-img img { transform: scale(1.06); }
.pp-evcard-img.is-empty { background: linear-gradient(135deg, var(--zno-primary), var(--zno-primary-hover)); }
.pp-evcard-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; width: auto; height: auto; opacity: .92; }
.pp-date-badge { position: absolute; left: 8px; bottom: 8px; background: var(--zno-primary); color: #fff; border-radius: 8px; text-align: center; padding: 4px 8px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.pp-date-badge .m { display: block; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.pp-date-badge .d { display: block; font-size: 16px; font-weight: 800; }
.pp-heart { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--zno-primary);
    display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.pp-heart:hover { transform: scale(1.12); }
.pp-heart.is-on { background: var(--zno-primary); color: #fff; }
.pp-heart .dashicons { font-size: 16px; width: 16px; height: 16px; }
.pp-evcard-body { padding: 11px 12px 13px; }
.pp-evcard-title { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--zno-text); display: block; }
.pp-evcard-time { color: var(--zno-primary); font-size: 12px; font-weight: 600; margin-top: 3px; display: block; }
.pp-evcard-venue { color: var(--zno-muted); font-size: 12px; margin-top: 1px; display: block; }
.pp-evcard-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.pp-tag { background: var(--zno-bg-chip); color: var(--zno-muted); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pp-tag-hot { background: #ffe1ec; color: var(--zno-primary); }
[data-theme="dark"] .pp-tag-hot { background: #3a1228; color: #ff8dbb; }

/* ---- Categories row ---- */
.pp-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.pp-cat { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 18px 8px; border: 1px solid var(--zno-border); border-radius: 14px;
    background: var(--zno-card); cursor: pointer; text-decoration: none; color: var(--zno-text); font-size: 12px; font-weight: 600; text-align: center;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.pp-cat:hover { border-color: var(--zno-primary); transform: translateY(-2px); box-shadow: var(--zno-shadow); }
.pp-cat.is-on { background: var(--zno-primary-soft); border-color: var(--zno-primary); color: var(--zno-primary); }
.pp-cat .dashicons { font-size: 22px; width: 22px; height: 22px; }

/* ---- Right rail: highlight ---- */
.pp-hl { position: relative; border-radius: 16px; overflow: hidden; color: #fff; min-height: 290px; background: #16121a; display: flex; flex-direction: column;
    justify-content: flex-end; text-decoration: none; box-shadow: var(--zno-shadow); transition: box-shadow .18s ease; }
.pp-hl:hover { box-shadow: var(--zno-shadow-hover); }
.pp-hl-img { position: absolute; inset: 0; }
.pp-hl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pp-hl:hover .pp-hl-img img { transform: scale(1.05); }
.pp-hl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 28%, rgba(0,0,0,.86)); }
.pp-hl-top { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 2; }
.pp-hl-top .pp-iconbtn { width: 30px; height: 30px; background: rgba(0,0,0,.45); color: #fff; }
.pp-hl-top .pp-iconbtn:hover { background: rgba(0,0,0,.7); color: #fff; }
.pp-hl-body { position: relative; z-index: 2; padding: 16px; }
.pp-hl-row { display: flex; align-items: center; gap: 12px; }
.pp-hl-date { background: var(--zno-primary); border-radius: 10px; padding: 6px 12px; text-align: center; line-height: 1; flex: 0 0 auto; }
.pp-hl-date .m { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.pp-hl-date .d { display: block; font-size: 22px; font-weight: 800; }
.pp-hl-name { font-size: 20px; font-weight: 800; line-height: 1.2; }
.pp-hl-meta { font-size: 13px; color: #e9d6e0; margin-top: 10px; line-height: 1.5; }
.pp-hl-meta strong { color: #fff; }
.pp-hl-tags { display: flex; gap: 6px; margin-top: 12px; }
.pp-hl-tags .pp-tag { background: rgba(255,255,255,.16); color: #fff; }

/* ---- Right rail: info list ---- */
.pp-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.pp-info-lg { gap: 18px; }
.pp-info li { display: flex; gap: 12px; }
.pp-info .dashicons { color: var(--zno-primary); font-size: 18px; width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.pp-info-l { display: block; font-size: 11px; color: var(--zno-faint); font-weight: 600; }
.pp-info-v { display: block; font-size: 13px; color: var(--zno-text); font-weight: 600; }
.pp-map { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; border: 1px solid var(--zno-border); box-shadow: var(--zno-shadow); }
.pp-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.pp-map-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--zno-bg-soft); color: var(--zno-muted); font-size: 13px; font-weight: 500; }
.pp-map-empty .dashicons { font-size: 26px; width: 26px; height: 26px; color: var(--zno-faint); }

/* ---- Also-like list ---- */
.pp-alike { display: flex; flex-direction: column; }
.pp-alike-item { display: flex; gap: 11px; align-items: center; padding: 10px 0; border-top: 1px solid var(--zno-border); text-decoration: none; color: inherit; transition: opacity .15s; }
.pp-alike-item:first-child { border-top: 0; padding-top: 0; }
.pp-alike-item:hover { opacity: .82; }
.pp-alike-img { width: 56px; height: 44px; border-radius: 9px; overflow: hidden; flex: 0 0 56px; background: var(--zno-primary-soft); position: relative; }
.pp-alike-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-alike-badge { position: absolute; left: 3px; bottom: 3px; background: var(--zno-primary); color: #fff; font-size: 8px; font-weight: 800; border-radius: 5px; padding: 1px 4px; line-height: 1.1; text-align: center; }
.pp-alike-title { font-weight: 700; font-size: 13px; color: var(--zno-text); }
.pp-alike-sub { font-size: 12px; color: var(--zno-muted); }

/* ---- Footer feature strip ---- */
.pp-features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; background: var(--zno-primary-soft); border-radius: 16px; padding: 20px 24px; margin-top: 32px; }
[data-theme="dark"] .pp-features { background: var(--zno-card); border: 1px solid var(--zno-border); }
.pp-feat { display: flex; gap: 11px; }
.pp-feat .dashicons { color: var(--zno-primary); font-size: 20px; width: 20px; height: 20px; flex: 0 0 20px; }
.pp-feat-t { font-weight: 700; font-size: 13px; color: var(--zno-text); }
.pp-feat-d { font-size: 12px; color: var(--zno-muted); }
.pp-foot { text-align: center; color: var(--zno-faint); font-size: 12px; padding: 26px 0 8px; }

/* =====================================================================
 * Stat cards + dashboard layout helpers (shared by Member + Merchant)
 * ===================================================================== */
.pp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 16px; }
.pp-stat { display: flex; align-items: center; gap: 13px; background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: 16px;
    padding: 16px; box-shadow: var(--zno-shadow); transition: box-shadow .18s ease, transform .18s ease; }
.pp-stat:hover { box-shadow: var(--zno-shadow-hover); transform: translateY(-2px); }
.pp-stat-ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; background: var(--zno-primary-soft); color: var(--zno-primary); display: flex; align-items: center; justify-content: center; }
.pp-stat-ico .dashicons { font-size: 22px; width: 22px; height: 22px; }
.pp-stat-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pp-stat-label { font-size: 12px; color: var(--zno-muted); font-weight: 600; }
.pp-stat-value { font-size: 24px; font-weight: 800; line-height: 1.15; color: var(--zno-text); letter-spacing: -.01em; }
.pp-stat-sub { font-size: 12px; color: var(--zno-faint); }

.pp-btnrow { display: flex; gap: 10px; flex-wrap: wrap; }

/* Two-column dashboard (main + side) */
.pp-two { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 24px; align-items: start; margin-top: 4px; }
.pp-two-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Vertical section stack with consistent spacing (dashboard main column). The
 * flex gap controls spacing between sections, so section headings sit flush-top. */
.pp-colstack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pp-colstack > * { margin: 0; }
.pp-colstack .pp-h2, .pp-colstack .pp-row-head { margin-top: 0; }

/* Activity feed (reusable list with status dot) */
.pp-feed { display: flex; flex-direction: column; }
.pp-feed-item { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--zno-border); }
.pp-feed-item:first-child { border-top: 0; padding-top: 0; }
.pp-feed-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; margin-top: 5px; background: var(--zno-faint); }
.pp-feed-dot.is-pos { background: var(--zno-success); }
.pp-feed-dot.is-neg { background: var(--zno-danger); }
.pp-feed-dot.is-neutral { background: var(--zno-primary); }
.pp-feed-body { display: flex; flex-direction: column; min-width: 0; }
.pp-feed-text { font-size: 14px; color: var(--zno-text); }
.pp-feed-sub { color: var(--zno-muted); }
.pp-feed-time { font-size: 12px; color: var(--zno-faint); }

/* Promo list (small thumb + title) */
.pp-promo { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--zno-border); text-decoration: none; color: inherit; }
.pp-promo:first-child { border-top: 0; padding-top: 0; }
.pp-promo-thumb { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 10px; overflow: hidden; background: var(--zno-primary-soft); color: var(--zno-primary); display: flex; align-items: center; justify-content: center; }
.pp-promo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-promo-title { font-weight: 700; font-size: 13px; color: var(--zno-text); }
.pp-promo-meta { font-size: 12px; color: var(--zno-primary); font-weight: 600; }

/* Sidebar mini card (merchant identity / status) */
.pp-sidecard { background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: 16px; padding: 14px; box-shadow: var(--zno-shadow); }
.pp-sidecard-row { display: flex; align-items: center; gap: 10px; }
.pp-sidecard-logo { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; overflow: hidden; background: var(--zno-primary-soft); color: var(--zno-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.pp-sidecard-logo img { width: 100%; height: 100%; object-fit: cover; }
.pp-sidecard-name { font-weight: 700; font-size: 13px; color: var(--zno-text); line-height: 1.2; }
.pp-sidecard-sub { font-size: 11px; color: var(--zno-muted); margin-top: 1px; }
.pp-sidecard .pp-btn { margin-top: 12px; }
.pp-sidecard .zno-status { margin-top: 10px; }

/* =====================================================================
 * Tabs (shared component — top tabs + My-Coupons sub-tabs)
 * ===================================================================== */
.pp-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--zno-border); margin-bottom: 22px; }
.pp-tabs-sm { gap: 18px; margin-bottom: 0; }
.pp-tab { padding: 9px 2px 13px; font-weight: 700; font-size: 14px; color: var(--zno-muted); text-decoration: none; border: 0; background: none; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.pp-tab:hover { color: var(--zno-text); }
.pp-tab.is-on { color: var(--zno-primary); border-bottom-color: var(--zno-primary); }

/* =====================================================================
 * Coupon Exchange / Wallet hero
 * ===================================================================== */
.pp-cphero { position: relative; border-radius: 16px; overflow: hidden; min-height: 152px; background: #1a0c16; color: #fff; display: flex; align-items: center; padding: 28px 32px; margin-bottom: 26px; box-shadow: var(--zno-shadow); }
.pp-cphero-sm { min-height: 124px; }
.pp-cphero-img { position: absolute; inset: 0; }
.pp-cphero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.pp-cphero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,4,8,.96) 28%, rgba(10,4,8,.18)); }
.pp-cphero-body { position: relative; z-index: 2; max-width: 60%; }
.pp-cphero-body h2 { font-size: 25px; font-weight: 800; margin: 0 0 9px; letter-spacing: -.01em; line-height: 1.2; }
.pp-cphero-body p { color: #e3c9d6; font-size: 14px; margin: 0; line-height: 1.5; }
.pp-hero-label { margin: 0 0 5px; color: #e3c9d6; font-size: 13px; }
.pp-hero-amt { font-size: 34px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.pp-cphero-coin { position: absolute; right: 44px; z-index: 2; width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--zno-pink);
    box-shadow: 0 0 24px var(--zno-pink), inset 0 0 16px var(--zno-pink); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 26px; }

.pp-cp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.pp-cpgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pp-cpcard { background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--zno-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.pp-cpcard:hover { transform: translateY(-4px); box-shadow: var(--zno-shadow-hover); border-color: color-mix(in srgb, var(--zno-primary) 30%, var(--zno-border)); }
.pp-cpcard-img { position: relative; aspect-ratio: 16/10; background: var(--zno-primary-soft); overflow: hidden; }
.pp-cpcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-cptype { position: absolute; left: 8px; bottom: 8px; background: var(--zno-primary); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; border-radius: 6px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 4px; }
.pp-cptype .dashicons { font-size: 11px; width: 11px; height: 11px; }
.pp-cpcard-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pp-cpcard-title { font-weight: 800; font-size: 15px; color: var(--zno-text); line-height: 1.25; }
.pp-cpcard-desc { color: var(--zno-muted); font-size: 12px; line-height: 1.45; flex: 1; }
.pp-cpcard-cost { font-weight: 800; font-size: 16px; color: var(--zno-text); margin: 6px 0 2px; }
.pp-cpcard-avail { color: var(--zno-faint); font-size: 11px; margin-top: 9px; }
.pp-cpcard-tagline { margin-top: 2px; }

/* How it works */
.pp-how { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 18px; align-items: center; }
.pp-how-step { display: flex; gap: 12px; align-items: flex-start; }
.pp-how-ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--zno-primary); color: var(--zno-primary); display: flex; align-items: center; justify-content: center; flex: 0 0 44px; }
.pp-how-ico .dashicons { font-size: 20px; width: 20px; height: 20px; }
.pp-how-t { font-weight: 700; font-size: 13px; color: var(--zno-text); }
.pp-how-d { font-size: 12px; color: var(--zno-muted); line-height: 1.45; }
.pp-how-partner { border: 1px solid var(--zno-primary); border-radius: 14px; padding: 16px; background: var(--zno-primary-soft); }
.pp-how-partner h4 { margin: 0 0 5px; font-size: 14px; color: var(--zno-text); }
.pp-how-partner p { margin: 0 0 12px; font-size: 12px; color: var(--zno-muted); line-height: 1.45; }

/* My-Coupons panes */
.pp-mc-pane { display: none; margin-top: 18px; }
.pp-mc-pane.is-on { display: block; animation: zno-fade .2s ease; }

/* ---- Table ---- */
.pp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pp-table th { text-align: left; color: var(--zno-muted); font-weight: 600; font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--zno-border); }
.pp-table td { padding: 13px 12px; border-bottom: 1px solid var(--zno-border); color: var(--zno-text); }
.pp-table tr:last-child td { border-bottom: 0; }
.pp-table tbody tr { transition: background .12s; }
.pp-table tbody tr:hover { background: var(--zno-hover); }
.pp-num { text-align: right; }
.pp-amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.pp-amt.is-pos { color: var(--zno-success); }
.pp-amt.is-neg { color: var(--zno-danger); }

/* Settings */
.pp-set-note { margin: 0 0 6px; }

/* =====================================================================
 * Event Detail page (single zno_event) — built on the same tokens/components.
 * ===================================================================== */
.pp-ed { max-width: 1180px; margin: 0 auto; padding: 22px 20px 52px; }
.pp-ed-back { display: inline-flex; align-items: center; gap: 6px; color: var(--zno-muted); text-decoration: none; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.pp-ed-back:hover { color: var(--zno-primary); }
.pp-ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 28px; align-items: start; }
.pp-ed-main { min-width: 0; }
.pp-ed-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; position: sticky; top: calc(var(--zno-adminbar, 0px) + 16px); align-self: start; }

.pp-ed-hero { position: relative; aspect-ratio: 16/9; max-height: 440px; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, var(--zno-primary), var(--zno-primary-hover)); box-shadow: var(--zno-shadow); }
.pp-ed-hero img { width: 100%; height: 100%; object-fit: cover; }
.pp-ed-hero.is-empty { display: flex; align-items: center; justify-content: center; }
.pp-ed-hero.is-empty .dashicons { font-size: 64px; width: 64px; height: 64px; color: rgba(255,255,255,.85); }
.pp-ed-hero-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.pp-ed-hero-badges .pp-tag { background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(3px); font-size: 11px; padding: 4px 10px; }

.pp-ed-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 20px 0 10px; color: var(--zno-text); line-height: 1.2; }
.pp-ed-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }

.pp-ed-facts { display: flex; flex-wrap: wrap; gap: 14px 26px; padding: 16px 18px; background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: 14px; box-shadow: var(--zno-shadow); }
.pp-ed-fact { display: flex; gap: 11px; align-items: flex-start; }
.pp-ed-fact > .dashicons { color: var(--zno-primary); font-size: 19px; width: 19px; height: 19px; margin-top: 1px; flex: 0 0 19px; }
.pp-ed-fact-l { display: block; font-size: 11px; color: var(--zno-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.pp-ed-fact-v { display: block; font-size: 14px; color: var(--zno-text); font-weight: 600; }
.pp-ed-fact-v a { color: var(--zno-primary); text-decoration: none; }
.pp-ed-fact-v a:hover { text-decoration: underline; }

.pp-ed-section { margin-top: 30px; }
.pp-ed-h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; color: var(--zno-text); }

/* Rich-text description */
.pp-ed-desc { color: var(--zno-text); font-size: 15px; line-height: 1.7; }
.pp-ed-desc p { margin: 0 0 14px; }
.pp-ed-desc p:last-child { margin-bottom: 0; }
.pp-ed-desc ul, .pp-ed-desc ol { margin: 0 0 14px; padding-left: 22px; }
.pp-ed-desc li { margin: 4px 0; }
.pp-ed-desc h2, .pp-ed-desc h3 { font-weight: 800; margin: 20px 0 8px; color: var(--zno-text); }
.pp-ed-desc a { color: var(--zno-primary); }
.pp-ed-desc img { max-width: 100%; height: auto; border-radius: 12px; }

/* Gallery */
.pp-ed-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pp-ed-gallery a { display: block; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: var(--zno-bg-soft); cursor: zoom-in; }
.pp-ed-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.pp-ed-gallery a:hover img { transform: scale(1.06); }

/* Organizer block */
.pp-ed-org { display: flex; align-items: center; gap: 14px; }
.pp-ed-org-logo { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 14px; overflow: hidden; background: var(--zno-primary-soft); color: var(--zno-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.pp-ed-org-logo img { width: 100%; height: 100%; object-fit: cover; }
.pp-ed-org-name { font-weight: 700; font-size: 15px; color: var(--zno-text); }
.pp-ed-org-sub { font-size: 13px; color: var(--zno-muted); }
.pp-ed-org + .pp-info { margin-top: 14px; }

/* Sidebar action card */
.pp-ed-actions { display: flex; flex-direction: column; gap: 9px; }
.pp-ed-actions .pp-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pp-btn.is-on { background: var(--zno-primary); border-color: var(--zno-primary); color: #fff; }
.pp-btn-ghost.is-on { background: var(--zno-primary-soft); border-color: var(--zno-primary); color: var(--zno-primary); }
.pp-ed-related { margin-top: 38px; }

/* Lightbox (gallery enlarge) */
.pp-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.86); z-index: 100000; display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.pp-lightbox.is-open { display: flex; }
.pp-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.6); }

/* =====================================================================
 * Merchant Event Management table (filters, bulk, pagination)
 * ===================================================================== */
.pp-evt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pp-evt-bulk { display: flex; align-items: center; gap: 8px; margin: 0; }
.pp-evt-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pp-evt-select { height: 38px; padding: 0 10px; border: 1px solid var(--zno-border-input); border-radius: 9px; background: var(--zno-card); color: var(--zno-text); font-size: 13px; font-weight: 500; }
.pp-evt-search { flex: 1 1 200px; min-width: 160px; height: 38px; padding: 0 12px; border: 1px solid var(--zno-border-input); border-radius: 9px; background: var(--zno-card); color: var(--zno-text); font-size: 13px; }
.pp-evt-select:focus, .pp-evt-search:focus { outline: none; border-color: var(--zno-primary); }

.pp-evt-tablewrap { overflow-x: auto; padding: 4px; }
.pp-evt-table { min-width: 980px; font-size: 12.5px; }
.pp-evt-table th, .pp-evt-table td { padding: 11px 12px; white-space: nowrap; }
.pp-evt-cbcol { width: 34px; text-align: center; }
.pp-evt-titlecell { display: flex; align-items: center; gap: 10px; }
.pp-evt-thumb { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 9px; overflow: hidden; background: var(--zno-primary-soft); display: flex; align-items: center; justify-content: center; }
.pp-evt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-evt-thumb.is-empty .dashicons { color: var(--zno-primary); font-size: 18px; }
.pp-evt-title { font-weight: 700; color: var(--zno-text); text-decoration: none; white-space: normal; max-width: 220px; display: inline-block; }
.pp-evt-title:hover { color: var(--zno-primary); }

.pp-evt-actions { display: inline-flex; align-items: center; gap: 4px; }
.pp-evt-actform { display: inline; margin: 0; }
.pp-evt-act { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--zno-border);
    background: var(--zno-card); color: var(--zno-muted); cursor: pointer; text-decoration: none; transition: background .12s, color .12s, border-color .12s; }
.pp-evt-act:hover { background: var(--zno-hover); color: var(--zno-primary); border-color: var(--zno-primary); }
.pp-evt-act .dashicons { font-size: 16px; width: 16px; height: 16px; }
.pp-evt-act.is-danger:hover { color: var(--zno-danger); border-color: var(--zno-danger); }

.pp-evt-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pp-evt-pager-info { color: var(--zno-muted); font-size: 13px; }
.pp-evt-pager-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* =====================================================================
 * Coupon — balance pill, issued-code chip, public listing, Verify screen
 * ===================================================================== */
.pp-cpbal { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--zno-muted); }
.pp-cpcode { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; font-size: 16px; letter-spacing: .08em;
    color: var(--zno-primary); background: var(--zno-primary-soft); border: 1px dashed color-mix(in srgb, var(--zno-primary) 40%, transparent);
    border-radius: 8px; padding: 8px 10px; text-align: center; margin: 2px 0; }
.pp-cpprice { font-size: 26px; font-weight: 800; color: var(--zno-text); letter-spacing: -.01em; margin-bottom: 12px; }
.pp-cpprice span { font-size: 13px; font-weight: 700; color: var(--zno-primary); }
.pp-cppublic { max-width: 1180px; margin: 0 auto; padding: 8px 0 32px; }

/* QR code (always on a white field so it scans), camera viewport, issued block */
.pp-cpqr { background: #fff; border: 1px solid var(--zno-border); border-radius: 10px; padding: 8px; width: 124px; max-width: 100%; margin: 8px auto 4px; line-height: 0; }
.pp-cpqr svg { width: 100%; height: auto; display: block; }
.pp-cpqr-lg { width: 196px; }
.pp-cpissued { text-align: center; }
.pp-cpissued-label { display: block; font-size: 13px; font-weight: 700; color: var(--zno-text); margin-bottom: 4px; }
.pp-cpreader { display: none; width: 100%; max-width: 340px; margin: 14px 0 4px; border-radius: 12px; overflow: hidden; border: 1px solid var(--zno-border); background: #000; }
.pp-cpreader.is-on { display: block; }
.pp-cpreader video { width: 100% !important; height: auto !important; display: block; }
.pp-cpreader:not(.is-on):not(:empty) { display: block; background: transparent; border: 0; color: var(--zno-muted); font-size: 13px; padding: 8px 0; }

/* =====================================================================
 * PP Token Wallet (shared component)
 * ===================================================================== */
.pp-wallet-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-bottom: 8px; }
.pp-wallet-balance { position: relative; overflow: hidden; }
.pp-wallet-coin { position: absolute; right: -16px; top: -16px; width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--zno-primary-soft); display: flex; align-items: center; justify-content: center; color: var(--zno-primary); font-weight: 800; opacity: .55; }
.pp-wallet-bal-label { font-size: 13px; color: var(--zno-muted); font-weight: 600; }
.pp-wallet-bal { display: block; font-size: 38px; font-weight: 800; line-height: 1.1; color: var(--zno-text); letter-spacing: -.02em; margin: 4px 0 8px; }
.pp-wallet-bal span { font-size: 18px; color: var(--zno-primary); }
.pp-wallet-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--zno-muted); }
.pp-wallet-levelchip { background: var(--zno-primary-soft); color: var(--zno-primary); font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.pp-progress { height: 8px; border-radius: 999px; background: var(--zno-bg-chip); overflow: hidden; margin: 12px 0 6px; }
.pp-progress-bar { display: block; height: 100%; background: var(--zno-primary); border-radius: 999px; transition: width .4s ease; }
.pp-wallet-next { font-size: 12px; color: var(--zno-faint); }
.pp-wallet-daily { display: flex; flex-direction: column; }
.pp-wallet-streak { display: flex; align-items: baseline; gap: 8px; margin: 4px 0; }
.pp-wallet-streak-n { font-size: 32px; font-weight: 800; color: var(--zno-primary); line-height: 1; }
.pp-wallet-streak-l { font-size: 13px; color: var(--zno-muted); }
.pp-wallet-reward { margin: 6px 0 10px; font-weight: 600; color: var(--zno-text); }
.pp-wallet-daily .zno-status { align-self: flex-start; }
.pp-wallet-earn { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 12px; margin-bottom: 8px; }
.pp-wallet-earn-item { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: 14px; padding: 16px; box-shadow: var(--zno-shadow); }
.pp-wallet-earn-item.is-soon { opacity: .7; }
.pp-wallet-earn-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--zno-primary-soft); color: var(--zno-primary); display: flex; align-items: center; justify-content: center; }
.pp-wallet-earn-ico .dashicons { font-size: 20px; width: 20px; height: 20px; }
.pp-wallet-earn-label { font-weight: 700; font-size: 14px; color: var(--zno-text); }
.pp-wallet-earn-note { font-size: 12px; color: var(--zno-muted); }

/* =====================================================================
 * Activity Timeline / Notification Center (shared component)
 * ===================================================================== */
.pp-tl-group { margin-bottom: 18px; }
.pp-tl-group:last-child { margin-bottom: 0; }
.pp-tl-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--zno-faint); margin: 0 0 8px; }
.pp-tl-item { display: flex; gap: 12px; padding: 10px 8px; border-radius: 10px; align-items: flex-start; }
.pp-tl-item.is-unread { background: var(--zno-primary-soft); }
.pp-tl-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--zno-bg-chip); color: var(--zno-muted); }
.pp-tl-ico .dashicons { font-size: 17px; width: 17px; height: 17px; }
.pp-tl-ico.is-pos { background: #dcfce7; color: #15803d; }
.pp-tl-ico.is-neg { background: #fee2e2; color: #b91c1c; }
.pp-tl-ico.is-neutral { background: var(--zno-primary-soft); color: var(--zno-primary); }
[data-theme="dark"] .pp-tl-ico.is-pos { background: #0f3d24; color: #6ee7a8; }
[data-theme="dark"] .pp-tl-ico.is-neg { background: #3d1414; color: #fca5a5; }
.pp-tl-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-tl-title { font-weight: 700; font-size: 14px; color: var(--zno-text); }
.pp-tl-title a { color: inherit; text-decoration: none; }
.pp-tl-title a:hover { color: var(--zno-primary); }
.pp-tl-text { font-size: 13px; color: var(--zno-muted); }
.pp-tl-time { font-size: 12px; color: var(--zno-faint); }
.pp-tl-compact .pp-tl-item { padding: 9px 0; border-radius: 0; border-top: 1px solid var(--zno-border); }
.pp-tl-compact .pp-tl-item:first-child { border-top: 0; }
.pp-tl-compact .pp-tl-item.is-unread { background: transparent; }
.pp-tl-empty { text-align: center; padding: 40px 20px; }
.pp-tl-empty .dashicons { font-size: 38px; width: 38px; height: 38px; color: var(--zno-primary); opacity: .8; }
.pp-tl-empty-t { font-weight: 700; font-size: 15px; color: var(--zno-text); margin: 10px 0 2px; }
.pp-tl-empty.is-compact { padding: 22px 12px; }
.pp-tl-empty.is-compact .dashicons { font-size: 28px; width: 28px; height: 28px; }

/* Notification Center rows — reuse the timeline row; add a right-aligned dismiss button. */
.pp-notif-item .pp-tl-body { flex: 1 1 auto; }
.pp-notif-item .pp-tl-title a { color: inherit; text-decoration: none; }
.pp-notif-item .pp-tl-title a:hover { color: var(--zno-primary); text-decoration: underline; }
.pp-notif-del { margin: 0; flex: 0 0 auto; }
.pp-notif-delbtn { width: 28px; height: 28px; color: var(--zno-faint); }
.pp-notif-delbtn:hover { color: var(--zno-primary); }
.pp-notif-delbtn .dashicons { font-size: 15px; width: 15px; height: 15px; }
.pp-cpverify { max-width: 660px; }
.pp-cpverify-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; }
.pp-cpverify-form .pp-evt-search { flex: 1 1 200px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pp-cpverify-result { margin-top: 18px; }
.pp-cpverify-result.is-bad { display: flex; align-items: center; gap: 8px; color: var(--zno-danger); font-weight: 600; }
.pp-cpverify-result.is-bad .dashicons { font-size: 20px; }
.pp-cpverify-confirm { margin-top: 16px; }

/* =====================================================================
 * Dashboard Experience 2.0 — greeting, quick actions, continue cards,
 * KPI hero, recommendations. Pure presentation on existing tokens.
 * ===================================================================== */

/* Section rhythm — consistent vertical spacing between dashboard blocks. */
.pp-section { margin: 0 0 30px; }
.pp-section > .pp-h2 { margin-top: 0; }
.pp-h3 { font-size: 15px; font-weight: 700; margin: 0; color: var(--zno-text); letter-spacing: -.01em; }

/* Greeting header (avatar + name + sub). */
.pp-greet { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.pp-greet-av { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; overflow: hidden; background: var(--zno-primary-soft);
    color: var(--zno-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.pp-greet-av img { width: 100%; height: 100%; object-fit: cover; }
.pp-greet-txt { min-width: 0; flex: 1 1 auto; }
.pp-greet-txt .pp-h1 { margin: 0; }
.pp-greet-txt .pp-sub { margin: 3px 0 0; }
.pp-greet > .zno-status { flex: 0 0 auto; }

/* KPI hero row (merchant "today's overview" — large numbers). */
.pp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 30px; }
.pp-kpi { display: flex; flex-direction: column; gap: 6px; background: var(--zno-card); border: 1px solid var(--zno-border);
    border-radius: 16px; padding: 20px; box-shadow: var(--zno-shadow); transition: box-shadow .18s ease, transform .18s ease; }
.pp-kpi:hover { box-shadow: var(--zno-shadow-hover); transform: translateY(-2px); }
.pp-kpi-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--zno-primary-soft); color: var(--zno-primary);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.pp-kpi-ico .dashicons { font-size: 21px; width: 21px; height: 21px; }
.pp-kpi-value { font-size: 30px; font-weight: 800; line-height: 1; color: var(--zno-text); letter-spacing: -.02em; }
.pp-kpi-value small { font-size: 14px; font-weight: 700; color: var(--zno-muted); }
.pp-kpi-label { font-size: 12.5px; color: var(--zno-muted); font-weight: 600; }
.pp-kpi.is-primary { background: linear-gradient(150deg, var(--zno-primary-soft), var(--zno-card) 70%); border-color: color-mix(in srgb, var(--zno-primary) 28%, var(--zno-border)); }
.pp-kpi.is-primary .pp-kpi-ico { background: var(--zno-primary); color: #fff; }

/* Quick Actions grid — tappable tiles. */
.pp-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.pp-quick-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: 16px; padding: 22px 14px; cursor: pointer;
    color: var(--zno-text); font-weight: 600; font-size: 13.5px; text-align: center; box-shadow: var(--zno-shadow);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.pp-quick-item:hover { box-shadow: var(--zno-shadow-hover); transform: translateY(-3px); border-color: color-mix(in srgb, var(--zno-primary) 30%, var(--zno-border)); }
.pp-quick-item:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: var(--zno-shadow); }
.pp-quick-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--zno-primary-soft); color: var(--zno-primary);
    display: inline-flex; align-items: center; justify-content: center; transition: background .18s ease, color .18s ease; }
.pp-quick-ico .dashicons { font-size: 23px; width: 23px; height: 23px; }
.pp-quick-item:hover:not(:disabled) .pp-quick-ico { background: var(--zno-primary); color: #fff; }
.pp-quick-label { line-height: 1.25; min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.pp-quick-item .pp-badge-dot { top: 12px; right: 12px; }

/* Continue Activity — 4 uniform "pick up where you left off" cards. */
.pp-continue { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.pp-continue-card { display: flex; flex-direction: column; gap: 4px; background: var(--zno-card); border: 1px solid var(--zno-border);
    border-radius: 16px; padding: 18px; box-shadow: var(--zno-shadow); transition: box-shadow .18s ease, transform .18s ease; min-height: 150px; }
.pp-continue-card:hover { box-shadow: var(--zno-shadow-hover); transform: translateY(-2px); }
.pp-continue-ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--zno-primary-soft); color: var(--zno-primary); margin-bottom: 6px; }
.pp-continue-ico .dashicons { font-size: 20px; width: 20px; height: 20px; }
.pp-continue-ico.is-event { background: color-mix(in srgb, #6366f1 16%, var(--zno-card)); color: #6366f1; }
.pp-continue-ico.is-coupon { background: color-mix(in srgb, #f59e0b 18%, var(--zno-card)); color: #d97706; }
.pp-continue-ico.is-earn { background: color-mix(in srgb, var(--zno-success) 18%, var(--zno-card)); color: var(--zno-success); }
.pp-continue-ico.is-redeem { background: var(--zno-primary-soft); color: var(--zno-primary); }
.pp-continue-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--zno-muted); }
.pp-continue-title { font-size: 14.5px; font-weight: 700; color: var(--zno-text); line-height: 1.3; }
.pp-continue-meta { font-size: 12.5px; color: var(--zno-muted); }
.pp-continue-empty { font-size: 13px; color: var(--zno-faint); flex: 1 1 auto; }
.pp-continue-card .pp-link { margin-top: auto; align-self: flex-start; padding-top: 8px; }

/* Recommended For You — responsive 3-up grid + featured merchant cards. */
.pp-rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pp-merchant-card { display: flex; flex-direction: column; background: var(--zno-card); border: 1px solid var(--zno-border);
    border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--zno-shadow);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.pp-merchant-card:hover { transform: translateY(-4px); box-shadow: var(--zno-shadow-hover); border-color: color-mix(in srgb, var(--zno-primary) 30%, var(--zno-border)); }
.pp-merchant-cover { aspect-ratio: 16 / 9; background: var(--zno-primary-soft); color: var(--zno-primary); display: flex; align-items: center; justify-content: center; }
.pp-merchant-cover img { width: 100%; height: 100%; object-fit: cover; }
.pp-merchant-cover .dashicons { font-size: 30px; width: 30px; height: 30px; opacity: .7; }
.pp-merchant-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.pp-merchant-title { font-weight: 700; font-size: 14px; color: var(--zno-text); line-height: 1.3; }
.pp-merchant-cat { font-size: 12px; color: var(--zno-muted); }

/* 3-up event row (overview recommendations). */
.pp-evrow.pp-evrow-3 { grid-template-columns: repeat(3, 1fr); grid-auto-flow: initial; overflow: visible; }

/* Skeleton loading placeholder (progressive-enhancement hook). */
.pp-skel { position: relative; overflow: hidden; background: var(--zno-bg-soft); border-radius: 10px; min-height: 14px; }
.pp-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--zno-text) 8%, transparent), transparent); animation: pp-shimmer 1.3s infinite; }
@keyframes pp-shimmer { 100% { transform: translateX(100%); } }

/* =====================================================================
 * ZNO Internal CRM — staff dashboard. Reuses .pp-table, .pp-evt-* toolbar /
 * filters / pager, .pp-kpis, .pp-quick, .zno-status badges and .pp-progress.
 * Only CRM-specific atoms (monograms, priority pills, customer/report cards)
 * are defined here. Pure presentation on existing tokens.
 * ===================================================================== */

/* Top-bar global search. */
.pp-crm-search { position: relative; display: flex; align-items: center; }
.pp-crm-search .dashicons { position: absolute; left: 10px; color: var(--zno-muted); font-size: 17px; width: 17px; height: 17px; pointer-events: none; }
.pp-crm-search input { width: 260px; max-width: 40vw; padding: 8px 12px 8px 32px; border: 1px solid var(--zno-border); border-radius: 10px;
    background: var(--zno-bg-soft); color: var(--zno-text); font-size: 13px; }
.pp-crm-search input:focus { outline: none; border-color: var(--zno-primary); background: var(--zno-card); }

/* Sidebar info card. */
.pp-crm-sidecard { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px dashed var(--zno-border); border-radius: 14px; background: var(--zno-bg-soft); }
.pp-crm-sidecard-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--zno-primary-soft); color: var(--zno-primary); display: inline-flex; align-items: center; justify-content: center; }
.pp-crm-sidecard-t { font-weight: 700; font-size: 13px; color: var(--zno-text); margin-top: 4px; }
.pp-crm-sidecard-d { font-size: 12px; color: var(--zno-muted); line-height: 1.4; }

/* Monogram avatar + name cell (tables, cards). */
.pp-crm-mono { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--zno-primary-soft); color: var(--zno-primary);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
/* Merchant logo thumbnail (detail/edit header) — mirrors the profile-head monogram box. */
.pp-crm-logo { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; overflow: hidden; background: var(--zno-primary-soft);
    display: inline-flex; align-items: center; justify-content: center; }
.pp-crm-logo img { width: 100%; height: 100%; object-fit: cover; }
.pp-crm-namecell { display: inline-flex; align-items: center; gap: 9px; }
.pp-crm-name { font-weight: 600; color: var(--zno-text); }
.pp-crm-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; color: var(--zno-muted); }

/* Project progress cell. */
.pp-crm-progcol { width: 160px; }
.pp-crm-prog { display: flex; align-items: center; gap: 9px; }
.pp-crm-prog .pp-progress { flex: 1 1 auto; min-width: 70px; margin: 0; }
.pp-crm-prog-n { font-size: 12px; font-weight: 700; color: var(--zno-muted); min-width: 34px; text-align: right; }

/* Priority pill (coloured dot + label). */
.pp-prio { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--zno-text); }
.pp-prio-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--zno-faint); }
.pp-prio.is-low .pp-prio-dot { background: #64748b; }
.pp-prio.is-medium .pp-prio-dot { background: #2563eb; }
.pp-prio.is-high .pp-prio-dot { background: #d97706; }
.pp-prio.is-urgent .pp-prio-dot { background: var(--zno-danger); }
.pp-prio.is-urgent { color: var(--zno-danger); }

/* Customer cards. */
.pp-crm-cust { display: flex; flex-direction: column; gap: 12px; }
.pp-crm-cust-head { display: flex; align-items: center; gap: 11px; }
.pp-crm-cust-head .pp-crm-mono { width: 40px; height: 40px; flex-basis: 40px; font-size: 15px; }
.pp-crm-cust-id { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.pp-crm-cust-name { font-weight: 700; font-size: 14.5px; color: var(--zno-text); }
.pp-crm-cust-contact { font-size: 12.5px; color: var(--zno-muted); }
.pp-crm-cust-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--zno-muted); }
.pp-crm-cust-meta .dashicons { font-size: 15px; width: 15px; height: 15px; color: var(--zno-primary); vertical-align: text-bottom; }
.pp-crm-cust-foot { display: flex; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--zno-border); font-size: 12.5px; color: var(--zno-muted); }
.pp-crm-cust-foot .pp-link { margin-left: auto; }

/* Customer profile. */
.pp-crm-profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pp-crm-profile-head .pp-crm-mono { width: 52px; height: 52px; flex-basis: 52px; font-size: 20px; }
.pp-crm-profile-head .pp-h2 { margin: 0; }
.pp-crm-profile-head .pp-sub { margin: 2px 0 0; }
.pp-crm-profile-head > div { flex: 1 1 auto; min-width: 0; }
.pp-crm-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pp-crm-info-item { display: flex; flex-direction: column; gap: 2px; }
.pp-crm-info-k { font-size: 11px; font-weight: 600; color: var(--zno-faint); text-transform: uppercase; letter-spacing: .04em; }
.pp-crm-info-v { font-size: 13.5px; font-weight: 600; color: var(--zno-text); }

/* Placeholder block (timeline / files / notes "coming soon"). */
.pp-crm-ph { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 16px; border: 1px dashed var(--zno-border); border-radius: 12px; background: var(--zno-bg-soft); }
.pp-crm-ph .dashicons { font-size: 26px; width: 26px; height: 26px; color: var(--zno-primary); opacity: .8; }
.pp-crm-ph-t { font-weight: 700; font-size: 13.5px; color: var(--zno-text); margin-top: 4px; }
.pp-crm-ph-d { font-size: 12.5px; color: var(--zno-muted); line-height: 1.45; max-width: 320px; }

/* Reports / settings placeholder cards. */
.pp-crm-report { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 150px; }
.pp-crm-report-title { font-weight: 700; font-size: 15px; color: var(--zno-text); }
.pp-crm-report-desc { font-size: 12.5px; color: var(--zno-muted); line-height: 1.45; flex: 1 1 auto; }

/* Upcoming meeting rows. */
.pp-crm-meeting { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--zno-border); }
.pp-crm-meeting:first-child { border-top: 0; padding-top: 0; }
.pp-crm-meeting-date { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: var(--zno-primary-soft); color: var(--zno-primary);
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.pp-crm-meeting-d { font-size: 17px; font-weight: 800; }
.pp-crm-meeting-m { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pp-crm-meeting-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pp-crm-meeting-title { font-weight: 700; font-size: 13.5px; color: var(--zno-text); }
.pp-crm-meeting-meta { font-size: 12.5px; color: var(--zno-muted); }

/* Lead Management (Phase 1). Reuses .pp-table / .pp-evt-* / .zno-status /
 * .pp-crm-* atoms; only lead-specific accents are defined here. */
.pp-crm-muted { color: var(--zno-faint); }
.pp-crm-namecell { text-decoration: none; color: inherit; }
.pp-lead-due { font-weight: 600; color: var(--zno-muted); }
.pp-lead-due.is-overdue { color: var(--zno-danger); }
.pp-lead-due.is-soon { color: #d97706; }
.pp-lead-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* Dashboard — Leads by Status strip. */
.pp-lead-status-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-lead-status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--zno-border);
    border-radius: 12px; background: var(--zno-card); text-decoration: none; box-shadow: var(--zno-shadow);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.pp-lead-status-pill:hover { box-shadow: var(--zno-shadow-hover); transform: translateY(-2px); border-color: color-mix(in srgb, var(--zno-primary) 30%, var(--zno-border)); }
.pp-lead-status-n { font-size: 16px; font-weight: 800; color: var(--zno-text); }

/* Dashboard — Recent Leads (clickable feed rows). */
.pp-lead-recent { align-items: center; gap: 11px; text-decoration: none; color: inherit; border-radius: 10px; }
.pp-lead-recent:hover { background: var(--zno-hover); }
.pp-lead-recent .pp-crm-mono { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
.pp-lead-recent .zno-status { margin-left: auto; }

/* =====================================================================
 * Social Media Center (CRM Phase 2). Reuses .pp-table / .pp-evt-* /
 * .pp-kpis / .zno-status / .pp-tabs / .zno-form; only Social-specific
 * atoms (media thumbs, preview card, platform/channel pickers) here.
 * ===================================================================== */
.pp-sm-tabs { margin-bottom: 18px; }
.pp-sm-filterform { margin: 0; flex: 1 1 auto; }

/* Media thumbnails. */
.pp-sm-thumb { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 9px; overflow: hidden; background: var(--zno-bg-soft);
    color: var(--zno-muted); display: inline-flex; align-items: center; justify-content: center; }
.pp-sm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-sm-thumb.is-lg { width: 88px; height: 88px; flex-basis: 88px; border-radius: 12px; }
.pp-sm-thumb.is-video { background: var(--zno-primary-soft); color: var(--zno-primary); }
.pp-sm-thumb .dashicons { font-size: 20px; width: 20px; height: 20px; }

/* Posts list — post cell + delivery chips. */
.pp-sm-postcell { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.pp-sm-postmeta { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pp-sm-excerpt { font-size: 12px; color: var(--zno-muted); }
.pp-sm-deliv { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; }
.pp-sm-deliv .dashicons { font-size: 15px; width: 15px; height: 15px; }
.pp-sm-deliv.is-ok { color: var(--zno-success); }
.pp-sm-deliv.is-bad { color: var(--zno-danger); }

/* Form pickers. */
.pp-sm-media-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.pp-sm-media-item { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--zno-muted); }
.pp-sm-btnrow { gap: 8px; }
.pp-sm-sendnow { margin-top: 14px; }
.pp-sm-err { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--zno-danger); margin: 8px 0 0; }
.pp-sm-err .dashicons { font-size: 15px; width: 15px; height: 15px; }

/* Telegram preview card. */
.pp-sm-preview { border: 1px solid var(--zno-border); border-radius: 14px; overflow: hidden; background: var(--zno-bg-soft); }
.pp-sm-preview-media { display: grid; gap: 2px; }
.pp-sm-preview-media .pp-sm-thumb { width: 100%; height: 150px; flex-basis: auto; border-radius: 0; }
.pp-sm-preview-media.is-album { grid-template-columns: 1fr 1fr; }
.pp-sm-preview-media.is-album .pp-sm-thumb { height: 92px; }
.pp-sm-preview-body { padding: 12px 14px; }
.pp-sm-preview-text { font-size: 13.5px; color: var(--zno-text); line-height: 1.5; margin: 0; white-space: pre-wrap; }
.pp-sm-preview-btns { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.pp-sm-preview-btn { text-align: center; background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; color: var(--zno-primary); }

/* Media library grid + template rows. */
.pp-sm-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.pp-sm-library .pp-sm-thumb { width: 100%; height: 110px; flex-basis: auto; }
.pp-sm-tpl { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--zno-border); }
.pp-sm-tpl:first-of-type { border-top: 0; }
.pp-sm-tpl > div { display: flex; flex-direction: column; min-width: 0; gap: 2px; flex: 1 1 auto; }
.pp-sm-tpl form { margin-left: auto; }

/* =====================================================================
 * CRM Knowledge Base chatbot — simple internal chat UI. Reuses .pp-card /
 * .pp-btn / tokens; light + dark via tokens.
 * ===================================================================== */
.pp-chat { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.pp-chat-log { display: flex; flex-direction: column; gap: 12px; padding: 18px; min-height: 320px; max-height: 460px; overflow-y: auto; }
.pp-chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.pp-chat-msg.is-user { margin-left: auto; flex-direction: row-reverse; }
.pp-chat-ava { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--zno-primary-soft); color: var(--zno-primary);
    display: inline-flex; align-items: center; justify-content: center; }
.pp-chat-ava .dashicons { font-size: 17px; width: 17px; height: 17px; }
.pp-chat-bubble { display: block; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap;
    background: var(--zno-bg-soft); color: var(--zno-text); border: 1px solid var(--zno-border); }
.pp-chat-msg.is-user .pp-chat-bubble { background: var(--zno-primary); color: #fff; border-color: transparent; border-bottom-right-radius: 4px; }
.pp-chat-msg.is-bot .pp-chat-bubble { border-bottom-left-radius: 4px; }
.pp-chat-source { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--zno-border); font-size: 12px; color: var(--zno-muted); }
.pp-chat-source a { color: var(--zno-primary); text-decoration: none; font-weight: 600; }
.pp-chat-source a:hover { text-decoration: underline; }
.pp-chat-form { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--zno-border); background: var(--zno-card); }
.pp-chat-input { flex: 1 1 auto; height: 40px; padding: 0 14px; border: 1px solid var(--zno-border); border-radius: 10px;
    background: var(--zno-bg-soft); color: var(--zno-text); font-size: 14px; }
.pp-chat-input:focus { outline: none; border-color: var(--zno-primary); background: var(--zno-card); }
.pp-chat-form .pp-btn { flex: 0 0 auto; }

/* Add-to-Calendar menu (event detail) — native <details> popover, no JS. */
.pp-cal-menu { position: relative; }
.pp-cal-menu > summary { list-style: none; cursor: pointer; }
.pp-cal-menu > summary::-webkit-details-marker { display: none; }
.pp-cal-menu-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 6px;
    background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: 12px; box-shadow: var(--zno-shadow-hover);
    display: flex; flex-direction: column; gap: 2px; }
.pp-cal-menu-pop a { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 8px; text-decoration: none;
    color: var(--zno-text); font-size: 13.5px; font-weight: 600; }
.pp-cal-menu-pop a:hover { background: var(--zno-hover); color: var(--zno-primary); }
.pp-cal-menu-pop .dashicons { color: var(--zno-primary); }

/* =====================================================================
 * Referral block (member dashboard, CRM member detail, public event page).
 * Reuses .pp-card / .pp-btn / tokens; light + dark; no inline CSS.
 * ===================================================================== */
.pp-ref { position: relative; overflow: hidden; }
.pp-ref .pp-h3 { margin: 0 0 4px; }
.pp-ref-coin { position: absolute; top: -14px; right: -10px; width: 76px; height: 76px; border-radius: 50%;
    background: var(--zno-primary-soft); color: var(--zno-primary); display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px; opacity: .5; }
.pp-ref-field { margin-top: 12px; }
.pp-ref-field > label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--zno-muted); margin-bottom: 5px; }
.pp-ref-copyrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pp-ref-code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 700; letter-spacing: .08em;
    color: var(--zno-primary); background: var(--zno-bg-soft); border: 1px solid var(--zno-border); border-radius: 8px; padding: 8px 12px; }
.pp-ref-link { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--zno-border); border-radius: 8px;
    background: var(--zno-bg-soft); color: var(--zno-text); font-size: 12.5px; }
.pp-ref-link:focus { outline: none; border-color: var(--zno-primary); }
.pp-ref-copy { flex: 0 0 auto; }
.pp-ref-copy .pp-ref-copied { display: none; }
.pp-ref-copy.is-copied .pp-ref-copy-label { display: none; }
.pp-ref-copy.is-copied .pp-ref-copied { display: inline; }
.pp-ref-stats { display: flex; gap: 10px; margin-top: 16px; }
.pp-ref-stat { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px;
    border: 1px solid var(--zno-border); border-radius: 12px; background: var(--zno-bg-soft); }
.pp-ref-stat-n { font-size: 17px; font-weight: 800; color: var(--zno-text); line-height: 1; }
.pp-ref-stat-l { font-size: 11px; font-weight: 600; color: var(--zno-muted); }
.pp-ref-note { margin: 10px 0 0; font-size: 11.5px; color: var(--zno-faint); }
.pp-ref-guest .pp-btn { margin-top: 10px; }

/* ---- Responsive ---- */
@media (max-width: 1180px) { .pp-cal-layout, .pp-two { grid-template-columns: 1fr; } .pp-rail, .pp-two-side { flex-direction: row; flex-wrap: wrap; } .pp-rail > *, .pp-two-side > * { flex: 1 1 300px; } .pp-rail > .pp-h2 { flex-basis: 100%; } }
@media (max-width: 860px) { .pp-wallet-top { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .pp-ed-grid { grid-template-columns: 1fr; } .pp-ed-side { position: static; } }
@media (max-width: 560px) { .pp-ed-gallery { grid-template-columns: repeat(2, 1fr); } .pp-ed-title { font-size: 24px; } .pp-ed { padding: 16px 14px 40px; } }
@media (max-width: 1080px) { .pp-cats, .pp-cpgrid, .pp-features { grid-template-columns: repeat(3, 1fr); } .pp-evrow.pp-evrow-5 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(174px, 72%); } .pp-how { grid-template-columns: 1fr 1fr; } .pp-how-partner { grid-column: 1 / -1; } }
@media (max-width: 900px) { .pp-evrow.pp-evrow-3, .pp-rec-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 74%); display: grid; overflow-x: auto; } }
@media (max-width: 620px) { .pp-greet-av { width: 44px; height: 44px; flex-basis: 44px; } .pp-kpi-value { font-size: 25px; } .pp-quick { grid-template-columns: repeat(2, 1fr); } .pp-crm-info { grid-template-columns: 1fr; } .pp-crm-search { display: none; } }
.pp-scrim { display: none; }
@media (max-width: 860px) {
    .pp-body { grid-template-columns: 1fr; }
    .pp-side { position: fixed; top: 0; left: 0; bottom: 0; width: 274px; z-index: 60; background: var(--zno-card); transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; box-shadow: var(--zno-shadow-hover); }
    .pp.is-sidebar-open .pp-side { transform: none; }
    .pp-scrim { display: block; position: fixed; inset: 0; background: var(--zno-overlay); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
    .pp.is-sidebar-open .pp-scrim { opacity: 1; pointer-events: auto; }
    .pp-top-menu { display: inline-flex; }
    .pp-cphero-body { max-width: 72%; }
}
@media (max-width: 620px) {
    .pp-cats, .pp-cpgrid, .pp-features { grid-template-columns: repeat(2, 1fr); }
    .pp-h1 { font-size: 22px; }
    .pp-content { padding: 18px 16px 32px; }
    .pp-top { padding: 10px 16px; }
    .pp-cphero { padding: 22px; }
    .pp-cphero-body { max-width: 100%; }
    .pp-cphero-coin { display: none; }
    .pp-how { grid-template-columns: 1fr; }
    .pp-top-user span:last-child { display: none; }
    .pp-tabs { gap: 16px; overflow-x: auto; }
}

/* ===== v3.0.3 mobile responsive hardening (390 / 768 / 1024 / 1366) =====
 * Containment only — no layout redesign. Ensures the AI Integration settings card
 * and CRM forms stack and stay inside their card on phones/tablets, status rows wrap,
 * and buttons never overflow. Tables already scroll (.pp-evt-tablewrap); the sidebar
 * already becomes a drawer at <=860px. */
.pp-info li { flex-wrap: wrap; }
@media (max-width: 768px) {
    .pp .zno-field-row { flex-direction: column; gap: 0; }        /* provider/model, temperature/max-tokens stack */
    .pp .zno-form .pp-btn, .pp-card .pp-btn { max-width: 100%; white-space: normal; overflow-wrap: break-word; }
    .pp-two, .pp-colstack { min-width: 0; }
}
@media (max-width: 480px) {
    .pp-card-pad { padding: 16px 14px; }
    .pp-info li { gap: 4px 10px; }
    .pp-row-head { flex-wrap: wrap; gap: 6px; }                    /* card title + status badge wrap */
}

/* ===== v3.0.4 responsive layout hotfix (containment only) ===== */

/* (1) Quick actions: desktop auto-fit (base rule) · tablet 2 columns · mobile 1 column.
 *    Labels wrap safely (see .pp-quick-label). Source order after the base + <=620 rule
 *    so these breakpoints win. */
@media (max-width: 1024px) { .pp-quick { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pp-quick { grid-template-columns: 1fr; } }

/* (2) Sidebar nav: long labels (e.g. "Parparta PP Token Wallet") wrap inside the sidebar
 *    instead of spilling. Icon + label stay aligned; the caret/badge stay pinned right. */
.pp-nav-link { min-width: 0; overflow-wrap: anywhere; }
.pp-nav-link .dashicons { flex: 0 0 19px; }
.pp-nav-caret, .pp-nav-badge { flex: 0 0 auto; }
.pp-nav-sub { min-width: 0; }

/* (3) Calendar: give the calendar the full content width and stack the featured rail
 *    BELOW it on medium widths (<=1366 covers 1366/1024/768). Only very wide screens
 *    keep the side-by-side featured column. Toolbar (month/week/list) already wraps. */
@media (max-width: 1366px) {
    .pp-cal-layout { grid-template-columns: 1fr; }
    .pp-cal-layout .pp-rail { flex-direction: row; flex-wrap: wrap; }
    .pp-cal-layout .pp-rail > * { flex: 1 1 280px; }
    .pp-cal-layout .pp-rail > .pp-h2 { flex-basis: 100%; }
}
.pp-cal-card, .pp-cal-main { min-width: 0; }
.pp-cal-card .fc, .pp-cal-card .zno-calendar { max-width: 100%; }

/* ===== v3.0.5 responsive fix — rendered-layout guarantees =====
 * Higher-specificity `.pp`-scoped rules placed LAST so they win over the base rules and a host
 * theme's generic element rules, with hard containment guards. Layout/CSS only — no markup, PHP,
 * DB, AI or business-logic changes. Verify against the real classes: .pp-side .pp-nav-link /
 * .pp-nav-grouphead, .pp-quick / .pp-quick-item / .pp-quick-label, .pp-cal-layout / .pp-rail,
 * .pp-evt-tablewrap > .pp-table. */

/* (1) Sidebar nav — the grouped label ("Parparta PP Token Wallet") wraps and can NEVER protrude
 *     past the sidebar into the content. overflow-x:clip is the hard fallback if wrapping is beaten. */
.pp .pp-side { overflow-x: clip; }
.pp .pp-side .pp-nav-link { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.pp .pp-side .pp-nav-link .dashicons { flex: 0 0 19px; }
.pp .pp-side .pp-nav-caret, .pp .pp-side .pp-nav-badge { flex: 0 0 auto; }
.pp .pp-side .pp-nav-sub { min-width: 0; max-width: 100%; }

/* (2) Quick actions — grid re-forced (display:grid !important beats any theme); labels wrap; each
 *     card clips so its text can't spill onto the next card. Desktop auto-fit · tablet 2 · mobile 1. */
.pp .pp-quick { display: grid !important; gap: 14px; }
.pp .pp-quick { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pp .pp-quick-item { min-width: 0; overflow: hidden; }
.pp .pp-quick-label { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 1024px) { .pp .pp-quick { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pp .pp-quick { grid-template-columns: 1fr; } }

/* (3) Calendar — featured card ALWAYS stacks BELOW the calendar so the calendar uses the full
 *     content width at every width (Member / Merchant). */
.pp .pp-cal-layout { display: block; }
.pp .pp-cal-layout > .pp-cal-main { min-width: 0; }
.pp .pp-cal-layout > .pp-rail { display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.pp .pp-cal-layout > .pp-rail > * { flex: 1 1 280px; min-width: 0; }
.pp .pp-cal-card .fc, .pp .pp-cal-card .zno-calendar { max-width: 100%; }

/* (4) Data tables (Members, Merchants, Coupons, CRM lists, calendar events) scroll horizontally
 *     inside their card instead of cramming columns. */
.pp .pp-evt-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pp .pp-evt-tablewrap > .pp-table { min-width: 680px; }

/* ===== v3.0.6 sidebar + table layout fix (CSS only) ===== */

/* (1) CRM Members / Merchants tables: give each a comfortable min-width so columns are readable and
 *     the card scrolls horizontally instead of squeezing. Scoped by the CRM panel (no markup change). */
.pp [data-panel="members"]   .pp-evt-tablewrap > .pp-table { min-width: 980px; }
.pp [data-panel="merchants"] .pp-evt-tablewrap > .pp-table { min-width: 920px; }

/* (2) Filter toolbars: on small screens the search + selects go full width and the Add/Create button
 *     stays aligned (not stretched, not squeezed). */
@media (max-width: 620px) {
    .pp .pp-evt-toolbar { flex-direction: column; align-items: stretch; }
    .pp .pp-evt-filters { flex-direction: column; align-items: stretch; width: 100%; }
    .pp .pp-sm-filterform { width: 100%; flex: 1 1 auto; }
    .pp .pp-evt-search, .pp .pp-evt-select { width: 100%; min-width: 0; flex: 1 1 auto; }
    .pp .pp-evt-toolbar > .pp-btn { align-self: flex-start; }
}

/* ===== v3.0.9 Event Category management — modal, colour badges, drag handle ===== */
.pp-evtcat-emoji { font-size: 18px; }
.pp-evtcat-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; border: 1px solid rgba(0,0,0,.12); }
.pp-evtcat-drag { width: 34px; text-align: center; color: var(--zno-muted); cursor: grab; }
.pp-evtcat-drag:active { cursor: grabbing; }
.pp-evtcat-table tbody tr.ui-sortable-helper { display: table; background: var(--zno-card); box-shadow: var(--zno-shadow-hover); }
.pp-evtcat-table tbody tr.ui-sortable-placeholder { visibility: hidden; }
.pp-evtcat-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-right: 6px; }
/* category colour dot on member calendar cards + event tags */
.pp-cat-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

/* Modal dialog (Add / Edit category) */
.pp-modal[hidden] { display: none; }
.pp-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pp-modal-scrim { position: absolute; inset: 0; background: var(--zno-overlay, rgba(15,17,26,.55)); }
.pp-modal-dialog { position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
    background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: 16px; box-shadow: var(--zno-shadow-hover); padding: 20px 22px; }
.pp-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pp-modal-head .pp-h3 { margin: 0; }
@media (max-width: 560px) {
    .pp-modal { padding: 12px; align-items: flex-start; }
    .pp-modal-dialog { padding: 16px 14px; max-height: 94vh; }
}
/* Redemption confirmation modal (v3.1.0) */
.pp-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.pp-redeem-info { margin: 14px 0 4px; }
.pp-redeem-info li:last-child .pp-info-v { color: var(--zno-primary, #6d4bff); font-weight: 700; }

/* My Coupons / marketplace card extras (v3.1.0) */
.pp-cpcard-facts { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 4px; }
.pp-cpcard-facts li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--zno-text-soft, #5b6070); }
.pp-cpcard-facts .dashicons { font-size: 15px; width: 15px; height: 15px; color: var(--zno-primary, #6d4bff); }
.pp-cpcard-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--zno-text-soft, #5b6070); margin: 2px 0 4px; }
.pp-cpcard-meta .dashicons { font-size: 15px; width: 15px; height: 15px; }
.pp-cpcard-terms { font-size: 11.5px; color: var(--zno-text-soft, #7a808f); line-height: 1.4; margin: 0 0 8px; }
.pp-cpcard-img { position: relative; }
.pp-cpbadge { position: absolute; top: 8px; right: 8px; font-size: 11px; }

/* Coupon Announcement System (v3.2.0) */
.pp-cpnew { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 10px; font-weight: 800;
    letter-spacing: .06em; line-height: 1; padding: 4px 7px; border-radius: 999px; color: #fff;
    background: linear-gradient(135deg, #ff5d8f, #ff3b6b); box-shadow: 0 2px 6px rgba(255,59,107,.45); }
/* Login popup — hidden until JS reveals it (only rendered when an announcement is pending) */
.pp-cpop { display: none; }
.pp-cpop.is-open { display: flex; }
.pp-cpop-dialog { max-width: 380px; text-align: center; }
.pp-cpop-emoji { font-size: 40px; line-height: 1; display: block; margin: 2px 0 8px; }
.pp-cpop-dialog .pp-h3 { text-align: center; }
.pp-cpop-name { font-size: 17px; font-weight: 800; color: var(--zno-text); margin: 8px 0 4px; }
.pp-cpop-pp { display: inline-block; font-weight: 800; color: var(--zno-primary, #6d4bff);
    background: var(--zno-primary-soft, rgba(109,75,255,.12)); border-radius: 999px; padding: 4px 12px; margin-bottom: 4px; }
.pp-cpop-actions { justify-content: center; margin-top: 18px; }

/* Event Announcement System (v3.3.0) — NEW badge on event cards + event detail */
.pp-evcard-img { position: relative; }
.pp-evnew { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 10px; font-weight: 800;
    letter-spacing: .06em; line-height: 1; padding: 4px 7px; border-radius: 999px; color: #fff;
    background: linear-gradient(135deg, #ff5d8f, #ff3b6b); box-shadow: 0 2px 6px rgba(255,59,107,.45); }
.pp-evnew-inline { position: static; display: inline-block; vertical-align: middle; margin-right: 4px; }

/* Referral System Completion (v3.4.0) */
.pp-ref-copyrow { flex-wrap: wrap; gap: 8px; }
.pp-ref-share { white-space: nowrap; }
.pp-ref-terms { font-size: 12px; color: var(--zno-text-soft, #7a808f); line-height: 1.5; margin: 8px 0 0; }
.pp-ref-histhead { margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: var(--zno-text); }
.pp-h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--zno-text); }
.pp-ref-history code { font-size: 12px; }
.pp-ref-switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pp-ref-switch input { width: auto; }
.pp-kpis-ref { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.pp-ref-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.pp-ref-actform { display: inline; margin: 0; }
.zno-auth-ref { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
    color: var(--zno-primary, #6d4bff); background: var(--zno-primary-soft, rgba(109,75,255,.10)); text-align: center; }

/* PP Token Missions (v3.5.0) */
.pp-mission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pp-mission-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--zno-border);
    border-radius: 14px; background: var(--zno-card); }
.pp-mission-card.is-claimed { opacity: .72; }
.pp-mission-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: var(--zno-primary-soft, rgba(109,75,255,.12)); color: var(--zno-primary, #6d4bff); }
.pp-mission-ico .dashicons { font-size: 22px; width: 22px; height: 22px; }
.pp-mission-body { flex: 1 1 auto; min-width: 0; }
.pp-mission-title { font-weight: 700; font-size: 14px; color: var(--zno-text); }
.pp-mission-desc { font-size: 12px; color: var(--zno-text-soft, #7a808f); margin: 2px 0 8px; line-height: 1.4; }
.pp-mission-bar { height: 6px; border-radius: 999px; background: var(--zno-border); overflow: hidden; margin: 6px 0; }
.pp-mission-fill { display: block; height: 100%; background: linear-gradient(90deg, #6d4bff, #9b7bff); border-radius: 999px; }
.pp-mission-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.pp-mission-prog { color: var(--zno-text-soft, #7a808f); }
.pp-mission-reward { font-weight: 800; color: var(--zno-primary, #6d4bff); white-space: nowrap; }
.pp-mission-action { flex: 0 0 auto; align-self: center; }
@media (max-width: 480px) { .pp-mission-grid { grid-template-columns: 1fr; } }

/* CRM AI Assistant (v3.6.0) */
.pp-ai { display: flex; flex-direction: column; gap: 12px; }
.pp-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-ai-head-l { display: flex; align-items: center; gap: 10px; }
.pp-ai-avatar { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: var(--zno-primary-soft, rgba(109,75,255,.12)); color: var(--zno-primary, #6d4bff); }
.pp-ai-title { font-weight: 800; font-size: 15px; color: var(--zno-text); }
.pp-ai-sub { font-size: 12px; color: var(--zno-text-soft, #7a808f); display: flex; align-items: center; gap: 6px; }
.pp-ai-dot { width: 8px; height: 8px; border-radius: 999px; background: #c3c8d4; display: inline-block; }
.pp-ai-dot.is-on { background: #22c55e; } .pp-ai-dot.is-off { background: #ef4444; }
.pp-ai-body { display: grid; grid-template-columns: 240px 1fr; gap: 12px; min-height: 420px; }
.pp-ai-side { border: 1px solid var(--zno-border); border-radius: 14px; background: var(--zno-card); overflow: hidden; display: flex; flex-direction: column; }
.pp-ai-side-head { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--zno-text-soft, #7a808f); padding: 12px 12px 6px; }
.pp-ai-list { overflow-y: auto; padding: 4px; }
.pp-ai-empty { padding: 8px 10px; }
.pp-ai-conv { display: flex; align-items: center; gap: 4px; border-radius: 8px; }
.pp-ai-conv:hover { background: var(--zno-primary-soft, rgba(109,75,255,.08)); }
.pp-ai-conv-open { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; background: none; border: 0; text-align: left; padding: 8px; cursor: pointer; color: var(--zno-text); }
.pp-ai-conv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pp-ai-conv-acts { display: flex; flex: 0 0 auto; }
.pp-ai-main { border: 1px solid var(--zno-border); border-radius: 14px; background: var(--zno-card); display: flex; flex-direction: column; min-width: 0; }
.pp-ai-thread { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 520px; }
.pp-ai-hello { color: var(--zno-text-soft, #7a808f); }
.pp-ai-msg { max-width: 90%; }
.pp-ai-msg.is-user { align-self: flex-end; text-align: right; }
.pp-ai-msg-who { font-size: 11px; color: var(--zno-text-soft, #7a808f); margin-bottom: 3px; }
.pp-ai-msg-body { padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; background: var(--zno-primary-soft, rgba(109,75,255,.08)); color: var(--zno-text); overflow-x: auto; }
.pp-ai-msg.is-user .pp-ai-msg-body { background: var(--zno-primary, #6d4bff); color: #fff; display: inline-block; text-align: left; }
.pp-ai-msg-body p { margin: 0 0 8px; } .pp-ai-msg-body p:last-child { margin: 0; }
.pp-ai-msg-body table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.pp-ai-msg-body th, .pp-ai-msg-body td { border: 1px solid var(--zno-border); padding: 4px 8px; text-align: left; }
.pp-ai-err { background: rgba(239,68,68,.10); color: #b91c1c; }
.pp-ai-sources { margin-top: 6px; font-size: 11.5px; color: var(--zno-text-soft, #7a808f); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pp-ai-src { background: var(--zno-border); border-radius: 999px; padding: 2px 8px; }
.pp-ai-msg-acts { margin-top: 4px; }
.pp-ai-typing .pp-ai-dots i { display: inline-block; width: 5px; height: 5px; border-radius: 999px; background: var(--zno-primary, #6d4bff); margin-right: 2px; animation: ppaiblink 1s infinite; }
.pp-ai-typing .pp-ai-dots i:nth-child(2) { animation-delay: .2s; } .pp-ai-typing .pp-ai-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes ppaiblink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
.pp-ai-prompts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.pp-ai-prompt { cursor: pointer; }
.pp-ai-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--zno-border); }
.pp-ai-input { flex: 1 1 auto; resize: none; border: 1px solid var(--zno-border); border-radius: 10px; padding: 10px 12px; font: inherit; background: var(--zno-bg, #fff); color: var(--zno-text); max-height: 140px; }
.pp-ai-send { flex: 0 0 auto; }
@media (max-width: 860px) {
    .pp-ai-body { grid-template-columns: 1fr; }
    .pp-ai-side { max-height: 180px; }
}

/* Production polish (v3.7.0 RC1) — shared loading + search utilities (theme-aware) */
.pp-skeleton { position: relative; overflow: hidden; background: var(--zno-border); border-radius: 8px; }
.pp-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); animation: ppskel 1.2s infinite; }
@media (prefers-color-scheme: dark) { .pp-skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); } }
:root[data-theme="dark"] .pp-skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); }
@keyframes ppskel { 100% { transform: translateX(100%); } }
.pp-skeleton-line { height: 12px; margin: 8px 0; }
.pp-skeleton-card { height: 96px; margin: 8px 0; }
.pp-skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
@media (prefers-reduced-motion: reduce) { .pp-skeleton::after, .pp-spinner { animation: none; } }
.pp-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--zno-border);
    border-top-color: var(--zno-primary, #6d4bff); border-radius: 999px; animation: ppspin .7s linear infinite; vertical-align: middle; }
@keyframes ppspin { 100% { transform: rotate(360deg); } }
.pp-loading { display: inline-flex; align-items: center; gap: 8px; color: var(--zno-text-soft, #7a808f); font-size: 13px; }
/* Clearable search (added by member.js) */
.pp-search-wrap { position: relative; display: inline-flex; align-items: center; }
.pp-search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none;
    cursor: pointer; color: var(--zno-text-soft, #7a808f); line-height: 1; padding: 2px; border-radius: 999px; }
.pp-search-clear:hover { color: var(--zno-text); }
.pp-search-wrap .pp-evt-search { padding-right: 26px; }

/* Balanced bottom-dashboard grid — equal 2-column, equal-height cards.
   Scoped MODIFIER on the existing .pp-two so the main+sidebar .pp-two used elsewhere
   (wallet, reports, calendar) is unaffected. Applied to the CRM/Merchant/Member
   dashboard bottom sections only. */
.pp-two-even { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pp-two-even > .pp-colstack { height: 100%; gap: 0; }
.pp-two-even .pp-colstack > .pp-row-head { margin: 0 0 14px; }
.pp-two-even .pp-colstack > .pp-card { flex: 1 1 auto; }
/* The card fills its column (equal row heights). Content keeps its own display; only
   empty states are centered — so horizontal list rows (meetings, feed) are unaffected. */
.pp-two-even .pp-card { display: flex; flex-direction: column; min-height: 200px; }
.pp-two-even .pp-card > .zno-empty,
.pp-two-even .pp-card > .pp-tl-empty,
.pp-two-even .pp-card .pp-tl-empty { margin: auto; min-height: 140px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; }
@media (max-width: 768px) { .pp-two-even { grid-template-columns: 1fr; } }
.pp-foot { margin-top: 6px; }

/* =====================================================================
 * v3.7.1 — Coupon Exchange disabled button, production theme hardening.
 * The disabled Redeem button ("Not enough PP" / out-of-stock / expired / not-started /
 * already-claimed / daily-limit / merchant-unavailable — all render the SAME disabled
 * `.pp-btn.pp-btn-primary.pp-btn-block[disabled]` inside `.pp-cpredeem-form` in a
 * `.pp-cpcard`) is compressed / low-contrast on production when a theme, Elementor, or
 * the WP global styles override it via `button:disabled`, `.wp-element-button`,
 * `.elementor-button`, or generic `button` padding/line-height/background rules.
 * Re-assert the intended presentation — SCOPED to the Coupon Exchange card only (never a
 * global `button:disabled`), with `!important` on the properties themes commonly override.
 * CSS only: no markup, logic, balance/stock/availability, or enabled-button change. ===== */
.pp-cpcard .pp-cpredeem-form button.pp-btn.pp-btn-block:disabled,
.pp-cpcard .pp-cpredeem-form button.pp-btn.pp-btn-block[disabled],
.pp-cpcard button.pp-btn:disabled,
.pp-cpcard button.pp-btn[disabled] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    border-radius: 10px !important;                        /* the plugin's .pp-btn radius */
    cursor: not-allowed !important;
    color: #ffffff !important;                             /* readable text on the pink bg */
    background: var(--zno-primary, #ff2e9a) !important;    /* muted pink (via pinned opacity) */
    border: 1px solid var(--zno-primary, #ff2e9a) !important;
    opacity: .6 !important;                                /* pinned so a theme can't darken it */
    transform: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* =====================================================================
 * v3.7.2 — Event module production fixes (UI): upcoming card grid, event
 * image picker, Interested states, Share modal, category accent, map note.
 * ===================================================================== */
.is-hidden { display: none !important; }

/* D) Upcoming/Latest event cards → responsive grid, never tiny. */
.pp-evrow.pp-evrow-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-flow: initial; overflow: visible; }
@media (max-width: 560px) { .pp-evrow.pp-evrow-3 { grid-template-columns: 1fr; } }

/* v3.7.3 — the ACTUAL Calendar-page "Upcoming Events" grid (was .pp-evrow-5 = 5 tiny
   forced columns inside the dashboard width). Dedicated class → NOT sized like the
   month-view calendar chips. Full-width card image, readable min width, auto-fill. */
.pp-upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 16px; align-items: start; }
.pp-upcoming-grid > .pp-evcard { width: 100%; max-width: none; min-width: 0; }
.pp-upcoming-grid .pp-evcard-img { aspect-ratio: 16/10; }
@media (max-width: 560px) { .pp-upcoming-grid { grid-template-columns: 1fr; } }

/* B/C) CRM Event Image picker. */
.zno-media-field .zno-media-preview { margin-top: 6px; width: 100%; max-width: 320px; aspect-ratio: 16/9; border: 1px solid var(--zno-border);
    border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--zno-bg-soft, #f4f5f7); }
.zno-media-field .zno-media-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zno-media-field .zno-media-preview.is-empty { flex-direction: column; gap: 4px; color: var(--zno-faint); }
.zno-media-field .zno-media-preview.is-empty .dashicons { font-size: 30px; width: 30px; height: 30px; }
.zno-media-hint { font-size: 12px; }
.zno-media-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* F) Interested button states. */
.pp-ed-interest.is-on { background: var(--zno-primary-hover, #ff5cae); }
.pp-ed-interest.is-loading { opacity: .75; cursor: progress; }
.pp-ed-interest-count { display: inline-flex; min-width: 20px; height: 18px; padding: 0 6px; margin-left: 4px; align-items: center;
    justify-content: center; border-radius: 999px; background: rgba(255,255,255,.28); font-size: 11px; font-weight: 800; }
.pp-ed-interest-count[hidden] { display: none; }
.pp-ed-interest-note { font-size: 12px; color: var(--zno-muted); margin: 6px 0 0; text-align: center; }
.pp-map-note { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border: 1px dashed var(--zno-border);
    border-radius: 12px; color: var(--zno-muted); font-size: 13px; }

/* H) Category chips — retain managed colour via --pp-cat, no grey dot. */
.pp-cat.is-on { background: color-mix(in srgb, var(--pp-cat, var(--zno-primary)) 12%, transparent); border-color: var(--pp-cat, var(--zno-primary)); color: var(--pp-cat, var(--zno-primary)); }
.pp-cat:hover { border-color: var(--pp-cat, var(--zno-primary)); }

/* G) Share modal. */
.zno-share-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .2s ease; }
.zno-share-modal.is-open { opacity: 1; }
.zno-share-scrim { position: absolute; inset: 0; background: rgba(15,17,26,.55); }
.zno-share-dialog { position: relative; z-index: 1; width: 100%; max-width: 420px; background: var(--zno-card, #fff); color: var(--zno-text, #14060d);
    border: 1px solid var(--zno-border); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.28); padding: 16px 18px; }
.zno-share-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.zno-share-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.zno-share-x { border: 0; background: none; cursor: pointer; color: var(--zno-muted); padding: 4px; border-radius: 8px; }
.zno-share-x:hover { color: var(--zno-text); }
.zno-share-copyrow { display: flex; gap: 8px; margin-bottom: 12px; }
.zno-share-url { flex: 1 1 auto; min-width: 0; border: 1px solid var(--zno-border); border-radius: 10px; padding: 9px 11px; font: inherit; background: var(--zno-bg, #fff); color: var(--zno-text); }
.zno-share-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zno-share-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--zno-border); border-radius: 10px;
    background: var(--zno-card); color: var(--zno-text); text-decoration: none; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.zno-share-link:hover { border-color: var(--zno-primary); color: var(--zno-primary); }
.zno-share-toast.is-error { background: #b42318; }
/* v4.0.0 — upgraded channel buttons (icon + label + optional helper text) */
.zno-share-link { flex-wrap: wrap; }
.zno-share-lbl { flex: 1 1 auto; }
.zno-share-help { flex: 1 1 100%; font-weight: 400; font-size: 11px; color: var(--zno-muted); margin-left: 26px; }
@media (max-width: 420px) { .zno-share-links { grid-template-columns: 1fr; } }

/* v4.0.0 — social-share settings flags + member share-rewards status */
.pp-share-flags { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pp-share-status .pp-two-even > div { text-align: center; padding: 6px 0; }
.pp-share-stat { display: block; font-size: 22px; font-weight: 800; color: var(--zno-primary); line-height: 1.1; }

/* v4.1.0 — Badges & Achievements + CRM Leaderboard */
.pp-badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pp-badge-grid-sm { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pp-badge-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; border: 1px solid var(--zno-border, #eceef2); border-radius: 12px; background: var(--zno-card, #fff); }
.pp-badge-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--zno-primary-soft); color: var(--zno-primary); margin-bottom: 4px; overflow: hidden; }
.pp-badge-ico img { width: 100%; height: 100%; object-fit: cover; }
.pp-badge-ico .dashicons { font-size: 26px; width: 26px; height: 26px; }
.pp-badge-name { font-weight: 700; font-size: 13px; }
.pp-badge-desc { font-size: 11.5px; color: var(--zno-muted); }
.pp-badge-date { font-size: 11px; color: var(--zno-muted); }
.pp-badge-inline { display: inline-flex; align-items: center; gap: 8px; }
.pp-badge-inline .pp-badge-ico { width: 30px; height: 30px; margin: 0; }
.pp-badge-inline .pp-badge-ico .dashicons { font-size: 16px; width: 16px; height: 16px; }
.pp-inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.pp-inline-reason { max-width: 160px; }
.pp-lb-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.pp-lb-podcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border-radius: 14px; border: 1px solid var(--zno-border, #eceef2); background: var(--zno-card, #fff); position: relative; }
.pp-lb-podcard.is-rank1 { border-color: #f5b301; box-shadow: 0 0 0 2px rgba(245,179,1,.18); }
.pp-lb-podcard.is-rank2 { border-color: #b8c0cc; }
.pp-lb-podcard.is-rank3 { border-color: #cd7f32; }
.pp-lb-rank { font-weight: 800; color: var(--zno-primary); }
.pp-lb-podname { font-weight: 700; }
.pp-lb-podscore { font-size: 22px; font-weight: 800; color: var(--zno-primary); }
.pp-lb-name { display: inline-flex; align-items: center; gap: 8px; }
.zno-avatar-xs { width: 24px; height: 24px; }
.zno-avatar-xs img, .zno-avatar-lg img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.zno-avatar-lg { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; }
.pp-lb-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
@media (max-width: 600px) { .pp-lb-podium { grid-template-columns: 1fr; } }

/* =====================================================================
 * v3.7.4 — Reusable Event Card (ONE component used everywhere: Member /
 * Merchant / Admin dashboards, Latest / Upcoming / Recommended / Related,
 * Calendar sidebar). Refactored in ONE place — no page-specific card CSS.
 * Overlays sit in the four distinct corners of the image and are layered
 * with z-index so badges never cover each other; image is object-fit:cover.
 * ===================================================================== */
.pp-evcard { display: flex; flex-direction: column; min-width: 0; }
.pp-evcard-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pp-evcard-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pp-evcard-img .pp-evcard-ph { z-index: 1; }
/* four corner overlays, above the image */
.pp-evcard-img > .pp-evnew,
.pp-evcard-img > .pp-evcard-fav,
.pp-evcard-img > .pp-date-badge,
.pp-evcard-img > .pp-evcard-cat { position: absolute; z-index: 2; }
.pp-evcard-img > .pp-evnew        { top: 8px; left: 8px; right: auto; bottom: auto; }        /* top-left */
.pp-evcard-img > .pp-evcard-fav   { top: 8px; right: 8px; left: auto; bottom: auto; z-index: 3; } /* top-right */
.pp-evcard-img > .pp-date-badge   { left: 8px; bottom: 8px; top: auto; right: auto; }        /* bottom-left */
.pp-evcard-img > .pp-evcard-cat   { right: 8px; bottom: 8px; top: auto; left: auto; max-width: 58%;   /* bottom-right */
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(0,0,0,.62); color: #fff;
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; line-height: 1.15; }
/* body — never overlaps, consistent spacing */
.pp-evcard-body { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px 13px; min-width: 0; }
.pp-evcard-title { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--zno-text); margin-bottom: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-evcard-when, .pp-evcard-org, .pp-evcard-venue { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--zno-muted); margin-top: 2px; min-width: 0; }
.pp-evcard-when .dashicons, .pp-evcard-org .dashicons, .pp-evcard-venue .dashicons { font-size: 14px; width: 14px; height: 14px; flex: 0 0 14px; color: var(--zno-primary); }
.pp-evcard-when > span:last-child, .pp-evcard-org > span:last-child, .pp-evcard-venue > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-evcard-when { color: var(--zno-primary); font-weight: 600; }
/* Calendar sidebar rail → single column of the same card. */
.pp-upcoming-grid-1 { grid-template-columns: 1fr; }

/* v3.7.5 — Event email reminders UI */
.pp-ed-bookmark.is-on { background: var(--zno-primary-soft); border-color: var(--zno-primary); color: var(--zno-primary); }
.pp-ed-bookmark.is-loading { opacity: .7; cursor: progress; }
.pp-ed-reminder-note { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12px; color: var(--zno-muted); }
.pp-ed-reminder-note .dashicons { font-size: 15px; width: 15px; height: 15px; color: var(--zno-primary); }
.pp-cal-subtabs { margin: 0 0 12px; }

/* v3.8.0 — Notification Center (shared engine console + member preferences) */
.pp-cal-subtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-subtab { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--zno-muted); background: var(--zno-surface-2, #f4f5f7); text-decoration: none; border: 1px solid transparent; }
.pp-subtab:hover { color: var(--zno-ink, #1f2430); }
.pp-subtab.is-active { background: var(--zno-primary-soft); color: var(--zno-primary); border-color: var(--zno-primary); }
.pp-ntf-kpis { margin-bottom: 16px; }
.pp-ntf-channels { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-ntf-channels li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pp-ntf-channels li .zno-status { margin-left: auto; }
.pp-ntf-table { margin-top: 8px; }
.pp-ntf-table .pp-table th.pp-num, .pp-ntf-table .pp-table td.pp-num { text-align: center; width: 88px; }
.pp-ntf-future { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--zno-muted); }
.pp-ntf-future .dashicons { font-size: 15px; width: 15px; height: 15px; }
@media (max-width: 600px) { .pp-subtab { padding: 6px 10px; font-size: 12px; } }

/* v3.9.0 — Automation Engine console */
.pp-auto-kpis { margin-bottom: 16px; }
.pp-auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pp-auto-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pp-auto-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pp-auto-inline { display: inline; margin: 0; }
.pp-btn-danger { color: #c62828; border-color: rgba(198,40,40,.4); }
.pp-auto-toplist { list-style: none; margin: 0; padding: 0; }
.pp-auto-toplist li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--zno-border, #eceef2); font-size: 13px; }
.pp-auto-step { margin-top: 12px; }
.pp-auto-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--zno-primary); color: #fff; font-size: 12px; font-weight: 800; margin-right: 6px; }
.pp-auto-cond { align-items: flex-end; }
.pp-auto-action-row { padding: 12px; margin-top: 10px; border: 1px dashed var(--zno-border, #dfe3ea); }
.pp-auto-action-row.is-empty { opacity: .6; }
.pp-auto-health { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.pp-auto-health .dashicons { font-size: 15px; width: 15px; height: 15px; vertical-align: middle; }
@media (max-width: 768px) {
    .pp-auto-grid { grid-template-columns: 1fr; }
    .pp-auto-builder .zno-field-row { flex-direction: column; }
}
