/* =========================================================
   Sardardham Event Pass – design system
   Palette taken from scholarship.sardardham.org (unchanged)
   ========================================================= */
:root {
  --sd-navy: #102f4f;
  --sd-navy-2: #123a61;
  --sd-navy-3: #173f68;
  --sd-dark: #071b2e;
  --sd-blue: #024f9a;
  --sd-gold: #d9a72e;
  --sd-gold-2: #e6b64f;
  --sd-cream: #fffaf0;
  --sd-text: #405166;
  --sd-muted: #6b7c90;
  --sd-light: #f4f6f8;
  --sd-sky: #eaf4ff;
  --sd-border: #dce7f1;
  --sd-border-2: #c7d2dc;
  --sd-green: #1f9d6b;
  --sd-green-bg: #e7f8f0;
  --sd-red: #c0392b;
  --sd-red-bg: #fdecea;
  --sd-shadow-sm: 0 1px 2px rgba(13, 47, 79, .06), 0 1px 3px rgba(13, 47, 79, .08);
  --sd-shadow: 0 10px 30px rgba(13, 47, 79, .08);
  --sd-shadow-lg: 0 24px 60px rgba(7, 27, 46, .18);
  --radius: 14px;
  --sidebar-w: 264px;
  --font: "Plus Jakarta Sans", "Noto Sans Gujarati", "Segoe UI", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--sd-text); background: var(--sd-light); -webkit-font-smoothing: antialiased; }
a { color: var(--sd-blue); text-decoration: none; }
a:hover { color: var(--sd-navy); }
h1, h2, h3, h4, h5, h6 { color: var(--sd-navy); font-weight: 700; letter-spacing: -.01em; }
.text-muted { color: var(--sd-muted) !important; }
.text-gold { color: var(--sd-gold) !important; }
.text-navy { color: var(--sd-navy) !important; }
.bg-navy { background: var(--sd-navy) !important; color: #fff; }
.bg-cream { background: var(--sd-cream) !important; }
.fw-semibold { font-weight: 600 !important; }
::selection { background: var(--sd-gold); color: var(--sd-dark); }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: .5rem 1rem; transition: all .15s ease; }
.btn-sm { border-radius: 8px; padding: .32rem .7rem; font-size: .82rem; }
.btn-lg { border-radius: 12px; padding: .75rem 1.4rem; }
.btn-sd { background: var(--sd-gold); border: 1px solid var(--sd-gold); color: var(--sd-dark); box-shadow: 0 6px 16px rgba(217, 167, 46, .28); }
.btn-sd:hover, .btn-sd:focus, .btn-sd:active { background: var(--sd-gold-2) !important; border-color: var(--sd-gold-2) !important; color: var(--sd-dark) !important; transform: translateY(-1px); }
.btn-navy { background: var(--sd-navy); border: 1px solid var(--sd-navy); color: #fff; }
.btn-navy:hover, .btn-navy:focus, .btn-navy:active { background: var(--sd-navy-3) !important; border-color: var(--sd-navy-3) !important; color: #fff !important; }
.btn-outline-navy { border: 1px solid var(--sd-border-2); color: var(--sd-navy); background: #fff; }
.btn-outline-navy:hover { background: var(--sd-navy); border-color: var(--sd-navy); color: #fff; }
.btn-light-navy { background: var(--sd-sky); color: var(--sd-blue); border: 1px solid transparent; }
.btn-light-navy:hover { background: var(--sd-blue); color: #fff; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--sd-border); background: #fff; color: var(--sd-navy); margin-left: 4px; transition: all .15s; cursor: pointer; }
.btn-icon:hover { background: var(--sd-navy); color: #fff; border-color: var(--sd-navy); }
.btn-icon.text-danger:hover { background: var(--sd-red); border-color: var(--sd-red); color: #fff !important; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .85rem; color: var(--sd-navy); margin-bottom: .35rem; }
.form-control, .form-select { border-radius: 10px; border-color: var(--sd-border-2); padding: .55rem .85rem; font-size: .92rem; }
.form-control-lg, .form-select-lg { border-radius: 12px; padding: .75rem 1rem; font-size: 1.02rem; }
.form-control:focus, .form-select:focus { border-color: var(--sd-gold); box-shadow: 0 0 0 .22rem rgba(217, 167, 46, .2); }
.input-group-text { border-radius: 10px; background: var(--sd-light); border-color: var(--sd-border-2); color: var(--sd-navy); font-weight: 600; }
.form-check-input:checked { background-color: var(--sd-navy); border-color: var(--sd-navy); }
.form-switch .form-check-input:checked { background-color: var(--sd-gold); border-color: var(--sd-gold); }
.form-text { color: var(--sd-muted); }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 30px; font-size: .74rem; font-weight: 600; background: var(--sd-light); color: var(--sd-navy); border: 1px solid var(--sd-border); white-space: nowrap; }
.chip-navy { background: var(--sd-sky); color: var(--sd-navy); border-color: #cfe1f5; }
.chip-gold { background: var(--sd-cream); color: #9a6f0e; border-color: #f1dca8; }
.chip-green { background: var(--sd-green-bg); color: var(--sd-green); border-color: #bfe9d6; }
.chip-red { background: var(--sd-red-bg); color: var(--sd-red); border-color: #f5c6c0; }
.badge { font-weight: 600; letter-spacing: .03em; padding: .38em .7em; border-radius: 6px; }
.cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--sd-navy), var(--sd-blue)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.pass-code { background: var(--sd-light); color: var(--sd-navy); padding: 2px 7px; border-radius: 6px; font-size: .8rem; font-weight: 600; }

/* ---------- Cards ---------- */
.sd-card { background: #fff; border: 1px solid var(--sd-border); border-radius: var(--radius); box-shadow: var(--sd-shadow-sm); }
.sd-card-head { padding: 16px 20px; border-bottom: 1px solid var(--sd-border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sd-card-head h6 { margin: 0; font-size: .95rem; }
.sd-card-body { padding: 20px; }
.sd-card .icon-title { width: 34px; height: 34px; border-radius: 10px; background: var(--sd-cream); color: var(--sd-gold); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Admin shell ---------- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side { width: var(--sidebar-w); flex-shrink: 0; background: var(--sd-dark); background-image: linear-gradient(180deg, var(--sd-navy) 0%, var(--sd-dark) 100%); color: #b8c7d8; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 1040; }
.admin-side .brand { padding: 18px 18px; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 3px solid var(--sd-gold); }
.admin-side .brand img { max-width: 100%; height: 34px; object-fit: contain; }
.admin-side .side-scroll { flex: 1; overflow-y: auto; padding: 10px 12px 20px; }
.admin-side .side-scroll::-webkit-scrollbar { width: 6px; }
.admin-side .side-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 3px; }
.admin-side .side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sd-gold); padding: 18px 12px 6px; font-weight: 700; opacity: .9; }
.admin-side .nav-link { color: #b8c7d8; padding: 10px 12px; border-radius: 10px; display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 500; margin-bottom: 2px; transition: all .15s; }
.admin-side .nav-link i { width: 18px; text-align: center; font-size: .95rem; opacity: .85; }
.admin-side .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.admin-side .nav-link.active { color: var(--sd-dark); background: var(--sd-gold); font-weight: 700; box-shadow: 0 8px 20px rgba(217, 167, 46, .25); }
.admin-side .nav-link.active i { opacity: 1; }
.admin-side .side-foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-side .side-user { display: flex; align-items: center; gap: 10px; color: #fff; }
.admin-side .side-user .avatar { background: var(--sd-gold); color: var(--sd-dark); }
.admin-side .side-user small { color: #8fa3b8; display: block; font-size: .72rem; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top { background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sd-border); padding: 10px 24px; display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 1030; min-height: 62px; }
.admin-top .crumbs { font-size: .8rem; color: var(--sd-muted); }
.admin-top .crumbs a { color: var(--sd-muted); }
.admin-content { padding: 24px; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 1.45rem; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--sd-muted); font-size: .9rem; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.side-backdrop { display: none; }

@media (max-width: 991.98px) {
  .admin-side { position: fixed; left: calc(-1 * var(--sidebar-w) - 10px); transition: left .22s ease; }
  .admin-side.open { left: 0; box-shadow: var(--sd-shadow-lg); }
  .side-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(7, 27, 46, .45); z-index: 1035; }
  .admin-content { padding: 16px; }
  .admin-top { padding: 10px 16px; }
}

/* ---------- Stats ---------- */
.stat { position: relative; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--sd-border); box-shadow: var(--sd-shadow-sm); height: 100%; overflow: hidden; }
.stat .ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; margin-bottom: 12px; background: var(--sd-sky); color: var(--sd-blue); }
.stat .num { font-size: 1.7rem; font-weight: 800; color: var(--sd-navy); line-height: 1; }
.stat .lbl { font-size: .78rem; color: var(--sd-muted); font-weight: 600; margin-top: 6px; }
.stat.gold .ic { background: var(--sd-cream); color: var(--sd-gold); }
.stat.green .ic { background: var(--sd-green-bg); color: var(--sd-green); }
.stat.red .ic { background: var(--sd-red-bg); color: var(--sd-red); }
.stat.navy .ic { background: var(--sd-navy); color: var(--sd-gold); }
.stat.blue .ic { background: var(--sd-sky); color: var(--sd-blue); }
.stat::after { content: ""; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: var(--sd-light); opacity: .7; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 16px 20px; border-bottom: 1px solid var(--sd-border); background: #fbfcfd; border-radius: var(--radius) var(--radius) 0 0; }
.filter-bar .f { min-width: 160px; flex: 1 1 160px; max-width: 240px; }
.filter-bar .f label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sd-muted); font-weight: 700; margin-bottom: 4px; display: block; }
.filter-bar .form-select, .filter-bar .form-control { font-size: .86rem; padding: .45rem .75rem; }

/* ---------- DataTables ---------- */
.dt-wrap { padding: 4px 20px 16px; }
table.dataTable { margin-top: 0 !important; margin-bottom: 0 !important; border-collapse: collapse !important; }
.table { --bs-table-hover-bg: #f7fafc; color: var(--sd-text); }
.table > :not(caption) > * > * { padding: .8rem .75rem; border-bottom-color: #edf2f7; vertical-align: middle; }
.table thead th { background: transparent; color: var(--sd-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; border-bottom: 1px solid var(--sd-border) !important; white-space: nowrap; }
div.dataTables_wrapper div.dataTables_filter input { border-radius: 10px; border: 1px solid var(--sd-border-2); padding: .42rem .8rem .42rem 2.1rem; width: 240px; margin-left: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7c90' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center; }
div.dataTables_wrapper div.dataTables_filter input:focus { border-color: var(--sd-gold); box-shadow: 0 0 0 .2rem rgba(217, 167, 46, .2); outline: 0; }
div.dataTables_wrapper div.dataTables_filter label, div.dataTables_wrapper div.dataTables_length label { font-size: .85rem; color: var(--sd-muted); }
div.dataTables_wrapper div.dataTables_length select { border-radius: 8px; margin: 0 6px; }
div.dataTables_wrapper .dt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0 10px; }
div.dataTables_wrapper .dt-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; }
div.dataTables_wrapper div.dataTables_info { font-size: .82rem; color: var(--sd-muted); padding-top: 0 !important; }
.pagination { gap: 4px; margin: 0 !important; }
.page-link { border-radius: 8px !important; border: 1px solid var(--sd-border); color: var(--sd-navy); font-size: .82rem; font-weight: 600; min-width: 34px; text-align: center; }
.page-item.active .page-link { background: var(--sd-navy); border-color: var(--sd-navy); color: #fff; }
.page-link:focus { box-shadow: 0 0 0 .2rem rgba(217, 167, 46, .2); }
div.dataTables_processing { background: #fff !important; border: 1px solid var(--sd-border) !important; border-radius: 12px !important; box-shadow: var(--sd-shadow) !important; padding: 14px !important; color: var(--sd-navy); font-weight: 600; z-index: 5; }
div.dataTables_processing > div:last-child > div { background: var(--sd-gold) !important; }
table.dataTable > thead .sorting:before, table.dataTable > thead .sorting:after,
table.dataTable > thead .sorting_asc:before, table.dataTable > thead .sorting_asc:after,
table.dataTable > thead .sorting_desc:before, table.dataTable > thead .sorting_desc:after { color: var(--sd-gold); }
td.dataTables_empty { padding: 40px !important; color: var(--sd-muted); white-space: normal !important; }
table.dataTable td { white-space: nowrap; }
table.dataTable td .wrap { white-space: normal; }

/* ---------- Permission matrix ---------- */
.perm-bar { height: 6px; background: var(--sd-light); border-radius: 3px; overflow: hidden; width: 160px; margin-bottom: 4px; }
.perm-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--sd-gold), var(--sd-gold-2)); }
.perm-module { border: 1px solid var(--sd-border); border-radius: 12px; background: #fff; height: 100%; transition: border-color .15s, box-shadow .15s; }
.perm-module.on { border-color: var(--sd-gold); box-shadow: 0 0 0 3px rgba(217, 167, 46, .12); }
.perm-module .pm-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--sd-border); }
.perm-module .pm-head .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--sd-sky); color: var(--sd-blue); display: inline-flex; align-items: center; justify-content: center; }
.perm-module.on .pm-head .ic { background: var(--sd-gold); color: var(--sd-dark); }
.perm-module .pm-body { padding: 10px 14px; }
.perm-module .form-check { padding: 5px 0 5px 2.4em; margin: 0; }
.perm-module .form-check-label { font-size: .88rem; }

/* ---------- Misc ---------- */
.alert { border-radius: 12px; border: 0; font-size: .9rem; }
.alert-success { background: var(--sd-green-bg); color: #13704b; }
.alert-danger { background: var(--sd-red-bg); color: #962d22; }
.alert-warning { background: var(--sd-cream); color: #8a6410; }
.alert-info { background: var(--sd-sky); color: var(--sd-navy); }
.modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--sd-shadow-lg); }
.modal-header { border-bottom: 1px solid var(--sd-border); padding: 16px 20px; }
.modal-header.bg-navy { border-bottom: 3px solid var(--sd-gold); }
.modal-footer { border-top: 1px solid var(--sd-border); }
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.sd-toast { background: var(--sd-navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--sd-shadow-lg); font-size: .88rem; border-left: 4px solid var(--sd-gold); animation: slideIn .25s ease; max-width: 360px; }
.sd-toast.err { border-left-color: #ff7b6b; }
@keyframes slideIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state i { font-size: 2.6rem; color: var(--sd-gold); margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; font-size: .9rem; }
.kv dt { color: var(--sd-muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--sd-navy); font-weight: 600; }
.link-box { display: flex; gap: 6px; background: var(--sd-light); border: 1px dashed var(--sd-border-2); border-radius: 10px; padding: 6px 6px 6px 12px; align-items: center; }
.link-box code { flex: 1; color: var(--sd-blue); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf2f7; font-size: .86rem; }
.timeline li:last-child { border-bottom: 0; }

/* =========================================================
   PUBLIC SITE
   ========================================================= */
.topbar { background: var(--sd-dark); color: #9fb1c4; font-size: .8rem; padding: 7px 0; }
.topbar a { color: #c9d6e3; }
.topbar i { color: var(--sd-gold); }
.front-nav { background: #fff; box-shadow: 0 2px 16px rgba(13, 47, 79, .07); padding: 10px 0; transition: padding .2s; }
.front-nav .navbar-brand img { height: 50px; width: auto; }
.front-nav .nav-link { color: var(--sd-navy); font-weight: 600; font-size: .93rem; padding: .5rem 1rem !important; position: relative; }
.front-nav .nav-link::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 2px; height: 2px; background: var(--sd-gold); transform: scaleX(0); transition: transform .2s; }
.front-nav .nav-link:hover::after, .front-nav .nav-link.active::after { transform: scaleX(1); }
.front-nav .nav-link:hover, .front-nav .nav-link.active { color: var(--sd-navy); }

.hero { position: relative; overflow: hidden; color: #fff; padding: 110px 0 140px; background: linear-gradient(120deg, var(--sd-dark) 0%, var(--sd-navy) 55%, var(--sd-navy-3) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(217, 167, 46, .16) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 167, 46, .28), transparent 65%); }
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--sd-gold); background: rgba(217, 167, 46, .1); border: 1px solid rgba(217, 167, 46, .35); padding: 6px 14px; border-radius: 30px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; margin: 18px 0; letter-spacing: -.02em; }
.hero h1 span { color: var(--sd-gold); }
.hero .lead { color: #c9d6e3; font-size: 1.1rem; max-width: 560px; }
.hero-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 26px; backdrop-filter: blur(10px); box-shadow: var(--sd-shadow-lg); }
.hero-card .mini-pass { background: #fff; color: var(--sd-text); border-radius: 16px; overflow: hidden; transform: rotate(-3deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-card .mini-pass .mp-top { background: var(--sd-navy); border-bottom: 3px solid var(--sd-gold); color: #fff; padding: 12px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.hero-card .mini-pass .mp-body { padding: 18px; display: flex; gap: 16px; align-items: center; }
.hero-card .mini-pass .mp-qr { width: 92px; height: 92px; border: 2px solid var(--sd-gold); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 4.2rem; color: var(--sd-navy); }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 3; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

.stats-strip { margin-top: -70px; position: relative; z-index: 5; }
.stats-strip .box { background: #fff; border-radius: 18px; box-shadow: var(--sd-shadow); border: 1px solid var(--sd-border); padding: 22px 10px; }
.stats-strip .it { text-align: center; padding: 6px 10px; }
.stats-strip .it + .it { border-left: 1px solid var(--sd-border); }
.stats-strip .it i { color: var(--sd-gold); font-size: 1.4rem; margin-bottom: 6px; }
.stats-strip .it b { display: block; color: var(--sd-navy); font-size: 1.02rem; }
.stats-strip .it small { color: var(--sd-muted); }

.section { padding: 90px 0; }
.section-kicker { color: var(--sd-gold); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.section-title { font-weight: 800; color: var(--sd-navy); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 6px; }
.section-sub { color: var(--sd-muted); max-width: 620px; margin: 10px auto 0; }

.event-card { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--sd-border); box-shadow: var(--sd-shadow-sm); height: 100%; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--sd-shadow); }
.event-card .ec-top { position: relative; padding: 22px; color: #fff; background: linear-gradient(135deg, var(--sd-navy), var(--sd-navy-3)); overflow: hidden; }
.event-card .ec-top::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(217, 167, 46, .15); }
.event-card .ec-date { display: inline-flex; flex-direction: column; align-items: center; background: #fff; color: var(--sd-navy); border-radius: 12px; padding: 8px 14px; line-height: 1; box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
.event-card .ec-date b { font-size: 1.7rem; color: var(--sd-gold); font-weight: 800; }
.event-card .ec-date small { font-size: .7rem; font-weight: 700; text-transform: uppercase; margin-top: 3px; }
.event-card .ec-tag { position: absolute; top: 20px; right: 20px; background: var(--sd-gold); color: var(--sd-dark); font-size: .7rem; font-weight: 800; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; z-index: 2; }
.event-card .ec-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.event-card .ec-body h5 { font-size: 1.12rem; line-height: 1.35; }
.event-card .ec-meta { list-style: none; padding: 0; margin: 0 0 14px; font-size: .86rem; }
.event-card .ec-meta li { display: flex; gap: 8px; padding: 3px 0; }
.event-card .ec-meta i { color: var(--sd-gold); width: 16px; margin-top: 3px; }

.step { position: relative; text-align: center; padding: 30px 22px; background: #fff; border-radius: 20px; border: 1px solid var(--sd-border); height: 100%; transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--sd-shadow); }
.step .n { position: absolute; top: 16px; right: 18px; font-size: 2.6rem; font-weight: 800; color: var(--sd-light); line-height: 1; }
.step .ic { width: 66px; height: 66px; border-radius: 18px; background: var(--sd-navy); color: var(--sd-gold); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 16px; box-shadow: 0 12px 24px rgba(16, 47, 79, .25); }
.step h6 { font-size: 1.02rem; }
.step p { font-size: .88rem; color: var(--sd-muted); margin: 0; }

.about-img { position: relative; background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--sd-shadow); }
.about-img::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--sd-gold); border-radius: 24px; z-index: -1; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 6px 0 6px 30px; position: relative; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--sd-cream); color: var(--sd-gold); font-size: .65rem; display: flex; align-items: center; justify-content: center; }

.faq .accordion-item { border: 1px solid var(--sd-border); border-radius: 14px !important; margin-bottom: 10px; overflow: hidden; }
.faq .accordion-button { font-weight: 600; color: var(--sd-navy); padding: 18px 20px; }
.faq .accordion-button:not(.collapsed) { background: var(--sd-cream); color: var(--sd-navy); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-body { color: var(--sd-text); font-size: .93rem; }

.cta { background: linear-gradient(120deg, var(--sd-navy), var(--sd-dark)); border-radius: 26px; padding: 50px; color: #fff; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 167, 46, .35), transparent 70%); }
.cta h3 { color: #fff; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(217, 167, 46, .15); color: var(--sd-gold); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.front-footer { background: var(--sd-dark); color: #8fa3b8; padding: 50px 0 24px; font-size: .9rem; }
.front-footer h6 { color: #fff; margin-bottom: 14px; }
.front-footer a { color: #c9d6e3; }
.front-footer a:hover { color: var(--sd-gold); }
.front-footer .logo-box { background: #fff; display: inline-block; padding: 10px 16px; border-radius: 12px; }
.front-footer .logo-box img { height: 40px; }
.front-footer hr { border-color: rgba(255, 255, 255, .1); }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 12px; background: var(--sd-gold); color: var(--sd-dark); display: none; align-items: center; justify-content: center; box-shadow: var(--sd-shadow); z-index: 1000; }
.to-top.show { display: inline-flex; }

/* ---------- Registration / auth pages ---------- */
.reg-wrap { min-height: 100vh; background: linear-gradient(120deg, var(--sd-dark) 0%, var(--sd-navy) 60%, var(--sd-navy-3) 100%); padding: 36px 14px; position: relative; overflow: hidden; }
.reg-wrap::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(217, 167, 46, .14) 1px, transparent 1px); background-size: 26px 26px; }
.reg-card { position: relative; max-width: 470px; margin: 0 auto; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--sd-shadow-lg); }
.reg-card .head { background: #fff; padding: 22px; text-align: center; border-bottom: 4px solid var(--sd-gold); }
.reg-card .head img { max-width: 240px; width: 100%; }
.reg-card .ev { background: var(--sd-cream); padding: 16px 22px; border-bottom: 1px solid #f1e6cc; }
.reg-card .ev h5 { font-size: 1.05rem; }
.reg-steps { display: flex; justify-content: space-between; margin-bottom: 20px; position: relative; }
.reg-steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 15px; height: 2px; background: var(--sd-border); }
.reg-steps .s { position: relative; text-align: center; flex: 1; font-size: .72rem; font-weight: 600; color: var(--sd-muted); }
.reg-steps .s span { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--sd-border); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-weight: 700; color: var(--sd-muted); }
.reg-steps .s.on span { background: var(--sd-gold); border-color: var(--sd-gold); color: var(--sd-dark); }
.reg-steps .s.on { color: var(--sd-navy); }
.otp-input { letter-spacing: .7em; font-size: 1.6rem; text-align: center; font-weight: 800; color: var(--sd-navy); }

/* ---------- Digital pass (ticket) ---------- */
.tk-page { min-height: 100vh; background: radial-gradient(circle at 15% 0%, rgba(217,167,46,.22), transparent 40%), linear-gradient(160deg, var(--sd-navy-3) 0%, var(--sd-navy) 40%, var(--sd-dark) 100%); background-attachment: fixed; padding: 28px 14px 40px; }
.tk-wrap { max-width: 430px; margin: 0 auto; }
.tk-dlbar { display: flex; justify-content: center; margin: 0 0 20px; }
.tk-dlbar .btn { min-width: min(100%, 320px); padding: .8rem 1.6rem; font-weight: 800; border-radius: 999px; }
.tk-spin { display: inline-block; width: .95em; height: .95em; margin-right: 8px; vertical-align: -2px; border: 2.5px solid rgba(16,47,79,.22); border-top-color: var(--sd-navy); border-radius: 50%; animation: tk-spin .65s linear infinite; }
.btn-navy .tk-spin { border-color: rgba(255,255,255,.28); border-top-color: #fff; }
@keyframes tk-spin { to { transform: rotate(360deg); } }
@keyframes tk-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.btn-sd.is-busy, .btn-navy.is-busy, .btn-sd:disabled, .btn-navy:disabled {
  opacity: 1 !important; pointer-events: none; position: relative; overflow: hidden;
}
.btn-sd.is-busy, .btn-sd:disabled { background: var(--sd-gold) !important; border-color: var(--sd-gold) !important; color: var(--sd-dark) !important; box-shadow: 0 8px 22px rgba(217,167,46,.45); }
.btn-navy.is-busy, .btn-navy:disabled { background: var(--sd-navy) !important; border-color: var(--sd-navy) !important; color: #fff !important; }
.btn-sd.is-busy::after, .btn-navy.is-busy::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); animation: tk-shimmer 1s ease-in-out infinite;
}
.tk-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.tk-cell { width: 100%; max-width: 400px; min-width: 0; }
@media (min-width: 1100px) {
  .tk-wrap { max-width: 1280px; }
  .tk-grid .tk-qr-img { width: 200px; height: 200px; max-width: 100%; max-height: none; }
  .tk-grid .tk-name { font-size: 1.25rem; }
}
.tk { position: relative; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.tk-head { padding: 18px 20px 14px; text-align: center; background: #fff; }
.tk-logo { height: 46px; max-width: 100%; object-fit: contain; }
.tk-band { position: relative; padding: 22px 22px 20px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--sd-navy) 0%, var(--sd-dark) 100%); border-top: 4px solid var(--sd-gold); overflow: hidden; }
.tk-band::after { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; border: 24px solid rgba(217,167,46,.12); }
.tk-ribbon { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; background: var(--sd-gold); color: var(--sd-dark); font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.tk-title { color: #fff; font-size: 1.3rem; font-weight: 800; line-height: 1.3; margin: 12px 0 8px; position: relative; z-index: 1; }
.tk-when { font-size: .8rem; color: #c9d6e3; position: relative; z-index: 1; }
.tk-when i { color: var(--sd-gold); }
.tk-guest { text-align: center; padding: 22px 20px 6px; }
.tk-guest small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sd-muted); }
.tk-name { font-size: 1.6rem; font-weight: 800; color: var(--sd-navy); line-height: 1.2; margin-top: 2px; word-break: break-word; }
.tk-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tk-cat { --c: var(--sd-navy); display: inline-block; padding: 4px 14px; border-radius: 30px; background: var(--c); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tk-admit { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 30px; background: var(--sd-cream); border: 1px solid #f1dca8; color: #9a6f0e; font-size: .74rem; font-weight: 800; }
.tk-qr-area { text-align: center; padding: 16px 20px 18px; }
.tk-qr { position: relative; display: inline-block; padding: 14px; border-radius: 22px; background: #fff; border: 3px solid var(--sd-gold); box-shadow: 0 10px 26px rgba(16,47,79,.12); }
.tk-qr-img { width: 270px; height: 270px; max-width: 72vw; max-height: 72vw; }
.tk-qr-img img, .tk-qr-img canvas { width: 100% !important; height: 100% !important; display: block; image-rendering: pixelated; }
.tk-qr.is-void .tk-qr-img { opacity: .12; filter: grayscale(1); }
.tk-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-14deg); padding: 8px 18px; border: 4px solid currentColor; border-radius: 12px; font-weight: 900; font-size: 1.3rem; letter-spacing: .1em; background: rgba(255,255,255,.88); white-space: nowrap; text-align: center; line-height: 1.1; }
.tk-stamp small { display: block; font-size: .7rem; letter-spacing: .04em; margin-top: 2px; }
.tk-stamp-red { color: var(--sd-red); }
.tk-stamp-green { color: var(--sd-green); }
.tk-code-label { margin-top: 14px; font-size: .64rem; font-weight: 800; letter-spacing: .18em; color: var(--sd-muted); }
.tk-code { font-size: 1.45rem; font-weight: 800; letter-spacing: .14em; color: var(--sd-navy); font-variant-numeric: tabular-nums; }
.tk-perf { position: relative; height: 0; border-top: 2px dashed var(--sd-border-2); margin: 0 18px; }
.tk-perf::before, .tk-perf::after { content: ""; position: absolute; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--sd-navy); }
.tk-perf::before { left: -32px; } .tk-perf::after { right: -32px; }
.tk-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 20px 6px; }
.tk-details > div { background: var(--sd-light); border-radius: 14px; padding: 10px 12px; }
.tk-details .tk-span { grid-column: 1 / -1; }
.tk-details small { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sd-muted); }
.tk-details b { color: var(--sd-navy); font-size: .92rem; }
.tk-details b i { color: var(--sd-gold); }
.tk-instr { margin: 12px 20px 0; padding: 12px 14px; border-radius: 14px; background: var(--sd-cream); border: 1px solid #f1e6cc; font-size: .82rem; }
.tk-instr-h { font-weight: 800; color: var(--sd-navy); margin-bottom: 4px; }
.tk-instr ul { margin: 0; padding-left: 18px; }
.tk-instr li { margin: 2px 0; }
.tk-foot { margin-top: 16px; padding: 12px 16px; text-align: center; font-size: .74rem; font-weight: 600; color: #c9d6e3; background: var(--sd-navy); border-top: 3px solid var(--sd-gold); }
.tk-foot i { color: var(--sd-gold); }
.tk-tip { text-align: center; color: #9fb1c4; font-size: .78rem; margin: 12px 6px 0; }
.tk-tip i { color: var(--sd-gold); }

/* A4 PDF sheet – rendered off-screen at 794px (A4 @ 96dpi) */
.pdf-holder { position: fixed; left: -10000px; top: 0; }
.pdf-sheet { width: 794px; min-height: 1123px; background: #fff; font-family: var(--font); color: var(--sd-text); display: flex; flex-direction: column; }
.pdf-top { text-align: center; padding: 34px 0 22px; }
.pdf-top img { height: 74px; }
.pdf-band { background: linear-gradient(135deg, var(--sd-navy), var(--sd-dark)); border-top: 6px solid var(--sd-gold); color: #fff; text-align: center; padding: 26px 50px 24px; }
.pdf-ribbon { display: inline-block; background: var(--sd-gold); color: var(--sd-dark); font-weight: 800; letter-spacing: .2em; font-size: 14px; padding: 5px 18px; border-radius: 20px; }
.pdf-title { font-size: 34px; font-weight: 800; color: #fff; margin: 14px 0 8px; line-height: 1.25; }
.pdf-when { font-size: 18px; color: #c9d6e3; }
.pdf-guest { text-align: center; padding: 26px 40px 6px; }
.pdf-name { font-size: 40px; font-weight: 800; color: var(--sd-navy); line-height: 1.15; }
.pdf-tags { margin-top: 12px; display: flex; justify-content: center; gap: 12px; }
.pdf-cat, .pdf-admit { padding: 6px 20px; border-radius: 30px; font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.pdf-cat { color: #fff; }
.pdf-admit { background: var(--sd-cream); color: #9a6f0e; border: 1px solid #f1dca8; }
.pdf-qr { display: flex; justify-content: center; padding: 18px 0 8px; }
.pdf-qr > div { width: 420px; height: 420px; padding: 18px; border: 5px solid var(--sd-gold); border-radius: 28px; box-sizing: content-box; }
.pdf-qr img, .pdf-qr canvas { width: 420px !important; height: 420px !important; display: block; image-rendering: pixelated; }
.pdf-code { text-align: center; font-size: 34px; font-weight: 800; letter-spacing: .16em; color: var(--sd-navy); padding-bottom: 20px; }
.pdf-code small { display: block; font-size: 13px; letter-spacing: .24em; color: var(--sd-muted); }
.pdf-perf { border-top: 3px dashed var(--sd-border-2); margin: 0 40px; }
.pdf-details { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; padding: 22px 40px 0; }
.pdf-details > div { background: var(--sd-light); border-radius: 16px; padding: 14px 18px; }
.pdf-details small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--sd-muted); }
.pdf-details b { font-size: 19px; color: var(--sd-navy); }
.pdf-instr { margin: 18px 40px 0; padding: 16px 22px; border-radius: 16px; background: var(--sd-cream); border: 1px solid #f1e6cc; font-size: 16px; }
.pdf-instr b { color: var(--sd-navy); }
.pdf-instr ul { margin: 6px 0 0; padding-left: 22px; }
.pdf-foot { margin-top: auto; background: var(--sd-navy); border-top: 5px solid var(--sd-gold); color: #c9d6e3; text-align: center; padding: 18px; font-size: 15px; font-weight: 600; }
.cat-pill { display: inline-block; padding: 4px 14px; border-radius: 30px; color: #fff; font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 767.98px) {
  .hero { padding: 70px 0 120px; }
  .section { padding: 64px 0; }
  .stats-strip .it + .it { border-left: 0; }
  .cta { padding: 32px 22px; }
}
@media print {
  .no-print { display: none !important; }
  .tk-page { background: #fff; padding: 0; }
  .tk { box-shadow: none; }
}

/* ---------- Role permission editor ---------- */
.role-side { position: sticky; top: 86px; }
.role-hero { display: flex; align-items: center; gap: 16px; padding: 20px; background: linear-gradient(135deg, var(--sd-navy), var(--sd-dark)); border-radius: var(--radius) var(--radius) 0 0; border-bottom: 3px solid var(--sd-gold); }
.role-ring { --p: 0; width: 74px; height: 74px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: conic-gradient(var(--sd-gold) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); position: relative; transition: background .3s; }
.role-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--sd-navy); }
.role-ring b { position: relative; color: #fff; font-size: .95rem; }
.preset { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 10px 12px; border: 1px solid var(--sd-border); border-radius: 12px; background: #fff; transition: all .15s; }
.preset i { width: 34px; height: 34px; border-radius: 10px; background: var(--sd-light); color: var(--sd-navy); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.preset b { display: block; color: var(--sd-navy); font-size: .88rem; }
.preset small { color: var(--sd-muted); font-size: .76rem; }
.preset:hover { border-color: var(--sd-gold); background: var(--sd-cream); }
.preset:hover i { background: var(--sd-gold); color: var(--sd-dark); }
.perm-group { overflow: hidden; }
.perm-group-head { padding: 12px 20px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--sd-muted); background: #fbfcfd; border-bottom: 1px solid var(--sd-border); }
.perm-row { display: grid; grid-template-columns: minmax(220px, 300px) 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid #edf2f7; border-left: 3px solid transparent; transition: background .15s, border-color .15s; }
.perm-row:last-child { border-bottom: 0; }
.perm-row:hover { background: #fbfcfd; }
.perm-row.on { border-left-color: var(--sd-gold); }
.perm-info { display: flex; gap: 12px; align-items: center; min-width: 0; }
.perm-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--sd-light); color: var(--sd-muted); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .15s; }
.perm-row.on .perm-ic { background: var(--sd-navy); color: var(--sd-gold); }
.perm-count { font-size: .7rem; font-weight: 700; color: #9a6f0e; background: var(--sd-cream); border-radius: 20px; padding: 1px 7px; margin-left: 4px; }
.perm-count:empty { display: none; }
.perm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 30px; border: 1px solid var(--sd-border-2); background: #fff; color: var(--sd-text); font-size: .8rem; font-weight: 600; cursor: pointer; user-select: none; transition: all .15s; margin: 0; }
.perm-chip i { font-size: .65rem; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--sd-border-2); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all .15s; }
.perm-chip:hover { border-color: var(--sd-gold); }
.btn-check:checked + .perm-chip { background: var(--sd-cream); border-color: var(--sd-gold); color: var(--sd-navy); }
.btn-check:checked + .perm-chip i { background: var(--sd-gold); border-color: var(--sd-gold); color: var(--sd-dark); }
.btn-check:focus-visible + .perm-chip { box-shadow: 0 0 0 .2rem rgba(217, 167, 46, .3); }
.perm-toggle .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.btn-group .btn-light-navy.active { background: var(--sd-navy); color: #fff; }
@media (max-width: 991.98px) {
  .role-side { position: static; }
  .perm-row { grid-template-columns: 1fr auto; }
  .perm-actions { grid-column: 1 / -1; grid-row: 2; }
}

/* =========================================================
   GATE SCANNER (mobile / tablet first)
   ========================================================= */
.gate-body { background: var(--sd-dark); min-height: 100vh; min-height: 100dvh; color: #fff; -webkit-tap-highlight-color: transparent; }
.gate-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--sd-navy); border-bottom: 3px solid var(--sd-gold); }
.gate-logo { height: 34px; background: #fff; padding: 3px 8px; border-radius: 8px; }
.gate-title { font-weight: 800; font-size: 1rem; line-height: 1.2; color: #fff; }
.gate-sub { font-size: .75rem; color: #9fb1c4; }
.gate-btn { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.gate-btn:hover, .gate-btn:active { background: var(--sd-gold); color: var(--sd-dark); }
.gate-select { height: 42px; max-width: 132px; border-radius: 12px; border: 1px solid var(--sd-gold); background: rgba(217,167,46,.12); color: var(--sd-gold); font-weight: 700; font-size: .8rem; padding: 0 8px; }
.gate-select option { color: var(--sd-dark); }

.gate-wrap { max-width: 680px; margin: 0 auto; padding: 22px 14px 40px; }
.gate-h { color: #fff; font-size: 1.5rem; font-weight: 800; margin: 0; }
.gate-p { color: #9fb1c4; margin: 4px 0 18px; }
.gate-events { display: grid; gap: 12px; }
@media (min-width: 768px) { .gate-events { grid-template-columns: 1fr 1fr; } }
.gate-event { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: all .15s; }
.gate-event:hover, .gate-event:active { background: rgba(217,167,46,.1); border-color: var(--sd-gold); color: #fff; transform: translateY(-1px); }
.ge-date { width: 58px; height: 62px; flex-shrink: 0; border-radius: 14px; background: #fff; color: var(--sd-navy); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ge-date b { font-size: 1.5rem; color: var(--sd-gold); font-weight: 800; }
.ge-date small { font-size: .7rem; font-weight: 800; text-transform: uppercase; margin-top: 3px; }
.ge-body { flex: 1; min-width: 0; }
.ge-title { font-weight: 700; line-height: 1.3; }
.ge-meta { font-size: .78rem; color: #9fb1c4; margin: 3px 0 8px; }
.ge-today { color: var(--sd-gold); font-weight: 800; }
.ge-stats { display: flex; gap: 12px; font-size: .75rem; color: #9fb1c4; }
.ge-stats b { color: #fff; font-size: .9rem; }
.ge-go { color: var(--sd-gold); }
.gate-empty { text-align: center; padding: 50px 20px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.15); }
.gate-empty i { font-size: 2.6rem; color: var(--sd-gold); margin-bottom: 10px; }
.gate-empty h5 { color: #fff; }
.gate-empty p { color: #9fb1c4; margin: 0; }

.scan-main { max-width: 560px; margin: 0 auto; padding: 12px 12px 30px; }
.scan-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.scan-stats div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 8px; text-align: center; }
.scan-stats b { display: block; font-size: 1.45rem; font-weight: 800; color: var(--sd-gold); line-height: 1.1; }
.scan-stats small { font-size: .7rem; color: #9fb1c4; text-transform: uppercase; letter-spacing: .05em; }

.scan-cam { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
#reader { position: absolute; inset: 0; width: 100% !important; border: 0 !important; }
#reader video { width: 100% !important; height: 100% !important; object-fit: cover; }
#reader #qr-shaded-region { border-color: transparent !important; box-shadow: none !important; }
#reader #qr-shaded-region > div { display: none !important; }
.scan-frame { position: absolute; inset: 12.5%; pointer-events: none; }
.scan-frame span { position: absolute; width: 38px; height: 38px; border: 4px solid var(--sd-gold); }
.scan-frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.scan-frame span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.scan-frame span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.scan-frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.scan-line { position: absolute; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, transparent, var(--sd-gold), transparent); box-shadow: 0 0 12px var(--sd-gold); animation: scanline 2s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { top: 6%; } 50% { top: 94%; } }
.scan-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; color: #c9d6e3; font-size: .9rem; background: #000; }
.scan-result { position: absolute; inset: 0; display: flex; opacity: 0; pointer-events: none; transform: scale(.96); transition: opacity .12s, transform .12s; }
.scan-result.show { opacity: 1; transform: none; }
.sr-box { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #fff; }
.sr-ok { background: #1f9d6b; }
.sr-dup { background: #e67e22; }
.sr-bad { background: #c0392b; }
.sr-ic { font-size: 3.4rem; margin-bottom: 8px; }
.sr-big { font-size: 1.7rem; font-weight: 800; letter-spacing: .02em; }
.sr-name { font-size: 1.4rem; font-weight: 800; margin-top: 10px; }
.sr-cat { display: inline-block; margin-top: 6px; padding: 3px 14px; border-radius: 30px; border: 2px solid #fff; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.sr-admit { margin-top: 8px; font-size: 1.25rem; font-weight: 800; background: rgba(0,0,0,.2); padding: 2px 14px; border-radius: 10px; }
.sr-meta { font-size: .85rem; opacity: .92; margin-top: 4px; }

.scan-hint { text-align: center; color: #9fb1c4; font-size: .85rem; margin: 12px 0; }
.scan-hint i { color: var(--sd-gold); }
.scan-manual { display: flex; gap: 8px; }
.scan-manual .form-control { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #fff; height: 48px; border-radius: 12px; text-transform: uppercase; }
.scan-manual .form-control::placeholder { color: #6b7c90; text-transform: none; }
.scan-manual .btn { height: 48px; padding: 0 20px; }
.scan-recent { margin-top: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; }
.sr-head { padding: 10px 14px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #9fb1c4; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); }
.scan-recent ul { list-style: none; margin: 0; padding: 0; }
.scan-recent li { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .88rem; min-width: 0; }
.scan-recent li:last-child { border-bottom: 0; }
.scan-recent li small { display: block; font-size: .7rem; color: #9fb1c4; }
.scan-recent time { font-size: .75rem; color: #9fb1c4; font-variant-numeric: tabular-nums; }
.scan-recent .sr-empty { color: #6b7c90; justify-content: center; }
.t-ok { color: #3ddc97; } .t-dup { color: #f5a65b; } .t-bad { color: #ff7b6b; }

/* Tablet landscape: camera left, info right */
@media (min-width: 900px) and (orientation: landscape) {
  .scan-main { max-width: 1100px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "cam stats" "cam hint" "cam manual" "cam recent"; grid-template-rows: auto auto auto 1fr; column-gap: 20px; }
  .scan-cam { grid-area: cam; aspect-ratio: auto; height: calc(100dvh - 110px); }
  .scan-stats { grid-area: stats; } .scan-hint { grid-area: hint; } .scan-manual { grid-area: manual; } .scan-recent { grid-area: recent; align-self: start; }
}
.gate-subbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(217,167,46,.08); border-bottom: 1px solid rgba(217,167,46,.25); color: var(--sd-gold); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.gate-subbar .gate-select { flex: 1; max-width: 320px; height: 36px; text-transform: none; letter-spacing: 0; font-size: .88rem; }
.scan-frame { z-index: 2; }
.scan-state { z-index: 1; }
.scan-result { z-index: 5; }
@media (max-width: 575.98px) {
  .gate-logo { display: none; }
  .gate-title { font-size: .95rem; }
}
/* Camera feed always fills the square scan box */
#reader, #reader > div { height: 100% !important; width: 100% !important; }
#reader video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover !important; }
#reader canvas, #reader img, #reader__dashboard, #reader__header_message { display: none !important; }
.sr-wait { background: var(--sd-navy); }
.sync-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: .7rem; font-weight: 700; text-transform: none; letter-spacing: 0; white-space: nowrap; background: rgba(255,255,255,.08); color: #c9d6e3; }
.sync-pill.ok { background: rgba(31,157,107,.2); color: #3ddc97; }
.sync-pill.warn { background: rgba(230,126,34,.2); color: #f5a65b; }
.sync-pill.off { background: rgba(192,57,43,.25); color: #ff7b6b; }
/* A4 fit: compact spacing, QR stays ~10.5 cm */
.pdf-sheet { height: 1123px; min-height: 0; overflow: hidden; }
.pdf-top { padding: 20px 0 14px; } .pdf-top img { height: 58px; }
.pdf-band { padding: 16px 40px 16px; } .pdf-title { font-size: 28px; margin: 10px 0 4px; } .pdf-when { font-size: 16px; }
.pdf-guest { padding: 16px 40px 0; } .pdf-name { font-size: 34px; } .pdf-tags { margin-top: 8px; }
.pdf-qr { padding: 12px 0 4px; } .pdf-qr > div { width: 400px; height: 400px; padding: 14px; }
.pdf-qr img, .pdf-qr canvas { width: 400px !important; height: 400px !important; }
.pdf-code { font-size: 30px; padding-bottom: 12px; }
.pdf-details { padding: 14px 40px 0; } .pdf-details > div { padding: 10px 16px; } .pdf-details b { font-size: 17px; }
.pdf-instr { margin: 12px 40px 0; padding: 10px 18px; font-size: 13.5px; } .pdf-instr ul { columns: 2; column-gap: 28px; margin-top: 4px; }
.pdf-foot { padding: 12px; font-size: 14px; }

/* ---------- Event form: photos, limits, editor ---------- */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.img-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--sd-border); background: var(--sd-light); }
.img-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.img-tile.is-del img { opacity: .25; }
.img-tile.is-del::after { content: "Will be removed"; position: absolute; inset: auto 0 40%; text-align: center; font-size: .75rem; font-weight: 700; color: var(--sd-red); }
.img-cover { position: absolute; left: 8px; bottom: 8px; margin: 0; cursor: pointer; }
.img-cover input { display: none; }
.img-cover span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; background: rgba(7,27,46,.65); color: #fff; font-size: .7rem; font-weight: 700; backdrop-filter: blur(4px); }
.img-cover input:checked + span { background: var(--sd-gold); color: var(--sd-dark); }
.img-del { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--sd-red); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin: 0; }
.img-del input { display: none; }
.img-tile.is-del .img-del { background: var(--sd-red); color: #fff; }
.img-new { position: absolute; right: 8px; top: 8px; background: var(--sd-green); color: #fff; font-size: .62rem; font-weight: 800; padding: 2px 8px; border-radius: 10px; }
.img-add { aspect-ratio: 4 / 3; border: 2px dashed var(--sd-border-2); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--sd-navy); cursor: pointer; text-align: center; padding: 8px; margin: 0; transition: all .15s; }
.img-add i { font-size: 1.4rem; color: var(--sd-gold); }
.img-add span { font-weight: 700; font-size: .85rem; }
.img-add small { color: var(--sd-muted); font-size: .68rem; }
.img-add:hover { border-color: var(--sd-gold); background: var(--sd-cream); }
.limit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-bottom: 10px; }
.limit-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--sd-border); border-radius: 10px; margin: 0; }
.limit-row input { width: 64px; text-align: center; font-weight: 700; }
.rich-editor { min-height: 180px; background: #fff; }
.ql-toolbar.ql-snow { border-radius: 10px 10px 0 0; border-color: var(--sd-border-2); background: #fbfcfd; font-family: var(--font); }
.ql-container.ql-snow { border-radius: 0 0 10px 10px; border-color: var(--sd-border-2); font-family: var(--font); font-size: .95rem; }
.ql-editor { min-height: 180px; }

/* Directory bulk bar + import drop zone */
.bulk-bar { display: none; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 20px; background: var(--sd-cream); border-bottom: 1px solid #f1dca8; font-size: .88rem; color: var(--sd-navy); }
.bulk-bar.show { display: flex; }
.drop-zone { display: block; text-align: center; padding: 40px 20px; border-radius: 16px; border: 2px dashed var(--sd-border-2); background: var(--sd-light); cursor: pointer; transition: all .15s; margin: 0; }
.drop-zone:hover, .drop-zone.over { border-color: var(--sd-gold); background: var(--sd-cream); }

/* Rich text output (event description) */
.rich { line-height: 1.75; }
.rich h2, .rich h3 { margin-top: 1.2em; }
.rich blockquote { border-left: 4px solid var(--sd-gold); padding: 4px 0 4px 16px; color: var(--sd-navy); font-style: italic; margin: 1em 0; }
.rich .ql-align-center { text-align: center; } .rich .ql-align-right { text-align: right; } .rich .ql-align-justify { text-align: justify; }
.rich a { text-decoration: underline; }

/* Pass page: accompanying guests */
.tk-guestof { font-size: .8rem; color: var(--sd-muted); margin-top: 2px; }
.tk-guestof i { color: var(--sd-gold); }
.tk-companions { margin-top: 18px; background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); max-width: 520px; margin-left: auto; margin-right: auto; }
.tc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tc-head > div { flex: 1; }
.tc-head b { color: var(--sd-navy); font-size: 1.05rem; display: block; }
.tc-head small { color: var(--sd-muted); font-size: .78rem; }
.tc-count { background: var(--sd-cream); border: 1px solid #f1dca8; color: #9a6f0e; border-radius: 12px; padding: 6px 12px; font-weight: 700; }
.tc-count b { display: inline; font-size: 1.1rem; color: var(--sd-navy); }
.tc-list { list-style: none; padding: 0; margin: 0 0 12px; }
.tc-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf2f7; }
.tc-list li:last-child { border-bottom: 0; }
.tc-list small { color: var(--sd-muted); font-size: .76rem; }
.tc-list .tc-empty { color: var(--sd-muted); font-size: .85rem; justify-content: center; }
.tc-btn { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--sd-border); background: #fff; color: var(--sd-navy); display: inline-flex; align-items: center; justify-content: center; }
.tc-btn:hover { background: var(--sd-navy); color: #fff; }
.tc-wa { color: #1f9d6b; } .tc-wa:hover { background: #1f9d6b; border-color: #1f9d6b; }
.tc-del { color: var(--sd-red); } .tc-del:hover { background: var(--sd-red); border-color: var(--sd-red); }
.tc-form { display: grid; gap: 8px; padding-top: 12px; border-top: 2px dashed var(--sd-border); }

/* ---------- Public event detail page ---------- */
.ev-hero { position: relative; height: clamp(300px, 52vw, 520px); background: var(--sd-dark); overflow: hidden; }
.ev-hero .carousel, .ev-hero .carousel-inner, .ev-hero .carousel-item { height: 100%; }
.ev-slide { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-noimg { height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 80% 20%, rgba(217,167,46,.28), transparent 50%), linear-gradient(135deg, var(--sd-navy), var(--sd-dark)); color: rgba(217,167,46,.35); font-size: 7rem; }
.ev-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,27,46,.1) 30%, rgba(7,27,46,.88) 100%); pointer-events: none; z-index: 1; }
.ev-hero-text { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 2; color: #fff; }
.ev-hero-text h1 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.8rem); margin: 10px 0; text-shadow: 0 2px 20px rgba(0,0,0,.4); max-width: 900px; }
.eyebrow-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--sd-gold); color: var(--sd-dark); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; }
.ev-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #e6edf5; font-weight: 600; }
.ev-hero-meta i { color: var(--sd-gold); margin-right: 4px; }
.ev-hero .carousel-indicators { z-index: 3; margin-bottom: 10px; justify-content: flex-end; margin-right: 5%; }
.ev-hero .carousel-indicators [data-bs-target] { width: 26px; height: 4px; border-radius: 2px; background: #fff; }
.ev-hero .carousel-indicators .active { background: var(--sd-gold); }
.ev-hero .carousel-control-prev, .ev-hero .carousel-control-next { z-index: 3; width: 70px; opacity: 1; }
.ev-ctl { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background .15s; }
.ev-ctl:hover { background: var(--sd-gold); color: var(--sd-dark); }
.ev-body { margin-top: -28px; position: relative; z-index: 4; }
.ev-article { padding: 30px; }
.ev-instr { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--sd-cream); border: 1px solid #f1e6cc; }
.ev-side { position: sticky; top: 92px; }
.ev-side-date { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: linear-gradient(135deg, var(--sd-navy), var(--sd-dark)); color: #fff; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 3px solid var(--sd-gold); }
.ev-side-date b { font-size: 2.6rem; font-weight: 800; color: var(--sd-gold); line-height: 1; }
.ev-side-date span { font-weight: 700; font-size: 1.05rem; }
.ev-side-date small { display: block; font-weight: 500; color: #9fb1c4; font-size: .8rem; }
.ev-facts { list-style: none; padding: 0; margin: 0 0 16px; }
.ev-facts li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf2f7; color: var(--sd-navy); font-weight: 600; font-size: .92rem; }
.ev-facts li:last-child { border-bottom: 0; }
.ev-facts i { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--sd-cream); color: var(--sd-gold); display: inline-flex; align-items: center; justify-content: center; }
.ev-facts small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sd-muted); font-weight: 700; }
.ev-sticky { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(8px); box-shadow: 0 -6px 20px rgba(13,47,79,.12); z-index: 1020; }
@media (max-width: 991.98px) { body:has(.ev-sticky) .front-footer { padding-bottom: 90px; } .ev-article { padding: 22px; } }

/* Home event cards with cover photo */
.event-card .ec-top.has-img { min-height: 190px; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: space-between; }
.event-card .ec-top.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,27,46,.15), rgba(7,27,46,.75)); }
.event-card .ec-top.has-img > * { position: relative; z-index: 1; }
.event-card .ec-top.has-img::after { display: none; }
.event-card h5 a { color: inherit; }
.event-card h5 a:hover { color: var(--sd-blue); }
/* Quill: container must size to its content (default height:100% overflowed onto the next field) */
.ql-container.ql-snow { height: auto; }
.rich-editor { min-height: 0; }
.ql-editor { min-height: 180px; max-height: 420px; overflow-y: auto; }
.sub-row { display: grid; grid-template-columns: 28px 1fr 1.1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.sub-n { width: 28px; height: 28px; border-radius: 8px; background: var(--sd-cream); color: #9a6f0e; font-weight: 800; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 575.98px) { .sub-row { grid-template-columns: 28px 1fr; } .sub-row .input-group { grid-column: 2; } }

/* Registration: invite guests step */
.g-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.g-head > div { flex: 1; }
.g-head b { display: block; color: var(--sd-navy); font-size: 1.05rem; }
.g-head small { color: var(--sd-muted); font-size: .78rem; }
.g-count { background: var(--sd-cream); border: 1px solid #f1dca8; color: #9a6f0e; border-radius: 20px; padding: 4px 12px; font-weight: 700; font-size: .78rem; white-space: nowrap; }
.g-existing { list-style: none; padding: 0; margin: 0 0 8px; }
.g-existing li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--sd-green-bg); margin-bottom: 6px; font-size: .88rem; }
.g-existing i { color: var(--sd-green); }
.g-existing span { flex: 1; color: var(--sd-navy); font-weight: 600; }
.g-existing small { color: var(--sd-muted); font-weight: 400; }
.g-existing em { font-style: normal; font-size: .72rem; color: var(--sd-green); font-weight: 700; }
.g-row { display: grid; grid-template-columns: 30px 1fr; gap: 6px 8px; padding: 10px; border: 1px solid var(--sd-border); border-radius: 12px; margin-bottom: 8px; }
.g-row .g-n { grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; background: var(--sd-navy); color: var(--sd-gold); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.g-row .form-control { grid-column: 2; }
.size-tip { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--sd-cream); border: 1px solid #f1dca8; font-size: .84rem; color: var(--sd-navy); }
.size-tip > i { color: var(--sd-gold); font-size: 1.1rem; margin-top: 2px; }
.size-tip span { color: var(--sd-muted); }
.img-warn { position: absolute; left: 8px; top: 8px; background: rgba(230,126,34,.95); color: #fff; font-size: .62rem; font-weight: 700; padding: 2px 7px; border-radius: 8px; }

/* ---------- Home: public events ---------- */
.ev-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.ev-sec-head .section-title::after { display: none; }
.ev-sec-count { background: #fff; border: 1px solid var(--sd-border); border-radius: 30px; padding: 8px 16px; color: var(--sd-muted); font-size: .88rem; box-shadow: var(--sd-shadow-sm); }
.ev-sec-count b { color: var(--sd-navy); font-size: 1.05rem; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.evc { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--sd-border); box-shadow: var(--sd-shadow-sm); transition: transform .2s, box-shadow .2s; }
.evc:hover { transform: translateY(-4px); box-shadow: var(--sd-shadow); }
.evc-media { position: relative; display: block; aspect-ratio: 12 / 5; background: var(--sd-navy); overflow: hidden; }
.evc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.evc:hover .evc-media img { transform: scale(1.04); }
.evc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,27,46,.35) 0%, transparent 40%, transparent 70%, rgba(7,27,46,.35) 100%); pointer-events: none; }
.evc-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(217,167,46,.45); background: radial-gradient(circle at 75% 25%, rgba(217,167,46,.25), transparent 55%), linear-gradient(135deg, var(--sd-navy), var(--sd-dark)); }
.evc-date { position: absolute; left: 16px; top: 16px; z-index: 2; width: 58px; padding: 7px 0 6px; border-radius: 14px; background: #fff; text-align: center; line-height: 1; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.evc-date b { display: block; font-size: 1.55rem; font-weight: 800; color: var(--sd-gold); }
.evc-date small { display: block; margin-top: 3px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sd-navy); }
.evc-tag { position: absolute; right: 16px; top: 16px; z-index: 2; background: var(--sd-gold); color: var(--sd-dark); font-size: .72rem; font-weight: 800; padding: 6px 12px; border-radius: 20px; letter-spacing: .03em; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.evc-soon { position: absolute; left: 16px; bottom: 14px; z-index: 2; background: rgba(7,27,46,.75); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(4px); }
.evc-body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.evc-title { font-size: 1.22rem; font-weight: 800; line-height: 1.3; margin: 0 0 12px; }
.evc-title a { color: var(--sd-navy); }
.evc-title a:hover { color: var(--sd-blue); }
.evc-meta { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--sd-text); font-weight: 500; }
.evc-meta li { display: inline-flex; align-items: center; gap: 7px; }
.evc-meta i { color: var(--sd-gold); }
.evc-text { color: var(--sd-muted); font-size: .9rem; line-height: 1.6; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.evc-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.evc-actions .btn { flex: 1 1 140px; }

/* One event: large featured layout */
.ev-grid.is-single { grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .ev-grid.is-single .evc { flex-direction: row; min-height: 380px; }
  .ev-grid.is-single .evc-media { flex: 0 0 56%; aspect-ratio: auto; }
  .ev-grid.is-single .evc-body { padding: 36px 40px; justify-content: center; }
  .ev-grid.is-single .evc-title { font-size: 1.75rem; }
  .ev-grid.is-single .evc-meta { flex-direction: column; gap: 10px; font-size: .95rem; margin-bottom: 18px; }
  .ev-grid.is-single .evc-meta i { width: 32px; height: 32px; border-radius: 10px; background: var(--sd-cream); display: inline-flex; align-items: center; justify-content: center; }
  .ev-grid.is-single .evc-text { -webkit-line-clamp: 4; font-size: .95rem; }
  .ev-grid.is-single .evc-actions { margin-top: 8px; }
  .ev-grid.is-single .evc-actions .btn { flex: 0 1 auto; padding: .75rem 1.4rem; }
}
@media (max-width: 575.98px) { .ev-grid { grid-template-columns: 1fr; } .evc-body { padding: 18px; } }
@media (max-width: 575.98px) { .front-nav .navbar-brand img { height: 38px; } .front-nav .navbar-brand { max-width: calc(100% - 60px); margin-right: 0; } }
