/* ===== IEEFA Energy Finance Forum — brand layer over Bootstrap 5 ===== */
* { -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--brand-bg);
  color: var(--navy);
  line-height: 1.65;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, .event-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
p { color: #4a5560; }

.page { max-width: 660px; margin: 0 auto; padding: 34px 18px; }
.page-wide { max-width: 1120px; }

/* Cards */
.card {
  border: 1px solid rgba(35, 49, 64, .07);
  border-radius: 22px;
  box-shadow: 0 6px 30px rgba(35, 49, 64, .07);
  background: var(--card);
}
.hero-img { width: 100%; display: block; }

.eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.event-title { text-transform: uppercase; line-height: 1.1; }
.text-brand { color: var(--brand) !important; }

/* Buttons */
.btn { border-radius: 11px; font-weight: 600; padding: .6rem 1.3rem; }
.btn-lg { padding: .8rem 1.6rem; }
.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
  background-image: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none;
  box-shadow: 0 8px 20px rgba(226, 86, 125, .28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(226, 86, 125, .36); }
.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand);
  font-weight: 600;
}

/* Event details panel */
.event-details { background: #fff; border: 1px solid rgba(35, 49, 64, .09); border-radius: 18px; padding: 1.35rem .5rem; }
.detail-cell { padding: .35rem 1.1rem; }
.detail-cell + .detail-cell { border-left: 1px solid rgba(35, 49, 64, .08); }
.detail-ic { color: var(--brand); font-size: 1.55rem; display: block; margin-bottom: .4rem; }
.detail-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: .15rem; }
.detail-val { font-weight: 600; font-size: .92rem; line-height: 1.35; color: var(--navy); }
.detail-sub { font-size: .78rem; color: var(--bs-secondary-color, #6E7681); margin-top: .15rem; }
.dress-badge { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: .45rem 1.1rem; font-size: .85rem; font-weight: 600; }
@media (max-width: 767px) {
  .detail-cell + .detail-cell { border-left: none; border-top: 1px solid rgba(35, 49, 64, .08); margin-top: .3rem; padding-top: .9rem; }
}

/* Seat pills */
.seat-pill { background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: .5rem 1.1rem; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.seat-pill.full { background: #fdeaea; color: #c0392b; }

/* Countdown */
.countdown { display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; }
.cd-box { background: var(--navy); border-radius: 14px; padding: .7rem .4rem; min-width: 72px; box-shadow: 0 6px 18px rgba(35, 49, 64, .18); }
.cd-num { font-weight: 800; font-size: 1.9rem; color: #fff; display: block; line-height: 1; }
.cd-lbl { font-size: .65rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255, 255, 255, .65); }
.cd-live { background: var(--brand-soft); color: var(--brand-dark); padding: .85rem 1rem; border-radius: 14px; font-weight: 600; }

/* Panel cards */
.panel-card {
  display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 172px;
  text-align: left; background: #fff; border: 1px solid rgba(35, 49, 64, .1);
  border-radius: 16px; padding: 1.2rem 1.25rem; cursor: pointer;
  transition: border-color .15s, box-shadow .18s, transform .14s;
}
.panel-card:hover { border-color: var(--brand); box-shadow: 0 12px 28px rgba(226, 86, 125, .16); transform: translateY(-3px); }
.panel-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.panel-num { font-weight: 800; font-size: 1.5rem; color: var(--brand); line-height: 1; letter-spacing: -.02em; }
.panel-time { font-size: .72rem; font-weight: 600; background: var(--brand-soft); color: var(--brand-dark); padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.panel-time .bi { font-size: .7rem; }
.panel-title { font-weight: 700; line-height: 1.3; font-size: 1rem; color: var(--navy); }
.panel-sub { font-size: .82rem; color: #6E7681; line-height: 1.45; margin-top: .35rem;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.panel-more { margin-top: auto; padding-top: .8rem; color: var(--brand); font-weight: 700; font-size: .82rem; }
.panel-more .bi { transition: transform .15s; }
.panel-card:hover .panel-more .bi { transform: translateX(3px); }

/* Modals */
.modal-content { border: none; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(35, 49, 64, .3); }
.modal-brand { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; align-items: flex-start; border-bottom: none; padding: 1.25rem 1.5rem; }
.modal-brand .modal-title { font-weight: 700; line-height: 1.2; color: #fff; font-size: 1.15rem; }
.modal-eyebrow { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: .25rem; }
.modal-body { padding: 1.6rem 1.6rem 1.75rem; }
.modal-footer { border-top: 1px solid rgba(35, 49, 64, .08); padding: 1rem 1.5rem; }
.panel-modal-sub {
  color: var(--brand); font-weight: 700; font-size: 1.02rem; line-height: 1.45;
  margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(35, 49, 64, .1);
}
.panel-modal-desc { color: #4a5560; font-size: .95rem; line-height: 1.85; margin: 0; text-align: justify; text-justify: inter-word; hyphens: auto; }

/* Agenda timeline */
.agenda-row { display: flex; gap: 1.1rem; padding: .85rem 0; border-bottom: 1px solid rgba(35, 49, 64, .08); text-align: left; }
.agenda-row:last-child { border-bottom: none; }
.agenda-time { flex: 0 0 100px; font-weight: 700; color: var(--brand); font-size: .82rem; padding-top: .1rem; }
.agenda-title { font-weight: 700; font-size: .95rem; color: var(--navy); }
.agenda-desc { font-size: .83rem; color: #6E7681; margin-top: .2rem; line-height: 1.5; }
.agenda-break .agenda-time, .agenda-break .agenda-title { color: #9aa3ac; font-weight: 600; }
.agenda-break .agenda-title { font-style: italic; }
.agenda-speakers { margin-top: .55rem; display: grid; gap: 1.05rem; }
.ag-spk { padding-left: .7rem; border-left: 2px solid rgba(226,86,125,.4); }
.ag-spk-name { font-size: .84rem; font-weight: 700; color: #1d4ed8; }
.ag-spk-mod { display:inline-block; font-size:.6rem; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:#fff; background:var(--brand); border-radius:4px; padding:1px 6px; vertical-align:middle; margin-bottom:4px; }
.ag-spk-role { font-size: .77rem; color: #6E7681; line-height: 1.4; margin-top: .1rem; }
.ag-spk-desig { font-style: italic; }
@media (max-width: 575px) {
  .agenda-row { flex-direction: column; gap: .15rem; }
  .agenda-time { flex: none; }
}

/* ===== Branded e-ticket (also the print layout) ===== */
.ticket { max-width: 360px; margin: 1.5rem auto .25rem; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px rgba(35, 49, 64, .16); border: 1px solid rgba(35, 49, 64, .08); }
.ticket-top { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; padding: 1.25rem 1rem; text-align: center; }
.ticket-eyebrow { font-size: 10px; letter-spacing: 3px; color: var(--brand); font-weight: 700; }
.ticket-event { font-weight: 800; text-transform: uppercase; font-size: 1.05rem; line-height: 1.2; margin-top: .25rem; color: #fff; }
.ticket-tag { font-size: .74rem; opacity: .85; margin-top: .15rem; }
.ticket-body { background: #fff; padding: 1.5rem 1.25rem 1.35rem; text-align: center; border-top: 2px dashed #e2d2d9; position: relative; }
.ticket-body::before, .ticket-body::after { content: ""; position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-bg); }
.ticket-body::before { left: -12px; }
.ticket-body::after { right: -12px; }
.ticket-name { font-weight: 700; font-size: 1.1rem; margin-bottom: .7rem; color: var(--navy); }
.ticket-rep { font-size: .8rem; color: #6E7681; font-weight: 500; }
.ticket-qr { width: 200px; height: 200px; max-width: 72%; }
.ticket-code { font-family: ui-monospace, monospace; letter-spacing: 1px; color: #6E7681; font-size: .8rem; margin-top: .35rem; }
.ticket-info { text-align: left; margin-top: 1.1rem; border-top: 1px solid rgba(35, 49, 64, .08); padding-top: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.ticket-info-row { display: flex; gap: .6rem; font-size: .85rem; align-items: flex-start; }
.ticket-info-row .bi { color: var(--brand); font-size: 1rem; margin-top: .1rem; }
.ticket-info-row b { color: var(--navy); font-weight: 600; }
.ticket-note { font-size: .72rem; color: #c0392b; margin-top: .9rem; }

@media print {
  body * { visibility: hidden !important; }
  #ticket, #ticket * { visibility: visible !important; }
  #ticket { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); box-shadow: none; border: 1px solid #ddd; }
  .no-print { display: none !important; }
}

/* Forms */
.form-hero { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; }
.form-hero .event-title { color: #fff; }
.form-control, .form-select { border-radius: 12px; padding: .7rem .9rem; border-color: rgba(35, 49, 64, .15); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(226, 86, 125, .15); }
.form-floating > label { color: #8a909a; }
.form-floating > label .bi { color: var(--brand); }
.form-label { font-weight: 600; color: var(--navy); }
.rep-panel { background: var(--brand-soft); border-radius: 14px; padding: 1.1rem; margin-bottom: .25rem; }

/* Attendance selector cards */
.attend-card {
  display: block; cursor: pointer; height: 100%;
  border: 1.5px solid rgba(35, 49, 64, .14); border-radius: 16px;
  padding: 1.1rem .6rem; text-align: center; background: #fff;
  transition: border-color .15s, background .15s, box-shadow .18s, transform .12s;
}
.attend-card:hover { border-color: var(--brand); }
.attend-card .bi { font-size: 1.6rem; color: var(--brand); display: block; margin-bottom: .4rem; }
.attend-title { display: block; font-weight: 700; font-size: .95rem; color: var(--navy); }
.attend-desc { display: block; font-size: .73rem; color: #6E7681; line-height: 1.3; margin-top: .15rem; }
.btn-check:checked + .attend-card { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 10px 24px rgba(226, 86, 125, .18); transform: translateY(-2px); }
.btn-check:disabled + .attend-card { opacity: .45; cursor: not-allowed; }
.btn-check:focus-visible + .attend-card { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Admin */
.stat-card { background: #fff; border: 1px solid rgba(35, 49, 64, .09); border-radius: 16px; }
.stat-num { font-weight: 800; font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.badge-brand { background: var(--brand-soft); color: var(--brand-dark); }

/* Admin compact registrant list */
.reg-list { display: flex; flex-direction: column; }
.reg-item { display: flex; align-items: center; gap: .75rem; padding: .7rem .25rem; border-bottom: 1px solid rgba(35, 49, 64, .08); }
.reg-item:last-child { border-bottom: none; }
.reg-info { flex: 1; min-width: 0; }
.reg-name { font-weight: 600; font-size: .92rem; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.reg-meta { font-size: .78rem; color: #6E7681; margin-top: .12rem; overflow-wrap: anywhere; }
.tag { font-size: .64rem; font-weight: 700; padding: .14rem .5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .3px; }
.tag-on { background: #e6f4ec; color: #1d7a47; }
.tag-onl { background: #e7eefb; color: #2b51a8; }
.tag-rep { background: var(--brand-soft); color: var(--brand-dark); }
.tag-in, .tag-zoom { background: #1d7a47; color: #fff; }
.reg-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.act { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; text-decoration: none; transition: transform .12s; }
.act:hover { transform: translateY(-2px); }
.act-wa { background: #25D366; color: #fff; }
.act-mail { background: var(--brand); color: #fff; }
.act-ticket { background: #eef0f2; color: var(--navy); }
.act-off { background: #f1f1f1; color: #c4c4c4; cursor: not-allowed; }
.act.sending { pointer-events: none; }
.act.sending i { animation: act-spin .6s linear infinite; }
@keyframes act-spin { to { transform: rotate(360deg); } }
.act.sent { background: #1d7a47 !important; color: #fff !important; animation: act-pop .45s ease; }
@keyframes act-pop { 0% { transform: scale(.8); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
.tag-contacted { background: #e6f4ec; color: #1d7a47; }

/* Full participant table */
.reg-table { font-size: .85rem; }
.reg-table th, .reg-table td { padding: .5rem .6rem; white-space: nowrap; vertical-align: middle; }
.reg-table thead th { position: sticky; top: 0; background: #fff; }
.act-sm { width: 33px; height: 33px; border-radius: 8px; font-size: .95rem; }
.reg-actions .act, .reg-table .act { display: inline-flex; align-items: center; justify-content: center; }

/* Toast */
.toast-note {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: .75rem 1.15rem; border-radius: 12px;
  font-size: .9rem; font-weight: 500; box-shadow: 0 12px 34px rgba(35, 49, 64, .35);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; z-index: 1050; max-width: 90vw;
}
.toast-note.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-note .bi { margin-right: .4rem; }

/* Footer */
.site-footer { padding: 2.5rem 16px 2.75rem; }
.footer-logo { height: 34px; width: auto; opacity: .85; transition: opacity .15s; }
.site-footer a:hover .footer-logo { opacity: 1; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Language switcher */
.lang-switch {
  position: fixed; top: 12px; right: 14px; z-index: 1030;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  border: 1px solid rgba(35, 49, 64, .1); border-radius: 999px;
  padding: .25rem .75rem; font-size: .8rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(35, 49, 64, .1);
}
.lang-switch a { color: #9aa3ac; text-decoration: none; }
.lang-switch a.active { color: var(--brand); }
.lang-switch span { color: #d2d7dc; margin: 0 .15rem; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; bottom: 20px; right: 18px; z-index: 1030;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .45); text-decoration: none; transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* Maps link */
.maps-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand); font-weight: 600; font-size: .8rem; text-decoration: none; margin-top: .35rem; }
.maps-link:hover { color: var(--brand-dark); }

/* Admin outreach buttons */
.btn-wa { --bs-btn-color: #fff; --bs-btn-bg: #25D366; --bs-btn-border-color: #25D366; --bs-btn-hover-bg: #1ebe5a; --bs-btn-hover-border-color: #1ebe5a; --bs-btn-disabled-bg: #b9e7c9; --bs-btn-disabled-border-color: #b9e7c9; }

/* Online confirmation */
.online-confirm { background: var(--brand-soft); border-radius: 18px; padding: 1.5rem 1.25rem; }
.online-icon { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1rem; box-shadow: 0 8px 20px rgba(226, 86, 125, .2); }
.online-pop-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }

@media print { .lang-switch, .wa-float { display: none !important; } }
