/* ══════════════════════════════════════════════════════════════
   KEA Event Registration — Shared Styles
   ══════════════════════════════════════════════════════════════ */

:root {
  --sun: #F5A623;
  --sun-deep: #D4821A;
  --earth: #5C3A1E;
  --earth-lt: #8B5E3C;
  --sky: #f0f4f8;
  --cream: #FFFDF7;
  --bkash: #E2136E;
  --bkash-lt: #fce8f3;
  --border: #E8D5B0;
  --shadow: rgba(92, 58, 30, 0.13);
  --r: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans Bengali', sans-serif;
  background: var(--sky);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--earth);
}

/* ── SIDEBAR ── */
.menu-btn {
  position: fixed; top: 15px; right: 15px; z-index: 500;
  width: 42px; height: 42px; background: #fff;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transition: all .2s; border: 1px solid var(--border);
}
@media (min-width: 560px) { .menu-btn { right: calc(50% - 260px); } }
.menu-btn:hover { transform: scale(1.05); box-shadow: 0 6px 15px rgba(0,0,0,.15); }
.menu-btn span { font-size: 22px; color: var(--earth); }

.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(92, 58, 30, 0.4);
  backdrop-filter: blur(2px);
  z-index: 600; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s, visibility .3s;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.sidebar {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: #fff; z-index: 700; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0; display: flex; flex-direction: column;
}
.sidebar.active { right: 0; }

.sidebar-head {
  padding: 25px 20px; border-bottom: 1px solid #f0f0f0;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.side-close {
  width: 32px; height: 32px; border-radius: 8px; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: #666; transition: all .2s;
}
.side-close:hover { background: #eee; color: #000; }

.sidebar-logo-wrap { text-align: left; }
.sidebar-logo { width: 50px; height: 50px; object-fit: contain; margin-bottom: 8px; }
.sidebar-title { font-family: 'Noto Serif Bengali', serif; font-size: 15px; font-weight: 700; color: var(--earth); }

.side-nav { padding: 20px 15px; display: flex; flex-direction: column; gap: 8px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 15px;
  text-decoration: none; color: #444; font-weight: 600; font-size: 14px;
  border-radius: 10px; transition: all .2s;
}
.side-link:hover { background: var(--sky); color: var(--sun-deep); }
.side-link.active { background: #fff8e8; color: var(--sun-deep); border: 1px solid rgba(245,166,35,0.2); }
.side-link span { font-size: 18px; }

/* ── TICKET (shared between index & my-registrations) ── */
#ticket {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.ticket-header {
  background: linear-gradient(135deg, #E2136E 0%, #F5A623 100%);
  padding: 24px 22px 18px;
  text-align: center;
  color: #fff;
  position: relative;
}

.tk-logo {
  width: 50px; height: 50px;
  object-fit: contain; margin-bottom: 10px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .1));
}

.ticket-header::after {
  content: '\2600';
  position: absolute;
  font-size: 80px;
  opacity: .08;
  right: -10px; top: -10px;
  color: #fff;
}

.ticket-org {
  font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; opacity: .85; margin-bottom: 6px;
}

.ticket-title {
  font-family: 'Noto Serif Bengali', serif;
  font-size: 22px; font-weight: 700; line-height: 1.3;
}

.ticket-year {
  font-size: 14px; opacity: .88; margin-top: 4px;
}

.ticket-zigzag {
  height: 18px;
  background: repeating-linear-gradient(90deg, #fff 0px, #fff 14px, transparent 14px, transparent 18px),
    linear-gradient(180deg, #fff 50%, var(--sky) 50%);
  background-size: 18px 18px, 100% 100%;
}

.ticket-body { padding: 20px 22px; }

.ticket-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff0e8; color: var(--sun-deep);
  border: 1.5px solid rgba(245, 166, 35, .38);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 700; margin-bottom: 14px; letter-spacing: .5px;
}

.ticket-row {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px dashed #e8d5b0; align-items: flex-start;
}
.ticket-row:last-child { border-bottom: none; }

.tk-label {
  font-size: 11px; font-weight: 700; color: #aaa;
  text-transform: uppercase; letter-spacing: .6px;
  min-width: 82px; padding-top: 2px;
}

.tk-val {
  font-size: 14px; color: var(--earth);
  font-weight: 600; flex: 1; line-height: 1.5;
}

.ticket-pay-band {
  margin: 14px 0 0;
  background: linear-gradient(135deg, #fce8f3, #fff5e0);
  border: 1.5px solid rgba(226, 19, 110, .25);
  border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.ticket-pay-band img { height: 32px; object-fit: contain; }

.txn-id { font-size: 13px; font-weight: 700; color: var(--bkash); }
.txn-lbl { font-size: 11px; color: #c0006a; margin-top: 2px; }

.ticket-footer {
  background: var(--earth); color: #fff;
  padding: 14px 22px; display: flex;
  align-items: center; justify-content: space-between;
}
.tf-left { font-size: 11px; opacity: .75; }

.ticket-status {
  display: inline-flex; align-items: center; gap: 5px;
  background: #22c55e; color: #fff;
  border-radius: 20px; padding: 3px 10px;
  font-size: 11px; font-weight: 700;
}

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.badge-solo { background: #E8F5E9; color: #2e7d32; }
.badge-family { background: #FFF3E0; color: #e65100; }
.badge-pending { background: #FFF9C4; color: #F57F17; }
.badge-confirmed { background: #C8E6C9; color: #1B5E20; }
.badge-cancelled { background: #FFCDD2; color: #B71C1C; }

/* ── COPY BUTTONS ── */
.copy-btn {
  border: 1.5px solid var(--bkash); background: #fff; color: var(--bkash);
  border-radius: 8px; padding: 3px 10px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.copy-btn:hover { background: var(--bkash); color: #fff; }
.copy-btn.copied { background: #22c55e; border-color: #22c55e; color: #fff; }

.copy-post-btn {
  width: 100%; margin-top: 10px; padding: 11px;
  border: none; border-radius: 10px;
  background: linear-gradient(135deg, #1877F2, #0d5fc7);
  color: #fff; font-family: 'Noto Sans Bengali', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s;
}
.copy-post-btn:hover { opacity: .9; }
.copy-post-btn.copied { background: linear-gradient(135deg, #22c55e, #16a34a); }

/* ── FB SECTION ── */
.fb-section {
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: var(--r); padding: 16px; margin-top: 14px;
  box-shadow: 0 3px 12px var(--shadow);
}
.fb-section .fb-label {
  font-size: 12px; font-weight: 700; color: var(--earth-lt);
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.fb-section textarea {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px;
  font-size: 13px; font-family: 'Noto Sans Bengali', sans-serif;
  color: var(--earth); background: #fffef9;
  resize: none; outline: none; line-height: 1.7; height: 170px;
}
.fb-section textarea:focus { border-color: var(--sun); }
.fb-hint { font-size: 11px; color: var(--earth-lt); text-align: center; margin-top: 8px; line-height: 1.5; }

/* ── DOWNLOAD BUTTONS ── */
.act-btn, .dl-btn {
  padding: 12px 10px; border: none; border-radius: 12px;
  font-family: 'Noto Sans Bengali', sans-serif;
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .18s, box-shadow .18s;
}
.act-btn:active, .dl-btn:active { transform: scale(.96); }

.btn-png { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; box-shadow: 0 4px 14px rgba(102, 126, 234, .35); }
.btn-pdf { background: linear-gradient(135deg, #f093fb, #f5576c); color: #fff; box-shadow: 0 4px 14px rgba(245, 87, 108, .3); }
.btn-fb { background: #1877F2; color: #fff; box-shadow: 0 4px 14px rgba(24, 119, 242, .35); }
.btn-done { background: var(--earth); color: #fff; box-shadow: 0 4px 14px rgba(92, 58, 30, .3); }

/* ── FOOTER ── */
footer {
  width: 100%; text-align: center; padding: 16px;
  font-size: 12.5px; color: var(--earth-lt);
  background: var(--cream); border-top: 1px solid var(--border);
  position: fixed; bottom: 0; z-index: 50;
}
footer a { color: var(--sun-deep); text-decoration: none; font-weight: 600; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(92, 58, 30, .3);
  border-top-color: var(--earth);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.loading .spinner { display: block; }
.loading .btn-txt { display: none; }