/*
 * Auth UI — FitnessHub-style (navy + white bottom sheet)
 * Mobile-first, fully responsive
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --fh-navy: #0b1c33;
  --fh-navy-mid: #12243d;
  --fh-navy-deep: #071422;
  --fh-white: #ffffff;
  --fh-muted: #9aa3b2;
  --fh-label: #1a2332;
  --fh-line: #d8dde6;
  --fh-line-focus: #0b1c33;
  --fh-danger: #e11d48;
  --fh-radius-sheet: 36px;
  --fh-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.auth-body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Poppins', sans-serif !important;
  background: var(--fh-navy-deep) !important;
  color: var(--fh-label);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.auth-body #loading {
  display: none !important;
}

.fh-signup-loader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: rgba(7, 20, 34, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 24px;
  text-align: center;
}

.fh-signup-loader.is-on {
  display: flex;
}

.fh-signup-loader__spin {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #e67e22;
  animation: fh-signup-spin 0.8s linear infinite;
}

.fh-signup-loader__text {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@keyframes fh-signup-spin {
  to { transform: rotate(360deg); }
}

body.fh-signing-up {
  overflow: hidden;
}

/* ── Shared auth shell (sign in / sign up / forgot) ── */
.fh-auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--fh-navy) 0%, var(--fh-navy-deep) 100%);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px) {
  body.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
      radial-gradient(ellipse 60% 50% at 50% 0%, rgba(40, 80, 140, 0.35), transparent 60%),
      var(--fh-navy-deep) !important;
  }

  .fh-auth {
    min-height: min(860px, calc(100vh - 48px));
    width: 100%;
    max-width: 420px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  }

  .fh-welcome {
    max-width: 420px;
    min-height: min(860px, calc(100vh - 48px));
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  }
}

/* Header (dark top) */
.fh-auth__header {
  flex: 0 0 auto;
  padding: clamp(1.35rem, 4vh, 2rem) 1.75rem 1.35rem;
  color: var(--fh-white);
  animation: fh-fade-up 0.55s var(--fh-ease) both;
  text-align: center;
}

.fh-brand-logo {
  display: block;
  width: min(168px, 42vw);
  height: auto;
  margin: 0 auto 0.85rem;
  background: #fff;
  border-radius: 18px;
  padding: 0.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  object-fit: contain;
}

.fh-brand-logo--sheet {
  width: min(150px, 40vw);
  margin: 0 auto 1.35rem;
  box-shadow: 0 6px 18px rgba(11, 28, 51, 0.1);
  border: 1px solid #eef1f5;
}

.fh-auth__header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff !important;
  letter-spacing: -0.02em;
  text-align: left;
}

.fh-auth__header h1 span {
  display: block;
}

/* White bottom sheet */
.fh-auth__sheet {
  flex: 1 1 auto;
  background: var(--fh-white);
  border-radius: var(--fh-radius-sheet) var(--fh-radius-sheet) 0 0;
  padding: 2.25rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  animation: fh-sheet-in 0.6s var(--fh-ease) 0.08s both;
}

@media (min-width: 768px) {
  .fh-auth__sheet {
    border-radius: var(--fh-radius-sheet) var(--fh-radius-sheet) 28px 28px;
  }
}

@keyframes fh-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fh-sheet-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Underline fields */
.fh-field {
  margin-bottom: 1.45rem;
}

.fh-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fh-label);
  margin-bottom: 0.35rem;
}

.fh-field .form-control,
.fh-auth .form-control,
.fh-field input {
  width: 100%;
  height: auto !important;
  line-height: 1.4 !important;
  border: none !important;
  border-bottom: 1.5px solid var(--fh-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.45rem 0 0.55rem !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--fh-label) !important;
  font-family: 'Poppins', sans-serif !important;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease;
}

.fh-field .form-control:focus,
.fh-auth .form-control:focus,
.fh-field input:focus {
  outline: none;
  border-bottom-color: var(--fh-line-focus) !important;
  box-shadow: none !important;
  background: transparent !important;
}

.fh-field .form-control::placeholder,
.fh-field input::placeholder {
  color: var(--fh-muted) !important;
  opacity: 1;
}

.fh-field input[type='number']::-webkit-outer-spin-button,
.fh-field input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fh-field input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.fh-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 1.75rem;
}

.fh-forgot-row a {
  font-size: 0.82rem;
  color: var(--fh-muted) !important;
  text-decoration: none !important;
  font-weight: 400;
}

.fh-forgot-row a:hover {
  color: var(--fh-navy) !important;
}

/* Primary pill button */
.fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #16355a 0%, var(--fh-navy) 55%, var(--fh-navy-deep) 100%);
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(7, 20, 34, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.fh-btn:hover,
.fh-btn:focus {
  filter: brightness(1.08);
  color: #fff !important;
  outline: none;
  text-decoration: none !important;
}

.fh-btn:active {
  transform: scale(0.985);
}

.fh-btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: none;
  color: #fff !important;
}

.fh-btn--outline:hover,
.fh-btn--outline:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  filter: none;
}

.fh-btn--light {
  background: #fff;
  color: var(--fh-navy) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.fh-btn--light:hover,
.fh-btn--light:focus {
  color: var(--fh-navy) !important;
  filter: brightness(0.97);
}

.fh-switch {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: #6b7280;
}

.fh-switch a {
  color: var(--fh-navy) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.fh-switch a:hover {
  text-decoration: underline !important;
}

.fh-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.4;
  cursor: pointer;
}

.fh-check input {
  margin-top: 0.15rem;
  width: 16px;
  height: 16px;
  accent-color: var(--fh-navy);
  flex-shrink: 0;
}

.fh-check a {
  color: var(--fh-navy);
  font-weight: 600;
}

.fh-alert {
  margin-bottom: 1.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.fh-alert--error {
  background: #fff1f2;
  color: var(--fh-danger);
  border: 1px solid #fecdd3;
}

.fh-alert--info {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.fh-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fh-muted) !important;
  text-decoration: none !important;
}

.fh-back:hover {
  color: var(--fh-navy) !important;
}

/* ── Welcome screen ─────────────────────────────── */
.fh-welcome {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(2.5rem, 8vh, 3.5rem) 1.75rem 2.5rem;
  background: linear-gradient(180deg, var(--fh-navy) 0%, var(--fh-navy-deep) 100%);
  color: #fff;
  text-align: center;
}

.fh-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  animation: fh-fade-up 0.55s var(--fh-ease) both;
}

.fh-welcome .fh-brand-logo {
  width: min(200px, 52vw);
  margin: 0 auto;
}

.fh-logo__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.fh-logo__text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.fh-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.fh-welcome__hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1.75rem;
  animation: fh-fade-up 0.65s var(--fh-ease) 0.1s both;
}

.fh-welcome__title {
  margin: 0;
  font-size: clamp(2.6rem, 10vw, 3.4rem);
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -0.03em;
  line-height: 1;
}

.fh-welcome__actions {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.fh-welcome__social {
  width: 100%;
  padding-top: 0.5rem;
  animation: fh-fade-up 0.65s var(--fh-ease) 0.2s both;
}

.fh-welcome__social-label {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.fh-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.fh-social {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-decoration: none;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.fh-social:hover {
  transform: translateY(-2px);
}

.fh-social svg {
  width: 22px;
  height: 22px;
}

/* Small phones */
@media (max-width: 359px) {
  .fh-auth__header,
  .fh-auth__sheet,
  .fh-welcome {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .fh-auth__sheet {
    padding-top: 1.75rem;
  }
}

@media (max-height: 640px) and (max-width: 767px) {
  .fh-auth__header {
    padding-top: 1.75rem;
    padding-bottom: 1.25rem;
  }

  .fh-auth__header h1 {
    font-size: 1.7rem;
  }

  .fh-auth__sheet {
    padding-top: 1.5rem;
  }

  .fh-field {
    margin-bottom: 1.1rem;
  }

  .fh-welcome__title {
    font-size: 2.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fh-auth__header,
  .fh-auth__sheet,
  .fh-logo,
  .fh-welcome__hero,
  .fh-welcome__social {
    animation: none !important;
  }
}

/* CAPTCHA */
.bf-captcha {
  margin-bottom: 1.25rem;
}

.bf-captcha label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fh-label);
  margin-bottom: 0.45rem;
}

.bf-captcha__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bf-captcha__img {
  height: 48px;
  width: 140px;
  border-radius: 10px;
  border: 1px solid var(--fh-line);
  object-fit: cover;
  background: #0b1c33;
}

.bf-captcha__refresh {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--fh-line);
  background: #f3f5f8;
  color: #0b1c33;
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
}

.bf-captcha__refresh:hover {
  background: #e8ecf2;
}

.bf-captcha__input {
  flex: 1 1 120px;
  min-width: 110px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bf-captcha__hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--fh-muted);
  font-size: 0.72rem;
}

/* ── Login / Forgot redesign (isolated auth-screen) ─ */
body.auth-screen {
  margin: 0 !important;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(40, 80, 140, 0.35), transparent 55%),
    linear-gradient(180deg, #0b1c33 0%, #071422 100%) !important;
  padding: max(12px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-card__brand {
  text-align: center;
  color: #fff;
  padding: 4px 0 2px;
}

.auth-card__brand img {
  display: block;
  width: 88px;
  height: auto;
  margin: 0 auto 8px;
  background: #fff;
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  object-fit: contain;
}

.auth-card__brand p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.auth-card__panel {
  background: #fff;
  border-radius: 24px;
  padding: 22px 18px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.auth-card__head {
  margin-bottom: 16px;
}

.auth-card__back {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
}

.auth-card__back:hover {
  color: #0b1c33;
}

.auth-card__head h1 {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 5.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #0b1c33;
  letter-spacing: -0.02em;
}

.auth-card__head p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #6b7280;
}

.auth-card__alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.auth-card__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-card__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-card__field label,
.auth-card__captcha label,
.auth-screen .bf-captcha label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a2332;
}

.auth-card__field input,
.auth-screen .bf-captcha__input {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid #d8dde6;
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #0b1c33;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.auth-card__field input:focus,
.auth-screen .bf-captcha__input:focus {
  border-color: #0b1c33;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 28, 51, 0.1);
}

.auth-card__field input::placeholder {
  color: #9aa3b2;
}

.auth-card__captcha,
.auth-screen .bf-captcha {
  margin: 0;
}

.auth-screen .bf-captcha__row {
  display: grid;
  grid-template-columns: 118px 40px 1fr;
  gap: 8px;
  align-items: center;
}

.auth-screen .bf-captcha__img {
  width: 118px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid #d8dde6;
}

.auth-screen .bf-captcha__refresh {
  width: 40px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid #d8dde6;
  background: #f8fafc;
  color: #0b1c33;
  font-size: 1.1rem;
  cursor: pointer;
}

.auth-screen .bf-captcha__input {
  min-width: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.auth-screen .bf-captcha__hint {
  margin-top: 6px;
  font-size: 0.7rem;
  color: #9aa3b2;
}

.auth-card__links {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.auth-card__links a {
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
}

.auth-card__links a:hover {
  color: #0b1c33;
}

.auth-card__btn {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #16355a 0%, #0b1c33 60%, #071422 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 20, 34, 0.28);
}

.auth-card__btn:active {
  transform: scale(0.985);
}

.auth-card__foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: #6b7280;
}

.auth-card__foot a {
  color: #0b1c33;
  font-weight: 700;
  text-decoration: none;
}

.auth-card__foot a:hover {
  text-decoration: underline;
}

/* Phones */
@media (max-width: 379px) {
  body.auth-screen {
    padding: 10px;
  }

  .auth-card__panel {
    padding: 18px 14px 16px;
    border-radius: 20px;
  }

  .auth-card__brand img {
    width: 76px;
  }

  .auth-screen .bf-captcha__row {
    grid-template-columns: 1fr 40px;
    grid-template-areas:
      "img refresh"
      "input input";
  }

  .auth-screen .bf-captcha__img {
    grid-area: img;
    width: 100%;
  }

  .auth-screen .bf-captcha__refresh {
    grid-area: refresh;
  }

  .auth-screen .bf-captcha__input {
    grid-area: input;
  }
}

/* Tablets / desktop */
@media (min-width: 768px) {
  body.auth-screen {
    padding: 28px 20px;
  }

  .auth-card {
    gap: 18px;
  }

  .auth-card__brand img {
    width: 104px;
    border-radius: 16px;
    padding: 6px;
  }

  .auth-card__panel {
    padding: 28px 26px 24px;
    border-radius: 28px;
  }

  .auth-card__head {
    margin-bottom: 18px;
  }
}

/* Short screens: keep usable, allow natural scroll */
@media (max-height: 700px) {
  .auth-card__brand img {
    width: 72px;
    margin-bottom: 4px;
  }

  .auth-card__brand p {
    font-size: 0.7rem;
  }

  .auth-card__panel {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .auth-card__form {
    gap: 10px;
  }

  .auth-card__field input,
  .auth-screen .bf-captcha__input,
  .auth-screen .bf-captcha__refresh,
  .auth-screen .bf-captcha__img {
    min-height: 42px;
    height: 42px;
  }

  .auth-card__btn {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card__btn:active {
    transform: none;
  }

  .bf-notify__sheet,
  .bf-notify__backdrop {
    transition: none !important;
  }
}

/* ── Auth notification popup (mobile bottom-sheet) ── */
html.bf-notify-open,
html.bf-notify-open body {
  overflow: hidden !important;
}

.bf-notify {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}

.bf-notify.is-open {
  pointer-events: auto;
  visibility: visible;
}

.bf-notify__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 34, 0.55);
  opacity: 0;
  transition: opacity 0.28s var(--fh-ease, cubic-bezier(0.22, 1, 0.36, 1));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.bf-notify.is-open .bf-notify__backdrop {
  opacity: 1;
}

.bf-notify__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 12px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 48px rgba(7, 20, 34, 0.28);
  text-align: center;
  transform: translateY(110%);
  transition: transform 0.34s var(--fh-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.bf-notify.is-open .bf-notify__sheet {
  transform: translateY(0);
}

.bf-notify__handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #d8dde6;
  margin: 0 auto 16px;
}

.bf-notify__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
}

.bf-notify__icon svg {
  width: 64px;
  height: 64px;
  display: block;
}

.bf-notify__title {
  margin: 0 0 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b1c33;
  line-height: 1.25;
}

.bf-notify__msg {
  margin: 0 0 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6b7280;
  padding: 0 4px;
}

.bf-notify__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #16355a 0%, #0b1c33 100%);
  box-shadow: 0 10px 24px rgba(11, 28, 51, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.bf-notify__btn:active {
  transform: scale(0.98);
}

.bf-notify--success .bf-notify__btn {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28);
}

.bf-notify--error .bf-notify__btn {
  background: linear-gradient(180deg, #16355a 0%, #0b1c33 100%);
}

.bf-notify--info .bf-notify__btn {
  background: linear-gradient(180deg, #e67e22 0%, #cf6d16 100%);
  box-shadow: 0 10px 24px rgba(230, 126, 34, 0.28);
}

@media (min-width: 640px) {
  .bf-notify {
    align-items: center;
    padding: 24px;
  }

  .bf-notify__sheet {
    border-radius: 24px;
    padding: 28px 26px 24px;
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    transition: transform 0.3s var(--fh-ease, cubic-bezier(0.22, 1, 0.36, 1)),
                opacity 0.3s ease;
    box-shadow: 0 24px 60px rgba(7, 20, 34, 0.35);
  }

  .bf-notify.is-open .bf-notify__sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .bf-notify__handle {
    display: none;
  }
}

@media (max-width: 360px) {
  .bf-notify__sheet {
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .bf-notify__title {
    font-size: 1.05rem;
  }

  .bf-notify__msg {
    font-size: 0.86rem;
  }

  .bf-notify__btn {
    min-height: 48px;
  }
}

