/* ================================================
   VISHWOKARMA LABS — Paper Minimal Theme
   ================================================ */

/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper:      #f6f6f4;
  --paper-mid:  #ececea;
  --paper-deep: #dededd;
  --ink:        #1a1a1a;
  --ink-muted:  #505050;
  --ink-faint:  #b0b0b0;
  --white:      #ffffff;
  --rule:       rgba(0,0,0,0.08);
  --shadow:     rgba(0,0,0,0.07);
  --line-clr:   rgba(0,0,0,0.055);
  --margin-clr: rgba(0,0,0,0.18);
  --line-h:     32px;

  --mono: 'Patrick Hand', sans-serif;
  --sans: 'Patrick Hand', sans-serif;

  --nav-h: 60px;
  --max-w: 1180px;
  --t: 0.22s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.75;
  background-color: var(--paper);
  background-image:
    /* pencil margin line */
    linear-gradient(90deg,
      transparent 79px,
      var(--margin-clr) 79px,
      var(--margin-clr) 80px,
      transparent 80px
    ),
    /* ruled lines */
    repeating-linear-gradient(180deg,
      transparent 0px,
      transparent calc(var(--line-h) - 1px),
      var(--line-clr) calc(var(--line-h) - 1px),
      var(--line-clr) var(--line-h)
    ),
    /* paper grain */
    url('assets/paper-texture.jpg');
  background-size: 100% var(--line-h), 100% var(--line-h), 600px 600px;
  background-attachment: local, local, scroll;
}

h1, h2, h3, h4 {
  font-family: 'Patrick Hand', sans-serif; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.01em;
  filter: url('#f-pencil');
}
p { color: var(--ink-muted); line-height: 1.75; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-style: solid; text-underline-offset: 3px; }
img { display: block; max-width: 100%; filter: grayscale(100%); }
video { filter: grayscale(100%); }

/* background-image containers — event cards, episode thumbs, os-card thumbs */
.event-card__media,
.ep__thumb,
.os-card__thumb { filter: grayscale(100%); }

/* ─── PAPER GRAIN ─── */
.grain { display: none; }

/* ─── LAYOUT ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Patrick Hand', sans-serif; font-size: 16px; font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 26px; border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background var(--t), color var(--t), box-shadow var(--t);
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.12);
  text-decoration: none;
  filter: url('#f-rough');
}
.btn:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.15);
  text-decoration: none;
}
.btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 rgba(0,0,0,0.12); }

.btn--ink   { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: transparent; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { border-color: rgba(255,255,255,0.55); color: var(--white); box-shadow: 2px 2px 0 rgba(255,255,255,0.1); }
.btn--light:hover { background: var(--white); color: var(--ink); }

.btn--sm { padding: 9px 18px; font-size: 16px; }
.btn--block { width: 100%; }

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════
   NAVIGATION
════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 800;
  overflow: visible;
  transition: background var(--t), border-color var(--t), filter var(--t);
}
/* torn paper nav — floats above page like a ripped sheet */
.nav.scrolled {
  background: var(--paper);
  border-bottom: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.13));
}
.nav.scrolled::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 16px;
  pointer-events: none;
  background: var(--paper);
  clip-path: polygon(
    0% 0%,100% 0%,
    100% 62%,98.5% 100%,97% 58%,95.5% 100%,94% 72%,92.5% 42%,
    91% 100%,89.5% 65%,88% 100%,86.5% 70%,85% 95%,83.5% 100%,
    82% 60%,80.5% 100%,79% 78%,77.5% 100%,76% 52%,74.5% 100%,
    73% 66%,71.5% 90%,70% 100%,68.5% 55%,67% 100%,65.5% 74%,
    64% 100%,62.5% 60%,61% 95%,59.5% 100%,58% 52%,56.5% 100%,
    55% 68%,53.5% 100%,52% 76%,50.5% 52%,49% 100%,47.5% 65%,
    46% 100%,44.5% 80%,43% 58%,41.5% 100%,40% 70%,38.5% 100%,
    37% 52%,35.5% 90%,34% 100%,32.5% 62%,31% 100%,29.5% 76%,
    28% 100%,26.5% 60%,25% 95%,23.5% 100%,22% 55%,20.5% 100%,
    19% 70%,17.5% 100%,16% 52%,14.5% 90%,13% 100%,11.5% 62%,
    10% 100%,8.5% 76%,7% 100%,5.5% 58%,4% 100%,2.5% 70%,
    1% 95%,0% 62%
  );
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* LOGO IMAGE */
.logo-mark {
  width: 36px;
  height: 36px;

}

.nav__logo:hover .logo-mark {
  transform: scale(1.05);
}
/* TEXT NEXT TO LOGO */
.logo-name {
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-family: 'Patrick Hand', sans-serif; font-size: 16px; letter-spacing: 0.02em;
  text-transform: none; color: var(--ink-muted);
  position: relative; transition: color var(--t);
  text-decoration: none;
}

.nav__links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

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

.icon-btn, .cart-toggle {
  background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--ink); display: flex;
  align-items: center; justify-content: center;
  position: relative;
}

.cart-badge {
  position: absolute; top: 3px; right: 3px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t);
}
.cart-badge.show { opacity: 1; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: all 0.25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════════
   CART DRAWER
════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 850; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.show { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 360px; background: var(--paper);
  border-left: 1px solid var(--rule);
  z-index: 860;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer__head h3 { font-size: 16px; letter-spacing: 0.02em; }

.cart-drawer__body {
  flex: 1; overflow-y: auto;
  padding: 20px 24px;
}

.cart-empty {
  font-family: var(--mono); font-size: 16px;
  color: var(--ink-faint); text-align: center;
  margin-top: 60px; letter-spacing: 0;
}

.cart-item {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-family: var(--mono); font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.cart-item__price { font-family: var(--mono); font-size: 16px; color: var(--ink-muted); }

.cart-item__qty { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 22px; height: 22px; border: 1px solid var(--ink);
  background: none; cursor: pointer;
  font-family: var(--mono); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t);
}
.qty-btn:hover { background: var(--ink); color: var(--paper); }
.qty-num { font-family: var(--mono); font-size: 16px; width: 20px; text-align: center; }

.cart-item__del { background: none; border: none; cursor: pointer; color: var(--ink-faint); font-size: 16px; padding: 4px; transition: color var(--t); }
.cart-item__del:hover { color: var(--ink); }

.cart-drawer__foot {
  padding: 20px 24px;
  border-top: 1px solid var(--rule);
  display: none;
}
.cart-row {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  margin-bottom: 14px;
}

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.hero__eyebrow {
  font-family: var(--mono); font-size: 16px;
  letter-spacing: 0.04em; text-transform: none;
  color: var(--ink-faint); margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero__slogan {
  font-family: var(--mono); font-style: italic;
  font-size: clamp(18px, 2.2vw, 28px);
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.hero__desc {
  max-width: 420px; font-size: 16px;
  margin-bottom: 36px;
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__scroll-hint {
  position: absolute; bottom: 28px; right: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.03em;
  color: var(--ink-faint); text-transform: none;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--ink-faint), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ─── TICKER ─── */
.ticker {
  background: var(--ink);
  overflow: hidden;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker__track {
  display: flex; gap: 40px; align-items: center;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker__track span {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: none;
  color: rgba(255,255,255,0.65); white-space: nowrap; flex-shrink: 0;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ════════════════════════════════════
   SECTIONS — shared
════════════════════════════════════ */
.section { padding: 100px 0; }

.section--dark {
  /* heavy pencil scribble fill — cross-hatch shading */
  background-color: #111;
  background-image:
    repeating-linear-gradient(
      -52deg,
      transparent 0px, transparent 5px,
      rgba(255,255,255,0.025) 5px, rgba(255,255,255,0.025) 6px
    ),
    repeating-linear-gradient(
      42deg,
      transparent 0px, transparent 8px,
      rgba(255,255,255,0.015) 8px, rgba(255,255,255,0.015) 9px
    );
}
.section--dark p { color: rgba(255,255,255,0.50); }


.section--ruled {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section__tag {
  display: block;
  font-family: var(--mono); font-size: 16px;
  letter-spacing: 0.03em; text-transform: none;
  color: var(--ink-faint); margin-bottom: 14px;
}
.section__tag--light { color: rgba(255,255,255,0.35); }

.section__title { font-size: clamp(30px, 4vw, 48px); margin-bottom: 20px; }
.section__title--light { color: var(--paper); }

.section__sub {
  max-width: 560px; font-size: 16px;
  margin-bottom: 52px;
}

/* ════════════════════════════════════
   ABOUT
════════════════════════════════════ */
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}

.about__left h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 24px; }
.about__left h2 em { font-style: italic; }
.about__left p { margin-bottom: 16px; font-size: 16px; }
.about__links { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.text-link {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  letter-spacing: 0; text-transform: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  transition: opacity var(--t); display: inline-flex; align-items: center; gap: 4px;
}
.text-link:hover { opacity: 0.55; text-decoration: none; }

.about__pillars { border-top: 1px solid var(--rule); }
.pillar {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.pillar__n {
  font-family: var(--mono); font-size: 16px;
  color: var(--ink-faint); flex-shrink: 0; padding-top: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 36px;
}
.pillar__icon { color: var(--ink); display: block; }
.pillar__text { font-family: var(--mono); font-size: 16px; color: var(--ink); line-height: 1.5; }

/* ════════════════════════════════════
   OPEN SOURCE SECTION
════════════════════════════════════ */
.opensource {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1.5px solid var(--ink);
}
.opensource__head { max-width: 640px; margin-bottom: 40px; }
.opensource__head h3 { font-size: 28px; margin-bottom: 12px; }
.opensource__head p { font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.opensource__links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.opensource__invite {
  font-family: var(--mono); font-size: 15px;
  color: var(--ink-faint); font-style: italic;
}
.opensource__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.os-card {
  border: 1.5px solid rgba(0,0,0,0.18);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.09);
  filter: url('#f-rough');
  background: var(--paper);
  overflow: hidden;
}
.os-card__thumb {
  height: 160px;
  background: var(--paper-mid) center/cover no-repeat;
}
.os-card__body { padding: 20px 22px; }
.os-card__body h4 { font-size: 20px; margin-bottom: 8px; }
.os-card__body > p { font-size: 15px; margin-bottom: 16px; }
.os-card__bom { margin-bottom: 16px; }
.bom__label {
  display: block; font-size: 13px; color: var(--ink-faint);
  margin-bottom: 6px; border-bottom: 1px solid var(--rule); padding-bottom: 4px;
}
.bom__list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.bom__list li { font-size: 14px; color: var(--ink-muted); }
.bom__list strong { color: var(--ink); }
.os-card__actions {
  display: flex; align-items: center; gap: 16px;
  padding-top: 14px; border-top: 1px solid var(--rule);
}
.os-play { width: 34px; height: 34px; flex-shrink: 0; }
.os-card__play-label { font-size: 14px; color: var(--ink-muted); flex: 1; }
.os-gh-link { font-size: 14px; }

/* ════════════════════════════════════
   SERVICE CARD IMAGE SLOT — top-right corner
════════════════════════════════════ */
.service-card__img-wrap {
  position: absolute;
  top: 20px; right: 20px;
  width: 88px; height: 88px;
}
.service-card__img {
  width: 88px; height: 88px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.14);
  display: block;
  filter: grayscale(100%);
}
.service-card__img-placeholder {
  width: 88px; height: 88px;
  border: 1.5px dashed rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-faint);
}

/* ════════════════════════════════════
   SERVICES
════════════════════════════════════ */
.services__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 12px;
}

/* sticky notes pinned onto dark scribbled paper */
.service-card {
  padding: 36px 120px 36px 32px; /* right gap holds the image */
  background: var(--paper);
  border: 1.5px solid rgba(0,0,0,0.25);
  box-shadow: 3px 4px 0 rgba(0,0,0,0.35), 6px 7px 0 rgba(0,0,0,0.12);
  filter: url('#f-rough');
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
  /* slight alternating tilt for hand-pinned look */
  transform: rotate(-0.6deg);
}
.service-card:nth-child(2n) { transform: rotate(0.5deg); }
.service-card:nth-child(3)  { transform: rotate(0.7deg); }
.service-card:nth-child(4)  { transform: rotate(-0.4deg); }
.service-card:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 4px 6px 0 rgba(0,0,0,0.30), 8px 10px 0 rgba(0,0,0,0.08);
}

/* pencil-ruled lines inside each card */
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px, transparent 27px,
    rgba(0,0,0,0.05) 27px, rgba(0,0,0,0.05) 28px
  );
  pointer-events: none;
}

.service-card__icon { margin-bottom: 16px; color: var(--ink-faint); position: relative; }
.service-card__label {
  display: block; font-family: 'Patrick Hand', sans-serif; font-size: 16px;
  color: var(--ink-faint); margin-bottom: 8px; position: relative;
}
.service-card h3 { font-size: 22px; color: var(--ink); margin-bottom: 12px; line-height: 1.2; position: relative; }
.service-card p { font-size: 16px; line-height: 1.7; color: var(--ink-muted); position: relative; }

/* ════════════════════════════════════
   EVENTS
════════════════════════════════════ */
.events__grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 16px; margin-bottom: 32px;
}
.events__side { display: flex; flex-direction: column; gap: 16px; }

.event-card {
  border: 1.5px solid rgba(0,0,0,0.18);
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.09);
  filter: url('#f-rough');
  transition: box-shadow var(--t), transform var(--t);
}
.event-card:hover {
  box-shadow: 5px 5px 0 rgba(0,0,0,0.12);
  transform: translate(-2px,-2px);
}

.event-card__media {
  background: var(--paper-mid);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.event-card__media--lg { height: 340px; }
.event-card__media--sm { height: 100px; }

.media-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center; padding: 12px;
}
.mp__label {
  font-family: var(--mono); font-size: 16px;
  letter-spacing: 0.02em; color: var(--ink-faint);
  text-transform: none;
}
.mp__title {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  color: var(--ink); line-height: 1.2;
}

.event-card__overlay {
  position: absolute; inset: 0;
  background: rgba(17,17,17,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
}
.event-card--featured:hover .event-card__overlay { opacity: 1; }

.event-card__info { padding: 14px 16px; }
.event-tag {
  font-family: var(--mono); font-size: 16px;
  letter-spacing: 0.01em; text-transform: none;
  color: var(--ink-faint); display: block; margin-bottom: 5px;
}
.event-card__info h4 { font-size: 16px; line-height: 1.3; }

.events__footer {
  display: flex; align-items: center;
  gap: 20px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--rule);
}
.events__footer p { font-family: var(--mono); font-size: 16px; color: var(--ink-muted); margin: 0; }
.events__social { display: flex; gap: 10px; }

.social-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Patrick Hand', sans-serif; font-size: 16px; font-weight: 700;
  border: 1.5px solid var(--ink); padding: 8px 16px;
  transition: background var(--t), color var(--t);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.08);
  color: var(--ink); text-decoration: none;
}
.social-pill:hover { background: var(--ink); color: var(--white); text-decoration: none; }

/* ════════════════════════════════════
   PODCAST
════════════════════════════════════ */
.podcast__list { border-top: 1px solid var(--rule); margin-bottom: 32px; }

.ep {
  display: grid; grid-template-columns: 120px 64px 1fr auto;
  gap: 20px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
  transition: background var(--t);
}

.ep__thumb {
  width: 120px; height: 68px;
  background: var(--paper-mid) center/cover no-repeat;
  flex-shrink: 0;
}
.ep:hover {
  background: rgba(0,0,0,0.03);
  padding-left: 10px; padding-right: 10px;
  margin: 0 -10px; width: calc(100% + 20px);
}

.ep__num {
  font-family: var(--mono); font-size: 16px;
  letter-spacing: 0.01em; color: var(--ink-faint); text-align: center;
}
.ep__body h4 { font-size: 16px; margin-bottom: 5px; }
.ep__body p {
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep__body p.ep--expanded {
  display: block;
  overflow: visible;
}
.ep__read-more {
  display: inline-block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.ep__meta { display: flex; align-items: center; gap: 12px; }
.ep__dur { font-family: var(--mono); font-size: 16px; letter-spacing: 0; color: var(--ink-faint); }

.play-btn {
  width: 40px; height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;          /* hand-drawn circle */
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t), transform var(--t);
  flex-shrink: 0;
  filter: url('#f-rough');     /* wobbly circle edge */
}
.play-btn:hover,
.play-btn.playing { background: var(--ink); color: var(--paper); transform: scale(1.05); }
.play-icon { font-size: 16px; margin-left: 3px; }
.play-btn.playing .play-icon { margin-left: 0; font-size: 16px; }

.podcast__foot { display: flex; gap: 16px; flex-wrap: wrap; }

/* ════════════════════════════════════
   VIDEO MODAL
════════════════════════════════════ */
.video-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 900; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.video-backdrop.show { opacity: 1; pointer-events: all; }

.video-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(860px, 92vw);
  z-index: 910; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.video-modal.show {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.video-modal__wrap {
  position: relative; padding-bottom: 56.25%;
  background: #000;
}
.video-modal__wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
.video-modal__close {
  position: absolute; top: -36px; right: 0;
  background: none; border: none;
  color: #fff; font-size: 18px; cursor: pointer;
  font-family: var(--mono); opacity: 0.7;
  transition: opacity 0.2s;
}
.video-modal__close:hover { opacity: 1; }

/* ════════════════════════════════════
   SHOP
════════════════════════════════════ */
.shop__filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 36px; padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.filter-btn {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  letter-spacing: 0.01em; text-transform: none;
  padding: 8px 16px; border: 1px solid var(--rule);
  background: none; color: var(--ink-muted); cursor: pointer;
  transition: all var(--t);
}
.filter-btn:hover,
.filter-btn.active { border-color: var(--ink); color: var(--ink); background: var(--paper-mid); }

.shop__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--rule); gap: 1px;
}

.product-card {
  background: var(--paper); padding: 20px;
  display: flex; flex-direction: column;
  border: 1.5px solid rgba(0,0,0,0.12);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.07);
  filter: url('#f-rough');
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.product-card:hover {
  background: var(--paper-mid);
  transform: translate(-1px,-2px);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.10);
}

.product-thumb {
  aspect-ratio: 1; background: var(--paper-mid);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.product-thumb span {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  letter-spacing: 0.01em; color: var(--ink-faint);
}

.prod-cat {
  font-family: var(--mono); font-size: 16px;
  letter-spacing: 0.02em; text-transform: none;
  color: var(--ink-faint); margin-bottom: 5px;
}
.prod-name {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  line-height: 1.35; margin-bottom: 8px;
}
.prod-price {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  margin-bottom: 14px; margin-top: auto;
}

.prod-add {
  width: 100%; font-family: var(--mono); font-size: 16px;
  font-weight: 700; letter-spacing: 0.01em; text-transform: none;
  padding: 10px; border: 1.5px solid var(--ink);
  background: none; cursor: pointer;
  transition: background var(--t), color var(--t);
}
.prod-add:hover,
.prod-add.added { background: var(--ink); color: var(--paper); }

/* ════════════════════════════════════
   CONTACT
════════════════════════════════════ */
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}

.contact__tagline {
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--paper); font-style: italic;
  margin-bottom: 40px; line-height: 1.2;
}

.contact__meta { display: flex; flex-direction: column; gap: 20px; }
.contact__row { display: flex; flex-direction: column; gap: 4px; }
.clabel {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.16em;
  text-transform: none; color: rgba(255,255,255,0.35);
}
.contact__row span:not(.clabel) { font-size: 16px; color: rgba(255,255,255,0.65); }
.contact__row a { font-size: 16px; color: var(--paper); border-bottom: 1px solid rgba(242,237,227,0.2); display: inline; transition: border-color var(--t); }
.contact__row a:hover { border-color: var(--paper); }

.contact__form { display: flex; flex-direction: column; gap: 18px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.02em;
  text-transform: none; color: rgba(255,255,255,0.35);
}
.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(242,237,227,0.12);
  padding: 12px 14px; font-family: var(--sans); font-size: 16px;
  color: var(--paper); outline: none; resize: vertical;
  transition: border-color var(--t);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(242,237,227,0.2); }
.form-field input:focus,
.form-field textarea:focus { border-color: rgba(242,237,227,0.35); }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.footer__logo {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  letter-spacing: 0.01em; color: var(--paper);
}
.footer__slogan {
  font-family: var(--mono); font-size: 16px; font-style: italic;
  color: rgba(242,237,227,0.35);
}
.footer__copy {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0;
  color: rgba(255,255,255,0.25);
}

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 16px; letter-spacing: 0;
  padding: 12px 24px; opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none; z-index: 1000; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════
   AUTH MODAL
════════════════════════════════════ */
.auth-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 880; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.auth-backdrop.show { opacity: 1; pointer-events: all; }

/* Desktop: centered card */
.auth-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(92vw, 440px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  z-index: 890;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  filter: url('#f-rough');
  overscroll-behavior: contain;
}
.auth-modal.show {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

/* Mobile: bottom sheet */
@media (max-width: 600px) {
  .auth-modal {
    top: auto; left: 0; right: 0; bottom: 0;
    transform: translateY(100%);
    width: 100%;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }
  .auth-modal.show {
    transform: translateY(0);
  }
  /* drag handle indicator */
  .auth-modal::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    border-radius: 2px;
    background: rgba(0,0,0,0.15);
    margin: 12px auto 0;
  }
}

.auth-modal__close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(0,0,0,0.06); border: none; cursor: pointer;
  font-size: 18px; color: var(--ink);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  z-index: 10;
}
.auth-modal__close:hover { background: rgba(0,0,0,0.12); }

.auth-modal__tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0 24px;
  margin-top: 16px;
}

.auth-tab-btn {
  flex: 1; padding: 14px 0;
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
  transition: all var(--t);
}
.auth-tab-btn.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.auth-tab-content {
  display: none;
  padding: 28px 24px 32px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.auth-tab-content.active {
  display: block;
  opacity: 1;
}
.auth-tab-content h2 {
  font-size: 19px; margin-bottom: 22px;
  text-align: center;
}

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

.form-group {
  display: flex; flex-direction: column; gap: 5px;
}
.form-group label {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-faint); letter-spacing: 0.02em;
}
.form-group input {
  padding: 11px 13px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 8px;
  font-family: var(--sans); font-size: 16px;
  background: var(--paper);
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}
.form-group input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.auth-hint {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-faint); text-align: center;
  margin-top: 8px;
}
.switch-tab {
  background: none; border: none; cursor: pointer;
  color: var(--ink); font-weight: 700;
  text-decoration: underline; font-family: inherit;
  font-size: inherit;
}
.switch-tab:hover { opacity: 0.7; }

/* ════════════════════════════════════
   USER MENU
════════════════════════════════════ */
.nav__auth { display: flex; gap: 8px; }
.nav__user {
  position: relative;
}

.user-btn {
  color: var(--ink);
}

.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--paper);
  border: 1.5px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 900;
  min-width: 160px;
  filter: url('#f-rough');
}

.user-menu__user {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-family: var(--mono); font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.user-menu__item {
  display: block; width: 100%;
  padding: 12px 16px;
  background: none; border: none;
  font-family: var(--mono); font-size: 14px;
  color: var(--ink-muted);
  cursor: pointer;
  text-align: left;
  transition: background var(--t), color var(--t);
}
.user-menu__item:hover {
  background: var(--paper-mid);
  color: var(--ink);
}

/* ════════════════════════════════════
   BUTTON VARIANTS
════════════════════════════════════ */
.btn--sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
  display: flex;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--outline:hover {
  background: var(--paper-mid);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
}
.btn--ink:hover {
  background: var(--ink-muted);
  border-color: var(--ink-muted);
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1024px) {
  .shop__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; }
  .service-card:nth-child(3),
  .service-card:nth-child(4) { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .service-card:last-child { border-bottom: none; }
  .events__grid { grid-template-columns: 1fr; }
  .event-card__media--lg { height: 220px; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .shop__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }

  .nav__links {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    flex-direction: column; padding: 20px 24px;
    gap: 18px; align-items: flex-start;
  }
  .nav__links.open { display: flex; }
  .hamburger { display: flex; }
  .logo-name { display: none; }

  .hero__title { font-size: clamp(52px, 16vw, 100px); }

  .ep { grid-template-columns: 80px 40px 1fr auto; gap: 10px; }
  .ep__thumb { width: 80px; height: 45px; }

  .cart-drawer { width: 100%; border-left: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .shop__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { text-align: center; }
  .podcast__foot .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  .scroll-line { animation: none; }
}

/* ════════════════════════════════════
   CHECKOUT MODAL
════════════════════════════════════ */
.checkout-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.checkout-backdrop.show { opacity: 1; pointer-events: auto; }

.checkout-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(.97);
  z-index: 1101;
  background: var(--bg, #faf9f6);
  border: 2px solid var(--ink, #1a1a1a);
  border-radius: 12px;
  padding: 36px 32px 32px;
  width: min(520px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 6px 6px 0 var(--ink, #1a1a1a);
}
.checkout-modal.show {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.checkout-modal__close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  font-size: 1.2rem; cursor: pointer;
  color: var(--ink, #1a1a1a); line-height: 1; padding: 4px;
}
.checkout-modal__close:hover { opacity: .6; }
.checkout-title { font-size: 1.4rem; margin-bottom: 6px; color: var(--ink, #1a1a1a); }
.checkout-sub   { color: var(--muted, #666); margin-bottom: 20px; font-size: .95rem; }

.co-options { display: flex; flex-direction: column; gap: 12px; }
.co-option {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: none; border: 2px solid var(--ink, #1a1a1a);
  border-radius: 10px; cursor: pointer; text-align: left;
  font-family: inherit; color: var(--ink, #1a1a1a);
  transition: background .15s;
}
.co-option:hover { background: var(--ink, #1a1a1a); color: #fff; }
.co-option--wa   { border-color: #25d366; color: #25d366; }
.co-option--wa:hover { background: #25d366; color: #fff; }
.co-option__icon { font-size: 1.6rem; flex-shrink: 0; }
.co-option__text { display: flex; flex-direction: column; gap: 2px; }
.co-option__text strong { font-size: .95rem; }
.co-option__text span   { font-size: .82rem; opacity: .75; }

.co-summary {
  background: var(--surface, #f0ede6);
  border: 1.5px solid var(--border, #d9d5cc);
  border-radius: 8px; padding: 14px 16px;
  margin-bottom: 18px; font-size: .9rem;
}
.co-summary-item {
  display: flex; justify-content: space-between;
  padding: 4px 0; border-bottom: 1px dashed var(--border, #d9d5cc);
}
.co-summary-item:last-child { border-bottom: none; }
.co-summary-total {
  display: flex; justify-content: space-between;
  font-weight: bold; padding-top: 8px; margin-top: 4px; font-size: 1rem;
}
.co-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.co-pay-label   { font-size: .88rem; font-weight: bold; margin-bottom: 10px; color: var(--ink, #1a1a1a); }
.co-pay-methods { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.co-pay-btn {
  flex: 1; min-width: 100px; padding: 12px 10px;
  border: 2px solid var(--ink, #1a1a1a); border-radius: 8px;
  background: none; cursor: pointer; font-family: inherit;
  font-size: .88rem; font-weight: bold;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, color .15s, border-color .15s;
  color: var(--ink, #1a1a1a);
}
.co-pay-btn--khalti.selected,
.co-pay-btn--khalti:hover { background: #5c2d91; border-color: #5c2d91; color: #fff; }
.co-pay-btn--esewa.selected,
.co-pay-btn--esewa:hover  { background: #60bb46; border-color: #60bb46; color: #fff; }
.co-pay-btn--wa.selected,
.co-pay-btn--wa:hover     { background: #25d366; border-color: #25d366; color: #fff; }
.co-pay-logo {
  width: 20px; height: 20px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .8rem;
}
.co-pay-btn--khalti .co-pay-logo { background: #5c2d91; color: #fff; }
.co-pay-btn--esewa  .co-pay-logo { background: #60bb46; color: #fff; }
.co-pay-btn.selected .co-pay-logo { background: rgba(255,255,255,.25); color: #fff; }
.co-pay-hint { font-size: .82rem; color: var(--muted, #666); min-height: 18px; margin-bottom: 16px; }
.co-submit { margin-top: 4px; }
.co-submit:disabled { opacity: .45; cursor: not-allowed; }
.co-err { color: #dc2626; font-size: .85rem; margin-top: 8px; min-height: 18px; }

/* ════════════════════════════════════
   MY ORDERS MODAL
════════════════════════════════════ */
.myorders-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 1100; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.myorders-backdrop.show { opacity: 1; pointer-events: auto; }

.myorders-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(.97);
  z-index: 1101;
  background: var(--bg, #faf9f6);
  border: 2px solid var(--ink, #1a1a1a);
  border-radius: 12px;
  width: min(580px, calc(100vw - 32px));
  max-height: 85vh;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 6px 6px 0 var(--ink, #1a1a1a);
}
.myorders-modal.show {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.myorders-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 2px solid var(--border, #d9d5cc);
  flex-shrink: 0;
}
.myorders-head h2 { font-size: 1.2rem; }
.myorders-body { overflow-y: auto; padding: 16px 24px 24px; }

.mo-order {
  border: 1.5px solid var(--border, #d9d5cc);
  border-radius: 10px; margin-bottom: 14px; overflow: hidden;
}
.mo-order-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; padding: 12px 16px;
  background: var(--surface, #f0ede6);
  border-bottom: 1.5px solid var(--border, #d9d5cc);
  font-size: .85rem;
}
.mo-order-num  { font-weight: bold; font-size: .9rem; }
.mo-order-date { color: var(--muted, #666); }
.mo-badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: bold;
}
.mo-badge--paid      { background: #dcfce7; color: #166534; }
.mo-badge--pending   { background: #fef3c7; color: #92400e; }
.mo-badge--failed    { background: #fee2e2; color: #991b1b; }
.mo-badge--cancelled { background: #f3f4f6; color: #6b7280; }
.mo-badge--khalti    { background: #ede4f5; color: #5c2d91; }
.mo-badge--esewa     { background: #e8f5e2; color: #3a7a1e; }
.mo-badge--whatsapp  { background: #e2f8ea; color: #1a6e3a; }

.mo-items { padding: 12px 16px; font-size: .88rem; }
.mo-item  { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--border, #d9d5cc); }
.mo-item:last-child { border-bottom: none; }
.mo-total { display: flex; justify-content: space-between; font-weight: bold; padding-top: 10px; margin-top: 4px; }
.mo-empty { text-align: center; padding: 40px; color: var(--muted, #666); }

/* My Orders tabs */
.mo-tabs { display: flex; border-bottom: 2px solid var(--border, #d9d5cc); flex-shrink: 0; }
.mo-tab  { flex: 1; padding: 10px; background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; font-family: inherit; font-size: .9rem; color: var(--muted, #666); margin-bottom: -2px; }
.mo-tab.active { color: var(--ink, #1a1a1a); border-bottom-color: var(--ink, #1a1a1a); font-weight: bold; }
.mo-tab-panel  { overflow-y: auto; padding: 18px 24px 24px; flex: 1; min-height: 0; }

/* Overview stats */
.mo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.mo-stat  { background: var(--surface, #f0ede6); border-radius: 10px; padding: 14px 16px; }
.mo-stat__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #888; margin-bottom: 4px; }
.mo-stat__val   { font-size: 1.5rem; font-weight: bold; }

/* Spending chart */
.mo-chart-wrap   { margin-bottom: 18px; height: 160px; position: relative; }
.mo-chart-label  { font-size: .8rem; color: #888; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }

/* Platform breakdown */
.mo-platform-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mo-plat-card { flex: 1; min-width: 100px; border: 2px solid var(--border, #d9d5cc); border-radius: 10px; padding: 12px 14px; }
.mo-plat-card__name { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #888; margin-bottom: 4px; }
.mo-plat-card__val  { font-size: 1.1rem; font-weight: bold; }
.mo-plat-card__sub  { font-size: .75rem; color: #aaa; }
.mo-plat-card--khalti   { border-left: 4px solid #5c2d91; }
.mo-plat-card--esewa    { border-left: 4px solid #60bb46; }
.mo-plat-card--whatsapp { border-left: 4px solid #25d366; }

/* ════════════════════════════════════
   USER MENU — PROFILE LINK
════════════════════════════════════ */
.user-menu__profile-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  background: none; border: none; cursor: pointer;
  font-family: inherit; color: var(--ink, #1a1a1a);
  padding: 6px 0; width: 100%; text-align: left;
  border-radius: 6px;
  transition: background .15s;
}
.user-menu__profile-btn:hover { background: var(--surface, #f0ede6); padding-left: 4px; }
.user-menu__profile-btn span:first-child { font-weight: bold; font-size: .95rem; }
.user-menu__profile-hint { font-size: .74rem; color: var(--muted, #888); margin-top: 1px; }

/* ════════════════════════════════════
   PROFILE MODAL
════════════════════════════════════ */
.profile-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1200; opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.profile-backdrop.show { opacity: 1; pointer-events: all; }

.profile-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(92vw, 480px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--paper, #f6f6f4);
  border: 2px solid var(--ink, #1a1a1a);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink, #1a1a1a);
  z-index: 1201;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.profile-modal.show { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }

.profile-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 2px solid var(--border, #d9d5cc);
}
.profile-head h2 { font-size: 1.15rem; }

.profile-body { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 24px; }

.profile-avatar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--surface, #f0ede6);
  border-radius: 10px;
}
.profile-avatar svg { flex-shrink: 0; stroke: var(--ink, #1a1a1a); }
.profile-display-name { font-weight: bold; font-size: 1.05rem; }
.profile-display-email { font-size: .83rem; color: var(--muted, #666); margin-top: 2px; }

.profile-form { display: flex; flex-direction: column; gap: 14px; }
.profile-form h3 { font-size: 1rem; margin-bottom: 2px; border-bottom: 1.5px solid var(--border, #d9d5cc); padding-bottom: 8px; }
.profile-msg { font-size: .85rem; min-height: 20px; padding: 4px 0; }
.profile-msg.ok  { color: #166534; }
.profile-msg.err { color: #dc2626; }

@media (max-width: 600px) {
  .profile-modal {
    top: auto; left: 0; right: 0; bottom: 0;
    transform: translateY(100%);
    width: 100%; max-height: 94dvh;
    border-radius: 20px 20px 0 0; border-bottom: none;
  }
  .profile-modal.show { transform: translateY(0); }
}

/* ════════════════════════════════════
   TOOLS SECTION
════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.tool-card {
  border: 2px solid var(--ink, #1a1a1a);
  border-radius: 12px;
  padding: 24px 22px;
  cursor: pointer;
  transition: box-shadow .18s, transform .18s;
  background: var(--paper, #f6f6f4);
  display: flex; flex-direction: column; gap: 10px;
  filter: url('#f-rough');
}
.tool-card:hover { box-shadow: 5px 5px 0 var(--ink, #1a1a1a); transform: translate(-2px,-2px); }
.tool-card__icon { font-size: 2rem; line-height: 1; }
.tool-card__name { font-size: 1.1rem; font-weight: bold; }
.tool-card__desc { font-size: .88rem; color: var(--muted, #666); flex: 1; }

/* ════════════════════════════════════
   QR GENERATOR MODAL
════════════════════════════════════ */
.qr-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1200; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.qr-backdrop.show { opacity: 1; pointer-events: all; }

.qr-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(92vw, 820px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--paper, #f6f6f4);
  border: 2px solid var(--ink, #1a1a1a);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink, #1a1a1a);
  z-index: 1201;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex; flex-direction: column;
}
.qr-modal.show { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }

.qr-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 2px solid var(--border, #d9d5cc);
  flex-shrink: 0;
}
.qr-modal__head h2 { font-size: 1.15rem; }

.qr-modal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1; min-height: 0;
}

.qr-left {
  padding: 22px 24px;
  border-right: 2px solid var(--border, #d9d5cc);
  display: flex; flex-direction: column; gap: 16px;
  overflow-y: auto;
}
.qr-right {
  padding: 22px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.qr-field { display: flex; flex-direction: column; gap: 6px; }
.qr-field label { font-size: .82rem; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; color: var(--ink, #1a1a1a); }
.qr-field input[type="text"],
.qr-field input[type="url"] {
  width: 100%; padding: 8px 12px;
  border: 1.5px solid var(--border, #d9d5cc);
  border-radius: 8px; font-family: inherit; font-size: .9rem;
  background: var(--paper, #f6f6f4); color: var(--ink, #1a1a1a);
  transition: border-color .15s;
}
.qr-field input[type="text"]:focus,
.qr-field input[type="url"]:focus { outline: none; border-color: var(--ink, #1a1a1a); }
.qr-field input[type="range"] { width: 100%; accent-color: var(--ink, #1a1a1a); }

.qr-color-row { display: flex; align-items: center; gap: 10px; }
.qr-color-row input[type="color"] {
  width: 40px; height: 36px; border: 1.5px solid var(--border, #d9d5cc);
  border-radius: 6px; cursor: pointer; padding: 2px;
  background: none;
}
.qr-color-hex { font-size: .85rem; font-family: monospace; color: var(--muted, #666); }

.qr-transparent-row { display: flex; align-items: center; gap: 8px; }
.qr-transparent-row label { display: flex; align-items: center; gap: 6px; font-size: .88rem; text-transform: none; letter-spacing: 0; font-weight: normal; cursor: pointer; }
.qr-transparent-row input[type="checkbox"] { accent-color: var(--ink, #1a1a1a); width: 15px; height: 15px; }

.qr-logo-area {
  border: 1.5px dashed var(--border, #d9d5cc);
  border-radius: 8px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.qr-logo-drop {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: 6px;
  background: var(--surface, #f0ede6);
  font-size: .85rem; color: var(--muted, #666);
  cursor: pointer; position: relative; overflow: hidden;
}
.qr-logo-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.qr-pos-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; margin-top: 4px;
}
.qr-pos-btn {
  padding: 7px 6px; font-size: .78rem; font-family: inherit;
  border: 1.5px solid var(--border, #d9d5cc);
  border-radius: 6px; cursor: pointer;
  background: none; color: var(--ink, #1a1a1a);
  transition: all .15s; text-align: center;
}
.qr-pos-btn:hover,
.qr-pos-btn.active { background: var(--ink, #1a1a1a); color: #fff; border-color: var(--ink, #1a1a1a); }
.qr-pos-center { grid-column: 1 / -1; }
.qr-remove-logo {
  font-size: .78rem; background: none; border: none;
  color: #dc2626; cursor: pointer; font-family: inherit;
  padding: 0; text-decoration: underline;
  align-self: flex-start;
}

.qr-preview-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 1.5px dashed var(--border, #d9d5cc);
  border-radius: 10px; min-height: 200px;
  background: repeating-conic-gradient(#ccc 0% 25%, transparent 0% 50%) 0 0 / 16px 16px;
  position: relative; overflow: hidden;
}
.qr-preview-wrap canvas { max-width: 100%; height: auto; border-radius: 4px; }
.qr-preview-empty { font-size: .85rem; color: #aaa; text-align: center; padding: 20px; }

.qr-err { font-size: .82rem; color: #dc2626; min-height: 18px; }

@media (max-width: 640px) {
  .qr-modal__body { grid-template-columns: 1fr; }
  .qr-left { border-right: none; border-bottom: 2px solid var(--border, #d9d5cc); }
}
