/* =========================================================
   WBFL Association — Component Styles (Portal + Wizard + Cards)
   ========================================================= */

/* ---------- Portal shell ---------- */
.portal {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  flex: none;
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .brand {
  padding: 14px 10px;
  margin: -24px -16px 20px;
  background: linear-gradient(135deg, var(--maroon, #6d0f1a), var(--maroon-dark, #4a0a12));
  color: #fff;
  border-bottom: 2px solid var(--gold, #c9a227);
}
.sidebar .brand .brand-logo-img {
  height: 56px;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.side-section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 16px 8px 6px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  border-left: 3px solid transparent;
}
.side-link:hover {
  background: var(--surface-3);
  color: var(--maroon, #6d0f1a);
}
.side-link.active {
  background: var(--gold-soft, #f7edd0);
  color: var(--maroon, #6d0f1a);
  border-left-color: var(--gold, #c9a227);
  font-weight: 700;
}
.side-link.done i {
  color: #1c7a43;
}
.side-logout {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.side-logout .side-link {
  color: var(--red, #a3161f);
}
.side-logout .side-link:hover {
  background: #fdeeee;
  color: var(--maroon-dark, #4a0a12);
}
.sidebar-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  color: #fff;
  z-index: 2;
  cursor: pointer;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
}
.portal-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-3);
  border-radius: 10px;
  padding: 0 12px;
  height: 40px;
  max-width: 320px;
  flex: 1;
}
.topbar-search input {
  border: none;
  background: none;
  outline: none;
  font: inherit;
  width: 100%;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.icon-btn .dot-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.page {
  padding: 28px 32px 60px;
  max-width: 1200px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--text-3);
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}
@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform var(--dur) var(--ease);
    z-index: 50;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close {
    display: block;
  }
  .sidebar-backdrop.open {
    display: block;
  }
  .page {
    padding: 20px;
  }
}

/* ---------- Stat cards ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}
.stat h4 {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 8px;
  font-weight: 500;
}
.stat .val {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat .meta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

/* ---------- Quick actions ---------- */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 860px) {
  .qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.qa {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.qa i {
  font-size: 22px;
}
.qa:hover {
  background: var(--surface-3);
  transform: translateY(-2px);
}

/* ---------- Notifications ---------- */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.notif {
  display: flex;
  gap: 14px;
  padding: 14px 8px;
  border-radius: 10px;
}
.notif.unread {
  background: var(--surface-3);
}
.n-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.n-title {
  font-size: 14px;
  font-weight: 600;
}
.n-body p {
  font-size: 13px;
  color: var(--text-2);
  margin: 4px 0;
}
.n-time {
  font-size: 11px;
  color: var(--text-3);
}

/* ---------- Timeline ---------- */
.tl {
  display: flex;
  flex-direction: column;
}
.tl-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding-bottom: 24px;
  position: relative;
}
.tl-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.tl-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 1;
}
.tl-item.done .tl-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.tl-item.current .tl-dot {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.tl-title {
  font-weight: 600;
  font-size: 14px;
}
.tl-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ---------- Officer / reviewer ---------- */
.officer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.officer:first-child {
  border-top: none;
}
.officer-flat {
  padding-top: 0;
  border: 0;
}
.oa {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.oi h5 {
  margin: 0;
  font-size: 14px;
}
.oi p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- Pill / segmented toggle group (light-surface pattern) ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  transition: all var(--dur) var(--ease);
}
.btn-pill:hover {
  background: var(--surface-3);
  color: var(--text);
}
.btn-pill.active {
  background: var(--gold-soft);
  border-color: transparent;
  color: var(--maroon);
}
/* Segmented group container */
.btn-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Wizard / stepper ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.st {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
  padding: 6px 10px;
}
.st-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
.st.active .st-num {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.st.done .st-num {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.st-label {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}
.st.active .st-label {
  color: var(--text);
  font-weight: 600;
}
.st-sep {
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 16px;
}
.wizard-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  background: #fff;
}
.wizard-card h3 {
  font-size: 22px;
  margin: 0 0 4px;
}
.wizard-card .sub {
  color: var(--text-2);
  margin: 0 0 24px;
  font-size: 14px;
}
.wiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
  .wizard-card {
    padding: 20px;
  }
  .wiz-footer {
    flex-direction: column;
    gap: 12px;
  }
}

/* ---------- Upload ---------- */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }
}
.upload {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-input);
  background: #fff;
  padding: 18px;
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.upload.is-drag {
  border-color: var(--text);
  background: var(--surface-3);
}
.upload-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.u-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.upload-head h5 {
  margin: 0;
  font-size: 13px;
}
.upload-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-3);
}
.upload-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  padding: 16px;
  text-align: center;
}
.upload-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--surface-3);
  border-radius: 10px;
  font-size: 13px;
}
.upload-file .rm {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
}

/* ---------- Declaration / signature ---------- */
.declaration-box {
  background: var(--surface-3);
  border-style: dashed;
}
.declaration-box p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
}
.sig-pad {
  height: 120px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- Review ---------- */
.review-block {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.review-head h5 {
  margin: 0;
  font-size: 15px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.review-grid span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}
.review-grid b {
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Success page ---------- */
.success-wrap {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
}
.success-icon {
  font-size: 56px;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ---------- Membership card ---------- */
.mcard {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fff, var(--surface-3));
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.mcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), #f0d98c);
}
.mcard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.mcard-logo {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.l-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--text);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.mcard-body {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
}
.mcard-photo {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--text-3);
}
.mcard-name {
  font-size: 18px;
  font-weight: 700;
}
.mcard-role {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}
.mcard-qr {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
}
.mcard-qr-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  width: 128px;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  color: var(--text-3);
  font-weight: 700;
}
.mcard-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.mcard-foot div {
  font-size: 11px;
  color: var(--text-3);
}
.mcard-foot span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}
@media (max-width: 480px) {
  .mcard-body {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }
  .mcard-qr,
  .mcard-photo {
    margin: 0 auto;
  }
  .mcard-qr {
    margin-bottom: 24px;
  }
  .mcard-foot {
    grid-template-columns: repeat(2, 1fr);
  }
}
.mcard-qr-lg {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  margin: 0 auto;
}
.verify-card {
  max-width: 520px;
}

.payment-qr-box {
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.payment-qr-box img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.payment-qr-label,
.payment-qr-missing {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.payment-qr-missing {
  color: var(--text-2);
  margin-top: 8px;
}

.activation-celebration {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 214, 102, .32), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(59, 130, 246, .28), transparent 30%),
    rgba(17, 17, 17, .48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: activationFadeIn .28s ease-out both;
  overflow: hidden;
}

.activation-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ffd54f, #22c55e, #3b82f6, #ec4899) border-box;
  border: 2px solid transparent;
  box-shadow: 0 24px 70px rgba(17, 17, 17, .28), 0 0 0 8px rgba(255, 255, 255, .18);
  padding: 28px;
  text-align: center;
  color: var(--text);
  animation: activationPop .42s cubic-bezier(.2, .9, .2, 1.15) both;
}

.activation-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #111;
  font-size: 30px;
}

.activation-card h2 {
  font-size: 34px;
  margin: 0 0 8px;
  color: #9f1239;
  text-shadow: 0 2px 0 rgba(255, 213, 79, .35);
}

.activation-card p {
  color: var(--text-2);
  margin: 0;
}

.activation-number {
  display: inline-flex;
  margin: 18px 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-weight: 800;
}

.activation-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.activation-burst span {
  position: absolute;
  top: var(--top, 52%);
  left: var(--left, 50%);
  width: var(--w, 9px);
  height: var(--h, 18px);
  border-radius: 3px;
  background: var(--gold);
  box-shadow: 0 0 12px currentColor;
  animation: activationConfetti 1.35s ease-out both;
}

.activation-burst span:nth-child(1) { --left: 24%; --top: 66%; --x: -90px; --y: -250px; --r: 52deg; background: #ffd54f; }
.activation-burst span:nth-child(2) { --left: 25%; --top: 66%; --x: -8px; --y: -290px; --r: 140deg; background: #3b82f6; animation-delay: .04s; }
.activation-burst span:nth-child(3) { --left: 25%; --top: 66%; --x: 94px; --y: -230px; --r: 106deg; background: #22c55e; animation-delay: .08s; }
.activation-burst span:nth-child(4) { --left: 27%; --top: 65%; --x: -150px; --y: -120px; --r: 28deg; background: #ef4444; animation-delay: .1s; }
.activation-burst span:nth-child(5) { --left: 75%; --top: 66%; --x: 90px; --y: -250px; --r: 82deg; background: #f97316; animation-delay: .02s; }
.activation-burst span:nth-child(6) { --left: 75%; --top: 66%; --x: 8px; --y: -292px; --r: 130deg; background: #a855f7; animation-delay: .06s; }
.activation-burst span:nth-child(7) { --left: 74%; --top: 66%; --x: -90px; --y: -230px; --r: 210deg; background: #06b6d4; animation-delay: .1s; }
.activation-burst span:nth-child(8) { --left: 73%; --top: 65%; --x: 150px; --y: -118px; --r: 66deg; background: #ec4899; animation-delay: .12s; }
.activation-burst span:nth-child(9) { --left: 50%; --top: 46%; --x: -120px; --y: -210px; --r: 120deg; background: #facc15; animation-delay: .18s; --w: 7px; }
.activation-burst span:nth-child(10) { --left: 50%; --top: 46%; --x: 120px; --y: -210px; --r: 260deg; background: #fb7185; animation-delay: .22s; --w: 7px; }
.activation-burst span:nth-child(11) { --left: 50%; --top: 45%; --x: -35px; --y: -260px; --r: 180deg; background: #84cc16; animation-delay: .2s; --h: 14px; }
.activation-burst span:nth-child(12) { --left: 50%; --top: 45%; --x: 35px; --y: -260px; --r: 300deg; background: #38bdf8; animation-delay: .24s; --h: 14px; }

.activation-crackers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.activation-crackers span {
  position: absolute;
  bottom: 18%;
  width: 64px;
  height: 118px;
  border-radius: 18px 18px 10px 10px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.36), transparent 36%),
    repeating-linear-gradient(45deg, #ef4444 0 12px, #ffd54f 12px 24px, #3b82f6 24px 36px, #22c55e 36px 48px);
  box-shadow: 0 18px 28px rgba(17, 17, 17, .32);
  transform-origin: center bottom;
  animation: crackerKick .7s ease-out both;
}

.activation-crackers span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  width: 34px;
  height: 24px;
  border-radius: 50% 50% 8px 8px;
  background: #111;
  transform: translateX(-50%);
}

.activation-crackers span:first-child {
  left: 18%;
  transform: rotate(-24deg);
}

.activation-crackers span:last-child {
  right: 18%;
  transform: rotate(24deg);
  animation-delay: .08s;
}

.activation-balloons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.activation-balloons span {
  position: absolute;
  bottom: -120px;
  width: 48px;
  height: 62px;
  border-radius: 50% 50% 46% 46%;
  background: var(--balloon, #ef4444);
  box-shadow: inset -10px -14px 18px rgba(17, 17, 17, .16);
  animation: balloonFloat 4.8s ease-in-out both;
}

.activation-balloons span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -54px;
  width: 1px;
  height: 54px;
  background: rgba(255, 255, 255, .78);
}

.activation-balloons span:nth-child(1) { left: 8%; --balloon: #ef4444; animation-delay: .05s; }
.activation-balloons span:nth-child(2) { left: 20%; --balloon: #3b82f6; animation-delay: .35s; transform: scale(.88); }
.activation-balloons span:nth-child(3) { right: 10%; --balloon: #22c55e; animation-delay: .15s; }
.activation-balloons span:nth-child(4) { right: 22%; --balloon: #f59e0b; animation-delay: .5s; transform: scale(.9); }
.activation-balloons span:nth-child(5) { left: 50%; --balloon: #ec4899; animation-delay: .75s; transform: scale(.82); }

@keyframes activationFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes activationPop {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes activationConfetti {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.5) rotate(0deg); }
  14% { opacity: 1; }
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--x, 120px)), calc(-50% + var(--y, -160px))) scale(1.1) rotate(var(--r, 75deg));
  }
}

@keyframes crackerKick {
  from { opacity: 0; transform: translateY(28px) rotate(0deg) scale(.86); }
  to { opacity: 1; }
}

@keyframes balloonFloat {
  from { opacity: 0; transform: translateY(0) scale(.86); }
  14% { opacity: 1; }
  to { opacity: .96; transform: translateY(-118vh) scale(1); }
}

/* ---------- Price card ---------- */
.price-card {
  max-width: 420px;
  margin: 0 auto;
}
.price-tag {
  font-size: 38px;
  font-weight: 700;
}
.price-tag small {
  font-size: 16px;
  color: var(--text-2);
  font-weight: 500;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.price-list li i {
  color: var(--gold);
  margin-top: 2px;
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }
}
.process-step {
  text-align: center;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}
.faq-a {
  display: none;
  padding: 0 0 18px;
  color: var(--text-2);
  font-size: 14px;
}
.faq-item.open .faq-a {
  display: block;
}
.faq-item.open .faq-q i {
  transform: rotate(45deg);
}
.faq-q i {
  transition: transform var(--dur) var(--ease);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  gap: 14px;
}
.ci-ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-item h5 {
  margin: 0 0 4px;
  font-size: 14px;
}
.contact-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}
.map-placeholder {
  margin-top: 20px;
  height: 200px;
  border-radius: 14px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- Tabs (profile) ---------- */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab {
  padding: 12px 16px;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.active {
  color: var(--text);
  border-color: var(--text);
}

/* ---------- Toast ---------- */
.toast-host {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 220ms var(--ease);
}
.toast i {
  color: var(--gold);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-admin {
    background: #FFF8E1;
    color: #212121;
    border: 2px solid #F1C40F;
}
.btn-admin:hover {
  background: #FFF8E1;
    color: #212121;
    border: 2px solid #FFF8E1;
}
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: modalIn 200ms ease;
}

/* ---------- Admin Login Modal ---------- */
.modal-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(17,17,17,.6);
  backdrop-filter:blur(2px);
  z-index:100;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.modal-backdrop.open{display:flex}

.modal-card{
  background:#fff;
  border-radius:24px;
  padding:36px;
  max-width:420px;
  width:100%;
  position:relative;
  box-shadow:0 24px 64px rgba(0,0,0,.28);
  animation:modalIn 220ms cubic-bezier(.2,.7,.2,1);
}
@keyframes modalIn{
  from{opacity:0;transform:translateY(16px) scale(.96)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

.modal-close{
  position:absolute;
  top:18px;
  right:18px;
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid var(--border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:14px;
  color:var(--text-2);
  transition:all 150ms ease;
}
.modal-close:hover{
  background:var(--surface-2);
  border-color:var(--border-strong);
  color:var(--text);
  transform:rotate(90deg);
}

.modal-icon{
  width:52px;
  height:52px;
  border-radius:16px;
  background:linear-gradient(135deg,#FFEA00,#f5d500);
  color:#212121;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  margin-bottom:20px;
  box-shadow:0 6px 16px rgba(255,234,0,.35);
}

.modal-card h3{
  margin:0 0 6px;
  font-size:23px;
  font-weight:800;
  letter-spacing:-.01em;
}
.modal-card .sub{
  color:var(--text-2);
  font-size:13.5px;
  margin:0 0 26px;
  line-height:1.5;
}

.modal-card .field{margin-bottom:16px}
.modal-card .input{
  border-radius:14px;
  height:50px;
  border:1.5px solid var(--border);
  transition:border-color 150ms ease,box-shadow 150ms ease;
}
.modal-card .input:focus{
  border-color:#212121;
  box-shadow:0 0 0 4px rgba(33,33,33,.08);
}
.modal-card .input::placeholder{color:var(--text-3)}

.modal-card .btn-admin{
  height:50px;
  border-radius:14px;
  font-size:14.5px;
  margin-top:6px;
  box-shadow:0 6px 16px rgba(255,234,0,.4);
}
.modal-card .btn-admin:hover{
  box-shadow:0 8px 20px rgba(255,234,0,.5);
  transform:translateY(-1px);
}

/* ---------- Loading states ---------- */
@keyframes wbSpin {
  to { transform: rotate(360deg); }
}

.has-page-loading {
  cursor: progress;
}

.page-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 17, 17, .42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.page-loading.is-visible {
  display: flex;
}

.page-loading-card {
  width: min(360px, 100%);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(17, 17, 17, .24);
  padding: 24px;
  text-align: center;
  color: var(--text);
}

.page-loading-spinner,
.btn-spinner {
  display: inline-block;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: wbSpin .75s linear infinite;
}

.page-loading-spinner {
  width: 34px;
  height: 34px;
  color: var(--maroon);
  margin-bottom: 14px;
}

.page-loading-card strong,
.page-loading-card span {
  display: block;
}

.page-loading-card strong {
  font-size: 16px;
  margin-bottom: 4px;
}

.page-loading-card span {
  color: var(--text-2);
  font-size: 13px;
}

.btn.is-loading {
  pointer-events: none;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
