/* /webinars — built on the shared Gen-Z look (genz.css: .apl-hero, .apl-sticker, .apl-marquee, .apl-btn,
   .apl-step, .apl-final-card …). Only the webinar-specific pieces live here. */

/* ---------- small bits shared by the list, detail and confirmation pages ---------- */
.wbx-page { background: #fff; }
.wbx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.wbx-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 1.1rem; margin: 0 auto 1.4rem; max-width: 1180px; background: #fff; border: 2px solid var(--border-color); border-radius: 18px; font-size: 0.92rem; }
.wbx-bar .who { display: flex; align-items: center; gap: 0.65rem; }
.wbx-bar .who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #0f172a; }
.wbx-bar .muted { color: var(--text-secondary); }
.wbx-bar a { color: var(--primary-dark); font-weight: 800; text-decoration: none; }
.wbx-bar a:hover { text-decoration: underline; }
.wbx-alert { max-width: 1180px; margin: 0 auto 1.1rem; padding: 0.85rem 1.1rem; border-radius: 14px; font-size: 0.92rem; font-weight: 600; border: 2px solid; }
.wbx-alert.ok { background: #ecfdf5; color: #065f46; border-color: #6ee7b7; }
.wbx-alert.err { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }

.wbx-avatars { display: inline-flex; align-items: center; }
.wbx-avatars img, .wbx-avatars .wbx-av-fallback { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #0f172a; object-fit: cover; object-position: top; background: var(--gradient-vibrant); color: #fff; font-weight: 800; font-size: 0.8rem; display: inline-flex; align-items: center; justify-content: center; }
.wbx-avatars > * + * { margin-left: -10px; }
.wbx-who { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.wbx-who-text { font-size: 0.85rem; line-height: 1.3; min-width: 0; }
.wbx-who-text b { display: block; font-weight: 800; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbx-who-text span { color: var(--text-secondary); font-size: 0.78rem; }

.wbx-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.28rem 0.7rem; border-radius: var(--radius-full); font-size: 0.74rem; font-weight: 800; background: #f1f5f9; color: #334155; border: 1.5px solid transparent; }
.wbx-pill.free { background: #dcfce7; color: #166534; border-color: #86efac; }
.wbx-pill.live { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.wbx-pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: wbx-pulse 1.4s ease-in-out infinite; }
@keyframes wbx-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }

/* ---------- cover: the highlight image, or a gradient when there isn't one ---------- */
.wbx-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--a, #a855f7), var(--b, #06b6d4)); }
.wbx-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.wbx-cover-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.92); font-size: 3.2rem; }
.wbx-cover-fallback::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.28) 1.4px, transparent 1.4px); background-size: 22px 22px; }
.wbx-cover-fallback i { position: relative; filter: drop-shadow(0 6px 14px rgba(15,23,42,0.35)); }
.wbx-mode { position: absolute; left: 0.8rem; top: 0.8rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.32rem 0.75rem; border-radius: var(--radius-full); background: #fff; border: 2px solid #0f172a; font-size: 0.74rem; font-weight: 800; color: #0f172a; box-shadow: 2px 2px 0 #0f172a; }
.wbx-date { position: absolute; right: 0.8rem; top: 0.8rem; min-width: 52px; text-align: center; padding: 0.3rem 0.55rem 0.4rem; border-radius: 14px; background: #fff; border: 2px solid #0f172a; box-shadow: 3px 3px 0 #0f172a; line-height: 1; transform: rotate(4deg); }
.wbx-date small { display: block; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; color: var(--primary-dark); margin-bottom: 0.15rem; }
.wbx-date b { font-size: 1.45rem; font-weight: 900; color: #0f172a; }
.wbx-booked-badge { position: absolute; left: 0.8rem; bottom: 0.8rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.32rem 0.75rem; border-radius: var(--radius-full); background: #10b981; color: #fff; border: 2px solid #0f172a; font-size: 0.74rem; font-weight: 800; box-shadow: 2px 2px 0 #0f172a; }

/* ---------- highlight card (grid) ---------- */
.wbx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.6rem; }
.wbx-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--border-color); border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.wbx-card:hover { transform: translateY(-6px) rotate(-0.4deg); border-color: #0f172a; box-shadow: 8px 8px 0 #0f172a; }
.wbx-card .wbx-cover { border-bottom: 2px solid #0f172a; }
.wbx-card-body { padding: 1.2rem 1.35rem 1rem; flex: 1; display: flex; flex-direction: column; }
.wbx-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.wbx-card h3 { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.4rem; }
.wbx-card p.tag { margin: 0 0 1rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }
.wbx-card .wbx-who { margin-top: auto; }
.wbx-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.9rem 1.35rem; border-top: 2px dashed var(--border-color); background: #fafafa; }
.wbx-next { font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); line-height: 1.3; }
.wbx-next b { color: var(--text-primary); display: block; font-size: 0.88rem; }
.wbx-go { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 800; font-size: 0.88rem; color: #fff; background: #0f172a; padding: 0.55rem 1rem; border-radius: var(--radius-full); white-space: nowrap; transition: background .2s ease; }
.wbx-card:hover .wbx-go { background: var(--primary-color); }
.wbx-go i { transition: transform .2s ease; }
.wbx-card:hover .wbx-go i { transform: translateX(4px); }

/* ---------- "up next" feature card ---------- */
.wbx-feature { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 2px solid #0f172a; border-radius: 30px; overflow: hidden; box-shadow: 10px 10px 0 #0f172a; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.wbx-feature:hover { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 #0f172a; }
.wbx-feature .wbx-cover { aspect-ratio: auto; min-height: 340px; border-right: 2px solid #0f172a; }
.wbx-feature-body { padding: 2rem 2rem 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
.wbx-upnext { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.85rem; border-radius: var(--radius-full); background: #fef9c3; border: 2px solid #facc15; color: #854d0e; font-weight: 800; font-size: 0.78rem; transform: rotate(-2deg); }
.wbx-feature h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.wbx-feature p.tag { margin: 0; color: var(--text-secondary); font-size: 1.02rem; line-height: 1.55; }
.wbx-count { display: flex; gap: 0.5rem; }
.wbx-count div { min-width: 58px; text-align: center; padding: 0.5rem 0.4rem; background: #0f172a; color: #fff; border-radius: 14px; }
.wbx-count b { display: block; font-size: 1.4rem; font-weight: 900; line-height: 1; }
.wbx-count small { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.wbx-feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: auto; }
.wbx-feature .apl-btn { cursor: pointer; }

/* ---------- section heads / hosts ---------- */
.wbx-section { padding: 3rem 0 0.5rem; }
.wbx-hosts { padding: 3.5rem 0 1rem; }
.wbx-host-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3rem; margin-top: 1.4rem; }
.wbx-host { display: flex; align-items: center; gap: 1rem; max-width: 380px; }
.wbx-host .apl-polaroid { width: 96px; height: 118px; }
.wbx-host b { display: block; font-size: 1.05rem; font-weight: 900; }
.wbx-host .r { color: var(--primary-dark); font-weight: 800; font-size: 0.82rem; margin-bottom: 0.3rem; }
.wbx-host p { margin: 0; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.5; }

.wbx-empty { text-align: center; background: #fff; border: 2px dashed var(--border-color); border-radius: 24px; padding: 3.5rem 1.5rem; color: var(--text-secondary); }
.wbx-empty h3 { color: var(--text-primary); font-weight: 900; margin: 0.4rem 0; }

.wbx-mine { max-width: 1180px; margin: 0 auto 1.6rem; background: #fff; border: 2px solid #0f172a; border-radius: 22px; padding: 1.1rem 1.4rem; box-shadow: 6px 6px 0 #0f172a; }
.wbx-mine h2 { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 900; }
.wbx-mine-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.6rem 0; border-top: 2px dashed var(--border-color); font-size: 0.92rem; }
.wbx-mine-row:first-of-type { border-top: 0; }
.wbx-mine-row .t { font-weight: 800; } .wbx-mine-row .w { color: var(--text-secondary); }
.wbx-mine-actions { display: flex; gap: 1rem; align-items: center; }
.wbx-mine-actions a, .wbx-link-btn { color: var(--primary-dark); font-weight: 800; font-size: 0.85rem; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.wbx-mine-actions a:hover, .wbx-link-btn:hover { text-decoration: underline; }
.wbx-link-btn.danger { color: #b91c1c; }

/* ---------- detail page ---------- */
.wbx-detail-hero { padding: 6.2rem 0 1.5rem; position: relative; isolation: isolate; overflow: hidden; }
.wbx-crumb { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem; font-weight: 800; font-size: 0.88rem; color: var(--text-secondary); text-decoration: none; }
.wbx-crumb:hover { color: var(--primary-dark); }
.wbx-detail { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 2.4rem; align-items: start; padding-bottom: 4.5rem; }
.wbx-detail-cover { border: 2px solid #0f172a; border-radius: 28px; overflow: hidden; box-shadow: 9px 9px 0 #0f172a; margin-bottom: 1.8rem; }
.wbx-detail h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; margin: 0.4rem 0 0.7rem; }
.wbx-detail .lead { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.55; margin: 0 0 1.4rem; }
.wbx-detail h2 { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; margin: 2rem 0 0.8rem; }
.wbx-detail .about { color: #334155; line-height: 1.7; white-space: pre-line; }
.wbx-learn { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.wbx-learn li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 1rem; background: #fff; border: 2px solid var(--border-color); border-radius: 16px; font-weight: 600; line-height: 1.4; }
.wbx-learn li:nth-child(odd) { transform: rotate(-0.4deg); } .wbx-learn li:nth-child(even) { transform: rotate(0.4deg); }
.wbx-learn i { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--gradient-vibrant); color: #fff; font-size: 0.7rem; display: inline-flex; align-items: center; justify-content: center; }
.wbx-people { display: grid; gap: 1rem; }
.wbx-person { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 2px solid #0f172a; border-radius: 20px; padding: 1rem 1.1rem; box-shadow: 5px 5px 0 #0f172a; }
.wbx-person img, .wbx-person .wbx-av-big { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; object-position: top; flex: 0 0 auto; background: var(--gradient-vibrant); color: #fff; font-weight: 900; font-size: 1.4rem; display: inline-flex; align-items: center; justify-content: center; }
.wbx-person b { font-size: 1.05rem; font-weight: 900; }
.wbx-role { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.5rem; border-radius: var(--radius-full); background: #ede9fe; color: #5b21b6; font-size: 0.68rem; font-weight: 800; vertical-align: middle; }
.wbx-role.guest { background: #ffedd5; color: #9a3412; }
.wbx-person .t { color: var(--primary-dark); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.3rem; }
.wbx-person p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; }

.wbx-book { position: sticky; top: 90px; background: #fff; border: 2px solid #0f172a; border-radius: 26px; padding: 1.4rem; box-shadow: 8px 8px 0 #0f172a; }
.wbx-book h2 { margin: 0 0 0.2rem; font-size: 1.25rem; font-weight: 900; }
.wbx-book .sub { margin: 0 0 1rem; color: var(--text-secondary); font-size: 0.88rem; }
.wbx-facts { display: grid; gap: 0.5rem; margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 2px dashed var(--border-color); font-size: 0.9rem; }
.wbx-facts div { display: flex; gap: 0.6rem; align-items: center; font-weight: 600; }
.wbx-facts i { width: 20px; text-align: center; color: var(--secondary-color); }
.wbx-slots { display: grid; gap: 0.6rem; }
.wbx-slot { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.75rem 0.9rem; border: 2px solid var(--border-color); border-radius: 16px; background: #fff; cursor: pointer; font-family: inherit; text-align: left; color: var(--text-primary); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.wbx-slot:hover { border-color: #0f172a; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 #0f172a; }
.wbx-slot-date { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.wbx-tile { flex: 0 0 auto; width: 46px; text-align: center; border: 2px solid #0f172a; border-radius: 11px; overflow: hidden; line-height: 1; background: #fff; }
.wbx-tile small { display: block; background: var(--primary-color); color: #fff; font-size: 0.56rem; font-weight: 900; letter-spacing: 0.08em; padding: 0.18rem 0; }
.wbx-tile b { display: block; font-size: 1.2rem; font-weight: 900; padding: 0.18rem 0 0.22rem; }
.wbx-slot-text b { display: block; font-weight: 800; font-size: 0.95rem; }
.wbx-slot-text span { color: var(--text-secondary); font-size: 0.83rem; font-weight: 600; }
.wbx-slot-text small.wbx-local { display: block; color: #94a3b8; font-size: 0.72rem; }
.wbx-slot .go { font-weight: 900; font-size: 0.8rem; color: #fff; background: #0f172a; padding: 0.4rem 0.8rem; border-radius: var(--radius-full); white-space: nowrap; }
.wbx-slot:hover .go { background: var(--primary-color); }
.wbx-slot.booked { cursor: default; border-color: #10b981; background: #ecfdf5; }
.wbx-slot.booked:hover { transform: none; box-shadow: none; }
.wbx-slot.booked .go { background: #10b981; }
.wbx-note { margin: 0.85rem 0 0; font-size: 0.78rem; color: #94a3b8; display: flex; align-items: center; gap: 0.45rem; }
.wbx-nodates { padding: 1rem; background: #f8fafc; border: 2px dashed var(--border-color); border-radius: 16px; font-weight: 600; color: var(--text-secondary); font-size: 0.9rem; }

/* ---------- confirmation page ---------- */
.wbx-confirm { min-height: 70vh; padding: 6.5rem 1rem 4rem; position: relative; isolation: isolate; overflow: hidden; }
.wbx-confirm-card { max-width: 640px; margin: 0 auto; background: #fff; border: 2px solid #0f172a; border-radius: 28px; overflow: hidden; box-shadow: 9px 9px 0 #0f172a; }
.wbx-confirm-top { padding: 1.8rem 1.8rem 1.5rem; color: #fff; text-align: center; background: linear-gradient(135deg, var(--a, #a855f7), var(--b, #06b6d4)); border-bottom: 2px solid #0f172a; }
.wbx-tick { width: 62px; height: 62px; border-radius: 50%; background: #fff; color: #10b981; border: 2px solid #0f172a; box-shadow: 3px 3px 0 #0f172a; display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; margin-bottom: 0.7rem; }
.wbx-confirm-top h1 { margin: 0 0 0.3rem; font-size: 1.8rem; font-weight: 900; letter-spacing: -0.02em; }
.wbx-confirm-top p { margin: 0; opacity: 0.95; }
.wbx-confirm-body { padding: 1.5rem 1.8rem 1.8rem; }
.wbx-confirm-title { font-size: 1.2rem; font-weight: 900; margin: 0 0 0.2rem; }
.wbx-confirm-when { font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 1rem; }
.wbx-row { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem 0; border-top: 2px dashed var(--border-color); font-size: 0.93rem; color: var(--text-secondary); line-height: 1.5; }
.wbx-row i { color: #a855f7; width: 18px; margin-top: 0.2rem; text-align: center; }
.wbx-row a { color: var(--primary-dark); font-weight: 800; word-break: break-all; }
.wbx-join { display: flex; align-items: center; justify-content: center; gap: 0.7rem; width: 100%; margin: 1.1rem 0 0.2rem; padding: 1rem 1.2rem; border-radius: 16px; background: #10b981; color: #fff; border: 2px solid #0f172a; box-shadow: 4px 4px 0 #0f172a; font-weight: 900; font-size: 1.02rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.wbx-join:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #0f172a; }
.wbx-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.wbx-links { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; font-size: 0.88rem; }
.wbx-links a, .wbx-links button { color: var(--text-secondary); text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.wbx-links button.danger { color: #b91c1c; }

@media (max-width: 960px) {
    .wbx-feature { grid-template-columns: 1fr; box-shadow: 7px 7px 0 #0f172a; }
    .wbx-feature .wbx-cover { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 2px solid #0f172a; }
    .wbx-detail { grid-template-columns: 1fr; }
    .wbx-book { position: static; }
}
@media (max-width: 560px) {
    .wbx-feature-body { padding: 1.4rem 1.2rem 1.3rem; }
    .wbx-detail-hero { padding-top: 5rem; }
    .wbx-learn li:nth-child(odd), .wbx-learn li:nth-child(even) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .wbx-card:hover, .wbx-feature:hover, .wbx-slot:hover, .wbx-join:hover { transform: none; }
    .wbx-pill.live::before { animation: none; }
}
