/* Poster + document templates. Sizes are in real pixels (posters 1080 wide, A4 at 794×1123).
   Avoid CSS filters, blend modes and background-clip:text here: the PNG/PDF exporter can't draw them. */

.poster, .doc { font-family: 'Inter', 'Noto Sans Malayalam', system-ui, sans-serif; box-sizing: border-box; }
.poster *, .doc * { box-sizing: border-box; }

/* =============== Flight fare poster =============== */
.poster { position: relative; overflow: hidden; color: var(--text); --k: 1; }
.p-bg, .p-photo, .p-shade { position: absolute; inset: 0; }
.p-photo { background-size: cover; background-position: center; }
.beam {
  position: absolute; top: -300px; height: 2600px; width: 240px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.11), rgba(255,255,255,0));
}
.beam.b1 { left: 60px; transform: rotate(24deg); }
.beam.b2 { left: 470px; width: 160px; transform: rotate(-14deg); }
.beam.b3 { right: 40px; width: 200px; transform: rotate(-30deg); }
.p-mark { position: absolute; right: -150px; bottom: -110px; width: 620px; opacity: .06; }
.light .p-mark { opacity: .07; }

.p-inner {
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; padding: 72px 80px 56px;
}
.p-inner > * { flex-shrink: 0; }

.p-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.p-logo { height: 72px; width: auto; display: block; }
.badges { display: flex; gap: 12px; }
.badge {
  display: flex; align-items: center; gap: 10px; color: var(--ink);
  border: 2px solid var(--line); border-radius: 14px; padding: 8px 18px 8px 14px;
}
.badge small { display: block; font-size: 13px; font-weight: 500; line-height: 1.1; }
.badge b { display: block; font-size: 23px; font-weight: 600; line-height: 1.1; }
.p-web { font-size: 26px; font-weight: 600; color: var(--ink); }
.p-rule { height: 2px; background: var(--line); margin-top: 26px; }

.p-title { margin-top: calc(var(--k) * 54px); }
.p-eyebrow {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: calc(var(--k) * 30px); line-height: 1.2;
  padding: .35em .85em; border-radius: 999px; text-transform: uppercase;
  margin-bottom: calc(var(--k) * 22px);
}
.p-h1 { margin: 0; font-size: calc(var(--k) * 96px); line-height: 1.04; font-weight: 800; color: var(--ink); }
.p-h1 .hl, .p-sub .hl { color: var(--accent); }
.light .p-h1 .hl, .light .p-sub .hl { color: #7357ec; }
.p-sub { margin: calc(var(--k) * 18px) 0 0; font-size: calc(var(--k) * 36px); line-height: 1.3; color: var(--muted); }

.p-visual {
  flex: 1 1 0 !important; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  margin: calc(var(--k) * 26px) 0;
}
.p-visual.has-card { min-height: calc(var(--k) * 340px); }
.f-square .p-visual.has-card { min-height: calc(var(--k) * 240px); }
.p-photo-card {
  width: 100%; height: 100%; border-radius: 36px;
  background-size: cover; background-position: center;
  box-shadow: 0 30px 60px rgba(10, 6, 40, .28);
}
.deco { position: relative; width: 100%; aspect-ratio: 1000 / 360; }
.deco svg { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.deco-l, .deco-r { position: absolute; top: 76%; line-height: 1; }
.deco-l { left: 0; }
.deco-r { right: 0; text-align: right; }
.deco b { display: block; font-size: calc(var(--k) * 58px); font-weight: 800; color: var(--ink); }
.deco small { display: block; font-size: calc(var(--k) * 26px); color: var(--muted); margin-top: 8px; }

/* single fare: one big price */
.p-hero-pre { font-size: calc(var(--k) * 32px); font-weight: 600; color: var(--muted); text-transform: uppercase; }
.p-hero-amt {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: calc(var(--k) * 210px); font-weight: 900; line-height: .95; color: var(--ink);
}
.p-hero-amt small { font-size: .26em; font-weight: 800; margin-top: .22em; color: var(--accent); }
.light .p-hero-amt small { color: #7357ec; }
.p-hero-meta { margin-top: calc(var(--k) * 12px); font-size: calc(var(--k) * 34px); font-weight: 600; color: var(--muted); }
.p-hero-route {
  display: flex; align-items: center; gap: 18px; margin-top: calc(var(--k) * 16px);
  font-size: calc(var(--k) * 46px); font-weight: 800; color: var(--ink);
}

/* several fares: one row per route */
.p-fares { display: flex; flex-direction: column; gap: calc(var(--k) * 16px); }
.p-fares-pre { font-size: calc(var(--k) * 26px); font-weight: 600; color: var(--muted); text-transform: uppercase; }
.fr {
  display: grid; grid-template-columns: 1fr 1.1fr 1fr auto; align-items: center; gap: 22px;
  background: var(--card); border: 2px solid var(--card-line); border-radius: 24px;
  padding: calc(var(--k) * 18px) calc(var(--k) * 18px) calc(var(--k) * 18px) calc(var(--k) * 32px);
}
.light .fr { box-shadow: 0 10px 30px rgba(58, 33, 163, .1); }
.fr-pt { min-width: 0; }
.fr-pt b { display: block; font-size: calc(var(--k) * 50px); font-weight: 800; line-height: 1; color: var(--ink); }
.fr-pt small {
  display: block; margin-top: 6px; font-size: calc(var(--k) * 22px); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fr-pt:nth-child(3) { text-align: right; }
.fr-mid { position: relative; display: flex; align-items: center; gap: 8px; }
.fr-mid i { flex: 1; border-top: 3px dashed var(--line); }
.fr-mid svg { width: calc(var(--k) * 40px); height: calc(var(--k) * 40px); flex: none; }
.fr-mid small {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; text-align: center;
  font-size: calc(var(--k) * 18px); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fr-price {
  background: var(--accent); color: var(--accent-ink); border-radius: 18px; text-align: center;
  padding: calc(var(--k) * 12px) calc(var(--k) * 24px); min-width: calc(var(--k) * 200px);
}
.fr-price small { display: block; font-size: calc(var(--k) * 20px); font-weight: 700; }
.fr-price b { display: block; font-size: calc(var(--k) * 54px); font-weight: 900; line-height: 1; }
.fr-price em { display: block; font-style: normal; font-size: calc(var(--k) * 18px); font-weight: 600; margin-top: 3px; }

.p-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: calc(var(--k) * 26px); }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: calc(var(--k) * 26px); font-weight: 600; color: var(--ink);
  background: var(--card); border: 2px solid var(--card-line); border-radius: 999px;
  padding: .42em .9em .42em .6em;
}
.chip svg { width: calc(var(--k) * 30px); height: calc(var(--k) * 30px); flex: none; }

.p-foot { display: flex; align-items: flex-end; gap: 28px; margin-top: calc(var(--k) * 34px); }
.p-qr {
  width: 172px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border-radius: 18px; padding: 12px 12px 10px;
}
.p-qr img { width: 148px; height: 148px; display: block; }
.p-qr span { font-size: 14px; font-weight: 700; color: #3a21a3; text-align: center; line-height: 1.2; }
.p-foot-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.p-cta {
  background: var(--accent); color: var(--accent-ink); text-align: center;
  font-size: 30px; font-weight: 800; padding: 18px 28px; border-radius: 16px;
}
.p-contact {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px;
  border-top: 2px solid var(--line); padding-top: 18px;
  font-size: 26px; font-weight: 500; color: var(--text);
}
.p-contact span { display: inline-flex; align-items: center; gap: 10px; }
.p-terms { margin-top: 14px; font-size: 17px; line-height: 1.35; color: var(--muted); }

/* visit visa: passport + stamp art (sized in container units so it scales with the space left) */
.visa-art { position: relative; aspect-ratio: 1.7; container-type: inline-size; }
.passport {
  position: absolute; left: 13%; top: 6%; width: 32%; aspect-ratio: .7; border-radius: 3.5cqw;
  background: linear-gradient(150deg, #8a2446, #5a1430); transform: rotate(-9deg);
  box-shadow: 0 3cqw 6cqw rgba(10, 6, 40, .35);
  display: flex; align-items: center; justify-content: center;
}
.pp-in { display: flex; flex-direction: column; align-items: center; gap: 2.4cqw; color: #e7c46a; }
.pp-in svg { width: 12cqw; height: 12cqw; }
.pp-in b { font-size: 3.4cqw; font-weight: 700; letter-spacing: .2em; }
.stamp {
  position: absolute; right: 12%; top: 10%; width: 44%; aspect-ratio: 1; border-radius: 50%;
  border: 1.2cqw solid var(--accent); transform: rotate(12deg);
  display: flex; align-items: center; justify-content: center;
}
.dark .stamp { background: rgba(255, 255, 255, .06); }
.light .stamp { background: rgba(255, 255, 255, .7); }
.stamp-in {
  width: 84%; height: 84%; border-radius: 50%; border: .45cqw dashed var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--accent); padding: 0 4cqw;
}
.stamp-in small { font-size: 3.2cqw; font-weight: 800; text-transform: uppercase; }
.stamp-in b { font-weight: 900; line-height: 1; margin: 1.2cqw 0; text-transform: uppercase; }
.stamp-in span { font-size: 3cqw; font-weight: 700; }

.v-plans-wrap { display: flex; flex-direction: column; gap: calc(var(--k) * 14px); }
.v-plans { display: grid; gap: calc(var(--k) * 16px); }
.vp {
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--k) * 6px); text-align: center;
  background: var(--card); border: 2px solid var(--card-line); border-radius: 24px;
  padding: calc(var(--k) * 22px) calc(var(--k) * 16px);
}
.light .vp { box-shadow: 0 10px 30px rgba(58, 33, 163, .1); }
.vp b { font-size: calc(var(--k) * 46px); font-weight: 800; line-height: 1.05; color: var(--ink); }
.vp small { font-size: calc(var(--k) * 22px); color: var(--muted); }
.vp-price {
  display: flex; align-items: baseline; gap: 8px; margin-top: calc(var(--k) * 10px);
  background: var(--accent); color: var(--accent-ink); border-radius: 14px;
  padding: calc(var(--k) * 8px) calc(var(--k) * 20px);
  font-size: calc(var(--k) * 48px); font-weight: 900; line-height: 1.1;
}
.vp-price small { font-size: calc(var(--k) * 22px); font-weight: 700; color: inherit; }
.v-info { display: flex; align-items: stretch; gap: 16px; margin-top: calc(var(--k) * 18px); }
.v-proc {
  flex: 0 0 auto; max-width: 40%; display: flex; align-items: center; gap: 14px;
  background: var(--accent); color: var(--accent-ink); border-radius: 20px;
  padding: calc(var(--k) * 18px) calc(var(--k) * 24px);
}
.v-proc svg { width: calc(var(--k) * 44px); height: calc(var(--k) * 44px); flex: none; }
.v-proc small { display: block; font-size: calc(var(--k) * 20px); font-weight: 600; }
.v-proc b { display: block; font-size: calc(var(--k) * 32px); font-weight: 800; line-height: 1.1; }
.v-docs {
  flex: 1; min-width: 0; background: var(--card); border: 2px solid var(--card-line); border-radius: 20px;
  padding: calc(var(--k) * 16px) calc(var(--k) * 22px);
}
.v-docs small { display: block; margin-bottom: 6px; font-size: calc(var(--k) * 20px); font-weight: 700; color: var(--muted); text-transform: uppercase; }
.v-docs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.v-docs li { display: flex; align-items: center; gap: 10px; font-size: calc(var(--k) * 24px); font-weight: 500; color: var(--text); }
.v-docs li svg { width: calc(var(--k) * 26px); height: calc(var(--k) * 26px); flex: none; }

/* tour package */
.t-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.t-price .pre { display: block; font-size: calc(var(--k) * 28px); font-weight: 600; color: var(--muted); text-transform: uppercase; }
.t-price .amt {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: calc(var(--k) * 150px); font-weight: 900; line-height: .95; color: var(--ink);
}
.t-price .amt small { font-size: .26em; font-weight: 800; margin-top: .22em; color: var(--accent); }
.light .t-price .amt small { color: #7357ec; }
.t-price .note { display: block; margin-top: 8px; font-size: calc(var(--k) * 28px); font-weight: 600; color: var(--muted); }
.t-dur {
  flex: none; max-width: 45%; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--accent); color: var(--accent-ink); border-radius: 24px;
  padding: calc(var(--k) * 20px) calc(var(--k) * 28px);
}
.t-dur small { font-size: calc(var(--k) * 20px); font-weight: 700; text-transform: uppercase; }
.t-dur b { font-size: calc(var(--k) * 42px); font-weight: 900; line-height: 1.1; }
.t-incl { display: flex; gap: 12px; margin-top: calc(var(--k) * 24px); }
.t-incl > div {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--card); border: 2px solid var(--card-line); border-radius: 20px;
  padding: calc(var(--k) * 16px) 6px;
}
.light .t-incl > div { box-shadow: 0 8px 24px rgba(58, 33, 163, .08); }
.t-incl svg { width: calc(var(--k) * 44px); height: calc(var(--k) * 44px); }
.t-incl span { font-size: calc(var(--k) * 20px); font-weight: 700; color: var(--ink); white-space: nowrap; }

/* formats */
.f-square .p-inner { padding: 56px 64px 44px; }
.f-square .p-logo { height: 60px; }
.f-square .p-rule { margin-top: 20px; }
.f-square .p-title { margin-top: calc(var(--k) * 36px); }
.f-square .p-h1 { font-size: calc(var(--k) * 80px); }
.f-square .p-sub { font-size: calc(var(--k) * 32px); }
.f-story .p-inner { padding: 120px 80px 110px; } /* keeps clear of the Instagram story UI */
.f-story .p-h1 { font-size: calc(var(--k) * 112px); }
.f-story .p-title { margin-top: calc(var(--k) * 80px); }

/* =============== A4 documents =============== */
.doc { position: relative; background: #fff; color: #1d1a2e; display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.45; }
.pg-body { flex: 1; min-height: 0; overflow: hidden; padding: 30px 48px 12px; }
.pg-body.first { padding-top: 0; }
.blk { margin-bottom: 20px; }
.doc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 48px 14px; border-bottom: 1.5px solid #e4e1ee;
}
.doc-head img { height: 32px; display: block; }
.doc-head div { text-align: right; }
.doc-head b { display: block; font-size: 14px; color: #3a21a3; }
.doc-head span { font-size: 11.5px; color: #6d6a7c; }
.doc-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 48px; background: #f3effd; color: #525060; font-size: 10.5px;
}
.doc-foot b { color: #3a21a3; }
.d-sec {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding-bottom: 7px;
  border-bottom: 1.5px solid #e4e1ee;
  font-size: 12.5px; font-weight: 800; color: #3a21a3; text-transform: uppercase; letter-spacing: .06em;
}

.th, .r { display: grid; column-gap: 12px; padding: 9px 12px; }
.th { background: #3a21a3; color: #fff; border-radius: 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.r { border-bottom: 1px solid #eeeaf7; align-items: start; }
.r:nth-child(even) { background: #faf8ff; }
.r b { font-weight: 600; }
.r small { display: block; color: #6d6a7c; font-size: 11px; }
.fl { grid-template-columns: 92px 1.3fr 1.1fr 70px 70px; }
.ht { grid-template-columns: 1.6fr 92px 92px 48px 1.2fr; }

/* itinerary */
.it-cover {
  position: relative; overflow: hidden; height: 290px; margin: 0 -48px;
  padding: 32px 48px 52px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 30% 15%, #6d4cf0 0%, #3a21a3 45%, #1a0d5c 100%);
  background-size: cover; background-position: center;
}
.it-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,8,74,.25) 0%, rgba(18,8,74,0) 40%, rgba(18,8,74,.35) 100%); }
.it-cover.has-photo .it-cover-shade { background: linear-gradient(180deg, rgba(18,8,74,.6) 0%, rgba(18,8,74,.1) 38%, rgba(18,8,74,.88) 100%); }
.it-cover-top, .it-cover-main { position: relative; }
.it-cover-top { display: flex; align-items: center; justify-content: space-between; }
.it-cover-top img { height: 40px; display: block; }
.it-cover-top span {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 6px 14px;
}
.it-ref { display: inline-block; background: #FFD60A; color: #1a0d5c; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.it-cover-main h1 { margin: 8px 0 0; font-size: 40px; line-height: 1.08; font-weight: 800; }
.it-cover-main p { margin: 8px 0 0; font-size: 17px; font-weight: 300; }
.it-meta {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px;
  margin: -34px 0 24px; padding: 16px 18px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(58, 33, 163, .14);
}
.it-meta span { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #6d6a7c; }
.it-meta b { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 700; }
.it-meta small { font-weight: 500; color: #6d6a7c; }

.it-day { margin-bottom: 10px; }
.it-day-row { display: flex; gap: 16px; }
.it-day-badge {
  flex: none; width: 58px; height: 58px; border-radius: 14px; background: #3a21a3; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.it-day-badge small { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.it-day-badge b { font-size: 22px; font-weight: 800; }
.it-day-main { flex: 1; min-width: 0; padding-bottom: 10px; border-bottom: 1px dashed #e4e1ee; }
.it-day.last .it-day-main { border-bottom: 0; padding-bottom: 0; }
.it-day-date { font-size: 11px; font-weight: 700; color: #6b4fe0; text-transform: uppercase; letter-spacing: .05em; }
.it-day-main h4 { margin: 2px 0 6px; font-size: 15.5px; font-weight: 700; }
.it-day-main ul { margin: 0; padding-left: 18px; }
.it-day-main li { margin: 2px 0; }
.it-day-main p { margin: 0; }
.it-meals { display: inline-block; margin-top: 7px; background: #f3effd; color: #3a21a3; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

.it-incl { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; align-items: flex-start; gap: 8px; margin: 5px 0; }
.ticks svg { flex: none; margin-top: 1px; }
.it-price {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(120deg, #3a21a3, #5b3fd6); color: #fff; border-radius: 14px; padding: 18px 22px;
}
.it-price span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.it-price b { font-size: 28px; font-weight: 800; }
.it-price p { margin: 0; max-width: 50%; text-align: right; font-size: 12.5px; }
.it-notes ul { margin: 0; padding-left: 18px; color: #525060; }
.it-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1.5px solid #e4e1ee; border-radius: 12px; padding: 10px 18px;
}
.it-contact > div:first-child span { display: block; font-size: 11px; color: #6d6a7c; }
.it-contact > div:first-child b { font-size: 15px; color: #3a21a3; }
.it-contact-r { display: flex; gap: 18px; font-size: 12px; }
.it-contact-r span { display: inline-flex; align-items: center; gap: 7px; }

/* invoice */
.inv-band { height: 10px; background: linear-gradient(90deg, #3a21a3, #7b5cff); }
.inv-top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 2px solid #3a21a3; }
.inv-brand img { height: 44px; display: block; margin-bottom: 12px; }
.inv-from { max-width: 340px; font-size: 11.5px; color: #525060; }
.inv-from b { display: block; margin-bottom: 2px; font-size: 13px; color: #1d1a2e; }
.inv-title { text-align: right; }
.inv-title h1 { margin: 0 0 10px; font-size: 34px; font-weight: 800; color: #3a21a3; text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.inv-meta { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 3px 14px; font-size: 12px; }
.inv-meta span { color: #6d6a7c; text-align: right; }
.inv-meta b { text-align: right; }
.inv-status { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.s-paid { background: #e3f5ec; color: #1f8a5b; }
.s-unpaid { background: #fdf0e1; color: #b8650a; }
.s-partially { background: #efebfc; color: #3a21a3; }
.lbl { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #3a21a3; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 22px; }
.inv-parties b { display: block; margin-bottom: 2px; font-size: 14.5px; }
.inv-parties div div { color: #525060; }
.inv-items .tx { grid-template-columns: 26px 1fr 40px 100px 48px 108px; }
.inv-items .nt { grid-template-columns: 26px 1fr 40px 110px 118px; }
.inv-items .th span:nth-child(n+3), .inv-items .r span:nth-child(n+3) { text-align: right; }
.inv-sum { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.inv-words div { margin-bottom: 12px; font-weight: 600; }
.inv-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; font-size: 13px; }
.inv-totals span { color: #525060; }
.inv-totals .grand { margin: 4px 0; padding: 10px 12px; border-radius: 8px; background: #3a21a3; color: #fff; font-size: 16px; }
.inv-totals .grand span { color: #fff; font-weight: 700; }
.inv-totals .due b { color: #3a21a3; font-size: 14px; }
.inv-bottom { display: grid; grid-template-columns: 1fr 220px; gap: 28px; padding-top: 18px; border-top: 1px solid #e4e1ee; font-size: 12px; }
.inv-bottom .lbl:not(:first-child) { margin-top: 14px; }
.inv-bank { display: grid; grid-template-columns: 100px 1fr; gap: 2px 10px; }
.inv-bank span { color: #6d6a7c; }
.inv-bottom ol { margin: 0; padding-left: 16px; color: #525060; }
.inv-bottom > div > div { color: #525060; }
.inv-sign { align-self: end; text-align: center; }
.inv-sign span { font-size: 11.5px; color: #6d6a7c; }
.inv-sign-space { height: 60px; margin: 8px 0; border-bottom: 1.5px solid #1d1a2e; }
.inv-sign b { display: block; }
.inv-sign small { color: #6d6a7c; }

/* ₹ and other single-character currency symbols */
.p-hero-amt small.one, .t-price .amt small.one { font-size: .5em; margin-top: .08em; }
.vp-price small.one { font-size: .85em; font-weight: 800; }

/* centred posters (greetings, testimonials) */
.poster.center .p-title, .poster.center .p-visual { text-align: center; }
.poster.center .p-eyebrow { align-self: center; }
.g-art svg, .r-mark svg { width: 100%; height: 100%; display: block; }
.g-msg { margin: 0 auto; max-width: 860px; text-align: center; font-size: calc(var(--k) * 38px); line-height: 1.35; color: var(--text); }
.g-sign { margin-top: calc(var(--k) * 18px); text-align: center; font-size: calc(var(--k) * 30px); font-weight: 700; color: var(--ink); }
.r-avatar-wrap { display: flex; align-items: center; justify-content: center; }
.r-avatar {
  width: 92%; aspect-ratio: 1; border-radius: 50%; background-size: cover; background-position: center;
  border: 10px solid var(--accent); box-shadow: 0 20px 50px rgba(10, 6, 40, .3);
}
.r-mark { margin: 0 auto; }
.r-card {
  background: var(--card); border: 2px solid var(--card-line); border-radius: 28px; text-align: center;
  padding: calc(var(--k) * 30px) calc(var(--k) * 40px);
}
.light .r-card { box-shadow: 0 14px 40px rgba(58, 33, 163, .12); }
.r-stars { display: flex; justify-content: center; gap: 6px; margin-bottom: calc(var(--k) * 16px); }
.r-stars svg { width: calc(var(--k) * 44px); height: calc(var(--k) * 44px); }
.r-quote { margin: 0; font-size: calc(var(--k) * 36px); line-height: 1.38; font-weight: 500; color: var(--text); }
.r-who { margin-top: calc(var(--k) * 20px); }
.r-who b { display: block; font-size: calc(var(--k) * 32px); font-weight: 800; color: var(--ink); }
.r-who span { display: block; margin-top: 4px; font-size: calc(var(--k) * 24px); color: var(--muted); }
.deco.g-art, .deco.r-avatar-wrap { aspect-ratio: 1; }
.deco.r-mark { aspect-ratio: 1.2; }

/* highlighted date (calendar tile beside the headline) */
.p-title-row { display: flex; align-items: flex-start; gap: 28px; }
.p-title-row .p-title { flex: 1; min-width: 0; }
.p-title-row .p-date { margin-top: calc(var(--k) * 54px); }
.f-square .p-title-row .p-date { margin-top: calc(var(--k) * 36px); }
.f-story .p-title-row .p-date { margin-top: calc(var(--k) * 80px); }
.poster.center .p-title-row { flex-direction: column; align-items: center; gap: 0; }
.poster.center .p-title-row .p-date { margin-top: calc(var(--k) * 22px); }
.p-date { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pd-label { font-size: calc(var(--k) * 22px); font-weight: 800; text-transform: uppercase; color: var(--ink); text-align: center; max-width: 230px; line-height: 1.15; }
.pd-cal {
  width: calc(var(--k) * 190px); border-radius: 22px; overflow: hidden; background: #fff; text-align: center;
  box-shadow: 0 16px 40px rgba(10, 6, 40, .28);
}
.pd-mon { background: var(--accent); color: var(--accent-ink); font-size: calc(var(--k) * 24px); font-weight: 800; padding: calc(var(--k) * 8px) 6px; }
.pd-day { font-size: calc(var(--k) * 92px); font-weight: 900; line-height: 1.05; color: #1a0d5c; padding-top: calc(var(--k) * 6px); }
.pd-day.range { font-size: calc(var(--k) * 54px); padding: calc(var(--k) * 16px) 0 calc(var(--k) * 14px); }
.pd-wd { font-size: calc(var(--k) * 20px); font-weight: 600; color: #525060; padding-bottom: calc(var(--k) * 12px); }
.light .pd-cal { box-shadow: 0 14px 36px rgba(58, 33, 163, .18); }

/* service posters */
.sv-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: calc(var(--k) * 18px); color: var(--muted); font-size: calc(var(--k) * 28px); font-weight: 600; }
.sv-price b { display: inline-flex; align-items: flex-start; gap: 8px; font-size: calc(var(--k) * 72px); font-weight: 900; line-height: 1; color: var(--ink); }
.sv-price b small { font-size: .4em; margin-top: .12em; color: var(--accent); }
.light .sv-price b small { color: #7357ec; }
.sv-items { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--k) * 14px); }
.sv-items > div {
  display: flex; align-items: center; gap: 14px; background: var(--card); border: 2px solid var(--card-line); border-radius: 18px;
  padding: calc(var(--k) * 14px) calc(var(--k) * 18px); font-size: calc(var(--k) * 27px); font-weight: 600; color: var(--text);
}
.light .sv-items > div { box-shadow: 0 8px 24px rgba(58, 33, 163, .08); }
.sv-items i { flex: none; display: grid; place-items: center; width: calc(var(--k) * 42px); height: calc(var(--k) * 42px); border-radius: 50%; background: var(--accent); }
.sv-items i svg { width: calc(var(--k) * 28px); height: calc(var(--k) * 28px); }
.sv-items.many > div { font-size: calc(var(--k) * 23px); }

/* receipt */
.rc-amount {
  margin: 6px 0 22px; padding: 22px 26px; border-radius: 14px; color: #fff;
  background: linear-gradient(120deg, #3a21a3, #5b3fd6);
}
.rc-amount span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.rc-amount b { display: block; font-size: 38px; font-weight: 800; margin: 4px 0; }
.rc-amount small { font-size: 13px; opacity: .9; }
.rc-info { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0 0 24px; font-size: 13.5px; }
.rc-info dt { color: #6d6a7c; }
.rc-info dd { margin: 0; font-weight: 600; }
.rc-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.rc-sum > div { border: 1.5px solid #e4e1ee; border-radius: 12px; padding: 12px 14px; }
.rc-sum span { display: block; font-size: 11px; color: #6d6a7c; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.rc-sum b { display: block; font-size: 17px; margin-top: 3px; }
.rc-sum .due b { color: #3a21a3; }
.rc-bottom { margin-top: 40px; }

/* travel date on each fare */
.fr-mid .fr-date {
  position: absolute; left: -20px; right: -20px; bottom: 100%; margin-bottom: 6px; text-align: center;
  font-size: calc(var(--k) * 21px); font-weight: 800; color: var(--accent); white-space: nowrap;
}
.light .fr-mid .fr-date { color: #7357ec; }
.p-hero-date {
  display: inline-flex; align-items: center; gap: 10px; margin-top: calc(var(--k) * 14px);
  background: var(--accent); color: var(--accent-ink); border-radius: 14px;
  padding: calc(var(--k) * 8px) calc(var(--k) * 18px); font-size: calc(var(--k) * 32px); font-weight: 800;
}
.p-hero-date svg { width: calc(var(--k) * 34px); height: calc(var(--k) * 34px); }

/* referral QR poster */
.deco.ref-qr { aspect-ratio: 0.82; display: flex; justify-content: center; }
.ref-card {
  width: 100%; height: 100%; background: #fff; border-radius: 44px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 6% 7%; box-shadow: 0 30px 70px rgba(10, 6, 40, .35); text-align: center;
}
.ref-card span { font-size: calc(var(--k) * 26px); font-weight: 600; color: #525060; }
.ref-card b { font-size: calc(var(--k) * 56px); font-weight: 900; color: #1a0d5c; margin: 4px 0 18px; }
.ref-img { width: 100%; aspect-ratio: 1; background-size: contain; background-position: center; background-repeat: no-repeat; image-rendering: pixelated;
  border: 6px solid #3a21a3; border-radius: 22px; }
.ref-card small { margin-top: 18px; font-size: calc(var(--k) * 26px); font-weight: 700; color: #3a21a3; }

/* UPI QR on invoices */
.inv-upi { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px; border: 1.5px solid #e4e1ee; border-radius: 10px; }
.inv-upi img { width: 96px; height: 96px; image-rendering: pixelated; }
.inv-upi span { font-size: 12px; color: #525060; }
.inv-upi b { color: #1d1a2e; }

/* leaderboard poster */
.lb-list { display: flex; flex-direction: column; gap: calc(var(--k) * 12px); margin-top: calc(var(--k) * 10px); }
.lb-row { display: flex; align-items: center; gap: 22px; background: var(--card); border: 2px solid var(--card-line); border-radius: 22px; padding: calc(var(--k) * 16px) calc(var(--k) * 24px); }
.light .lb-row { box-shadow: 0 8px 24px rgba(58, 33, 163, .08); }
.lb-rank { flex: none; width: calc(var(--k) * 64px); height: calc(var(--k) * 64px); border-radius: 50%; display: grid; place-items: center;
  font-size: calc(var(--k) * 32px); font-weight: 900; background: var(--card-line); color: var(--ink); }
.lb-who { flex: 1; min-width: 0; }
.lb-who b { display: block; font-size: calc(var(--k) * 36px); font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-who small { display: block; font-size: calc(var(--k) * 22px); color: var(--muted); }
.lb-val { font-size: calc(var(--k) * 34px); font-weight: 900; color: var(--accent); white-space: nowrap; }
.light .lb-val { color: #7357ec; }

/* payslip / P&L */
.ps-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; margin-top: 8px; }
.ps-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ps-tbl td { padding: 8px 4px; border-bottom: 1px solid #eeeaf7; }
.ps-tbl td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ps-net { margin-top: 16px; }
.pl-tbl tr.hd td { padding-top: 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #3a21a3; border-bottom: 1.5px solid #3a21a3; }
.pl-tbl tr.tot td { font-weight: 700; background: #faf8ff; }
.pl-tbl tr.net td { font-size: 18px; font-weight: 800; color: #fff; background: #3a21a3; padding: 12px 10px; }

/* ---------- ID cards (540 × 856 px = 54 × 85.6 mm) ---------- */
.idc { position: relative; overflow: hidden; background: #fff; font-family: 'Inter', sans-serif; color: #1d1a2e; border-radius: 0; }
.idc-top { height: 290px; background: linear-gradient(150deg, var(--c2), var(--c1)); display: flex; flex-direction: column; align-items: center; padding-top: 34px; gap: 12px; }
.idc-logo { height: 46px; }
.idc-top span { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .92; }
.idc-photo { position: absolute; top: 138px; left: 50%; margin-left: -154px; width: 308px; height: 308px; border-radius: 34px; border: 9px solid #fff;
  background: linear-gradient(150deg, var(--c2), var(--c1)); box-shadow: 0 12px 30px rgba(10, 6, 40, .25); overflow: hidden; display: grid; place-items: center; }
.idc-photo div { width: 100%; height: 100%; background-size: cover; background-position: center top; }
.idc-photo b { color: #fff; font-size: 104px; font-weight: 800; }
.idc-name { margin-top: 170px; text-align: center; font-size: 42px; font-weight: 800; line-height: 1.1; padding: 0 24px; }
.idc-title { text-align: center; font-size: 27px; font-weight: 700; color: var(--c1); margin-top: 8px; }
.idc-dept { display: table; margin: 12px auto 0; background: #f3f0fb; color: #525060; font-size: 20px; font-weight: 600; padding: 5px 16px; border-radius: 999px; }
.idc-grid { position: absolute; left: 30px; right: 30px; bottom: 70px; display: grid; grid-template-columns: 1.3fr .8fr 1.1fr; gap: 10px; border-top: 2px solid #eeeaf7; padding-top: 16px; }
.idc-grid span { display: block; font-size: 14px; color: #8a879a; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.idc-grid b { display: block; font-size: 19px; font-weight: 800; margin-top: 2px; white-space: nowrap; }
.idc-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(90deg, var(--c1), var(--c2)); color: #fff;
  font-size: 17px; font-weight: 600; display: grid; place-items: center; letter-spacing: .04em; }
.idc.back { display: flex; flex-direction: column; align-items: center; }
.idc-strip { width: 100%; height: 22px; background: linear-gradient(90deg, var(--c1), var(--c2)); flex: none; }
.idc-strip.bottom { position: absolute; bottom: 0; }
.idc-logo2 { height: 50px; margin-top: 30px; }
.idc-qr { margin-top: 26px; padding: 12px; border: 3px solid var(--c1); border-radius: 22px; }
.idc-qr img { width: 250px; height: 250px; display: block; image-rendering: pixelated; }
.idc-scan { margin-top: 10px; font-size: 17px; font-weight: 700; color: var(--c1); }
.idc-info { margin-top: 18px; display: flex; gap: 26px; }
.idc-info span { display: block; font-size: 13px; color: #8a879a; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; text-align: center; }
.idc-info b { display: block; font-size: 18px; text-align: center; }
.idc-note { margin: 16px 34px 0; font-size: 14px; line-height: 1.45; color: #525060; text-align: center; }
.idc-note b { color: #1d1a2e; }
.idc-sign { position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center; }
.idc-sign img { height: 46px; }
.idc-sign i { width: 200px; border-bottom: 2px solid #1d1a2e; height: 40px; }
.idc-sign span { font-size: 13px; color: #8a879a; margin-top: 4px; }

/* ---------- Letterhead ---------- */
.doc.lh { overflow: hidden; }
.lh-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 56px 18px; }
.lh-logo { height: 52px; }
.lh-co { text-align: right; font-size: 10.5px; color: #525060; line-height: 1.5; }
.lh-co b { display: block; font-size: 15px; color: #3a21a3; font-weight: 800; }
.lh-co span { display: block; }
.lh-rule { height: 4px; margin: 0 56px; border-radius: 2px; background: linear-gradient(90deg, #3a21a3, #7b5cff 60%, #d9a521); }
.lh-mark { position: absolute; left: 50%; top: 52%; width: 360px; margin-left: -180px; transform: translateY(-50%); opacity: .045; pointer-events: none; }
.lh-body { position: relative; padding: 26px 56px 16px; font-size: 13px; line-height: 1.65; color: #1d1a2e; }
.lh-meta { display: flex; justify-content: space-between; margin-bottom: 18px; font-size: 12.5px; color: #525060; }
.lh-meta b { color: #1d1a2e; }
.lh-to { margin-bottom: 16px; }
.lh-to span { display: block; color: #525060; }
.lh-to b { display: block; font-size: 14px; }
.lh-subject { margin-bottom: 14px; padding: 8px 12px; background: #f5f3fc; border-left: 3px solid #3a21a3; border-radius: 4px; }
.lh-p { margin: 0 0 12px; text-align: justify; }
.lh-close { margin-top: 18px; }
.lh-close > div { margin-bottom: 2px; }
.lh-sigrow { display: flex; align-items: center; gap: 18px; min-height: 70px; margin: 6px 0; }
.lh-sig { height: 60px; }
.lh-sig-space { height: 60px; width: 180px; }
.lh-seal { height: 86px; opacity: .9; }
.lh-close b { display: block; }
.lh-close span { color: #525060; font-size: 12px; }
.lh-small { margin-top: 12px; font-size: 11.5px; color: #525060; }
.lh-foot { display: flex; justify-content: space-between; gap: 16px; padding: 12px 56px; font-size: 10px; color: #fff;
  background: linear-gradient(90deg, #2a1690, #3a21a3 50%, #5b3fd6); }
.lh-foot b { color: #fff; }

/* ---------- Certificate (A4 landscape) ---------- */
.cert { background: #fff; font-family: 'Inter', sans-serif; padding: 26px; }
.cert-frame { height: 100%; border: 10px solid #3a21a3; padding: 8px; background: linear-gradient(135deg, #fffaf0, #fff 40%, #f7f4ff); }
.cert-inner { position: relative; height: 100%; border: 2px solid #d9a521; display: flex; flex-direction: column; align-items: center; padding: 30px 70px 26px; text-align: center; overflow: hidden; }
.cert-mark { position: absolute; width: 420px; top: 50%; left: 50%; margin: -210px 0 0 -210px; opacity: .04; }
.cert-logo { height: 54px; }
.cert-title { margin-top: 22px; font-size: 40px; font-weight: 800; color: #3a21a3; letter-spacing: .06em; text-transform: uppercase; }
.cert-lead { margin-top: 10px; font-size: 16px; color: #8a6d1d; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cert-name { margin-top: 14px; font-family: 'Playfair Display', Georgia, serif; font-size: 54px; font-weight: 700; font-style: italic; color: #1d1a2e;
  border-bottom: 2px solid #d9a521; padding: 0 40px 6px; }
.cert-body { margin-top: 18px; max-width: 760px; font-size: 16px; line-height: 1.6; color: #3a3650; }
.cert-foot { margin-top: auto; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.cert-col { min-width: 150px; }
.cert-col span { display: block; font-size: 11px; color: #8a879a; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.cert-col b { display: block; font-size: 15px; margin-top: 3px; }
.cert-col.sig img { height: 56px; display: block; margin: 0 auto 2px; }
.cert-col.sig i { display: block; width: 190px; height: 50px; border-bottom: 2px solid #1d1a2e; margin: 0 auto 6px; }
.cert-seal { height: 110px; }
.cert-badge { width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, #f2cf5b, #c9971c); color: #fff; font-size: 46px;
  display: grid; place-items: center; box-shadow: 0 0 0 6px #fff, 0 0 0 9px #d9a521; }

/* ---------- Statements ---------- */
.st-party { margin: 18px 0 12px; font-size: 13px; line-height: 1.5; color: #525060; }
.st-party b { display: block; font-size: 16px; color: #1d1a2e; }
.st-party .lbl { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #8a879a; font-weight: 700; }
.st-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 18px; }
.st-sum div { background: #f6f4fd; border-radius: 10px; padding: 10px 12px; }
.st-sum span { display: block; font-size: 10.5px; color: #8a879a; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.st-sum b { display: block; font-size: 16px; margin-top: 2px; color: #1d1a2e; }
.st-sum .due { background: #3a21a3; } .st-sum .due span { color: rgba(255,255,255,.75); } .st-sum .due b { color: #fff; }
.st-row { display: grid; grid-template-columns: 82px 108px 1fr 96px 96px 104px; gap: 8px; padding: 7px 4px; font-size: 11.5px; border-bottom: 1px solid #eeeaf7; align-items: start; }
.st-row span:nth-child(n+4) { text-align: right; font-variant-numeric: tabular-nums; }
.st-head { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8a879a; border-bottom: 2px solid #3a21a3; }
.st-open, .st-close { font-weight: 700; background: #faf9ff; }
.st-3 { grid-template-columns: 82px 1fr 110px; } .st-3 span:nth-child(3) { text-align: right; }
.st-3 span:nth-child(n+4) { text-align: left; }
.st-b2b { grid-template-columns: 82px 1fr 92px 46px 92px 64px; }
.st-b2b span:nth-child(2) { text-align: left; } .st-b2b span:nth-child(n+3) { text-align: right; }
.st-h { margin: 20px 0 6px; font-size: 13px; color: #3a21a3; }
.pg-body > p.note { margin-top: 16px; }
