/* Bounce Malad Portal — unique luxury theme (not SNOT/FYULE/ASTAR) */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Great+Vibes&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bp-ink: #1a2744;
  --bp-muted: #5c6b86;
  --bp-cream: #fff9f2;
  --bp-paper: #ffffff;
  --bp-red: #e53935;
  --bp-coral: #ff6f3c;
  --bp-pink: #ec407a;
  --bp-blue: #1e88e5;
  --bp-navy: #0d47a1;
  --bp-purple: #7e57c2;
  --bp-line: rgba(26, 39, 68, 0.1);
  --bp-shadow: 0 22px 50px rgba(26, 39, 68, 0.1);
  --bp-radius: 22px;
  --bp-display: "Bricolage Grotesque", system-ui, sans-serif;
  --bp-body: "Manrope", system-ui, sans-serif;
}

/* ——— Global portal shell ——— */
.bounce-portal-theme,
.bounce-portal-theme.snot-admin,
.bounce-portal-theme.admin-login-page {
  font-family: var(--bp-body) !important;
  color: var(--bp-ink);
  background: var(--bp-cream) !important;
}

.bounce-portal-theme .snot-admin__bg,
.bounce-portal-theme.admin-login-page .admin-login-bg {
  background:
    radial-gradient(ellipse 70% 45% at 8% -10%, rgba(255, 193, 7, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 5%, rgba(30, 136, 229, 0.2), transparent 50%),
    radial-gradient(ellipse 45% 35% at 80% 100%, rgba(229, 57, 53, 0.14), transparent 50%),
    linear-gradient(180deg, #fffefb 0%, #fff4e4 42%, #eef6ff 100%) !important;
}

.bounce-portal-theme .snot-admin__bg::before,
.bounce-portal-theme .snot-admin__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
}

.bounce-portal-theme .snot-admin__bg::before {
  width: 220px;
  height: 160px;
  top: 12%;
  left: 4%;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  animation: bp-float 14s ease-in-out infinite;
}

.bounce-portal-theme .snot-admin__bg::after {
  width: 180px;
  height: 140px;
  top: 18%;
  right: 6%;
  background: linear-gradient(135deg, #42a5f5, #7e57c2);
  animation: bp-float 16s ease-in-out infinite reverse;
}

@keyframes bp-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, -16px);
  }
}

/* Header */
.bounce-portal-theme .snot-admin__header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(255, 255, 255, 0.72) !important;
  border-bottom: 1px solid var(--bp-line) !important;
  box-shadow: 0 10px 30px rgba(26, 39, 68, 0.06);
}

.bounce-portal-theme .snot-admin__header-inner {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.85rem 0;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bounce-portal-theme .snot-admin__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.bounce-portal-theme .snot-admin__brand img,
.bounce-portal-theme .snot-admin__brand-adventure {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(30, 136, 229, 0.16);
}

.bounce-portal-theme .snot-admin__brand strong,
.bounce-portal-theme .snot-admin__hero h1 {
  font-family: var(--bp-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--bp-ink) !important;
}

.bounce-portal-theme .snot-admin__brand > div span {
  display: block;
  font-family: "Great Vibes", cursive !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.35;
  padding: 0.1em 0;
  background: linear-gradient(105deg, #e53935, #ec407a, #7e57c2, #1e88e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.bounce-portal-theme .snot-admin__hero-lead,
.bounce-portal-theme .snot-admin__eyebrow {
  color: var(--bp-muted) !important;
}

.bounce-portal-theme .snot-admin__eyebrow {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--bp-red), var(--bp-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.bounce-portal-theme .snot-admin__main {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.4rem 0 3rem;
}

.bounce-portal-theme .snot-admin__hero {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
  padding: 1.35rem 1.4rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 193, 7, 0.22), transparent 42%),
    radial-gradient(circle at 90% 10%, rgba(30, 136, 229, 0.16), transparent 40%),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--bp-shadow);
  backdrop-filter: blur(14px);
}

.bounce-portal-theme .snot-admin__hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem) !important;
  margin: 0.2rem 0 0.35rem !important;
}

/* Buttons */
.bounce-portal-theme .snot-admin__btn,
.bounce-portal-theme .admin-login-btn {
  border-radius: 999px !important;
  font-family: var(--bp-body) !important;
  font-weight: 800 !important;
  border: 1.5px solid var(--bp-line) !important;
  background: rgba(255, 255, 255, 0.85) !important;
  color: var(--bp-ink) !important;
  box-shadow: 0 8px 18px rgba(26, 39, 68, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s !important;
}

.bounce-portal-theme .snot-admin__btn:hover,
.bounce-portal-theme .admin-login-btn:hover {
  transform: translateY(-1px);
}

.bounce-portal-theme .snot-admin__btn--primary,
.bounce-portal-theme .snot-admin__btn--accent,
.bounce-portal-theme .snot-admin__btn--editor,
.bounce-portal-theme .admin-login-btn {
  border: none !important;
  color: #fff !important;
  background: linear-gradient(120deg, #c62828, #e53935 40%, #ff7043) !important;
  box-shadow: 0 12px 28px rgba(229, 57, 53, 0.32) !important;
}

.bounce-portal-theme .snot-admin__btn--danger {
  border-color: rgba(229, 57, 53, 0.35) !important;
  color: var(--bp-red) !important;
  background: rgba(229, 57, 53, 0.08) !important;
}

.bounce-portal-theme .snot-admin__btn--ghost {
  background: rgba(255, 255, 255, 0.75) !important;
  color: var(--bp-ink) !important;
}

.bounce-portal-theme .snot-admin__btn--logout {
  border: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, #e53935, #c62828) !important;
  box-shadow: 0 10px 24px rgba(229, 57, 53, 0.28) !important;
}

.bounce-portal-theme .snot-admin__btn--whatsapp {
  border: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, #128c7e, #075e54) !important;
  box-shadow: 0 10px 24px rgba(7, 94, 84, 0.28) !important;
}

.bounce-portal-theme .snot-admin__btn--whatsapp:hover,
.bounce-portal-theme .snot-admin__btn--whatsapp:focus-visible {
  filter: brightness(1.05);
  color: #fff !important;
}

.bounce-portal-theme .snot-admin__btn--dashboard {
  border: none !important;
  color: #fff !important;
  background: linear-gradient(145deg, #1a2744, #0d47a1) !important;
  box-shadow: 0 10px 24px rgba(13, 71, 161, 0.28) !important;
}

/* Period tabs */
.bounce-portal-theme .snot-admin__period-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--bp-line);
}

.bounce-portal-theme .snot-admin__period {
  border: none !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--bp-muted) !important;
  font-weight: 700 !important;
  padding: 0.55rem 0.95rem !important;
}

.bounce-portal-theme .snot-admin__period.is-active {
  color: #fff !important;
  background: linear-gradient(120deg, var(--bp-navy), var(--bp-blue)) !important;
  box-shadow: 0 8px 18px rgba(13, 71, 161, 0.25);
}

/* Stats */
.bounce-portal-theme .snot-admin__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.bounce-portal-theme .snot-admin__stat {
  padding: 1.1rem 1rem !important;
  border-radius: var(--bp-radius) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--bp-shadow) !important;
  position: relative;
  overflow: hidden;
}

.bounce-portal-theme .snot-admin__stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bp-red), var(--bp-coral), var(--bp-blue));
}

.bounce-portal-theme .snot-admin__stat strong {
  font-family: var(--bp-display) !important;
  font-size: 1.7rem !important;
  color: var(--bp-ink) !important;
}

.bounce-portal-theme .snot-admin__stat span {
  color: var(--bp-muted) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Panels */
.bounce-portal-theme .snot-admin__panel,
.bounce-portal-theme .snot-admin__split-panel > * {
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.84) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--bp-shadow) !important;
  backdrop-filter: blur(12px);
}

.bounce-portal-theme .snot-admin__split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.bounce-portal-theme .snot-admin__panel-head h2 {
  font-family: var(--bp-display) !important;
  font-weight: 800 !important;
  color: var(--bp-ink) !important;
}

.bounce-portal-theme .snot-admin__panel--table {
  padding: 1rem 1rem 0.5rem;
}

.bounce-portal-theme .snot-admin__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.bounce-portal-theme .snot-admin__search-wrap input,
.bounce-portal-theme .snot-admin__toolbar select,
.bounce-portal-theme .snot-admin__field input,
.bounce-portal-theme .snot-admin__field select,
.bounce-portal-theme .snot-admin__field textarea,
.bounce-portal-theme .admin-field input {
  border-radius: 14px !important;
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
  font: inherit !important;
  min-height: 44px;
  padding: 0.65rem 0.85rem !important;
  color: var(--bp-ink) !important;
}

.bounce-portal-theme .snot-admin__search-wrap input:focus,
.bounce-portal-theme .snot-admin__toolbar select:focus,
.bounce-portal-theme .snot-admin__field input:focus,
.bounce-portal-theme .snot-admin__field select:focus,
.bounce-portal-theme .snot-admin__field textarea:focus,
.bounce-portal-theme .admin-field input:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22) !important;
}

/* Table */
.bounce-portal-theme .snot-admin__table-wrap {
  overflow-x: auto;
  border-radius: 16px;
}

.bounce-portal-theme table {
  width: 100%;
  border-collapse: collapse;
}

.bounce-portal-theme thead th {
  font-size: 0.7rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-muted) !important;
  border-bottom: 1px solid var(--bp-line) !important;
  padding: 0.85rem 0.65rem !important;
  background: linear-gradient(180deg, #fff8ec, #f3f8ff) !important;
  white-space: nowrap;
}

.bounce-portal-theme tbody td {
  padding: 0.85rem 0.65rem !important;
  border-bottom: 1px solid rgba(26, 39, 68, 0.06) !important;
  vertical-align: middle;
}

.bounce-portal-theme tbody tr:hover {
  background: rgba(30, 136, 229, 0.05) !important;
}

.bounce-portal-theme tbody tr.is-selected {
  background: rgba(229, 57, 53, 0.06) !important;
}

.bounce-portal-theme .snot-admin__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.25rem 1rem;
  flex-wrap: wrap;
}

/* Drawer / modals — style panels only (shells are full-viewport overlays) */
.bounce-portal-theme .snot-admin__drawer,
.bounce-portal-theme .snot-admin__modal {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.bounce-portal-theme .snot-admin__drawer-panel {
  border-radius: 24px 0 0 24px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-left: 1px solid var(--bp-line) !important;
  box-shadow: -20px 0 60px rgba(26, 39, 68, 0.18) !important;
}

.bounce-portal-theme .snot-admin__modal-panel {
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid var(--bp-line) !important;
  box-shadow: var(--bp-shadow) !important;
}

.bounce-portal-theme .snot-admin__drawer-head h2,
.bounce-portal-theme .snot-admin__modal h2 {
  font-family: var(--bp-display) !important;
}

/* Activity / charts */
.bounce-portal-theme .snot-admin__activity li {
  border-bottom: 1px solid rgba(26, 39, 68, 0.06);
  padding: 0.75rem 0;
}

.bounce-portal-theme .snot-admin__class-chart {
  display: grid;
  gap: 0.65rem;
}

.bounce-portal-theme .snot-admin__bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  align-items: center;
}

.bounce-portal-theme .snot-admin__bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(26, 39, 68, 0.08);
  overflow: hidden;
  grid-column: 1 / -1;
}

.bounce-portal-theme .snot-admin__bar-fill,
.bounce-portal-theme .snot-admin__bar-fill--studyn {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bp-red), var(--bp-coral), var(--bp-blue)) !important;
}

/* Sync */
.bounce-portal-theme .snot-admin__sync-dot {
  background: #43a047 !important;
  box-shadow: 0 0 0 4px rgba(67, 160, 71, 0.18);
}

.bounce-portal-theme .snot-admin__sync.is-stale .snot-admin__sync-dot {
  background: #f9a825 !important;
}

/* Form builder */
.bounce-portal-theme .bm-fb__main {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.bounce-portal-theme .bm-fb__hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.4rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 193, 7, 0.2), transparent 40%),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--bp-shadow);
  margin-bottom: 1rem;
}

.bounce-portal-theme .bm-fb__hero h1 {
  font-family: var(--bp-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.2rem 0;
}

.bounce-portal-theme .bm-fb__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bp-red);
}

.bounce-portal-theme .bm-fb__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.bounce-portal-theme .bm-fb__tab {
  border: 1px solid var(--bp-line);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--bp-muted);
}

.bounce-portal-theme .bm-fb__tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--bp-navy), var(--bp-blue));
  box-shadow: 0 10px 22px rgba(13, 71, 161, 0.22);
}

.bounce-portal-theme .bm-fb__layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.bounce-portal-theme .bm-fb__panel,
.bounce-portal-theme .bm-fb__preview {
  display: none;
  padding: 1.15rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--bp-shadow);
}

.bounce-portal-theme .bm-fb__panel.is-active,
.bounce-portal-theme .bm-fb__preview {
  display: block;
}

.bounce-portal-theme .bm-fb__field,
.bounce-portal-theme .bm-fb__card {
  border: 1px solid var(--bp-line);
  border-radius: 16px;
  padding: 0.9rem;
  background: #fff;
  margin-bottom: 0.75rem;
}

.bounce-portal-theme .bm-fb__preview-head strong {
  font-family: var(--bp-display);
}

/* Login page */
.bounce-portal-theme.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.bounce-portal-theme .admin-login-shell {
  width: min(440px, 100%);
  position: relative;
  z-index: 2;
}

.bounce-portal-theme .admin-login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.25rem;
}

.bounce-portal-theme .admin-login-brand img,
.bounce-portal-theme .admin-login-brand__adventure {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(30, 136, 229, 0.18));
}

.bounce-portal-theme .admin-login-brand span {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: 1.45rem;
  background: linear-gradient(105deg, #e53935, #ec407a, #7e57c2, #1e88e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.35;
  padding: 0.15em 0;
}

.bounce-portal-theme .admin-login-brand strong {
  font-family: var(--bp-display);
  font-size: 1.15rem;
}

.bounce-portal-theme .admin-login-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.45rem 1.55rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 60px rgba(26, 39, 68, 0.12);
  backdrop-filter: blur(18px);
}

.bounce-portal-theme .admin-login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #c62828, #ff7043, #ec407a, #7e57c2, #1e88e5);
}

.bounce-portal-theme .admin-login-card h1 {
  font-family: var(--bp-display);
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
}

.bounce-portal-theme .admin-login-card__lead {
  color: var(--bp-muted);
  margin: 0 0 1.15rem;
  line-height: 1.5;
}

.bounce-portal-theme .admin-login-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 0.5rem;
}

.bounce-portal-theme .admin-login-foot {
  text-align: center;
  margin-top: 1.1rem;
  color: var(--bp-muted);
  font-weight: 600;
}

.bounce-portal-theme .admin-login-foot a {
  color: var(--bp-navy);
  text-decoration: none;
  font-weight: 800;
}

.bounce-portal-theme .admin-login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.5;
}

.bounce-portal-theme .admin-login-orb--1 {
  width: 220px;
  height: 180px;
  top: 10%;
  left: 8%;
  background: #ffc107;
}

.bounce-portal-theme .admin-login-orb--2 {
  width: 200px;
  height: 160px;
  right: 10%;
  bottom: 15%;
  background: #42a5f5;
}

.bounce-portal-theme .bm-honeypot {
  position: absolute !important;
  left: -10000px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 960px) {
  .bounce-portal-theme .snot-admin__split-panel,
  .bounce-portal-theme .bm-fb__layout {
    grid-template-columns: 1fr;
  }

  .bounce-portal-theme .snot-admin__header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .bounce-portal-theme .snot-admin__bg::before,
  .bounce-portal-theme .snot-admin__bg::after {
    opacity: 0.28;
    transform: scale(0.7);
  }
}

@media (max-width: 640px) {
  .bounce-portal-theme .snot-admin__hero {
    padding: 1.1rem;
  }

  .bounce-portal-theme .snot-admin__toolbar {
    width: 100%;
  }

  .bounce-portal-theme .snot-admin__search-wrap {
    width: 100%;
  }

  .bounce-portal-theme .snot-admin__search-wrap input {
    width: 100%;
  }

  .bounce-portal-theme .bm-fb__hero-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .bounce-portal-theme .snot-admin__btn,
  .bounce-portal-theme .admin-login-btn {
    min-height: 44px;
  }

  .bounce-portal-theme .snot-admin__stats {
    grid-template-columns: 1fr 1fr;
  }

  .bounce-portal-theme .snot-admin__brand {
    min-width: 0;
    max-width: 100%;
    gap: 0.55rem;
  }

  .bounce-portal-theme .snot-admin__brand img,
  .bounce-portal-theme .snot-admin__brand-adventure {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
  }

  .bounce-portal-theme .admin-login-brand {
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .bounce-portal-theme .admin-login-brand img,
  .bounce-portal-theme .admin-login-brand__adventure {
    width: 68px;
    height: 68px;
  }

  .bounce-portal-theme .admin-login-card {
    padding: 1.4rem 1.15rem 1.3rem;
  }
}

@media (max-width: 420px) {
  .bounce-portal-theme .snot-admin__stats {
    grid-template-columns: 1fr;
  }

  .bounce-portal-theme .snot-admin__period-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .bounce-portal-theme .admin-login-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .bounce-portal-theme .admin-login-brand img,
  .bounce-portal-theme .admin-login-brand__adventure {
    width: 60px;
    height: 60px;
  }

  .bounce-portal-theme .admin-login-brand strong {
    font-size: 1.02rem;
  }
}

/* Hardened responsive — no overflow / clipping */
.bounce-portal-theme,
.bounce-portal-theme.snot-admin,
.bounce-portal-theme.admin-login-page {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.bounce-portal-theme .snot-admin__brand > div,
.bounce-portal-theme .snot-admin__brand strong,
.bounce-portal-theme .snot-admin__hero h1,
.bounce-portal-theme .bm-fb__hero-copy h1 {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bounce-portal-theme .snot-admin__brand > div span {
  padding: 0.2em 0.05em 0.25em;
  line-height: 1.45;
  overflow: visible;
}

.bounce-portal-theme .snot-admin__drawer-panel {
  width: min(520px, 100vw) !important;
}

.bounce-portal-theme .snot-admin__modal-panel {
  width: min(480px, calc(100vw - 1.25rem)) !important;
  max-height: min(90vh, 900px);
  overflow: auto;
}

.bounce-portal-theme .bm-fb__tabs {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.bounce-portal-theme .bm-fb__tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

.bounce-portal-theme .snot-admin__field input,
.bounce-portal-theme .snot-admin__field textarea,
.bounce-portal-theme .snot-admin__field select,
.bounce-portal-theme .admin-field input {
  font-size: 16px !important;
}

@media (max-width: 720px) {
  .bounce-portal-theme .snot-admin__main,
  .bounce-portal-theme .bm-fb__main {
    width: min(100%, calc(100% - 1rem));
    padding-inline: 0.5rem;
  }

  .bounce-portal-theme .snot-admin__hero h1 {
    font-size: clamp(1.45rem, 6vw, 1.9rem) !important;
  }

  .bounce-portal-theme .snot-admin__btn {
    font-size: 0.82rem !important;
  }

  .bounce-portal-theme tbody td {
    font-size: 0.88rem !important;
  }
}
