/* Passport Stamps theme from psvlogs.in */
:root {
  --bg: #fff8ec;
  --ink: #121212;
  --blue: #2b4bff;
  --coral: #ff5a4e;
  --sun: #ffcd2e;
  --mint: #23cf9b;
  --lilac: #b9a6ff;
  --pink: #ff9ec7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.mono { font-family: "Space Mono", monospace; }

h1, h2, h3, h4, h5 {
  margin: 0;
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--ink);
}

h1 { font-size: clamp(38px, 6vw, 76px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(20px, 3vw, 28px); }

.label {
  font: 700 12px "Space Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 14px;
}

.box {
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  font-family: inherit;
  color: var(--ink);
  text-decoration: none;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn.blue { background: var(--blue); color: #fff; }
.btn.coral { background: var(--coral); color: #fff; }
.btn.mint { background: var(--mint); color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); }

/* Header Navigation (Identical to psvlogs.in) */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 2.5px solid var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.logo .pp {
  width: 40px;
  height: 50px;
  border: 2.5px solid var(--ink);
  border-radius: 6px;
  background: var(--blue);
  color: var(--sun);
  display: grid;
  place-items: center;
  font: 700 11px/1.1 "Space Mono", monospace;
  text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
}

.logo .badge-go {
  font: 700 11px "Space Mono", monospace;
  background: var(--sun);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
  white-space: nowrap !important;
}

.nav-links li {
  white-space: nowrap !important;
  display: inline-block;
}

.nav-links a,
.nav-item {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 2px solid transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap !important;
  transition: all .15s;
}

.nav-links a:hover,
.nav-item:hover {
  border-color: var(--ink);
  background: #fff;
}

.nav-links a.on,
.nav-item.on {
  background: var(--ink);
  color: var(--sun) !important;
  border-color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-btn {
  padding: 8px 14px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
  box-shadow: 2.5px 2.5px 0 var(--ink) !important;
  white-space: nowrap;
}

.nav-signin {
  font-weight: 700;
  font-size: 14px;
  padding: 6px 10px;
  color: var(--ink);
  text-decoration: none;
}

.nav-signout {
  font-weight: 700;
  font-size: 13px;
  opacity: .75;
  padding: 6px 8px;
  color: var(--ink);
  text-decoration: none;
}

.desktop-only {
  display: inline-block;
}

/* Boarding Pass / Generator Box */
.pass {
  display: grid;
  grid-template-columns: 1fr 220px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}

.pass .main {
  padding: 24px 28px;
  border-right: 3px dashed var(--ink);
}

.pass .stub {
  padding: 24px;
  background: var(--blue);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.pass .stub b {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
}

/* Form Inputs */
.input-ps {
  width: 100%;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 13px 16px;
  font: 700 16px "Bricolage Grotesque", sans-serif;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: box-shadow .15s;
}

.input-ps:focus {
  box-shadow: 3px 3px 0 var(--ink);
}

/* Chips */
.chipbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font: 700 13px "Space Mono", monospace;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip.active {
  background: var(--ink);
  color: var(--sun);
}

/* Flash Messages */
.flash-mint {
  padding: 14px 18px;
  margin-bottom: 20px;
  background: var(--mint);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.flash-coral {
  padding: 14px 18px;
  margin-bottom: 20px;
  background: var(--coral);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

/* Footer (Exact psvlogs.in structure) */
footer {
  border-top: 2.5px solid var(--ink);
  padding: 60px 0 60px;
  margin-top: auto;
  background: var(--sun);
  color: var(--ink);
}

.foot {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
}

footer h5 {
  font: 700 12px "Space Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-weight: 700;
}

footer ul a:hover {
  text-decoration: underline;
}

.legal {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 2.5px solid var(--ink);
  display: flex;
  justify-content: space-between;
  font: 400 12px "Space Mono", monospace;
  flex-wrap: wrap;
  gap: 10px;
}

/* Mobile Navigation Drawer & Menu Button */
.menu-btn {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--sun);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  color: var(--ink);
  transition: transform .1s;
  flex-shrink: 0;
}

.menu-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--bg);
  border-left: 2.5px solid var(--ink);
  box-shadow: -10px 0 30px rgba(0,0,0,0.25);
  z-index: 100;
  padding: 24px;
  overflow-y: auto;
  flex-direction: column;
}

body.menu-open .mobile-drawer {
  display: flex;
}

/* Backdrop when drawer is open */
body.menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.drawer-title {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.drawer-close {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

.drawer-section-title {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  color: #666;
  letter-spacing: .1em;
  margin-bottom: 6px;
}

.drawer-link {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  border: 1.5px solid transparent;
}

.drawer-link:hover,
.drawer-link.on {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Responsive Breakpoints */
@media (max-width: 1040px) {
  .nav-links {
    display: none !important;
  }
  .menu-btn {
    display: inline-flex !important;
  }
  .desktop-only {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .pass { grid-template-columns: 1fr; }
  .pass .main { border-right: 0; border-bottom: 3px dashed var(--ink); }
  .foot { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .foot { grid-template-columns: 1fr; }
  .nav { height: 64px; gap: 8px; }
  .logo { font-size: 18px; }
  .logo .pp { width: 32px; height: 40px; font-size: 9px; }
  .header-btn { padding: 7px 11px !important; font-size: 12px !important; }
  .menu-btn { width: 38px; height: 38px; font-size: 18px; }
  h1 { font-size: 32px !important; }
  h2 { font-size: 24px !important; }
  body { padding-bottom: 60px; } /* Space for mobile anchor ad */
}

/* Responsive Custom Ad Widgets & Iframes (Trip.com, Agoda, AdSense) */
.ad-custom-code,
.ad-adsense {
  width: 100%;
  text-align: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ad-code-container {
  display: inline-block;
  max-width: 100%;
}

.ad-code-container iframe {
  max-width: 100%;
  border: none;
}

@media (max-width: 768px) {
  .ad-code-container iframe {
    max-width: 100% !important;
  }
}
