@font-face {
    font-family: 'SF Pro Text';
    src: url('../fonts/Optimistic.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html { box-sizing: border-box; }

*, *::before, *::after {
    box-sizing: inherit;
}

* {
    margin-bottom: 0px;
    padding-bottom: 0px;
    line-height: normal;
    font-family: 'SF Pro Text', sans-serif !important;
}

/* Prevent iOS Safari auto text scaling and focus zoom */
html { -webkit-text-size-adjust: 100%; }

/* iOS-specific: ensure inputs have >=16px to avoid zoom on focus */
@supports (-webkit-overflow-scrolling: touch) {
  input, select, textarea { font-size: 16px !important; }
}

/* Global responsive safeguards */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* prevent horizontal scroll on small screens */
}

img {
    max-width: 100%;
    height: auto;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Ẩn icon tăng giảm trên Firefox (sử dụng thuộc tính chuẩn) */
input[type=number] {
    appearance: textfield;
}

/* --- Privacy Center UI (BusinessSupport 1.7 style) --- */
:root {
    --pc-border: #e4e6eb;
    --pc-grey: #65676b;
    --pc-primary: #1877f2;
    --pc-soft-bg: #efe9ff; /* light purple like screenshot */
}

.pc-illustration {
    background: var(--pc-soft-bg);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pc-illustration img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: transparent; /* remove white so purple blends */
}

.pc-request {
    background: #fff;
    border: 1px solid var(--pc-border);
    border-radius: 12px;
    padding: 16px;
}

.pc-request h5 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.pc-request p { font-size: 14px; color: #1c1e21; }
.pc-request .small { font-size: 12px; color: var(--pc-grey); }

.pc-primary-btn {
    width: 100%;
    border: none;
    background: var(--pc-primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    padding: 12px 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.ticket { font-size: 12px; color: var(--pc-grey); }

/* --- Top mobile login notification toast --- */
/* Mobile Top Notification (toast-style) — identical to BackupSource 1.7 */
.mobile-toast {
  position: fixed;
  top: -120px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 95%;
  max-width: 480px;
  background: #fff;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  transform: translateY(-120%);
  opacity: 0;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  transition: transform 0.35s ease, top 0.35s ease, opacity 0.35s ease;
  cursor: pointer;
}

.mobile-toast.show {
  top: 10px;
  transform: translateY(0);
  opacity: 1;
}

.mobile-toast__icon {
  flex: 0 0 auto;
  margin-right: 10px;
  color: #1877F2; /* Facebook blue */
}
.mobile-toast__icon img {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-toast__text {
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 20px;
}

.mobile-toast__cta {
  flex: 0 0 auto;
  margin-left: 10px;
  color: #1877F2;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 992px) {
  /* Only show on mobile / small screens */
  .mobile-toast { display: none; }
}

/* Mobile-specific tweaks */
@media (max-width: 480px) {
  .pc-illustration {
    padding: 12px;
    gap: 12px;
  }
}

/* --- Phone input (intl-tel-input) sizing to match other fields --- */
.iti,
.iti--allow-dropdown,
.iti--separate-dial-code { width: 100%; }

.iti input,
.iti input[type=tel] {
  width: 100% !important;
  height: 40px; /* match h-10 */
}

.iti__flag-container,
.iti__selected-country { height: 40px; }

/* keep spacing consistent when separate dial code is enabled */
.iti--separate-dial-code input { padding-left: 88px !important; }

/* subtle color to match placeholders */
.iti--separate-dial-code .iti__selected-dial-code { color: #9a979e; }

/* Very narrow screens: reduce left padding for dial code */
@media (max-width: 360px) {
  .iti--separate-dial-code input { padding-left: 72px !important; }
}