/* My Uni Club Wallet — the web page "/" only (body.home). Its own theme: a bronze-and-gold coin (never another app's colours).
   ~1280px wide, nothing overlaps, it narrows step by step, never a horizontal scroll (UMR-004 §4 v1.6). */
body.home {
  --tk-deep: #3d1d06; --tk-bronze: #7a3e0c; --tk-amber: #b45f10; --tk-gold: #f2b322; --tk-gold-2: #ffd766;
  --tk-cream: #fff8ea; --tk-paper: #fffdf8; --tk-ink: #2b1a0c; --tk-muted: #6e5a46; --tk-line: #ecdcc2;
  --tk-in: #1f7a3f; --tk-out: #b3261e;
  background: var(--tk-cream); color: var(--tk-ink);
}
@media (prefers-color-scheme: dark) {
  body.home { --tk-cream: #17110b; --tk-paper: #20180f; --tk-ink: #f6ead8; --tk-muted: #c8b49b; --tk-line: #3c2e1f; --tk-in: #6fd394; --tk-out: #ff8a80; }
}
body.home a { color: var(--tk-amber); }
body.home .top a.brand, body.home .home-nav a, body.home .top a.who { color: #fff; }
body.home .muted { color: var(--tk-muted); }

/* top bar: bronze, tagline under the name, section links in the middle */
body.home .top { background: linear-gradient(90deg, var(--tk-deep), var(--tk-bronze)); box-shadow: 0 2px 10px rgba(61, 29, 6, .25); }
body.home .top-in { gap: 14px; }
body.home .brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
body.home .brand-tag { color: var(--tk-gold-2); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.home .brand img { background: var(--tk-gold); }
.home-nav { display: flex; gap: 4px; margin-left: 6px; }
.home-nav a { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem; white-space: nowrap; opacity: .92; }
.home-nav a:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
body.home .top .free-login { background: var(--tk-gold); color: var(--tk-deep); border-color: var(--tk-gold); font-weight: 800; }
@media (max-width: 1040px) { .home-nav { display: none; } }
@media (max-width: 520px) { body.home .brand-tag { display: none; } body.home .top-in { gap: 6px; } }

body.home .wrap { padding-top: 0; }
.home-page { display: flex; flex-direction: column; gap: 0; }

/* buttons */
.home-page .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; }
.home-page .btn-gold { background: var(--tk-gold); color: var(--tk-deep); border-color: var(--tk-gold); }
.home-page .btn-gold:hover { background: var(--tk-gold-2); }
.home-page .btn-line { color: #fff; border-color: rgba(255, 255, 255, .7); }
.home-page .btn-line:hover { background: rgba(255, 255, 255, .1); }
.home-page .is-soon { cursor: default; opacity: .95; }
.soon-tag { font-size: .72rem; font-weight: 800; background: var(--tk-deep); color: var(--tk-gold-2); padding: 2px 8px; border-radius: 99px; }

/* hero: deep bronze with a gold glow, the sample Token Card on the right */
.h-hero { margin: 18px 0 0; padding: 44px 44px 48px; border-radius: 28px; color: #fff; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; align-items: center;
  background: radial-gradient(circle at 85% 20%, rgba(255, 215, 102, .35), transparent 45%), linear-gradient(135deg, var(--tk-deep) 0%, var(--tk-bronze) 60%, var(--tk-amber) 100%); }
.h-badge { display: inline-block; margin: 0 0 16px; padding: 5px 14px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 215, 102, .55); font-weight: 700; font-size: .9rem; }
.h-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.01em; }
.h-hero h1 .gold { color: var(--tk-gold-2); }
.h-lead { font-size: 1.08rem; line-height: 1.6; margin: 0 0 22px; color: #fdf0dc; max-width: 640px; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.h-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.h-ticks li { color: #fdf0dc; font-weight: 600; }
.h-ticks li::before { content: '✓'; color: var(--tk-gold-2); font-weight: 900; margin-right: 6px; }

.tk-card { background: var(--tk-paper); color: var(--tk-ink); border-radius: 22px; padding: 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); border: 2px solid var(--tk-gold); min-width: 0; }
.tk-card-top { display: flex; align-items: center; gap: 12px; }
.tk-card-top > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tk-card-top small { color: var(--tk-muted); font-size: .8rem; overflow-wrap: anywhere; }
.coin { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 1.6rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--tk-gold-2), var(--tk-gold) 60%, var(--tk-amber)); }
.pill-sample { font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: var(--tk-deep); color: var(--tk-gold-2); white-space: nowrap; }
.tk-name { font-weight: 800; font-size: 1.15rem; margin: 14px 0 2px; }
.tk-contact { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 12px; color: var(--tk-muted); font-size: .88rem; }
.tk-balance { background: linear-gradient(135deg, var(--tk-gold-2), var(--tk-gold)); color: var(--tk-deep); border-radius: 14px; padding: 10px 14px; }
.tk-balance small { font-weight: 700; }
.tk-balance p { margin: 0; }
.tk-balance strong { font-size: 2rem; }
.tk-recent { margin: 14px 0 6px; font-weight: 700; font-size: .9rem; color: var(--tk-muted); }
.tk-rows { list-style: none; margin: 0; padding: 0; }
.tk-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--tk-line); font-size: .92rem; }
.tk-rows b.in { color: var(--tk-in); }
.tk-rows b.out { color: var(--tk-out); }
.tk-foot { margin: 12px 0 0; text-align: center; font-size: .8rem; font-weight: 700; color: var(--tk-amber); }

/* four true facts */
.h-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: -26px 28px 0; position: relative; }
.stat { background: var(--tk-paper); border: 1px solid var(--tk-line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 8px 22px rgba(61, 29, 6, .1); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat strong { font-size: 1.9rem; color: var(--tk-amber); line-height: 1.1; }
.stat span { color: var(--tk-muted); font-size: .92rem; }

/* sections */
.h-sec { padding: 52px 0 8px; }
.h-sec.band { margin-top: 44px; padding: 40px 28px 34px; border-radius: 26px; background: linear-gradient(135deg, rgba(242, 179, 34, .16), rgba(180, 95, 16, .1)); border: 1px solid var(--tk-line); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.eyebrow { margin: 0 0 6px; color: var(--tk-amber); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.sec-head h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); margin: 0 0 8px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feat, .step { background: var(--tk-paper); border: 1px solid var(--tk-line); border-radius: 18px; padding: 20px; min-width: 0; }
.feat h3, .step h3 { margin: 10px 0 6px; font-size: 1.08rem; }
.feat p, .step p { margin: 0; color: var(--tk-muted); }
.ico { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.45rem; border-radius: 14px; background: linear-gradient(135deg, var(--tk-gold-2), var(--tk-gold)); }
.steps .num { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--tk-bronze); color: var(--tk-gold-2); font-weight: 900; }
.rules { max-width: 900px; margin: 0 auto; padding: 0; list-style: none; counter-reset: r; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rules li { counter-increment: r; background: var(--tk-paper); border: 1px solid var(--tk-line); border-left: 5px solid var(--tk-gold); border-radius: 12px; padding: 12px 14px 12px 48px; position: relative; }
.rules li::before { content: counter(r); position: absolute; left: 14px; top: 11px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--tk-deep); color: var(--tk-gold-2); font-weight: 800; font-size: .85rem; }
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--tk-paper); border: 1px solid var(--tk-line); border-radius: 14px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--tk-muted); }
.h-cta { margin: 52px 0 0; padding: 32px 36px; border-radius: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: #fff; background: linear-gradient(135deg, var(--tk-bronze), var(--tk-deep)); }
.h-cta h2 { margin: 0 0 6px; font-size: 1.6rem; }
.h-cta p { margin: 0; color: #fdf0dc; }
body.home .club-box { background: var(--tk-paper); border-color: var(--tk-line); color: var(--tk-ink); }
body.home .club-app { border-color: var(--tk-line); color: var(--tk-ink); }
body.home .pill.live { background: var(--tk-bronze); border-color: var(--tk-bronze); }

/* narrower: step by step */
@media (max-width: 1000px) {
  .h-hero { grid-template-columns: minmax(0, 1fr); padding: 32px 26px 40px; }
  .tk-card { max-width: 460px; }
  .grid.g4, .h-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .h-hero { padding: 24px 18px 34px; border-radius: 20px; margin-top: 12px; }
  .h-stats { margin: -18px 8px 0; gap: 10px; }
  .stat { padding: 12px; }
  .stat strong { font-size: 1.5rem; }
  .grid.g3, .grid.g4, .rules { grid-template-columns: minmax(0, 1fr); }
  .h-sec { padding-top: 40px; }
  .h-sec.band { padding: 30px 14px 24px; }
  .h-cta { padding: 24px 20px; }
  .home-page .btn { padding: 11px 16px; }
}
.h-android { margin: 16px 0 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px dashed rgba(255, 215, 102, .6); color: #fdf0dc; font-weight: 700; }
/* UMR-004 v3.6: Urdu, Kashmiri, Sindhi right to left */
[dir=rtl] .h-ticks li::before { margin: 0 0 0 6px; }
[dir=rtl] .rules li { padding: 12px 48px 12px 14px; border-left: 1px solid var(--tk-line); border-right: 5px solid var(--tk-gold); }
[dir=rtl] .rules li::before { left: auto; right: 14px; }
.tk-card-top small, .tk-contact span, .tk-name, .ids code { direction: ltr; unicode-bidi: isolate; }

/* UMR-005 v2.2 §5 (Web Admin part 2): the hero photo on "/", links to the new web pages, and the page /p/<name>/ */
.h-photo { margin: 8px auto 20px; max-width: 1280px; }
.h-photo img { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 18px; }
.web-links { display: flex; flex-wrap: wrap; gap: 10px; }
.web-page { max-width: 860px; margin: 0 auto; }
.web-page h1 { margin: 8px 0 12px; line-height: 1.2; }
.web-page .lead { font-size: 1.1rem; }
.web-sec { margin: 22px 0; }
.web-photo { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: 14px; margin: 10px 0; }
.web-page p { line-height: 1.6; overflow-wrap: anywhere; }
.web-page { padding-top: 12px; }
.web-page a.btn-uni, .web-links a.btn-uni { color: #fff; }

/* UMR-005 v2.6 §1 1a: My Uni Club Wallet's own "live Token Card" — half-moving parts (JS adds .is-alive; still without it) */
.tk-rot { display: inline-block; transition: opacity .35s ease, transform .35s ease; }
.tk-rot.out { opacity: 0; transform: translateY(-6px); }
.is-alive .coin { animation: tk-coin 6s ease-in-out infinite; }
@keyframes tk-coin { 0%, 70%, 100% { transform: rotateY(0); } 80% { transform: rotateY(180deg); } 90% { transform: rotateY(360deg); } }
.is-alive .tk-rows li { animation: tk-row .55s ease both; animation-delay: calc(.6s + var(--i, 0) * .45s); }
@keyframes tk-row { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.is-alive .tk-card { animation: tk-float 7s ease-in-out infinite; }
@keyframes tk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.tk-strip { margin: 18px 0 0; overflow: hidden; border-radius: 14px; background: var(--tk-paper); border: 1px solid var(--tk-line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tk-strip-track { display: flex; width: max-content; }
.is-alive .tk-strip-track { animation: tk-strip 50s linear infinite; }
.tk-strip:hover .tk-strip-track { animation-play-state: paused; }
@keyframes tk-strip { to { transform: translateX(-50%); } }
[dir=rtl] .is-alive .tk-strip-track { animation-direction: reverse; }
.tk-strip-set { display: flex; gap: 10px; margin: 0; padding: 10px 5px; list-style: none; }
.tk-strip-set li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--tk-line); font-size: .92rem; color: var(--tk-ink); }
.tk-strip-set b { color: #1f7a4d; }
.tk-strip-set i { font-style: normal; }
@media (prefers-reduced-motion: reduce) {
  .is-alive .coin, .is-alive .tk-rows li, .is-alive .tk-card, .is-alive .tk-strip-track { animation: none; }
  .tk-rot { transition: none; }
}
