/* ZNO WordPress Dashboard — frontend styles
   Clean, modern membership UI. Mobile-first, card-based, tokenised. */

:root {
    --zno-primary: #4f46e5;
    --zno-primary-hover: #4338ca;
    --zno-primary-soft: rgba(79, 70, 229, .12);
    --zno-text: #111827;
    --zno-muted: #6b7280;
    --zno-faint: #9ca3af;
    --zno-border: #e5e7eb;
    --zno-border-input: #d1d5db;
    --zno-bg-soft: #f9fafb;
    --zno-bg-chip: #f3f4f6;
    --zno-card: #fff;
    --zno-success: #16a34a;
    --zno-danger: #b91c1c;
    --zno-warning: #b45309;
    --zno-whatsapp: #25d366;
    --zno-featured: #f59e0b;
    --zno-radius: 14px;
    --zno-radius-md: 12px;
    --zno-radius-sm: 9px;
    --zno-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --zno-shadow-hover: 0 10px 28px rgba(16, 24, 40, .10);
    --zno-gap: 16px;
}

/* base scope */
.zno-auth-card,
.zno-dashboard,
.zno-directory,
.zno-directory-detail,
.zno-event-calendar,
.zno-event-single,
.zno-rewards,
.zno-chatbot-box {
    box-sizing: border-box;
    color: var(--zno-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.zno-auth-card *, .zno-dashboard *, .zno-directory *, .zno-directory-detail * { box-sizing: border-box; }

/* ---------- Auth cards ---------- */
.zno-auth-card {
    max-width: 440px;
    margin: 32px auto;
    padding: 32px;
    background: var(--zno-card);
    border: 1px solid var(--zno-border);
    border-radius: var(--zno-radius);
    box-shadow: var(--zno-shadow);
}
.zno-auth-title { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.zno-auth-sub { margin: 0 0 18px; color: var(--zno-muted); }
.zno-auth-alt { margin-top: 18px; font-size: 14px; color: var(--zno-muted); text-align: center; }
.zno-auth-alt a { color: var(--zno-primary); text-decoration: none; font-weight: 600; }
.zno-auth-alt a:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.zno-field { margin-bottom: 16px; }
.zno-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.zno-field input[type="text"],
.zno-field input[type="email"],
.zno-field input[type="tel"],
.zno-field input[type="password"],
.zno-field input[type="url"],
.zno-field input[type="number"],
.zno-field input[type="time"],
.zno-field input[type="date"],
.zno-field input[type="search"],
.zno-field select,
.zno-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--zno-border-input);
    border-radius: var(--zno-radius-sm);
    font-size: 15px;
    background: #fff;
    color: var(--zno-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.zno-field input:focus,
.zno-field select:focus,
.zno-field textarea:focus { outline: none; border-color: var(--zno-primary); box-shadow: 0 0 0 3px var(--zno-primary-soft); }
.zno-hint { display: block; margin-top: 5px; color: var(--zno-faint); font-size: 12px; }
.zno-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.zno-radio, .zno-checkbox { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.zno-radio { border: 1px solid var(--zno-border-input); border-radius: var(--zno-radius-sm); padding: 9px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.zno-radio:hover { border-color: var(--zno-primary); }
.zno-checkbox { margin: 4px 0 14px; }
.zno-otp-input { letter-spacing: 8px; font-size: 22px !important; text-align: center; font-weight: 700; }

/* ---------- Buttons ---------- */
.zno-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--zno-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    transition: background .15s ease, box-shadow .15s ease, transform .05s ease, opacity .15s ease;
}
.zno-btn:active { transform: translateY(1px); }
.zno-btn:focus-visible { outline: 2px solid var(--zno-primary); outline-offset: 2px; }
.zno-btn-primary { background: var(--zno-primary); color: #fff; width: 100%; }
.zno-btn-primary:hover { background: var(--zno-primary-hover); box-shadow: 0 4px 12px var(--zno-primary-soft); }
.zno-btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.zno-btn-small { width: auto; padding: 8px 14px; font-size: 14px; }
.zno-btn-ghost { background: #fff; color: #374151; border-color: var(--zno-border-input); }
.zno-btn-ghost:hover { background: var(--zno-bg-soft); border-color: var(--zno-muted); }
.zno-btn-whatsapp { background: var(--zno-whatsapp); color: #fff; }
.zno-btn-whatsapp:hover { background: #1da851; }

/* ---------- Messages / notices ---------- */
.zno-form-message { display: none; margin-bottom: 16px; padding: 11px 13px; border-radius: var(--zno-radius-sm); font-size: 14px; }
.zno-msg-error   { background: #fef2f2; color: var(--zno-danger); border: 1px solid #fecaca; }
.zno-msg-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.zno-msg-info    { background: #eef2ff; color: var(--zno-primary-hover); border: 1px solid #c7d2fe; }
.zno-notice { padding: 12px 15px; border-radius: var(--zno-radius-sm); margin: 12px 0; font-size: 14px; border: 1px solid transparent; }
.zno-notice-info    { background: #eef2ff; color: var(--zno-primary-hover); border-color: #c7d2fe; }
.zno-notice-success { background: #ecfdf5; color: var(--zno-success); border-color: #a7f3d0; }
.zno-notice-warning { background: #fffbeb; color: var(--zno-warning); border-color: #fde68a; }

/* ---------- Layout / Dashboard ---------- */
.zno-dashboard, .zno-directory, .zno-directory-detail, .zno-event-calendar, .zno-rewards { max-width: 1000px; margin: 0 auto; }
.zno-dash-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.zno-dash-header h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.zno-dash-sub { margin: 2px 0 0; color: var(--zno-muted); }
.zno-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--zno-gap); margin-bottom: 20px; }
.zno-card { background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: var(--zno-radius-md); padding: 20px; margin: 0 0 var(--zno-gap); box-shadow: var(--zno-shadow); }
.zno-card h3 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.zno-card h4 { margin: 16px 0 8px; font-size: 15px; font-weight: 700; }
.zno-muted { color: var(--zno-muted); font-size: 14px; margin: 0; }
.zno-empty { color: var(--zno-faint); font-size: 14px; text-align: center; padding: 22px 12px; background: var(--zno-bg-soft); border-radius: var(--zno-radius-sm); }

/* stat cards */
.zno-stat-card { display: flex; flex-direction: column; gap: 6px; }
.zno-stat-label { color: var(--zno-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.zno-stat-value { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.zno-stat-card small { font-size: 11px; }

/* progress bar */
.zno-progress { height: 8px; background: var(--zno-border); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.zno-progress-bar { height: 100%; background: var(--zno-primary); border-radius: 999px; transition: width .3s ease; }

/* badges */
.zno-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.zno-badge-pending   { background: #fef3c7; color: #92400e; }
.zno-badge-approved  { background: #dcfce7; color: #166534; }
.zno-badge-rejected  { background: #fee2e2; color: #991b1b; }
.zno-badge-suspended { background: #e5e7eb; color: #374151; }

/* quick actions */
.zno-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* merchant identity / logo */
.zno-dash-id { display: flex; align-items: center; gap: 12px; }
.zno-dash-logo { width: 52px; height: 52px; border-radius: var(--zno-radius-sm); object-fit: cover; border: 1px solid var(--zno-border); }

/* profile table */
.zno-profile-table { width: 100%; border-collapse: collapse; }
.zno-profile-table th { text-align: left; width: 160px; padding: 9px 10px; color: var(--zno-muted); font-weight: 600; vertical-align: top; }
.zno-profile-table td { padding: 9px 10px; }

/* ---------- Points ---------- */
.zno-points-balance { font-size: 36px; font-weight: 800; margin: 4px 0 16px; letter-spacing: -.02em; }
.zno-points-balance span { font-size: 16px; color: var(--zno-muted); font-weight: 600; }
/* Login streak card */
.zno-streak { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin: 0 0 16px; border: 1px solid var(--zno-border); border-radius: var(--zno-radius); background: var(--zno-primary-soft); }
.zno-streak-num { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 10px 6px; border-radius: var(--zno-radius); background: #fff; border: 1px solid var(--zno-border); }
.zno-streak-num span { font-size: 28px; font-weight: 800; line-height: 1; color: var(--zno-primary); letter-spacing: -.02em; }
.zno-streak-num small { font-size: 11px; color: var(--zno-muted); font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
.zno-streak-info { display: flex; flex-direction: column; gap: 3px; }
.zno-streak-info strong { font-size: 15px; font-weight: 700; }
.zno-streak-last, .zno-streak-next { font-size: 13px; color: var(--zno-muted); }
.zno-streak-next { color: var(--zno-primary); font-weight: 600; }
/* Share reward toast */
.zno-share-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px); z-index: 99999; max-width: 90vw; padding: 12px 18px; border-radius: 10px; background: #111827; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.22); opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.zno-share-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================================
 * Event Calendar (FullCalendar) — themed via the design tokens (light/dark).
 * ===================================================================== */
.zno-calendar-wrap { max-width: 1100px; margin: 0 auto; }
.zno-calendar {
    color: var(--zno-text);
    --fc-border-color: var(--zno-border);
    --fc-page-bg-color: var(--zno-card);
    --fc-neutral-bg-color: var(--zno-bg-soft);
    --fc-neutral-text-color: var(--zno-muted);
    --fc-today-bg-color: var(--zno-primary-soft);
    --fc-event-bg-color: var(--zno-primary);
    --fc-event-border-color: var(--zno-primary);
    --fc-event-text-color: var(--zno-primary-contrast);
    --fc-button-text-color: var(--zno-text);
    --fc-button-bg-color: var(--zno-card);
    --fc-button-border-color: var(--zno-border);
    --fc-button-hover-bg-color: var(--zno-bg-soft);
    --fc-button-hover-border-color: var(--zno-border);
    --fc-button-active-bg-color: var(--zno-primary);
    --fc-button-active-border-color: var(--zno-primary);
    --fc-list-event-hover-bg-color: var(--zno-bg-soft);
}
.zno-calendar .fc .fc-toolbar-title { font-size: 18px; color: var(--zno-text); }
.zno-calendar .fc .fc-button { font-weight: 600; border-radius: var(--zno-radius-sm); box-shadow: none; }
.zno-calendar .fc .fc-button-primary:not(:disabled).fc-button-active { color: var(--zno-primary-contrast); }
.zno-calendar .fc-daygrid-day-number,
.zno-calendar .fc-col-header-cell-cushion,
.zno-calendar .fc-list-day-text,
.zno-calendar .fc-list-day-side-text { color: var(--zno-text); text-decoration: none; }
.zno-calendar .fc-event { cursor: pointer; }
.zno-calendar .zno-fc-cancelled { opacity: .55; text-decoration: line-through; }
@media (max-width: 640px) {
    .zno-calendar .fc .fc-toolbar { flex-direction: column; gap: 8px; }
    .zno-calendar .fc .fc-toolbar-title { font-size: 16px; }
}

/* Event Calendar page: left sidebar + calendar */
.zno-cal-page { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.zno-cal-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.zno-cal-card { background: var(--zno-card); border: 1px solid var(--zno-border); border-radius: var(--zno-radius); padding: 16px; color: var(--zno-text); }
.zno-cal-h { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--zno-text); }
.zno-cal-hl { display: block; text-decoration: none; color: inherit; }
.zno-cal-hl-img { display: block; aspect-ratio: 16/9; border-radius: var(--zno-radius-sm); overflow: hidden; background: var(--zno-primary-soft); }
.zno-cal-hl-img img { width: 100%; height: 100%; object-fit: cover; }
.zno-cal-hl-img.is-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--zno-primary), var(--zno-primary-hover)); }
.zno-cal-hl-img.is-empty .dashicons { color: #fff; font-size: 30px; width: 30px; height: 30px; }
.zno-cal-hl-title { display: block; font-weight: 700; margin: 8px 0 2px; }
.zno-cal-hl-date { display: flex; align-items: center; gap: 4px; color: var(--zno-muted); font-size: 13px; }
.zno-cal-hl-date .dashicons, .zno-cal-up-sub .dashicons { font-size: 15px; width: 15px; height: 15px; }
.zno-cal-up { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.zno-cal-up-item a { display: flex; gap: 11px; align-items: center; padding: 8px 0; border-top: 1px solid var(--zno-border); text-decoration: none; color: inherit; }
.zno-cal-up-item:first-child a { border-top: 0; }
.zno-cal-up-date { flex: 0 0 46px; text-align: center; background: var(--zno-bg-soft); border: 1px solid var(--zno-border); border-radius: 9px; padding: 5px 4px; }
.zno-cal-up-d { display: block; font-weight: 800; font-size: 15px; color: var(--zno-primary); }
.zno-cal-up-m { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--zno-primary); }
.zno-cal-up-body { min-width: 0; }
.zno-cal-up-title { display: block; font-weight: 600; font-size: 14px; color: var(--zno-text); }
.zno-cal-up-sub { display: block; color: var(--zno-muted); font-size: 12px; }
.zno-cal-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.zno-cal-cat-n { opacity: .7; font-weight: 700; }
@media (max-width: 880px) { .zno-cal-page { grid-template-columns: 1fr; } }

/* Event detail additions */
.zno-ep-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.zno-ep-h2 { font-size: 17px; margin: 22px 0 10px; color: var(--zno-text); }
.zno-ep-fact-sub { color: var(--zno-muted); font-size: 13px; }
.zno-ep-similar { max-width: 860px; margin: 24px auto; padding: 0 16px; }

/* Coupon Exchange */
.zno-coupon-cost { font-weight: 800; color: var(--zno-primary); font-size: 15px; }
.zno-coupon-bal { display: inline-flex; align-items: center; gap: 8px; background: var(--zno-primary-soft); color: var(--zno-primary); border-radius: var(--zno-pill); padding: 7px 16px; font-size: 14px; margin-bottom: 6px; }
.zno-coupon-bal strong { font-size: 18px; font-weight: 800; }
.zno-coupon-price { font-size: 26px; font-weight: 800; color: var(--zno-primary); margin-bottom: 10px; }
.zno-coupon-price span { font-size: 14px; color: var(--zno-muted); font-weight: 600; }
.zno-coupon-redeem { text-align: center; }
.zno-coupon-redeem .zno-mp-info { text-align: left; }
.zno-coupon-ticket { border-style: dashed; }
.zno-coupon-code { display: inline-block; font-family: monospace; font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--zno-text); background: var(--zno-bg-chip); border-radius: var(--zno-radius-sm); padding: 8px 14px; margin: 6px 0; }
.zno-how { margin: 0; padding-left: 18px; color: var(--zno-text); }
.zno-how li { margin: 8px 0; }

/* Manual share button ([zno_share_button]) */
.zno-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--zno-primary); border-radius: 9px; background: var(--zno-primary); color: #fff; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.zno-share-btn:hover { background: var(--zno-primary-hover); border-color: var(--zno-primary-hover); color: #fff; }
.zno-share-btn .dashicons { font-size: 17px; width: 17px; height: 17px; }
/* Merchant public profile: tags + map (Phase 2.2) */
.zno-mp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.zno-mp-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #eff6ff; color: #1e40af; font-size: 12px; font-weight: 600; }
.zno-mp-map { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--zno-border, #e5e7eb); margin-bottom: 10px; }
.zno-mp-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.zno-app-saas .zno-card-intro { color: var(--zno-muted, #64748b); font-size: 13px; margin: 0 0 12px; }

/* =====================================================================
 * Public Website — Business Listings (Phase C)
 * ===================================================================== */
.zno-listings { max-width: 1200px; margin: 0 auto; padding: 8px 0; color: #1d2327; }
.zno-listings-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.zno-listings-filters input[type="search"], .zno-listings-filters select { padding: 9px 12px; border: 1px solid #dcdcde; border-radius: 9px; font-size: 14px; background: #fff; }
.zno-listings-filters input[type="search"] { min-width: 220px; flex: 1 1 220px; }
.zno-listings-count { color: #646970; font-size: 13px; margin: 0 0 12px; }
.zno-listings-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.zno-listings-grid.zno-cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.zno-listing-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: box-shadow .15s ease, transform .15s ease; }
.zno-listing-card:hover { box-shadow: 0 14px 30px rgba(15,23,42,.12); transform: translateY(-2px); }
.zno-listing-cover { position: relative; aspect-ratio: 16 / 10; background: #eff6ff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zno-listing-cover img { width: 100%; height: 100%; object-fit: cover; }
.zno-listing-cover.is-empty { background: linear-gradient(135deg, var(--zno-primary), var(--zno-primary-hover)); }
.zno-listing-cover.is-empty .dashicons { color: #fff; opacity: .9; font-size: 34px; width: 34px; height: 34px; }
.zno-listing-cat { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); color: #1e40af; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.zno-listing-body { display: flex; flex-direction: column; gap: 6px; padding: 13px 14px 15px; }
.zno-listing-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.zno-listing-place { display: flex; align-items: center; gap: 4px; color: #50575e; font-size: 13px; }
.zno-listing-place .dashicons { font-size: 15px; width: 15px; height: 15px; color: #8c8f94; }
.zno-listing-desc { color: #646970; font-size: 13px; line-height: 1.45; }
.zno-listing-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.zno-listing-tag { background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.zno-listings-pagination { display: flex; justify-content: center; gap: 6px; margin: 22px 0 6px; }
.zno-listings-pagination .page-numbers { display: inline-block; padding: 7px 12px; border: 1px solid #dcdcde; border-radius: 8px; background: #fff; text-decoration: none; color: #1d2327; }
.zno-listings-pagination .page-numbers.current { background: var(--zno-primary); border-color: var(--zno-primary); color: #fff; }

/* Single listing page */
.zno-listing-page { color: #1d2327; }
.zno-lp-hero { width: 100%; aspect-ratio: 5 / 2; max-height: 380px; background: #eff6ff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zno-lp-hero img { width: 100%; height: 100%; object-fit: cover; }
.zno-lp-hero.is-empty { background: linear-gradient(135deg, var(--zno-primary), var(--zno-primary-hover)); }
.zno-lp-hero.is-empty .dashicons { color: #fff; font-size: 54px; width: 54px; height: 54px; opacity: .9; }
.zno-lp-wrap { max-width: 1100px; margin: -40px auto 40px; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.zno-lp-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.zno-lp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.zno-lp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.zno-lp-card h2 { margin: 0 0 10px; font-size: 16px; }
.zno-lp-head { display: flex; gap: 14px; align-items: center; }
.zno-lp-logo img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid #e5e7eb; }
.zno-lp-title { margin: 0; font-size: 24px; line-height: 1.2; }
.zno-lp-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #50575e; font-size: 14px; margin-top: 6px; }
.zno-lp-meta .dashicons { font-size: 16px; width: 16px; height: 16px; }
.zno-lp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.zno-lp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.zno-lp-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.zno-lp-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.zno-lp-social { font-size: 13px; font-weight: 600; color: var(--zno-primary); text-decoration: none; padding: 4px 10px; border: 1px solid #dbeafe; border-radius: 999px; }
@media (max-width: 880px) {
    .zno-lp-wrap { grid-template-columns: 1fr; margin-top: -24px; }
}
@media (max-width: 600px) { .zno-streak { flex-wrap: wrap; } }
.zno-form-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.zno-form-inline input[type="url"] { flex: 1; min-width: 200px; padding: 11px 13px; border: 1px solid var(--zno-border-input); border-radius: var(--zno-radius-sm); }
.zno-points-history { width: 100%; border-collapse: collapse; font-size: 14px; }
.zno-points-history th { text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--zno-border); color: var(--zno-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.zno-points-history td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #f0f0f0; }
.zno-pos { color: var(--zno-success); font-weight: 700; }
.zno-neg { color: var(--zno-danger); font-weight: 700; }

/* ---------- Rewards / vouchers ---------- */
.zno-rewards-balance { margin: 0 0 14px; color: #374151; font-size: 15px; }
.zno-reward-card { display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.zno-grid-cards .zno-reward-card:hover { box-shadow: var(--zno-shadow-hover); transform: translateY(-2px); }
.zno-reward-card img { max-width: 100%; height: 150px; object-fit: cover; width: 100%; border-radius: var(--zno-radius-sm); margin-bottom: 10px; }
.zno-reward-card h3, .zno-reward-card h4 { margin: 0 0 6px; font-size: 16px; }
.zno-reward-body { color: #4b5563; font-size: 14px; margin-bottom: 8px; }
.zno-reward-cost { font-size: 18px; margin: 4px 0 12px; font-weight: 700; }
.zno-reward-cost strong { color: var(--zno-primary); }
.zno-redeem-result code, .zno-my-vouchers code { background: var(--zno-bg-chip); padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.zno-copy-code { border: none; background: none; cursor: pointer; padding: 2px; vertical-align: middle; color: var(--zno-muted); border-radius: 6px; }
.zno-copy-code:hover { color: var(--zno-primary); background: var(--zno-primary-soft); }
.zno-copy-code .dashicons { font-size: 16px; width: 16px; height: 16px; }
.zno-copy-code.is-copied { color: var(--zno-success); }

/* ---------- Event Calendar ---------- */
.zno-cal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.zno-cal-title { margin: 0; font-size: 20px; font-weight: 700; }
.zno-cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.zno-cal-grid th { background: var(--zno-bg-soft); border: 1px solid var(--zno-border); padding: 9px 4px; font-size: 12px; color: var(--zno-muted); text-transform: uppercase; font-weight: 600; }
.zno-cal-grid td { border: 1px solid var(--zno-border); vertical-align: top; height: 86px; padding: 5px; }
.zno-cal-empty { background: var(--zno-bg-soft); }
.zno-cal-num { display: block; font-size: 12px; color: var(--zno-faint); text-align: right; }
.zno-cal-today { background: var(--zno-primary-soft); }
.zno-cal-today .zno-cal-num { color: var(--zno-primary); font-weight: 700; }
.zno-cal-event { display: block; font-size: 11px; line-height: 1.3; margin-top: 3px; padding: 2px 5px; border-radius: 5px; background: var(--zno-primary); color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zno-cal-event:hover { background: var(--zno-primary-hover); }
.zno-cal-event-cancelled { background: var(--zno-faint); text-decoration: line-through; }

/* Upcoming events list */
.zno-upcoming-title { margin: 24px 0 12px; font-size: 18px; font-weight: 700; }
.zno-upcoming-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--zno-gap); }
.zno-upcoming-compact { grid-template-columns: 1fr; }
.zno-event-card { display: flex; gap: 14px; border: 1px solid var(--zno-border); border-radius: var(--zno-radius-md); padding: 14px; background: var(--zno-card); box-shadow: var(--zno-shadow); transition: box-shadow .15s ease, transform .15s ease; }
.zno-event-card:hover { box-shadow: var(--zno-shadow-hover); transform: translateY(-2px); }
.zno-event-poster { flex: 0 0 88px; width: 88px; height: 88px; border-radius: var(--zno-radius-sm); overflow: hidden; background: var(--zno-bg-chip); display: flex; align-items: center; justify-content: center; }
.zno-event-poster img { width: 100%; height: 100%; object-fit: cover; }
.zno-event-poster-fallback { font-size: 28px; color: #cbd5e1; }
.zno-event-body { flex: 1; min-width: 0; }
.zno-event-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.zno-event-title a { text-decoration: none; color: var(--zno-text); }
.zno-event-title a:hover { color: var(--zno-primary); }
.zno-event-meta { margin: 0 0 10px; font-size: 13px; color: var(--zno-muted); }
.zno-event-cat { display: inline-block; margin-left: 6px; padding: 2px 9px; background: var(--zno-bg-chip); border-radius: 999px; font-size: 11px; color: #374151; font-weight: 600; }

/* Single event detail */
.zno-event-single-poster { max-width: 100%; height: auto; border-radius: var(--zno-radius-md); margin-bottom: 16px; }
.zno-event-facts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; color: #374151; }
.zno-event-facts li { font-size: 15px; }
.zno-event-description { margin-bottom: 18px; }

/* Forms (events, merchant) */
.zno-field-row { display: flex; gap: 12px; }
.zno-field-row .zno-field { flex: 1; }
.zno-merchant-events textarea,
.zno-merchant-profile textarea,
.zno-merchant-rewards textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--zno-border-input); border-radius: var(--zno-radius-sm); font-size: 15px; }
.zno-merchant-events select,
.zno-merchant-profile select,
.zno-merchant-rewards select { width: 100%; padding: 11px 13px; border: 1px solid var(--zno-border-input); border-radius: var(--zno-radius-sm); font-size: 15px; background: #fff; }
.zno-event-poster-current img { max-width: 160px; height: auto; border-radius: var(--zno-radius-sm); margin-top: 8px; }

/* ---------- Merchant Directory ---------- */
.zno-directory-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.zno-directory-filters select,
.zno-directory-filters input[type="search"] { padding: 11px 13px; border: 1px solid var(--zno-border-input); border-radius: var(--zno-radius-sm); font-size: 15px; background: #fff; min-width: 160px; }
.zno-directory-filters input[type="search"] { flex: 1; min-width: 200px; }
.zno-directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--zno-gap); }
.zno-directory-card { position: relative; display: flex; gap: 14px; padding: 16px; border: 1px solid var(--zno-border); border-radius: var(--zno-radius-md); background: var(--zno-card); box-shadow: var(--zno-shadow); text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease; }
.zno-directory-card:hover { box-shadow: var(--zno-shadow-hover); transform: translateY(-2px); }
.zno-directory-card-featured { border-color: var(--zno-featured); }
.zno-featured-badge { position: absolute; top: 10px; right: 10px; background: var(--zno-featured); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.zno-directory-logo { flex: 0 0 68px; width: 68px; height: 68px; border-radius: var(--zno-radius-sm); overflow: hidden; background: var(--zno-bg-chip); display: flex; align-items: center; justify-content: center; }
.zno-directory-logo img { width: 100%; height: 100%; object-fit: cover; }
.zno-directory-logo-fallback { font-size: 26px; color: #cbd5e1; }
.zno-directory-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.zno-directory-name { font-size: 16px; font-weight: 700; }
.zno-directory-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--zno-muted); }
.zno-directory-desc { font-size: 13px; color: #4b5563; }

/* directory detail */
.zno-merchant-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.zno-merchant-head-logo { width: 104px; height: 104px; border-radius: var(--zno-radius-md); object-fit: cover; border: 1px solid var(--zno-border); }
.zno-merchant-head-body h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }

/* ---------- Merchant redeem validation ---------- */
.zno-redeem-form { display: flex; gap: 8px; flex-wrap: wrap; }
.zno-redeem-code { flex: 1; min-width: 200px; padding: 12px 13px; border: 1px solid var(--zno-border-input); border-radius: var(--zno-radius-sm); font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Merchant gallery / hours / social ---------- */
.zno-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.zno-gallery-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--zno-radius-sm); display: block; }
.zno-gallery-edit { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.zno-gallery-edit-item { display: flex; flex-direction: column; gap: 4px; font-size: 12px; text-align: center; }
.zno-gallery-edit-item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--zno-radius-sm); }
.zno-hours-table, .zno-hours-edit { width: 100%; border-collapse: collapse; }
.zno-hours-table th, .zno-hours-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #f0f0f0; }
.zno-hours-table th { width: 130px; color: var(--zno-muted); font-weight: 600; }
.zno-hours-edit th { text-align: left; padding: 6px 8px 6px 0; width: 110px; font-weight: 600; }
.zno-hours-edit td { padding: 4px 6px; }
.zno-hours-edit input[type="time"] { padding: 7px 9px; border: 1px solid var(--zno-border-input); border-radius: 8px; }
.zno-social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.zno-social-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.zno-social-label { flex: 0 0 90px; color: var(--zno-muted); font-size: 14px; }
.zno-social-row input { flex: 1; padding: 10px 13px; border: 1px solid var(--zno-border-input); border-radius: var(--zno-radius-sm); }

/* ============================================================
   Gamification — levels, badges, achievements, leaderboard
   ============================================================ */
.zno-level-head { display: flex; align-items: center; gap: 14px; }
.zno-level-emblem { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--zno-level-color, var(--zno-primary)); box-shadow: 0 6px 16px color-mix(in srgb, var(--zno-level-color, #4f46e5) 35%, transparent); }
.zno-level-emblem .dashicons { font-size: 30px; width: 30px; height: 30px; }
.zno-level-name { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.zno-level-sub { display: block; font-size: 13px; color: var(--zno-muted); }
.zno-level-progress-row { margin: 16px 0 6px; }
.zno-level-next { margin: 8px 0 0; font-size: 13px; color: var(--zno-muted); }
.zno-level-track { display: flex; justify-content: space-between; gap: 4px; margin-top: 16px; }
.zno-level-pip { flex: 1; text-align: center; }
.zno-level-dot { display: block; width: 14px; height: 14px; border-radius: 50%; margin: 0 auto 6px; background: var(--zno-border); }
.zno-level-pip.is-on .zno-level-pip-name { color: var(--zno-text); font-weight: 700; }
.zno-level-pip-name { font-size: 11px; color: var(--zno-faint); }

/* badges grid */
.zno-badges-count { margin: 0 0 12px; color: var(--zno-muted); font-size: 14px; }
.zno-badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; }
.zno-badge-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border: 1px solid var(--zno-border); border-radius: var(--zno-radius-md); text-align: center; background: var(--zno-card); }
.zno-badge-tile.is-locked { opacity: .45; filter: grayscale(1); }
.zno-badge-tile.is-earned { border-color: color-mix(in srgb, var(--zno-primary) 40%, var(--zno-border)); }
.zno-badge-emblem { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--zno-primary-soft); color: var(--zno-primary); }
.zno-badge-tile.is-earned .zno-badge-emblem { background: var(--zno-primary); color: #fff; }
.zno-badge-emblem .dashicons { font-size: 24px; width: 24px; height: 24px; }
.zno-badge-name { font-size: 12px; font-weight: 600; line-height: 1.2; }

/* achievements list */
.zno-achievement { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.zno-achievement:last-child { border-bottom: none; }
.zno-achievement-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--zno-bg-chip); color: var(--zno-muted); }
.zno-achievement.is-done .zno-achievement-icon { background: var(--zno-primary); color: #fff; }
.zno-achievement-body { flex: 1; min-width: 0; }
.zno-achievement-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.zno-achievement-name { font-weight: 700; }
.zno-achievement-count { font-size: 12px; color: var(--zno-muted); }
.zno-achievement-desc { margin: 2px 0 8px; font-size: 13px; color: var(--zno-muted); }

/* leaderboard */
.zno-leaderboard-you { margin: 0 0 12px; color: var(--zno-muted); }
.zno-leaderboard-table .is-you { background: var(--zno-primary-soft); }
.zno-rank { width: 56px; font-weight: 700; }
.zno-medal { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 800; }
.zno-medal-1 { background: #f59e0b; }
.zno-medal-2 { background: #9ca3af; }
.zno-medal-3 { background: #cd7f32; }
.zno-you-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; background: var(--zno-primary); color: #fff; padding: 1px 6px; border-radius: 999px; margin-left: 6px; }
.zno-level-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--zno-level-color, var(--zno-primary)); }

/* ---------- Chatbot (existing) ---------- */
.zno-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--zno-gap); }
.zno-chatbot-box input { margin-right: 8px; margin-bottom: 8px; padding: 9px; border: 1px solid var(--zno-border-input); border-radius: var(--zno-radius-sm); }

/* ============================================================
   App shell — premium sidebar dashboard (member / merchant)
   ============================================================ */
.zno-app {
    --zno-adminbar: 0px;
    display: flex;
    max-width: 100%;
    margin: 16px auto;
    min-height: calc(100vh - var(--zno-adminbar) - 32px);
    background: var(--zno-card);
    border: 1px solid var(--zno-border);
    border-radius: var(--zno-radius);
    box-shadow: var(--zno-shadow);
    overflow: clip;            /* clips overflow without breaking sticky */
    position: relative;
}
.admin-bar .zno-app { --zno-adminbar: 32px; }

/* sidebar — sticky full-height column on desktop */
.zno-app-sidebar {
    flex: 0 0 250px;
    width: 250px;
    background: #fff;
    border-right: 1px solid var(--zno-border);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: var(--zno-adminbar);
    align-self: flex-start;
    height: calc(100vh - var(--zno-adminbar) - 34px);
    overflow-y: auto;
}
.zno-app-brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--zno-border); }
.zno-app-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--zno-primary-soft); display: flex; align-items: center; justify-content: center; color: var(--zno-primary); font-weight: 800; font-size: 18px; overflow: hidden; flex: 0 0 44px; }
.zno-app-avatar img { width: 100%; height: 100%; object-fit: cover; }
.zno-app-brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; word-break: break-word; }
.zno-app-brand-sub { font-size: 12px; color: var(--zno-muted); margin-top: 2px; }

.zno-app-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.zno-nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: var(--zno-radius-sm);
    color: #374151; text-decoration: none; font-size: 14px; font-weight: 600;
    cursor: pointer; border: none; background: none; width: 100%; text-align: left;
    transition: background .12s ease, color .12s ease;
}
.zno-nav-item .dashicons { font-size: 18px; width: 18px; height: 18px; color: var(--zno-faint); transition: color .12s ease; }
.zno-nav-item:hover { background: var(--zno-bg-soft); color: var(--zno-text); }
.zno-nav-item.is-active { background: var(--zno-primary-soft); color: var(--zno-primary); }
.zno-nav-item.is-active .dashicons { color: var(--zno-primary); }
.zno-app-nav-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--zno-border); }
.zno-nav-logout { color: var(--zno-danger); }
.zno-nav-logout .dashicons { color: var(--zno-danger); }

/* main */
.zno-app-main { flex: 1; min-width: 0; background: var(--zno-bg-soft); display: flex; flex-direction: column; }
.zno-app-topbar { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--zno-border); background: #fff; position: sticky; top: var(--zno-adminbar, 0px); z-index: 6; }
.zno-app-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.zno-app-toggle { display: none; background: none; border: 1px solid var(--zno-border-input); border-radius: var(--zno-radius-sm); width: 38px; height: 38px; cursor: pointer; align-items: center; justify-content: center; }
.zno-app-toggle .dashicons { font-size: 20px; }
.zno-app-body { padding: 24px; flex: 1; }
.zno-app-body > .zno-card:last-child { margin-bottom: 0; }

/* panels — visible by default (no-JS fallback shows all stacked); JS enables tabs */
.zno-panel { display: block; }
.zno-app.is-enhanced .zno-panel { display: none; }
.zno-app.is-enhanced .zno-panel.is-active { display: block; animation: zno-fade .2s ease; }
@keyframes zno-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* status pill in sidebar */
.zno-app-sidebar .zno-badge { align-self: flex-start; }

/* ---------- Admin preview bar ---------- */
.zno-preview-bar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
    max-width: 100%; margin: 16px auto 0;
    padding: 12px 16px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--zno-radius-sm) var(--zno-radius-sm) 0 0;
    color: var(--zno-warning); font-size: 14px;
}
.zno-preview-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.zno-preview-tag .dashicons { font-size: 18px; width: 18px; height: 18px; }
.zno-preview-form { margin-left: auto; display: flex; gap: 8px; }
.zno-preview-form select { padding: 8px 12px; border: 1px solid var(--zno-border-input); border-radius: var(--zno-radius-sm); background: #fff; font-size: 14px; max-width: 320px; }
.zno-preview-bar + .zno-app { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 782px) {
    .admin-bar .zno-app { --zno-adminbar: 46px; } /* WP admin bar is taller on mobile */
}

/* Tablet / phone: sidebar becomes a fixed off-canvas drawer.
   position:fixed keeps the off-screen drawer from causing horizontal overflow. */
@media (max-width: 900px) {
    .zno-app { display: block; min-height: 0; margin: 12px; }
    .zno-app-main { display: block; }
    .zno-app-sidebar {
        position: fixed;
        top: var(--zno-adminbar, 0px); left: 0; bottom: 0;
        height: auto;
        width: 264px; max-width: 82vw;
        transform: translateX(-100%); transition: transform .22s ease;
        z-index: 9990; border-radius: 0; overflow-y: auto;
    }
    .zno-app.is-sidebar-open .zno-app-sidebar { transform: translateX(0); box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
    .zno-app.is-sidebar-open .zno-app-scrim { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 9985; }
    .zno-app-toggle { display: inline-flex; }
    .zno-app-topbar { position: sticky; }
}

@media (max-width: 680px) {
    .zno-auth-card { margin: 16px; padding: 22px; }
    .zno-app-body { padding: 14px; }
    .zno-app-topbar { padding: 13px 14px; }
    .zno-card { padding: 16px; }
    .zno-dash-header { flex-direction: column; align-items: flex-start; }
    .zno-dash-header h2, .zno-auth-title { font-size: 21px; }
    .zno-stat-value { font-size: 26px; }

    /* cards stack vertically */
    .zno-grid-cards { grid-template-columns: 1fr; }
    .zno-field-row { flex-direction: column; gap: 0; }

    /* data tables become horizontally scrollable (calendar excluded) */
    .zno-points-history,
    .zno-profile-table,
    .zno-hours-table,
    .zno-hours-edit,
    .zno-leaderboard-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .zno-points-history thead,
    .zno-leaderboard-table thead { white-space: nowrap; }

    /* calendar fits mobile width */
    .zno-cal-grid td { height: 52px; }
    .zno-cal-grid th { font-size: 10px; padding: 6px 2px; }
    .zno-cal-event { font-size: 0; padding: 4px; }     /* dots on tiny screens */
    .zno-cal-event::before { content: "•"; font-size: 14px; }

    /* event cards */
    .zno-event-card { gap: 10px; }
    .zno-event-poster { flex-basis: 72px; width: 72px; height: 72px; }

    /* social / forms */
    .zno-social-row { flex-wrap: wrap; }
    .zno-social-label { flex-basis: 100%; }

    /* buttons full-width where it helps */
    .zno-quick-actions .zno-btn,
    .zno-app-body .zno-form .zno-btn-primary,
    .zno-app-body form button[type="submit"] { width: 100%; }
    .zno-redeem-form { flex-direction: column; }
    .zno-redeem-form .zno-btn { width: 100%; }
    .zno-form-inline { flex-direction: column; }
    .zno-form-inline .zno-btn { width: 100%; }

    /* admin preview bar */
    .zno-preview-form { margin-left: 0; width: 100%; }
    .zno-preview-form select { max-width: 100%; flex: 1; }
}

/* =====================================================================
 * AI Chatbot widget
 * ===================================================================== */
.zno-cb { position: fixed; right: 20px; bottom: 20px; z-index: 99999; font-size: 14px; }
.zno-cb-bubble {
    width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--zno-primary); color: #fff; box-shadow: var(--zno-shadow-hover);
    display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s;
}
.zno-cb-bubble:hover { background: var(--zno-primary-hover); transform: translateY(-1px); }
.zno-cb-bubble .dashicons { font-size: 28px; width: 28px; height: 28px; }
.zno-cb.is-open .zno-cb-bubble { display: none; }

.zno-cb-panel {
    position: absolute; right: 0; bottom: 0; width: 350px; max-width: calc(100vw - 32px);
    height: 520px; max-height: calc(100vh - 96px); background: var(--zno-card);
    border: 1px solid var(--zno-border); border-radius: var(--zno-radius);
    box-shadow: var(--zno-shadow-hover); display: flex; flex-direction: column; overflow: hidden;
}
.zno-cb-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; background: var(--zno-primary); color: #fff;
}
.zno-cb-title { font-weight: 600; }
.zno-cb-close { background: transparent; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }

.zno-cb-messages { flex: 1; overflow-y: auto; padding: 14px; background: var(--zno-bg-soft); display: flex; flex-direction: column; gap: 8px; }
.zno-cb-msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.zno-cb-bot  { align-self: flex-start; background: #fff; border: 1px solid var(--zno-border); color: var(--zno-text); border-bottom-left-radius: 4px; }
.zno-cb-user { align-self: flex-end; background: var(--zno-primary); color: #fff; border-bottom-right-radius: 4px; }
.zno-cb-typing { color: var(--zno-muted); font-style: italic; }

.zno-cb-lead { padding: 12px 14px; border-top: 1px solid var(--zno-border); background: #fff; }
.zno-cb-lead-intro { margin: 0 0 8px; color: var(--zno-muted); font-size: 13px; }
.zno-cb-lead input {
    width: 100%; box-sizing: border-box; margin-bottom: 7px; padding: 9px 10px;
    border: 1px solid var(--zno-border-input); border-radius: var(--zno-radius-sm);
}
.zno-cb-lead-submit {
    width: 100%; padding: 9px; border: 0; border-radius: var(--zno-radius-sm);
    background: var(--zno-primary); color: #fff; cursor: pointer; font-weight: 600;
}
.zno-cb-lead-submit:hover { background: var(--zno-primary-hover); }
.zno-cb-lead-submit:disabled { opacity: .6; cursor: default; }
.zno-cb-lead-msg { margin: 8px 0 0; font-size: 13px; }

.zno-cb-input { display: flex; align-items: center; gap: 6px; padding: 10px; border-top: 1px solid var(--zno-border); background: #fff; }
.zno-cb-input input[type="text"] {
    flex: 1; padding: 10px 12px; border: 1px solid var(--zno-border-input);
    border-radius: 999px; outline: none;
}
.zno-cb-input input[type="text"]:focus { border-color: var(--zno-primary); }
.zno-cb-lead-toggle {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--zno-border-input);
    background: var(--zno-bg-soft); color: var(--zno-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.zno-cb-lead-toggle:hover { color: var(--zno-primary); border-color: var(--zno-primary); }
.zno-cb-send {
    flex: 0 0 auto; padding: 0 16px; height: 38px; border: 0; border-radius: 999px;
    background: var(--zno-primary); color: #fff; cursor: pointer; font-weight: 600;
}
.zno-cb-send:hover { background: var(--zno-primary-hover); }
.zno-cb-send:disabled { opacity: .6; cursor: default; }

/* Venue listing result cards */
.zno-cb-venues { align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
.zno-cb-venue { background: #fff; border: 1px solid var(--zno-border); border-radius: 12px; padding: 10px 12px; }
.zno-cb-venue-img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; display: block; }
.zno-cb-venue-name { font-weight: 600; color: var(--zno-text); }
.zno-cb-venue-meta { font-size: 13px; color: var(--zno-muted); margin-top: 2px; }
.zno-cb-venue-desc { font-size: 13px; color: var(--zno-text); margin-top: 5px; line-height: 1.4; }
.zno-cb-venue-link {
    display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600;
    color: var(--zno-primary); text-decoration: none;
}
.zno-cb-venue-link:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .zno-cb { right: 12px; bottom: 12px; }
    .zno-cb-panel { width: calc(100vw - 24px); height: calc(100vh - 84px); }
}

/* =====================================================================
 * Phase 3 — Member & Merchant dashboards: corporate SaaS skin.
 * Scoped to .zno-app-saas so nothing else (chatbot, auth, admin) changes.
 * Neutral white/light-gray surface with one blue primary (var(--zno-primary)).
 * ===================================================================== */
/* Design tokens are global (assets/css/theme.css). The dashboard shell inherits
 * them so light/dark + PARPARTA Pink apply everywhere — no local color overrides. */
.zno-app-saas .zno-app-main { background: var(--zno-bg-soft); }
.zno-app-saas .zno-nav-item.is-active { background: var(--zno-primary); color: #fff; }
.zno-app-saas .zno-nav-item.is-active .dashicons { color: #fff; }

/* Overview two-column layout (main + right activity panel) */
.zno-app-saas .zno-ov { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.zno-app-saas .zno-ov-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.zno-app-saas .zno-ov-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Card head with optional action link */
.zno-app-saas .zno-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.zno-app-saas .zno-card-h h3 { margin: 0; padding: 0; font-size: 15px; font-weight: 700; color: var(--zno-text); }
.zno-app-saas .zno-card-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--zno-primary); font-weight: 600; font-size: 13px; }
.zno-app-saas .zno-card-link:hover { text-decoration: underline; }

/* Stat cards — auto-fit so cards reflow (wrap to a new row) instead of being
 * crushed into 4 fixed tracks. With repeat(4, 1fr) the min-content of each card
 * (icon + unbreakable label) could exceed a quarter of the main column once the
 * fixed 320px activity sidebar narrows it, overflowing the grid track and
 * overlapping the side panel. minmax(0, …) keeps every track shrinkable. */
.zno-app-saas .zno-sg { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; }
.zno-app-saas .zno-sg-card { background: #fff; border: 1px solid var(--zno-border); border-radius: 14px; padding: 15px; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.zno-app-saas .zno-sg-ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; background: #eff6ff; color: var(--zno-primary); display: flex; align-items: center; justify-content: center; }
.zno-app-saas .zno-sg-ico .dashicons { font-size: 21px; width: 21px; height: 21px; }
.zno-app-saas .zno-sg-body { display: flex; flex-direction: column; min-width: 0; }
.zno-app-saas .zno-sg-label { font-size: 12px; color: var(--zno-muted); font-weight: 600; }
.zno-app-saas .zno-sg-value { font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--zno-text); }
.zno-app-saas .zno-sg-sub { font-size: 12px; color: var(--zno-faint); }
.zno-app-saas .zno-sg-badge { margin-top: 5px; align-self: flex-start; }
.zno-app-saas .zno-sg-card .zno-progress { margin-top: 7px; height: 6px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.zno-app-saas .zno-sg-card .zno-progress-bar { display: block; height: 100%; background: var(--zno-primary); }

/* Upcoming event cards — featured-image banner */
.zno-app-saas .zno-evc { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.zno-app-saas .zno-evc-item { display: flex; flex-direction: column; border: 1px solid var(--zno-border); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: box-shadow .15s ease, transform .15s ease; }
.zno-app-saas .zno-evc-item:hover { box-shadow: 0 12px 26px rgba(15, 23, 42, .09); transform: translateY(-2px); }
.zno-app-saas .zno-evc-banner { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--zno-primary-soft); overflow: hidden; }
.zno-app-saas .zno-evc-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zno-app-saas .zno-evc-banner.is-empty { background: linear-gradient(135deg, var(--zno-primary), var(--zno-primary-hover)); }
.zno-app-saas .zno-evc-banner.is-empty .dashicons { color: #fff; opacity: .9; font-size: 30px; width: 30px; height: 30px; }
.zno-app-saas .zno-evc-badge { position: absolute; top: 8px; left: 8px; background: #fff; border-radius: 9px; padding: 4px 9px; text-align: center; line-height: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.zno-app-saas .zno-evc-day { display: block; font-size: 16px; font-weight: 800; color: var(--zno-primary); }
.zno-app-saas .zno-evc-mon { display: block; font-size: 10px; font-weight: 700; color: var(--zno-primary); text-transform: uppercase; letter-spacing: .03em; }
.zno-app-saas .zno-evc-body { padding: 12px 13px; display: flex; flex-direction: column; gap: 5px; }
.zno-app-saas .zno-evc-title { font-weight: 700; color: var(--zno-text); text-decoration: none; font-size: 15px; line-height: 1.3; }
.zno-app-saas .zno-evc-title:hover { color: var(--zno-primary); }
.zno-app-saas .zno-evc-meta { font-size: 13px; color: var(--zno-muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.zno-app-saas .zno-evc-meta .dashicons { font-size: 15px; width: 15px; height: 15px; color: var(--zno-faint); }
.zno-app-saas .zno-evc-dot { color: var(--zno-faint); }
.zno-app-saas .zno-evc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Calendar wrapper — horizontal scroll on small screens */
.zno-app-saas .zno-cal-scroll { overflow-x: auto; }

/* Recent activity feed */
.zno-app-saas .zno-act { list-style: none; margin: 0; padding: 0; }
.zno-app-saas .zno-act-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--zno-bg-soft); }
.zno-app-saas .zno-act-item:first-child { border-top: 0; }
.zno-app-saas .zno-act-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; margin-top: 5px; background: var(--zno-faint); }
.zno-app-saas .zno-act-pos.zno-act-dot { background: #16a34a; }
.zno-app-saas .zno-act-neg.zno-act-dot { background: #dc2626; }
.zno-app-saas .zno-act-neutral.zno-act-dot { background: var(--zno-primary); }
.zno-app-saas .zno-act-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zno-app-saas .zno-act-text { color: var(--zno-text); font-size: 14px; }
.zno-app-saas .zno-act-desc { color: var(--zno-muted); }
.zno-app-saas .zno-act-meta { font-size: 12px; color: var(--zno-faint); }
.zno-app-saas .zno-act-pts { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.zno-app-saas .zno-act-pts.zno-act-pos { color: #16a34a; }
.zno-app-saas .zno-act-pts.zno-act-neg { color: #dc2626; }

/* Welcome header */
.zno-app-saas .zno-welcome { margin-bottom: 16px; }
.zno-app-saas .zno-welcome h2 { font-size: 22px; font-weight: 700; color: var(--zno-text); margin: 0 0 3px; line-height: 1.25; }
.zno-app-saas .zno-welcome p { color: var(--zno-faint); margin: 0; font-size: 14px; }

/* Phase 6.4 — welcome banner (text left, stats/CTA right; light-blue gradient card) */
.zno-app-saas .zno-welcome-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid var(--zno-border); border-radius: 14px;
    padding: 16px 20px; margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.zno-app-saas .zno-wb-main { flex: 1 1 320px; min-width: 0; }
.zno-app-saas .zno-wb-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 3px; font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--zno-text); }
.zno-app-saas .zno-wb-sub { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--zno-muted); font-size: 13.5px; }
.zno-app-saas .zno-wb-sub .dashicons { font-size: 15px; width: 15px; height: 15px; color: var(--zno-primary); }
.zno-app-saas .zno-wb-cta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zno-app-saas .zno-wb-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.zno-app-saas .zno-wb-stat { background: #fff; border: 1px solid var(--zno-border); border-radius: 10px; padding: 7px 13px; text-align: center; min-width: 74px; }
.zno-app-saas .zno-wb-stat-l { display: block; font-size: 10px; color: var(--zno-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.zno-app-saas .zno-wb-stat-v { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--zno-text); }
@media (max-width: 768px) {
    .zno-app-saas .zno-welcome-banner { flex-direction: column; align-items: stretch; }
    .zno-app-saas .zno-wb-stats { justify-content: flex-start; }
}

/* Promotions widget */
.zno-app-saas .zno-promo { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--zno-border); border-radius: 10px; padding: 8px; margin-bottom: 8px; }
.zno-app-saas .zno-promo:last-child { margin-bottom: 0; }
.zno-app-saas button.zno-promo { cursor: pointer; transition: border-color .12s, background .12s; }
.zno-app-saas button.zno-promo:hover { border-color: var(--zno-primary); background: var(--zno-primary-soft); }
.zno-app-saas .zno-promo-thumb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 9px; overflow: hidden; background: var(--zno-primary-soft); display: flex; align-items: center; justify-content: center; }
.zno-app-saas .zno-promo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zno-app-saas .zno-promo-thumb .dashicons { color: var(--zno-primary); }
.zno-app-saas .zno-promo-body { min-width: 0; display: flex; flex-direction: column; }
.zno-app-saas .zno-promo-title { font-weight: 600; color: var(--zno-text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zno-app-saas .zno-promo-meta { font-size: 12px; color: var(--zno-primary); font-weight: 600; }

/* Color-coded event calendar (scoped to the dashboards) */
.zno-app-saas .zno-cal-scroll { overflow-x: auto; }
.zno-app-saas .zno-cal-scroll .zno-upcoming-title,
.zno-app-saas .zno-cal-scroll .zno-upcoming-events { display: none; } /* avoid duplicating the dashboard's own event cards */
.zno-app-saas .zno-cal-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.zno-app-saas .zno-cal-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--zno-text); }
.zno-app-saas .zno-event-calendar .zno-cal-grid { width: 100%; min-width: 540px; border-collapse: separate; border-spacing: 4px; }
.zno-app-saas .zno-cal-grid th { font-size: 12px; color: var(--zno-muted); font-weight: 600; padding: 6px 0; }
.zno-app-saas .zno-cal-day { background: #fff; border: 1px solid var(--zno-border); border-radius: 8px; vertical-align: top; height: 72px; padding: 5px 6px; }
.zno-app-saas .zno-cal-empty { background: transparent; border: 0; }
.zno-app-saas .zno-cal-num { font-size: 12px; font-weight: 600; color: var(--zno-muted); }
.zno-app-saas .zno-cal-today { border-color: var(--zno-primary); box-shadow: inset 0 0 0 1px var(--zno-primary); }
.zno-app-saas .zno-cal-today .zno-cal-num { color: var(--zno-primary); }
.zno-app-saas .zno-cal-event { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 5px; font-size: 11px; line-height: 1.4; background: var(--zno-primary-soft); color: var(--zno-primary); border-left: 3px solid var(--zno-primary); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zno-app-saas .zno-cal-event:hover { background: #dbeafe; }
.zno-app-saas .zno-cal-event-cancelled { background: #fee2e2; color: #b91c1c; border-left-color: #b91c1c; text-decoration: line-through; }

/* Spacing / typography / shadow refinements */
.zno-app-saas .zno-card { border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.zno-app-saas .zno-app-title { font-weight: 700; }
.zno-app-saas .zno-ov-side .zno-card { padding: 16px; }

/* Responsive: tablet stacks the activity panel; mobile stacks the stat cards */
@media (max-width: 1024px) {
    .zno-app-saas .zno-ov { grid-template-columns: 1fr; }
    .zno-app-saas .zno-sg { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .zno-app-saas .zno-sg { grid-template-columns: 1fr; }
    .zno-app-saas .zno-welcome h2 { font-size: 19px; }
}

/* =====================================================================
 * Single event detail page (zno_event) — corporate SaaS card.
 * Scoped to .zno-event-page; does NOT affect normal posts/pages.
 * ===================================================================== */
.zno-event-page { max-width: 860px; margin: 28px auto; padding: 0 16px; color: #111827; }
.zno-event-page .zno-ep-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }

/* Wide hero banner (+ placeholder when no featured image) */
.zno-event-page .zno-ep-hero { position: relative; width: 100%; aspect-ratio: 5 / 2; min-height: 200px; background: #eff6ff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zno-event-page .zno-ep-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zno-event-page .zno-ep-hero.is-empty { background: linear-gradient(135deg, var(--zno-primary), var(--zno-primary-hover)); }
.zno-event-page .zno-ep-hero.is-empty .dashicons { color: #fff; opacity: .9; font-size: 54px; width: 54px; height: 54px; }
.zno-event-page .zno-ep-badge { position: absolute; top: 14px; right: 14px; background: #fff; color: var(--zno-primary); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }

.zno-event-page .zno-ep-body { padding: 24px; }
.zno-event-page .zno-ep-title { font-size: 27px; line-height: 1.2; font-weight: 800; color: #111827; margin: 0 0 16px; }

/* Info cards */
.zno-event-page .zno-ep-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 22px; }
.zno-event-page .zno-ep-fact { display: flex; align-items: center; gap: 11px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; }
.zno-event-page .zno-ep-fact-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: #eff6ff; color: var(--zno-primary); display: flex; align-items: center; justify-content: center; }
.zno-event-page .zno-ep-fact-ico .dashicons { font-size: 19px; width: 19px; height: 19px; }
.zno-event-page .zno-ep-fact-b { display: flex; flex-direction: column; min-width: 0; }
.zno-event-page .zno-ep-fact-l { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; font-weight: 600; }
.zno-event-page .zno-ep-fact-v { font-size: 14px; font-weight: 600; color: #111827; word-break: break-word; }

/* Description */
.zno-event-page .zno-ep-desc { color: #374151; line-height: 1.7; font-size: 15px; margin-bottom: 22px; }
.zno-event-page .zno-ep-desc > :first-child { margin-top: 0; }
.zno-event-page .zno-ep-desc > :last-child { margin-bottom: 0; }

/* CTAs — WhatsApp (green) primary, Back (blue outline) secondary */
.zno-event-page .zno-ep-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.zno-event-page .zno-ep-cta .zno-btn { display: inline-flex; align-items: center; gap: 6px; }
.zno-event-page .zno-ep-back { color: var(--zno-primary); border-color: #bfdbfe; }
.zno-event-page .zno-ep-back:hover { background: #eff6ff; border-color: var(--zno-primary); }
.zno-event-page .zno-ep-back .dashicons { font-size: 16px; width: 16px; height: 16px; }

@media (max-width: 600px) {
    .zno-event-page { margin: 16px auto; }
    .zno-event-page .zno-ep-hero { aspect-ratio: 16 / 10; min-height: 170px; }
    .zno-event-page .zno-ep-body { padding: 18px; }
    .zno-event-page .zno-ep-title { font-size: 22px; }
    .zno-event-page .zno-ep-facts { grid-template-columns: 1fr; }
    .zno-event-page .zno-ep-cta .zno-btn { width: 100%; justify-content: center; }
}

/* =====================================================================
 * Phase 6.1 — Event listing / directory ([zno_upcoming_events]).
 * Scoped to .zno-evlist: white cards, gray border, rounded, soft shadow,
 * hover lift, blue primary, date badge, 3/2/1 responsive grid + search.
 * ===================================================================== */
.zno-evlist { /* inherits global tokens */ }

/* Search + filters control row (one line on desktop, wraps on small screens) */
.zno-evlist-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.zno-evlist-search { position: relative; flex: 1 1 280px; min-width: 200px; }
.zno-evlist-search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.zno-evlist-search input[type="search"] { width: 100%; box-sizing: border-box; padding: 11px 14px 11px 38px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 15px; outline: none; background: #fff; }
.zno-evlist-filter { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font-size: 14px; color: #374151; outline: none; min-width: 132px; }
.zno-evlist-controls input[type="search"]:focus, .zno-evlist-filter:focus { border-color: var(--zno-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.zno-evlist-count { color: #6b7280; font-size: 14px; margin: 0 0 14px; }
.zno-evlist-clear { font-size: 13px; color: #6b7280; text-decoration: none; }
.zno-evlist-clear:hover { color: var(--zno-primary); text-decoration: underline; }

/* Full-width directory container. The root also carries the legacy
   .zno-upcoming-events class (used elsewhere as a grid) — force it back to a
   block here so the controls and the grid stack full-width instead of being
   squeezed into the legacy grid's columns. */
.zno-upcoming-events.zno-evlist { display: block; width: 100%; }

/* Responsive grid — exactly 3 (desktop) / 2 (tablet ≤1199) / 1 (mobile ≤767).
   repeat(N,1fr) keeps a lone card at 1/N width so a single card never stretches huge. */
/* Equal-column grid: 4 / 3 / 2 / 1 by breakpoint. minmax(0,1fr) lets each card
   fill its column and shrink without overflowing. A single card occupies one of
   the columns (left) — matching the reference's equal-column layout. */
.zno-evlist-grid { display: grid; width: 100%; gap: 24px; align-items: stretch; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .zno-evlist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px)  { .zno-evlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .zno-evlist-grid { grid-template-columns: 1fr; } }

/* Card */
.zno-evlist-card { display: flex; flex-direction: column; min-width: 0; width: 100%; max-width: none; height: 100%; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: box-shadow .15s ease, transform .15s ease; }
.zno-evlist-card:hover { box-shadow: 0 14px 30px rgba(15, 23, 42, .10); transform: translateY(-3px); }

/* Banner + date badge */
.zno-evlist-banner { position: relative; display: flex; align-items: center; justify-content: center; height: 160px; background: #eff6ff; overflow: hidden; }
.zno-evlist-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zno-evlist-banner.is-empty { background: linear-gradient(135deg, var(--zno-primary), var(--zno-primary-hover)); }
.zno-evlist-banner.is-empty .dashicons { color: #fff; opacity: .9; font-size: 34px; width: 34px; height: 34px; }
.zno-evlist-datebadge { position: absolute; top: 10px; left: 10px; background: #fff; border-radius: 10px; padding: 5px 10px; text-align: center; line-height: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); }
.zno-evlist-d { display: block; font-size: 18px; font-weight: 800; color: var(--zno-primary); }
.zno-evlist-m { display: block; font-size: 10px; font-weight: 700; color: var(--zno-primary); text-transform: uppercase; letter-spacing: .04em; }
.zno-evlist-flag { position: absolute; top: 10px; right: 10px; background: #b91c1c; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* Body */
.zno-evlist-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 18px; flex: 1; }
.zno-evlist-cat { align-self: flex-start; background: #eff6ff; color: var(--zno-primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; }
.zno-evlist-title { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.zno-evlist-title a { color: #111827; text-decoration: none; }
.zno-evlist-title a:hover { color: var(--zno-primary); }
.zno-evlist-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.zno-evlist-meta li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #374151; }
.zno-evlist-meta .dashicons { font-size: 16px; width: 16px; height: 16px; color: #9ca3af; flex: 0 0 16px; }
.zno-evlist-desc { margin: 2px 0 0; font-size: 13.5px; line-height: 1.55; color: #6b7280; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zno-evlist-actions { margin-top: auto; display: flex; justify-content: center; padding-top: 16px; }
.zno-evlist-actions .zno-btn { width: auto; min-width: 140px; padding-left: 22px; padding-right: 22px; justify-content: center; }

/* Empty state */
.zno-evlist-empty { text-align: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 48px 24px; color: #6b7280; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.zno-evlist-empty-ico { font-size: 42px; width: 42px; height: 42px; color: #cbd5e1; margin-bottom: 8px; }
.zno-evlist-empty p { margin: 0 0 14px; font-size: 15px; }

/* Pagination */
.zno-evlist-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.zno-evlist-pagination a, .zno-evlist-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 9px; background: #fff; color: #374151; text-decoration: none; font-weight: 600; font-size: 14px; }
.zno-evlist-pagination a:hover { border-color: var(--zno-primary); color: var(--zno-primary); }
.zno-evlist-pagination .is-current { background: var(--zno-primary); border-color: var(--zno-primary); color: #fff; }
.zno-evlist-pagination .is-disabled { opacity: .5; }

/* Public events page: safe centered wide container (no full-bleed, no 100vw —
   so there is never a horizontal scroll or right-shift). It widens up to 1440px
   and centers. To let it actually use that width on block/FSE themes that cap the
   post-content column, we lift the cap ONLY on the content wrapper that contains
   this page, via :has() (scoped + harmless to every other page). */
.zno-events-page {
    box-sizing: border-box;
    width: calc(100% - 64px);
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 44px;
}
.zno-events-page > * { width: 100%; }

.entry-content:has(.zno-events-page),
.wp-block-post-content:has(.zno-events-page),
.is-layout-constrained:has(.zno-events-page) { max-width: none; }

/* Calendar as a wide card with comfortable cells + mobile horizontal scroll */
.zno-cal-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.zno-cal-section-head { margin: 0 0 14px; }
.zno-cal-section-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: #111827; }
.zno-cal-section .zno-cal-scroll { overflow-x: auto; max-width: 1080px; margin: 0 auto; }
.zno-cal-section .zno-cal-grid { width: 100%; min-width: 780px; }
.zno-cal-section .zno-cal-day { height: 104px; }

/* Member dashboard embeds: fill the panel card (no 64px inset, no centering gap) */
.zno-app-saas .zno-events-page { width: auto; max-width: none; margin: 0; gap: 0; }
.zno-app-saas .zno-events-page > * { max-width: none; }
.zno-app-saas .zno-cal-section { background: transparent; border: 0; box-shadow: none; padding: 0; }
.zno-app-saas .zno-cal-section .zno-cal-day { height: 72px; }
.zno-app-saas .zno-cal-scroll .zno-cal-section-head { display: none; }

/* =====================================================================
 * Phase 6.2 — Merchant business profile (SaaS sectioned layout)
 * ===================================================================== */
.zno-pf { /* inherits global tokens */ }

/* Completion */
.zno-pf-completion { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.zno-pf-completion-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.zno-pf-completion-label { font-weight: 600; color: #111827; }
.zno-pf-completion-pct { font-size: 18px; font-weight: 800; color: var(--zno-primary); }
.zno-pf-completion .zno-progress { height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.zno-pf-completion .zno-progress-bar { display: block; height: 100%; background: var(--zno-primary); }
.zno-pf-completion-hint { margin: 10px 0 0; font-size: 13px; color: #6b7280; }

/* Sections */
.zno-pf-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.zno-pf-section-h { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.zno-pf-section-h .dashicons { color: var(--zno-primary); }
.zno-pf-section-h h4 { margin: 0; font-size: 15px; font-weight: 700; color: #111827; }
.zno-pf-section-sub { font-weight: 400; font-size: 12px; color: #9ca3af; }

/* Brand header (cover + overlapping logo) */
.zno-pf-brand { position: relative; margin-bottom: 56px; }
.zno-pf-cover { position: relative; height: 150px; border-radius: 12px; overflow: hidden; background: #eff6ff; }
.zno-pf-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zno-pf-cover.is-empty { background: linear-gradient(135deg, var(--zno-primary), var(--zno-primary-hover)); }
.zno-pf-logowrap { position: absolute; left: 18px; bottom: -42px; display: flex; align-items: flex-end; gap: 12px; }
.zno-pf-logo { width: 84px; height: 84px; border-radius: 16px; border: 3px solid #fff; background: #eff6ff; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 30px; font-weight: 800; color: var(--zno-primary); }
.zno-pf-logo img { width: 100%; height: 100%; object-fit: cover; }
.zno-pf-imgbtn { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: #374151; background: rgba(255, 255, 255, .95); border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 10px; }
.zno-pf-cover .zno-pf-imgbtn { position: absolute; right: 10px; bottom: 10px; }
.zno-pf-logobtn { margin-bottom: 6px; background: #fff; }
.zno-pf-imgbtn:hover { border-color: var(--zno-primary); color: var(--zno-primary); }
.zno-pf-imgbtn .dashicons { font-size: 16px; width: 16px; height: 16px; }
.zno-pf-imgbtn input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* Field grid */
.zno-pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.zno-pf-grid .zno-col-2 { grid-column: 1 / -1; }
.zno-pf-grid .zno-field { margin: 0; }
.zno-pf-actions { margin-top: 4px; }

/* Member profile avatar */
.zno-pf-avatarrow { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.zno-pf-avatar { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 50%; overflow: hidden; background: #eff6ff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
.zno-pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zno-pf-avatar-hint { margin: 8px 0 0; font-size: 12px; color: #9ca3af; }
.zno-pf .zno-field-hint { display: block; margin-top: 4px; font-size: 12px; color: #9ca3af; }

@media (max-width: 680px) {
    .zno-pf-grid { grid-template-columns: 1fr; }
    .zno-pf-logowrap { left: 50%; transform: translateX(-50%); }
}

/* =====================================================================
 * Phase 6.25 — Public merchant profile page (/merchant/{slug})
 * ===================================================================== */
.zno-mp { max-width: 1080px; margin: 24px auto; padding: 0 16px; color: var(--zno-text); }

/* Hero */
.zno-mp-hero { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); margin-bottom: 22px; }
.zno-mp-cover { height: 220px; background: #eff6ff; position: relative; }
.zno-mp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zno-mp-cover.is-empty { background: linear-gradient(135deg, var(--zno-primary), var(--zno-primary-hover)); }
.zno-mp-hero-bar { display: flex; align-items: flex-end; gap: 18px; padding: 0 24px 20px; margin-top: -44px; flex-wrap: wrap; }
.zno-mp-logo { width: 104px; height: 104px; flex: 0 0 104px; border-radius: 20px; border: 4px solid #fff; background: #eff6ff; box-shadow: 0 4px 14px rgba(15, 23, 42, .14); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 38px; font-weight: 800; color: var(--zno-primary); }
.zno-mp-logo img { width: 100%; height: 100%; object-fit: cover; }
.zno-mp-hero-main { flex: 1; min-width: 220px; padding-bottom: 4px; }
.zno-mp-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; font-size: 26px; font-weight: 800; line-height: 1.2; color: #111827; }
.zno-mp-verified { display: inline-flex; align-items: center; gap: 3px; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.zno-mp-featured { display: inline-flex; align-items: center; gap: 3px; background: #fef3c7; color: #b45309; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.zno-mp-verified .dashicons, .zno-mp-featured .dashicons { font-size: 14px; width: 14px; height: 14px; }
.zno-mp-tags { display: flex; gap: 14px; flex-wrap: wrap; color: #374151; font-size: 14px; }
.zno-mp-tag { display: inline-flex; align-items: center; gap: 5px; }
.zno-mp-tag .dashicons { font-size: 16px; width: 16px; height: 16px; color: #9ca3af; }
.zno-mp-short { margin: 8px 0 0; color: #6b7280; font-size: 14.5px; line-height: 1.5; }
.zno-mp-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 4px; }

/* Two-column body */
.zno-mp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.zno-mp-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.zno-mp-side { display: flex; flex-direction: column; gap: 22px; }
.zno-mp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.zno-mp-h { margin: 0 0 14px; font-size: 18px; font-weight: 700; color: #111827; }
.zno-mp-h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 700; color: #111827; }
.zno-mp-about { color: #374151; line-height: 1.7; font-size: 15px; }

/* Info list */
.zno-mp-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.zno-mp-info li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #374151; }
.zno-mp-info .dashicons { color: var(--zno-primary); flex: 0 0 18px; font-size: 18px; width: 18px; height: 18px; margin-top: 1px; }
.zno-mp-info a { color: var(--zno-primary); text-decoration: none; word-break: break-word; }
.zno-mp-info a:hover { text-decoration: underline; }

/* Hours */
.zno-mp-hours { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.zno-mp-hours th { text-align: left; font-weight: 600; color: #374151; padding: 5px 0; }
.zno-mp-hours td { text-align: right; color: #6b7280; padding: 5px 0; }
.zno-mp-hours tr.is-today th, .zno-mp-hours tr.is-today td { color: var(--zno-primary); font-weight: 700; }

/* Social */
.zno-mp-social { display: flex; flex-direction: column; gap: 8px; }
.zno-mp-soc { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 10px; color: #374151; text-decoration: none; font-weight: 600; font-size: 14px; }
.zno-mp-soc:hover { border-color: var(--zno-primary); color: var(--zno-primary); }
.zno-mp-soc .dashicons { font-size: 18px; width: 18px; height: 18px; }

/* Gallery */
.zno-mp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zno-mp-gitem { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.zno-mp-gitem img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.zno-mp-gitem:hover img { transform: scale(1.05); }

@media (max-width: 880px) {
    .zno-mp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .zno-mp-cover { height: 150px; }
    .zno-mp-hero-bar { margin-top: -36px; padding: 0 16px 16px; }
    .zno-mp-logo { width: 84px; height: 84px; flex-basis: 84px; }
    .zno-mp-hero-cta { width: 100%; }
    .zno-mp-hero-cta .zno-btn { flex: 1; justify-content: center; }
    .zno-mp-gallery { grid-template-columns: repeat(2, 1fr); }
}
