/**
 * Xprees GiftCard — Base Monochrome Components, Typography & Signature Motion
 */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--fg);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="bn"] body {
  font-family: var(--font-bn);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

svg.ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Dot-grid Editorial Surface */
.dot-bg {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 0);
  background-size: 16px 16px;
}

/* Signature Half-Moon Brand Mark */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: var(--tap-min);
}
.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--inv) 50%, transparent 50%);
  border: 1.4px solid var(--inv);
  flex: none;
  transition: transform var(--dur-med) var(--ease-pop);
}
.brand-link:hover .brand-mark { transform: rotate(180deg); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-name em { font-style: italic; font-weight: 400; }

/* Editorial Typography Helpers */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mut);
  font-weight: 400;
}
.display-h {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin: 0;
}
.dashed-rule {
  border: 0;
  border-top: 1.5px dashed var(--line-strong);
  margin: var(--sp-4) 0;
}

/* Buttons (min 44px tap target on interactive actions) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--inv);
  background: var(--inv);
  color: var(--invfg);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-pop), opacity var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
}
.btn:hover { opacity: 0.86; transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn.ghost:hover {
  border-color: var(--fg);
  background: var(--surface);
  opacity: 1;
}
.btn.subtle {
  background: var(--surface-2);
  color: var(--fg);
  border-color: var(--line);
}
.btn.subtle:hover { border-color: var(--fg); opacity: 1; }
.btn.sm { min-height: 36px; padding: 0 15px; font-size: 11.5px; letter-spacing: 0.06em; }
.btn.full { width: 100%; }
.btn:disabled, .btn.ld { opacity: 0.55; pointer-events: none; }
.btn.ld::after {
  content: '';
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: xgc-spin 0.7s linear infinite;
}

.ic-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  display: inline-grid;
  place-items: center;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  flex: none;
}
.ic-btn:hover { background: var(--surface-2); border-color: var(--line); }
.ic-btn:active { transform: scale(0.95); }
.ic-btn.on { background: var(--inv); color: var(--invfg); border-color: var(--inv); }

/* Inputs & Form Controls */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
}
input[type="text"], input[type="password"], input[type="email"], input[type="url"],
input[type="number"], input[type="datetime-local"], select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font-weight: 300;
  font-size: 13.5px;
  outline: none;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--fg);
  background: var(--bg);
}
textarea { min-height: 92px; resize: vertical; line-height: 1.55; }

/* Monochrome Switch */
.sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw i {
  width: 44px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  position: relative;
  transition: background var(--dur-fast);
  flex: none;
}
.sw i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  transition: transform var(--dur-fast) var(--ease-pop);
}
.sw input:checked + i { background: var(--inv); }
.sw input:checked + i::after { transform: translateX(20px); }

/* Cards & Surfaces */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--fg-soft);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge.solid { background: var(--inv); color: var(--invfg); border-color: var(--inv); }

/* Modal / Responsive Bottom Sheet */
.modal-ov {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--scrim);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: xgc-fade 0.22s ease;
}
.modal-card {
  width: min(500px, 100%);
  max-height: 88dvh;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: xgc-pop 0.26s var(--ease-pop);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1.5px dashed var(--line-strong);
}
.modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 720px) {
  .modal-ov { align-items: flex-end; padding: 0; }
  .modal-card {
    width: 100%;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    max-height: 90dvh;
    animation: xgc-sheet-up 0.28s var(--ease-pop);
  }
}

/* Toast Notification */
#xgc-toast-wrap {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: min(380px, 92vw);
}
.xgc-toast {
  background: var(--inv);
  color: var(--invfg);
  padding: 11px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  text-align: center;
  box-shadow: var(--sh-md);
  animation: xgc-pop 0.25s var(--ease-pop);
}

/* Signature Animations */
@keyframes xgc-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes xgc-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes xgc-sheet-up {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}
@keyframes xgc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes xgc-spin {
  to { transform: rotate(360deg); }
}
@keyframes xgc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes xgc-sweep {
  from { left: -140%; }
  to { left: 160%; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-rise), transform 0.75s var(--ease-rise);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }

/* Container */
.container {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 22px;
}

/* Impersonation Banner */
.imp-bar {
  background: var(--inv);
  color: var(--invfg);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.imp-bar button {
  background: var(--invfg);
  color: var(--inv);
  border: 0;
  border-radius: var(--r-pill);
  padding: 4px 14px;
  font-size: 11.5px;
}
