/* SawalAI — dark indigo/violet theme, mobile-first */
:root {
  --bg: #0d0d1a;
  --bg2: #12122a;
  --card: #1a1a32;
  --line: #2b2b4d;
  --text: #f1f1fa;
  --muted: #a7a7c8;
  --indigo: #6366f1;
  --violet: #a855f7;
  --grad: linear-gradient(135deg, #6366f1, #a855f7);
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  background:
    linear-gradient(rgba(13, 13, 26, 0.85), rgba(13, 13, 26, 0.9)),
    url("bg.jpg") center top / cover no-repeat fixed,
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}
a { color: #b9bdfc; }
img, svg { vertical-align: middle; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.35rem; flex-shrink: 0; }
.brand span { white-space: nowrap; }
.nav-links { display: flex; gap: 16px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 1024px) {
  .nav { padding: 12px 14px; }
  .nav-links { gap: 10px; overflow-x: auto; scrollbar-width: none; max-width: 78vw; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 0.85rem; }
}
/* PQA-nav 2026-10-12: desktop nav overflow band extended — scrollable at ALL widths >=1025px, koi link remove nahi (was capped at 1700px, which left ~1701-1745px clipping right-side controls since html{overflow-x:clip}) */
@media (min-width: 1025px) {
  .nav-links { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .nav-links::-webkit-scrollbar { display: none; }
  /* PQA-nav 2026-10-11: More dropdown open ho to scroll-clip hatao taake menu nazar aaye */
  .nav-links:has(.nav-drop.open) { overflow: visible; }
}
/* PQA-nav 2026-10-12 04:34: laptop/desktop widths par hidden scrollbar ko thin visible scrollbar mein badlo taake clip hue nav links discoverable rahen — layout change nahi */
@media (min-width: 1025px) {
  .nav-links { scrollbar-width: thin; scrollbar-color: #6366f1 transparent; }
  .nav-links::-webkit-scrollbar { display: block; height: 4px; }
  .nav-links::-webkit-scrollbar-thumb { background: #6366f1; border-radius: 4px; }
  .nav-links::-webkit-scrollbar-track { background: transparent; }
}
/* ---------- mobile hamburger menu ---------- */
.nav-toggle { display: none; }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; font-size: 1.35rem; line-height: 1; background: rgba(99,102,241,.16); border: 1px solid rgba(99,102,241,.45); border-radius: 12px; color: #fff; cursor: pointer; flex: 0 0 auto; }
  .nav-links { display: none; }
  body.nav-open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(13,13,26,.98); backdrop-filter: blur(10px); padding: 8px 20px 18px; gap: 0; max-width: none; overflow: visible; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.5); z-index: 30; max-height: 70vh; overflow-y: auto; }
  body.nav-open .nav-links a { font-size: 1rem; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.07); white-space: normal; }
  /* bigger tap targets on mobile */
  .ent-pill { min-height: 42px; }
  .chip { min-height: 42px; }
  .theme-toggle, #nav-search-btn { width: 42px; height: 42px; }
  .t-fav, .tool-fav { min-width: 42px; min-height: 42px; }
  .tr-modal-close, .svc-modal-close, .tm-modal-close, .num-modal-close { width: 42px; height: 42px; }
  .btn-sm { min-height: 42px; }
  /* readable minimum text on mobile */
  .t-desc, .t-count, .spd-retest, .msvc p, .lang-pill, .ent-card .ecat { font-size: 12.5px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 40px 20px 30px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(99, 102, 241, 0.25), transparent),
    radial-gradient(600px 300px at 80% 10%, rgba(168, 85, 247, 0.22), transparent);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(13, 13, 26, 0.55), rgba(13, 13, 26, 0.78));
}
.hero > *:not(.hero-video):not(.hero-shade) { position: relative; z-index: 2; }
.badge {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--indigo);
  color: #c9ccff; margin-bottom: 12px;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 rgba(99,102,241,0); transform: scale(1); }
  50% { box-shadow: 0 0 22px rgba(99,102,241,.55); transform: scale(1.04); }
}
.hero h1 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 10px; }
.hero .btn { padding: 10px 20px; font-size: 0.92rem; }
.grad {
  background: linear-gradient(110deg, #6366f1 20%, #a855f7 40%, #e9b8ff 50%, #a855f7 60%, #6366f1 80%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift { to { background-position: 220% center; } }
/* ---------- hero entrance (staggered fade-in-up; ends at natural state) ---------- */
.hero .badge, .hero h1, .hero .sub, .hero .hero-search,
.hero .site-search-wrap, .hero .cta-row, .hero .cat-pills, .hero .stats {
  animation: heroIn .7s cubic-bezier(.22,.61,.36,1) backwards;
}
.hero .badge { animation: heroIn .7s cubic-bezier(.22,.61,.36,1) backwards, badgePulse 3s ease-in-out infinite; }
.hero h1 { animation-delay: .08s; }
.hero .sub { animation-delay: .16s; }
.hero .hero-search { animation-delay: .24s; }
.hero .site-search-wrap { animation-delay: .3s; }
.hero .cta-row { animation-delay: .36s; }
.hero .cat-pills { animation-delay: .42s; }
.hero .stats { animation-delay: .48s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .badge { animation: badgePulse 3s ease-in-out infinite; }
  .hero h1, .hero .sub, .hero .hero-search,
  .hero .site-search-wrap, .hero .cta-row, .hero .cat-pills, .hero .stats { animation: none; }
}
.sub { color: var(--muted); max-width: 560px; margin: 0 auto 18px; font-size: 0.98rem; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.stats { display: flex; gap: 28px; justify-content: center; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 1.25rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 0.85rem; }

/* ---------- sections / cards ---------- */
.section { padding: 44px 20px; max-width: 1020px; margin: 0 auto; }
/* MThink1 P3 2026-10-11: mobile par sections ke darmiyan khaali jagah kam (additive) */
@media (max-width: 768px) { .section { padding: 30px 16px; } .section,.trend-sec { scroll-margin-top: 76px; } }
.section h2 { text-align: center; font-size: 1.7rem; margin-bottom: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.steps, .grid { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: 1fr; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- chat ---------- */
.chat-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px; margin-top: 20px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.key-panel { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.key-status { font-size: 0.9rem; margin-bottom: 10px; color: var(--muted); }
.key-status.ok { color: #7ef0a0; }
.key-row { display: flex; gap: 8px; flex-wrap: wrap; }
.key-row input {
  flex: 1; min-width: 200px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 10px 14px; font-size: 0.9rem;
}
.tiny { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--indigo); color: #c9ccff;
  border-radius: 999px; padding: 7px 15px; font-size: 0.85rem; cursor: pointer;
}
.chip:hover { background: rgba(99, 102, 241, 0.25); }
.chat-box {
  min-height: 220px; max-height: 380px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 6px 2px; margin-bottom: 12px;
}
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; white-space: pre-wrap; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.loading { color: var(--muted); font-style: italic; }
.msg.error { border-color: #f87171; color: #fca5a5; }
.chat-form { display: flex; gap: 8px; }
.chat-form input {
  flex: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; color: var(--text); padding: 12px 18px; font-size: 0.95rem;
}
.chat-form input:focus { outline: none; border-color: var(--indigo); }

/* ---------- articles ---------- */
.article-card { text-decoration: none; color: var(--text); display: block; transition: transform 0.15s, border-color 0.15s; }
.article-card:hover { transform: translateY(-3px); border-color: var(--indigo); }
.art-emoji { font-size: 2rem; margin-bottom: 10px; }
.article-card h3 { margin-bottom: 6px; }
.article-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.read { color: #b9bdfc; font-weight: 700; font-size: 0.9rem; }

/* ---------- faq ---------- */
.faq-item { margin-bottom: 12px; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.faq-item[open] summary::before { content: "− "; }
.faq-item p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

/* ---------- article pages ---------- */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 36px 20px 20px; }
.article-wrap .art-emoji { font-size: 3rem; }
.article-wrap h1 { font-size: 1.9rem; margin: 12px 0 6px; }
.meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }
.article-body h2 { font-size: 1.3rem; margin: 28px 0 10px; color: #c9ccff; }
.article-body p, .article-body li { color: #d7d7e8; margin-bottom: 12px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body b, .article-body strong { color: #fff; }
.cta-box {
  margin: 32px 0; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(168,85,247,0.18));
  border: 1px solid var(--indigo); text-align: center;
}
.cta-box p { margin-bottom: 14px; }
.back-link { display: inline-block; margin: 10px 0 30px; text-decoration: none; }

/* ---------- footer ---------- */
footer { text-align: center; padding: 34px 20px 44px; border-top: 1px solid var(--line); color: var(--muted); }
footer .tiny { max-width: 640px; margin: 10px auto 0; }

/* ---------- desktop ---------- */
@media (min-width: 700px) {
  .hero h1 { font-size: 2.6rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 24px; }
}

/* Videos section */
.video-card { padding: 12px; }
.video-card video { width: 100%; border-radius: 10px; display: block; background: #000; }
.video-card .caption { margin: 10px 4px 2px; font-size: 0.95rem; color: var(--muted); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- card hover ---------- */
.card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
a.card:hover, .card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(99, 102, 241, 0.18); border-color: rgba(99, 102, 241, 0.45); }

/* ---------- back to top ---------- */
#toTop {
  position: fixed; left: 14px; bottom: 72px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: #fff;
  font-size: 1.3rem; cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { border-color: rgba(99, 102, 241, 0.6); }

/* ---------- share rail ---------- */
#share-rail {
  position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 60;
  display: none; flex-direction: column; gap: 10px;
}
@media (min-width: 1100px) { #share-rail { display: flex; } }
.sh {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); color: #fff;
  text-decoration: none; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.sh:hover { transform: scale(1.12); border-color: rgba(99, 102, 241, 0.6); }
.sh-fb { font-family: sans-serif; }

/* ---------- nav/footer links ---------- */
.nav-links a, footer a { color: inherit; }
footer a { text-decoration: underline; }

/* ---------- article search ---------- */
.search-wrap { position: relative; max-width: 520px; margin: 18px auto 0; }
#article-search {
  width: 100%; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: #fff; font-size: 1rem;
}
#article-search:focus { outline: none; border-color: rgba(99, 102, 241, 0.7); }
.search-results {
  position: absolute; top: 110%; left: 0; right: 0; z-index: 50;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); text-align: left;
}
.sr-item { display: flex; gap: 10px; align-items: center; padding: 10px 14px; text-decoration: none; color: inherit; }
.sr-item:hover { background: rgba(99, 102, 241, 0.12); }
.sr-lang {
  flex: none; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  background: rgba(99, 102, 241, 0.2); border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 6px; padding: 2px 7px; color: #c7c9ff;
}
.sr-title { font-size: 0.92rem; }
.sr-empty { padding: 14px; color: var(--muted); font-size: 0.9rem; text-align: center; }

.article-hero{width:100%;max-height:380px;object-fit:cover;border-radius:12px;margin:0 0 1.2rem}
.card-thumb{width:100%;height:150px;object-fit:cover;border-radius:8px;margin-bottom:.6rem}

/* ---------- Read in Your Language: compact cards, more per row, always 3D ---------- */
#languages .grid { gap: 12px; }
#languages .article-card { padding: 10px; }
#languages .art-emoji { font-size: 1.4rem; margin-bottom: 6px; }
#languages .article-card h3 { font-size: .95rem; margin-bottom: 4px; }
#languages .article-card p { font-size: .8rem; margin-bottom: 6px; }
#languages .read { font-size: .8rem; }
#languages .card-thumb {
  height: 120px; margin-bottom: .5rem;
  transform-style: preserve-3d; will-change: transform;
  animation: pic3d 9s ease-in-out infinite;
}
#languages .article-card:nth-child(2) .card-thumb { animation-delay: -1.5s; }
#languages .article-card:nth-child(3) .card-thumb { animation-delay: -3s; }
#languages .article-card:nth-child(4) .card-thumb { animation-delay: -4.5s; }
#languages .article-card:nth-child(5) .card-thumb { animation-delay: -6s; }
#languages .article-card:nth-child(6) .card-thumb { animation-delay: -7.5s; }
#languages .article-card:hover .card-thumb { animation-play-state: paused; }
@media (min-width: 700px) { #languages .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { #languages .grid { grid-template-columns: repeat(5, 1fr); } }
/* lang pages: same responsive grid as #languages (lang-*.html uses id="articles", not id="languages") */
#articles .grid { gap: 12px; }
@media (min-width: 700px) { #articles .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { #articles .grid { grid-template-columns: repeat(5, 1fr); } }
@media (prefers-reduced-motion: reduce) { #languages .card-thumb { animation: none; } }

/* ---------- cinematic upgrades ---------- */
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1 !important; pointer-events: none; }
.hero > #starfield { position: absolute; }

/* marquee / running text strip */
.marquee { overflow: hidden; background: rgba(5,5,16,.85); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .7rem 0; }
.marquee-track { display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; padding-right: 2.5rem; animation: marquee 26s linear infinite; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: #c7d2fe; }
.marquee-track i { color: #a855f7; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* rainbow gradient border on chat card */
.chat-card { border: 2px solid transparent; background: linear-gradient(var(--bg2), var(--bg2)) padding-box, linear-gradient(135deg, #3b82f6, #a855f7, #ec4899, #f97316) border-box; }

/* neon ring cinema panel */
.cinema-panel { position: relative; overflow: hidden; background: #05050f; border-radius: 24px; margin: 3rem auto; max-width: 1020px; width: calc(100% - 40px); padding: 4.5rem 1.5rem; text-align: center; border: 1px solid var(--line); }
.neon-ring { position: absolute; left: 50%; top: 50%; width: min(78vw, 430px); height: min(78vw, 430px); transform: translate(-50%,-50%); border-radius: 50%; border: 3px solid rgba(96,165,250,.85); box-shadow: 0 0 60px 10px rgba(59,130,246,.5), 0 0 140px 40px rgba(59,130,246,.22), inset 0 0 60px rgba(59,130,246,.3); animation: ringPulse 4s ease-in-out infinite; pointer-events: none; }
@keyframes ringPulse { 50% { box-shadow: 0 0 90px 20px rgba(59,130,246,.65), 0 0 190px 60px rgba(59,130,246,.28), inset 0 0 80px rgba(59,130,246,.4); } }
.cinema-inner { position: relative; z-index: 1; }
.cinema-inner h2 { font-size: 2rem; margin-bottom: .6rem; }
.cinema-inner p { color: var(--muted); margin-bottom: 1.4rem; }
.btn-glow { box-shadow: 0 0 24px rgba(168,85,247,.55); }

/* giant footer wordmark */
.giant-word { font-size: clamp(3.5rem, 17vw, 13rem); font-weight: 900; letter-spacing: .04em; line-height: 1; text-align: center; user-select: none; margin: 1rem 0 .5rem; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.02)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* sticky bottom CTA */
#sticky-cta { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 90px); background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; font-weight: 700; padding: .8rem 1.7rem; border-radius: 999px; z-index: 60; text-decoration: none; box-shadow: 0 8px 30px rgba(99,102,241,.55); transition: transform .35s ease; font-size: .95rem; }
#sticky-cta.show { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .neon-ring { animation: none; }
  #sticky-cta { transition: none; }
}

/* ---------- AI image studio ---------- */
.studio-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.studio-row input[type="text"] { flex: 1; min-width: 180px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 14px; font-size: .95rem; }
.studio-row select { background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: .9rem; }
.studio-out { min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px 0; }
.studio-img { max-width: 100%; max-height: 520px; border-radius: 12px; border: 1px solid var(--line); }
.studio-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.studio-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--violet); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ---------- topics sidebar ---------- */
.articles-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.side-col { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 76px; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; }
.topics-sidebar { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.topics-sidebar h3 { font-size: 1.05rem; margin-bottom: 10px; }
#topic-search { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 9px 12px; font-size: .9rem; margin-bottom: 6px; }
.topic-cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 12px 0 6px; }
.topic-item { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 6px; cursor: pointer; color: var(--text); text-align: left; font-size: .9rem; font-family: inherit; }
.topic-item:hover { background: var(--card); border-color: var(--line); }
.topic-item.active { background: rgba(99,102,241,.15); border-color: var(--indigo); }
.topic-item img { width: 52px; height: 36px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.topic-item .tname { flex: 1; }
.topic-item .tcount { font-size: .75rem; color: var(--muted); background: var(--card); border-radius: 999px; padding: 1px 8px; flex-shrink: 0; }
#topic-reset { width: 100%; margin-top: 10px; }
.topic-empty { color: var(--muted); font-size: .9rem; text-align: center; padding: 12px 0; }
@media (max-width: 900px) {
  .articles-layout { grid-template-columns: 1fr; }
  .side-col { position: static; max-height: none; overflow: visible; order: -1; }
  .topics-sidebar { max-height: 430px; overflow-y: auto; }
}
/* ---------- shop (proxies / rdp) ---------- */
.shop-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; max-width: 560px; margin: 0 auto 20px; }
.shop-grid h3 { margin-bottom: 14px; }
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 5px; }
.fld input, .fld select { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: .95rem; font-family: inherit; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--indigo); }
.price-box { background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.35); border-radius: 12px; padding: 14px; font-size: 1.05rem; margin: 14px 0; text-align: center; }
.price-box strong { color: #a5b4fc; font-size: 1.4rem; }
.price-list-card { max-width: 560px; margin: 0 auto; }
.price-list-card h3 { margin-bottom: 12px; }
/* proxy shop: WIDE + SHORT (chaurai zyada, lambai buhat kam) */
#proxies .sec-head { margin-bottom: 14px; }
#proxies .shop-grid { max-width: 900px; gap: 16px; margin-bottom: 14px; }
#proxies .price-list-card { max-width: 900px; }
#proxies .chat-card { padding: 10px 12px; margin-top: 0; }
#proxies .shop-grid h3 { margin-bottom: 6px; font-size: 1rem; }
#proxies .fld { margin-bottom: 6px; }
#proxies .fld > span { margin-bottom: 2px; font-size: .78rem; }
#proxies .fld input, #proxies .fld select { padding: 6px 9px; font-size: .85rem; border-radius: 8px; }
#proxies .price-box { padding: 8px; margin: 8px 0; font-size: .9rem; }
#proxies .price-box strong { font-size: 1.1rem; }
#proxies .proxy-details { padding: 8px 10px; margin-bottom: 6px; }
#proxies .proxy-desc { line-height: 1.4; margin-bottom: 5px; font-size: .85rem; }
#proxies .proxy-price-line { font-size: .88rem; }
#proxies .price-table th, #proxies .price-table td { padding: 4px 6px; font-size: .82rem; }
#proxies .price-list-card h3 { margin-bottom: 6px; font-size: 1rem; }
#proxies .shop-banner { height: 70px; margin: 4px 0 12px; }
@media (max-width: 700px) { #proxies .shop-banner { height: 60px; } }
/* rdp: SAME size as proxy — WIDE + SHORT */
#rdp .sec-head { margin-bottom: 14px; }
#rdp .shop-grid { max-width: 900px; gap: 16px; margin-bottom: 14px; }
#rdp .price-list-card { max-width: 900px; }
#rdp .chat-card { padding: 10px 12px; margin-top: 0; }
#rdp .shop-grid h3 { margin-bottom: 6px; font-size: 1rem; }
#rdp .fld { margin-bottom: 6px; }
#rdp .fld > span { margin-bottom: 2px; font-size: .78rem; }
#rdp .fld input, #rdp .fld select { padding: 6px 9px; font-size: .85rem; border-radius: 8px; }
#rdp .price-box { padding: 8px; margin: 8px 0; font-size: .9rem; }
#rdp .price-box strong { font-size: 1.1rem; }
#rdp .price-table th, #rdp .price-table td { padding: 4px 6px; font-size: .82rem; }
#rdp .price-list-card h3 { margin-bottom: 6px; font-size: 1rem; }
#rdp .shop-banner { height: 70px; margin: 4px 0 12px; }
@media (max-width: 700px) { #rdp .shop-banner { height: 60px; } }
.price-table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.price-table th, .price-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.price-table th { background: var(--card); color: var(--muted); font-weight: 600; }
.price-table td:first-child, .price-table th:first-child { text-align: left; font-weight: 600; }
.price-table .hl { color: #a5b4fc; font-weight: 700; }
@media (max-width: 800px) { .shop-grid { grid-template-columns: minmax(0,1fr); } }
/* ---------- account page ---------- */
.auth-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-card h3 { margin-bottom: 14px; text-align: center; }
.order-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.order-item .oid { font-weight: 700; color: #a5b4fc; }
.order-item .tiny { margin-top: 4px; }
.badge-pending { background: rgba(251,191,36,.15); color: #fbbf24; border-radius: 999px; padding: 2px 10px; font-size: .75rem; font-weight: 700; }
.ent-hub { border-color: rgba(168,85,247,.4); }
.ent-hub .tiny { margin: -6px 0 10px; }
#ent-search { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 9px 12px; font-size: .9rem; margin-bottom: 10px; }
.ent-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
/* ---------- hero AI search bar (Google-style) ---------- */
.hero-search { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 22px auto 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(99,102,241,.45); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 8px 32px rgba(99,102,241,.18); transition: box-shadow .25s, border-color .25s; }
.hero-search:focus-within { border-color: #a78bfa; box-shadow: 0 8px 40px rgba(167,139,250,.35); }
.hero-search-icon { font-size: 1.15rem; opacity: .75; flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 1.02rem; padding: 10px 4px; }
.hero-search input::placeholder { color: var(--muted); }
.hero-search .btn { border-radius: 999px; padding: 10px 26px; flex-shrink: 0; }
.proxy-details { background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.25); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.proxy-tagline { font-weight: 700; color: #ffd166; margin-bottom: 6px; }
.proxy-desc { font-size: .9rem; color: var(--muted); line-height: 1.6; margin: 0 0 8px; }
.proxy-price-line { margin: 0; font-size: .95rem; }
.proxy-price-line b { color: #a78bfa; font-size: 1.1rem; }
.ent-pill { background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: .8rem; cursor: pointer; font-family: inherit; }
.ent-pill:hover { border-color: var(--indigo); }
.ent-pill.active { background: linear-gradient(135deg, #6366f1, #a855f7); border-color: transparent; color: #fff; font-weight: 700; }
.ent-list { display: flex; flex-direction: column; gap: 8px; }
.ent-more { display: block; width: 100%; padding: 10px; margin-top: 2px; border-radius: 12px; border: 1px solid rgba(99,102,241,.45); background: rgba(99,102,241,.12); color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; font-family: inherit; min-height: 42px; }
.ent-more:hover { background: rgba(99,102,241,.22); }
/* Read in Your Language: overflow cards in 2-col grid behind More */
.lang-more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.lang-more-grid[hidden] { display: none; }
.lang-more-btn { display: block; margin: 18px auto 0; }
/* Articles section: overflow rows behind More */
.articles-more-list { margin-top: 0; }
.articles-more-list[hidden] { display: none; }
.ent-card { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-decoration: none; color: var(--text); }
.ent-card:hover { border-color: var(--indigo); transform: translateY(-1px); }
.ent-card img { width: 84px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.ent-card .ename { font-size: .85rem; font-weight: 600; line-height: 1.3; }
.ent-card .ecat { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.ent-empty { color: var(--muted); font-size: .9rem; text-align: center; padding: 12px 0; }

/* ---------- services showcase ---------- */
#services { max-width: 1120px; }
.section { scroll-margin-top: 88px; }
.trend-sec { scroll-margin-top: 88px; }
.sec-head { text-align: center; margin-bottom: 24px; }
.sec-head h2 { font-size: 2rem; margin-bottom: 8px; }
.sec-icon {
  width: 72px; height: 72px; object-fit: cover; border-radius: 20px;
  border: 2px solid rgba(99, 102, 241, 0.55);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
  margin-bottom: 10px;
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-10px); } }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 8px; }
.svc-card { text-decoration: none; color: var(--text); overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.svc-card > img { width: calc(100% - 32px); height: 92px; object-fit: cover; display: block; margin: 16px 16px 0; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(99,102,241,.25); }
.svc-card > .svc-ic { width: calc(100% - 32px); height: 92px; display: flex; align-items: center; justify-content: center; margin: 16px 16px 0; border-radius: 14px; background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(168,85,247,.25)); border: 1px solid rgba(99,102,241,.35); box-shadow: 0 12px 32px rgba(0,0,0,.45); animation: itemFloat 3s ease-in-out infinite; }
.svc-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc-card h3 { font-size: 1.08rem; }
.svc-card p { color: var(--muted); font-size: 0.86rem; flex: 1; }
.svc-card .read { margin-top: 4px; font-size: .85rem; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
/* 2026-10-13: user asked for smaller service boxes — compact sizing */
.svc-card > img { height: 72px; margin: 10px 10px 0; width: calc(100% - 20px); border-radius: 10px; }
.svc-card > .svc-ic { height: 72px; margin: 10px 10px 0; width: calc(100% - 20px); border-radius: 10px; }
.svc-body { padding: 10px; gap: 4px; }
.svc-card h3 { font-size: 0.95rem; }
.svc-card p { font-size: 0.78rem; }
.svc-card .read { font-size: 0.78rem; }
.services-grid { gap: 10px; }

/* ---------- enlarged shop panels ---------- */
.shop-section { max-width: 1120px; }
.shop-banner {
  width: 100%; height: 140px; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--line);
  margin: 6px 0 20px; box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  animation: bannerLive 11s ease-in-out infinite;
}
@keyframes bannerLive {
  0%,100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.045); filter: brightness(1.12); }
}
.shop-section h2 { font-size: 2rem; }
@media (max-width: 700px) { .shop-banner { height: 100px; } }
@media (prefers-reduced-motion: reduce) { .sec-icon { animation: none; } }

/* ---------- light theme ---------- */
[data-theme="light"] {
  --bg: #f1f1f9;
  --bg2: #ffffff;
  --card: #ffffff;
  --line: #d9d9ee;
  --text: #1b1b33;
  --muted: #5d5d82;
}
[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}
[data-theme="light"] .nav { background: rgba(255, 255, 255, 0.92); }
/* QA-NAV light-theme legibility fix (additive, 2026-10-12) */
[data-theme="light"] .nav-lang { color: #1b1b33; background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.18); }
[data-theme="light"] .nav-icon-btn { color: #1b1b33; background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.18); }
[data-theme="light"] .hero-shade { background: linear-gradient(rgba(241, 241, 249, 0.5), rgba(241, 241, 249, 0.88)); }
[data-theme="light"] .marquee { background: rgba(255, 255, 255, 0.9); }
[data-theme="light"] .marquee-track { color: #55559e; }
[data-theme="light"] a { color: #4f46e5; }
[data-theme="light"] .read { color: #4f46e5; }
[data-theme="light"] .msg.bot { background: #efeffa; }
[data-theme="light"] .giant-word { background: linear-gradient(180deg, rgba(20,20,60,.14), rgba(20,20,60,.02)); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .badge { background: rgba(99, 102, 241, 0.1); color: #4f46e5; }
[data-theme="light"] .chip { color: #4f46e5; }
[data-theme="light"] .price-box strong { color: #4f46e5; }
[data-theme="light"] .price-table .hl { color: #4f46e5; }
[data-theme="light"] .order-item .oid { color: #4f46e5; }
[data-theme="light"] .cinema-panel { background: #0d0d20; }
[data-theme="light"] .cinema-panel p { color: #a7a7c8; }
[data-theme="light"] #cookie-banner { background: #ffffff; }
.theme-toggle {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  width: 38px; height: 38px; border-radius: 50%; font-size: 1.05rem; cursor: pointer;
  flex: none; transition: transform 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { transform: scale(1.1); border-color: var(--indigo); }

/* ---------- cookie banner ---------- */
#cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 560px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45); font-size: 0.9rem;
}
#cookie-banner p { color: var(--muted); }
#cookie-banner[hidden] { display: none; }

/* ---------- newsletter ---------- */
.newsletter {
  max-width: 520px; margin: 0 auto 22px; padding: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(168,85,247,.14));
  border: 1px solid var(--line); border-radius: var(--radius); text-align: center;
}
.newsletter h4 { margin-bottom: 6px; font-size: 1.05rem; }
.newsletter p.tiny { margin-bottom: 12px; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input[type="email"] {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); padding: 10px 16px; font-size: 0.9rem; min-width: 0;
}
.newsletter input[type="email"]:focus { outline: none; border-color: var(--indigo); }
.newsletter button {
  background: var(--grad); color: #fff; border: none; border-radius: 999px;
  padding: 10px 20px; font-weight: 700; cursor: pointer; font-size: 0.9rem; white-space: nowrap;
}
.newsletter #nl-msg { margin-top: 8px; min-height: 1.2em; }
@media (max-width: 560px) { .newsletter form { flex-direction: column; } .newsletter { margin-left: 12px; margin-right: 12px; } }

/* ---------- compact top-10 articles list ---------- */
.mini-art-list { display: flex; flex-direction: column; gap: 8px; }
.mini-art { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 8px 8px; text-decoration: none; color: var(--text); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.mini-art:hover { transform: translateX(6px); border-color: rgba(99,102,241,.5); box-shadow: 0 8px 24px rgba(99,102,241,.15); }
.mini-art img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.mini-art-n { font-weight: 800; color: var(--indigo); font-size: 0.9rem; flex-shrink: 0; }
.mini-art-t { flex: 1; font-size: 0.95rem; font-weight: 600; line-height: 1.35; }
.mini-art-go { color: var(--muted); font-weight: 700; flex-shrink: 0; transition: transform 0.25s ease, color 0.25s ease; }
.mini-art:hover .mini-art-go { transform: translateX(4px); color: var(--indigo); }
@media (prefers-reduced-motion: reduce) {
  .mini-art:hover, .mini-art:hover .mini-art-go { transform: none; }
}
/* ---------- services page ---------- */
.hero-slim { padding: 44px 20px 26px; }
.cat-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; position: relative; z-index: 2; }
.cat-pills .ent-pill { text-decoration: none; font-size: 0.9rem; padding: 8px 18px; }
.svc-cat { padding-top: 34px; padding-bottom: 34px; }
.msvc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
.msvc { padding: 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.msvc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, rgba(99,102,241,.55), rgba(168,85,247,.15), rgba(99,102,241,.55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.msvc:hover::before { opacity: 1; }
.msvc-emoji { font-size: 1.9rem; filter: drop-shadow(0 4px 10px rgba(99,102,241,.4)); transition: transform 0.3s ease; }
.msvc:hover .msvc-emoji { transform: scale(1.18) rotate(-6deg); }
.msvc h4 { font-size: 1.02rem; }
.msvc p { color: var(--muted); font-size: 0.88rem; flex: 1; }
.quote-btn { color: #b9bdfc; font-weight: 700; font-size: 0.88rem; text-decoration: none; margin-top: 6px; display: inline-block; }
.quote-btn:hover { color: #fff; }
.msvc-grid .msvc:nth-child(3n+2) { transition-delay: 0.07s; }
.msvc-grid .msvc:nth-child(3n) { transition-delay: 0.14s; }
@media (min-width: 700px) { .msvc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .msvc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .msvc-grid .msvc:nth-child(3n+2), .msvc-grid .msvc:nth-child(3n) { transition-delay: 0s; }
  .msvc:hover .msvc-emoji { transform: none; }
}

/* Drama trailers promo in Entertainment Hub */
.ent-trailer-promo{display:flex;flex-direction:column;gap:2px;margin-top:14px;padding:12px 14px;border-radius:12px;background:linear-gradient(135deg,rgba(99,102,241,.18),rgba(168,85,247,.14));border:1px solid rgba(99,102,241,.45);text-decoration:none;transition:transform .2s,box-shadow .2s;}
.ent-trailer-promo:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(99,102,241,.25);}
.ent-trailer-promo b{color:#fff;font-size:1rem;}
.ent-trailer-promo span{color:#9aa0c3;font-size:.82rem;}

/* ---------- Services: in-site plans modal ---------- */
.plan-btn { color: #b9bdfc; font-weight: 700; font-size: 0.88rem; text-decoration: none; margin-top: 6px; display: inline-block; cursor: pointer; }
.plan-btn:hover { color: #fff; }
.svc-modal { position: fixed; inset: 0; background: rgba(4,6,18,.88); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 16px; }
.svc-modal.open { display: flex; }
.svc-modal-box { width: 100%; max-width: 920px; max-height: 92vh; overflow-y: auto; background: #0d1026; border: 1px solid rgba(99,102,241,.4); border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.svc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(99,102,241,.25); position: sticky; top: 0; background: #0d1026; z-index: 2; }
.svc-modal-head h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.svc-modal-close { background: rgba(99,102,241,.2); border: 1px solid rgba(99,102,241,.5); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.05rem; cursor: pointer; flex-shrink: 0; }
.svc-modal-close:hover { background: rgba(99,102,241,.45); }
.svc-modal-body { padding: 18px; }
.tier-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 720px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier-card { background: #12152e; border: 1px solid rgba(99,102,241,.3); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; position: relative; }
.tier-card.hot { border-color: #a855f7; box-shadow: 0 0 28px rgba(168,85,247,.28); }
.tier-tag { position: absolute; top: -11px; left: 14px; background: linear-gradient(135deg,#6366f1,#a855f7); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.tier-name { font-weight: 700; color: #a78bfa; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.tier-price { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 6px 0 2px; }
.tier-del { font-size: .8rem; color: #9aa0c3; }
.tier-feats { list-style: none; padding: 0; margin: 12px 0 16px; flex: 1; }
.tier-feats li { font-size: .87rem; color: #c7cbe8; padding: 4px 0 4px 24px; position: relative; line-height: 1.45; }
.tier-feats li::before { content: "✓"; position: absolute; left: 2px; color: #4ade80; font-weight: 700; }
.order-summary { background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.35); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; color: #e6e8ff; line-height: 1.7; }

/* ---------- Services: search + compact cards ---------- */
.svc-search { display: block; width: 100%; max-width: 560px; margin: 20px auto 4px; padding: 13px 18px; border-radius: 14px; border: 1px solid rgba(99,102,241,.4); background: #0f1226; color: #fff; font-size: 1rem; }
.svc-search::placeholder { color: #8a8fae; }
.svc-search:focus { outline: none; border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168,85,247,.2); }
.svc-noresult { text-align: center; color: #9aa0c3; padding: 30px 16px; }
/* compact cards: less scrolling */
.msvc { padding: 12px 14px; gap: 4px; }
.msvc-emoji { font-size: 1.45rem; }
.msvc h4 { font-size: .92rem; }
.msvc p { font-size: .79rem; }
.msvc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .msvc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .msvc-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Animated service pictures + animated text ---------- */
/* Har icon ab ek chhoti "animated picture" frame mein hai */
.msvc-emoji {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; position: relative; isolation: isolate;
  background: linear-gradient(135deg, rgba(99,102,241,.28), rgba(168,85,247,.16));
  border: 1px solid rgba(99,102,241,.45);
  animation: pic-float 3.4s ease-in-out infinite;
}
/* glowing animated border = picture frame ki chamak */
.msvc-emoji::after {
  content: ""; position: absolute; inset: -4px; border-radius: 20px; z-index: -1;
  background: conic-gradient(from 0deg, #6366f1, #a855f7, #ec4899, #22d3ee, #6366f1);
  opacity: .4; filter: blur(4px);
  animation: pic-glow 2.8s ease-in-out infinite;
}
@keyframes pic-glow { 0%,100% { opacity: .25; } 50% { opacity: .65; } }
@keyframes pic-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pic-bounce { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.07); } }
@keyframes pic-wiggle { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes pic-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
/* tIconFloat: shared icon float used by .t-icon, .num-flag, .pay-jc (sab pages par aik jesi icon animation) */
@keyframes tIconFloat { 0%,100% { transform: translateY(0) rotate(-3deg) scale(1); } 50% { transform: translateY(-6px) rotate(3deg) scale(1.06); } }
/* har card par mukhtalif motion + delay taake sab ek saath na hilein */
.msvc-grid .msvc:nth-child(4n+1) .msvc-emoji { animation-name: pic-float; animation-duration: 3.4s; }
.msvc-grid .msvc:nth-child(4n+2) .msvc-emoji { animation-name: pic-bounce; animation-duration: 2.9s; animation-delay: .4s; }
.msvc-grid .msvc:nth-child(4n+3) .msvc-emoji { animation-name: pic-wiggle; animation-duration: 3.8s; animation-delay: .8s; }
.msvc-grid .msvc:nth-child(4n+4) .msvc-emoji { animation-name: pic-pulse; animation-duration: 3.1s; animation-delay: 1.2s; }
.msvc:hover .msvc-emoji { animation-play-state: paused; }
/* animated shimmer text on titles */
.msvc h4 {
  background: linear-gradient(90deg, #ffffff 15%, #a78bfa 38%, #f0abfc 50%, #a78bfa 62%, #ffffff 85%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: text-shine 4.5s linear infinite;
}
@keyframes text-shine { to { background-position: 220% center; } }
.msvc-grid .msvc:nth-child(3n+2) h4 { animation-delay: 1.5s; }
.msvc-grid .msvc:nth-child(3n) h4 { animation-delay: 3s; }
/* animated arrow on View Plans */
.plan-btn::after { content: " →"; display: inline-block; animation: arrow-nudge 1.6s ease-in-out infinite; }
@keyframes arrow-nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) {
  .msvc-emoji, .msvc-emoji::after, .msvc h4, .plan-btn::after { animation: none !important; }
}

/* ---------- All Articles sidebar (compact index, left side) ---------- */
@media (min-width: 901px) {
  .articles-layout { grid-template-columns: 320px 1fr; }
  .side-col { order: -1; }
}
.all-articles #allart-search { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 9px 12px; font-size: .85rem; margin: 4px 0 8px; }
.allart-list { max-height: 430px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; padding-right: 4px; }
/* auto-scrolling ticker: articles keep moving on the side, pause on hover */
.allart-list.ticker { overflow: hidden; animation: allart-scroll 70s linear infinite; }
.allart-list.ticker:hover { animation-play-state: paused; }
.allart-list.ticker .allart-link { flex-shrink: 0; }
@keyframes allart-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .allart-list.ticker { animation: none; overflow-y: auto; } }
/* PQA-home 2026-10-11: ticker retarget — allart-scroll translated the WHOLE .allart-list box
   (-50% of its own 430px = -215px), so the sidebar drifted up over the heading/search every
   70s. Animate an inner track instead; existing rules above stay untouched. */
.allart-list.ticker { display: block; animation: none; }
.allart-list .allart-track { display: flex; flex-direction: column; gap: 1px; animation: allart-scroll 70s linear infinite; }
.allart-list.ticker:hover .allart-track { animation-play-state: paused; }
.allart-list .allart-track .allart-link { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .allart-list .allart-track { animation: none; } }
.allart-list::-webkit-scrollbar { width: 6px; }
.allart-list::-webkit-scrollbar-thumb { background: rgba(99,102,241,.4); border-radius: 6px; }
.allart-list::-webkit-scrollbar-track { background: transparent; }
.allart-link { display: flex; align-items: center; gap: 8px; padding: 6px 9px; font-size: .8rem; line-height: 1.4; color: var(--text); text-decoration: none; border-radius: 8px; border-left: 2px solid transparent; }
.allart-link:hover { background: rgba(99,102,241,.13); border-left-color: var(--indigo); }
.allart-link .n { color: var(--muted); font-size: .7rem; flex-shrink: 0; }
.allart-link .allart-t { flex: 1; min-width: 0; }
.allart-thumb { width: 46px; height: 34px; object-fit: cover; border-radius: 6px; flex-shrink: 0; animation: pic3d 9s ease-in-out infinite; }
.allart-link:nth-child(2n) .allart-thumb { animation-delay: -3s; }
.allart-link:nth-child(3n) .allart-thumb { animation-delay: -6s; }
.allart-empty { color: var(--muted); font-size: .85rem; text-align: center; padding: 14px 0; }

/* ---------- Languages: all in one box ---------- */
.lang-box { grid-column: 1 / -1; text-align: center; }
.lang-box .art-emoji { font-size: 2.2rem; }
.lang-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; text-align: left; }
@media (min-width: 700px) { .lang-pills { grid-template-columns: repeat(5, 1fr); } }
.lang-pill { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px; border-radius: 14px; background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.3); color: var(--text); text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.lang-pill:hover { background: rgba(99,102,241,.25); border-color: var(--indigo); transform: translateY(-3px); }
.lang-pill .lp-emoji { font-size: 1.9rem; margin-bottom: 6px; animation: lp-float 3s ease-in-out infinite; display: inline-block; }
.lang-pill:nth-child(2n) .lp-emoji { animation-delay: -1s; }
.lang-pill:nth-child(3n) .lp-emoji { animation-delay: -2s; }
@keyframes lp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.lang-pill .lp-name { font-weight: 600; font-size: .9rem; }
.lang-pill small { color: var(--muted); font-weight: 400; font-size: .72rem; white-space: nowrap; margin-top: 2px; }

/* ---------- 3D living pictures on homepage service cards ---------- */
.svc-card { perspective: 900px; }
.svc-card > img {
  transform-style: preserve-3d;
  will-change: transform, filter;
  animation: pic3d 9s ease-in-out infinite;
}
/* ---------- Featured articles: 3 cards with living pictures ---------- */
.feat-grid { perspective: 900px; }
.feat-grid .card > img {
  transform-style: preserve-3d;
  will-change: transform;
  animation: pic3d 9s ease-in-out infinite;
}
.feat-grid .card:nth-child(2) > img { animation-delay: -3s; }
.feat-grid .card:nth-child(3) > img { animation-delay: -6s; }
.feat-grid .card > img:hover { animation-play-state: paused; }
@keyframes pic3d {
  0%, 100% { transform: perspective(900px) rotateX(0deg) rotateY(0deg) scale(1); }
  18%      { transform: perspective(900px) rotateX(5deg) rotateY(-7deg) scale(1.07); }
  36%      { transform: perspective(900px) rotateX(-4deg) rotateY(6deg) scale(1.12); }
  52%      { transform: perspective(900px) rotateX(0deg) rotateY(0deg) scale(1.05); }
  68%      { transform: perspective(900px) rotateX(0deg) rotateY(180deg) scale(1.08); }
  84%      { transform: perspective(900px) rotateX(0deg) rotateY(360deg) scale(1.02); }
}
/* har card alag phase se hile taake sab ek saath na ghumein */
.services-grid .svc-card:nth-child(2) > img { animation-delay: -1.5s; }
.services-grid .svc-card:nth-child(3) > img { animation-delay: -3s; }
.services-grid .svc-card:nth-child(4) > img { animation-delay: -4.5s; }
.services-grid .svc-card:nth-child(5) > img { animation-delay: -6s; }
.services-grid .svc-card:nth-child(6) > img { animation-delay: -7.5s; }
.services-grid .svc-card:nth-child(7) > img { animation-delay: -8.2s; }
.svc-card:hover > img { animation-play-state: paused; transform: scale(1.08); }
/* scroll-stop + idle double-spin (2 chakkar) */
.svc-card.spin2x > img { animation: cardSpin2x 1.4s ease-in-out !important; }
@keyframes cardSpin2x {
  0% { transform: perspective(900px) rotateY(0deg) scale(1); }
  50% { transform: perspective(900px) rotateY(360deg) scale(1.12); }
  100% { transform: perspective(900px) rotateY(720deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .svc-card > img { animation: none; } }



/* ---------- floating animated sports icon stack ---------- */
#sports-float {
  position: fixed; right: 14px; bottom: 190px; z-index: 61;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.sp-float {
  display: flex; align-items: center; gap: 8px;
  background: rgba(13,16,38,.94); border: 1px solid rgba(99,102,241,.45);
  color: #fff; text-decoration: none; font-size: .78rem; font-weight: 700;
  padding: 9px 13px; border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  animation: sport-bounce 2.2s ease-in-out infinite;
  transition: transform .2s, border-color .2s;
  max-width: 170px; white-space: nowrap;
}
.sp-float:hover { animation-play-state: paused; transform: scale(1.08); border-color: #a78bfa; }
.sp-emoji { font-size: 1.25rem; line-height: 1; animation: emoji-spin 4s ease-in-out infinite; display: inline-block; }
@keyframes emoji-spin { 0%,100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(-14deg) scale(1.18); } }
.sp-label { letter-spacing: .02em; }
.sp-count { background: #ef4444; color: #fff; font-size: .68rem; font-weight: 800; border-radius: 12px; padding: 2px 8px; animation: blink 1.4s infinite; }
.sp-count.sp-per-sport { font-size: .6rem; padding: 1px 6px; }
@keyframes sport-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 500px) { .sp-label { display: none; } .sp-float { padding: 9px 11px; } }
@media (prefers-reduced-motion: reduce) { .sp-float, .sp-emoji, .sp-count { animation: none; } }
.ls-title{font-size:.95rem;font-weight:700;color:#fff;margin-bottom:6px;}

/* ---------- Hub boxes: Tools + Dramas (side by side) ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; align-items: stretch; }
.hub-box { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-align: center; perspective: 900px; display: flex; flex-direction: column; height: 100%; min-height: 400px; box-sizing: border-box; }
.hub-box .hub-items { flex: 1; }
.hub-box .hub-more { margin-top: auto; }
.hub-box h2 { margin: 10px 0 4px; font-size: 1.35rem; }
.hub-pic { width: 92px; height: 92px; object-fit: cover; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.4); transform-style: preserve-3d; animation: pic3d 9s ease-in-out infinite; }
#hub-dramas .hub-pic { animation-delay: -4.5s; }
.hub-search { width: 100%; max-width: 320px; margin: 12px auto; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); font-size: .9rem; box-sizing: border-box; }
.hub-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 12px 0; max-height: 300px; overflow-y: auto; padding: 4px; }
.hub-item { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; text-decoration: none; color: var(--text); font-size: .75rem; transition: transform .15s; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hub-item:hover { transform: translateY(-2px); border-color: var(--indigo); }
.hub-item .hi-icon { font-size: 1.6rem; }
.hub-item .hi-name { font-weight: 600; line-height: 1.3; }
.hub-more { margin-top: 6px; display: inline-block; }
@media (max-width: 1100px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hub-grid { grid-template-columns: 1fr; } }

/* ---------- Floating side global search ---------- */
#side-search { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 999; }
#side-search-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20,20,40,.92); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
#side-search-panel { display: none; position: absolute; right: 56px; top: 50%; transform: translateY(-50%); width: 280px; background: rgba(15,15,30,.97); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
#side-search.open #side-search-panel { display: block; }
#side-search-panel input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); box-sizing: border-box; }
#side-search-results { max-height: 320px; overflow-y: auto; margin-top: 10px; }
#side-search-results a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .85rem; }
#side-search-results a:hover { background: rgba(99,102,241,.15); }
#side-search-results .ss-cat { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 8px 0 2px; }
.hub-emoji { display: flex; align-items: center; justify-content: center; font-size: 3rem; background: rgba(99,102,241,.12); }

/* shop search bars */
.shop-search { max-width: 420px; margin: 14px auto 4px; }
.shop-search input { width: 100%; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font-size: .95rem; }

/* global site search */
.site-search-wrap { position: relative; max-width: 520px; margin: 12px auto 0; display: flex; align-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 16px; }
.site-search-wrap input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: .92rem; padding: 9px 8px; }
.site-search-wrap .hero-search-icon { margin-right: 4px; }
.gs-results { position: absolute; top: 110%; left: 0; right: 0; background: #151832; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; z-index: 50; box-shadow: 0 12px 40px rgba(0,0,0,.5); max-height: 340px; overflow-y: auto; }
.gs-item { display: flex; gap: 10px; padding: 10px 14px; text-decoration: none; color: var(--text); border-bottom: 1px solid rgba(255,255,255,.05); align-items: center; }
.gs-item:hover { background: rgba(99,102,241,.12); }
.gs-item .gs-ic { font-size: 1.3rem; }
.gs-item b { display: block; font-size: .88rem; }
.gs-item small { color: var(--muted); font-size: .74rem; }
.gs-empty { padding: 14px; text-align: center; color: var(--muted); font-size: .85rem; }

/* cinematic hover backgrounds for hub boxes */
.hub-box { position: relative; overflow: hidden; }
.hub-fx { position: absolute; inset: 0; pointer-events: none; opacity: .35; z-index: 0; background: linear-gradient(120deg, rgba(99,102,241,.12), rgba(168,85,247,.12), rgba(34,211,238,.12), rgba(99,102,241,.12)); background-size: 300% 300%; animation: fxBgShift 8s ease-in-out infinite; }
@keyframes fxBgShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hub-box > *:not(.hub-fx) { position: relative; z-index: 1; }
.hub-box:hover .hub-fx { opacity: 1; }
.hub-fx span { position: absolute; bottom: -50px; font-size: 2.2rem; opacity: 0; filter: drop-shadow(0 0 8px rgba(139,92,246,.6)); }
.hub-fx span { animation: fxRise 4s ease-in infinite; }
.hub-box:hover .hub-fx { opacity: 1; }
.hub-box:hover .hub-fx span { animation-duration: 2.2s; }
.hub-box:hover .hub-pic { animation: fxPicPulse 1.6s ease-in-out infinite; }
@keyframes fxPicPulse { 0%,100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.12); filter: brightness(1.25); } }
.hub-fx span:nth-child(1) { left: 8%; animation-delay: 0s !important; font-size: 2rem; }
.hub-fx span:nth-child(2) { left: 22%; animation-delay: .7s !important; }
.hub-fx span:nth-child(3) { left: 38%; animation-delay: 1.3s !important; font-size: 1.3rem; }
.hub-fx span:nth-child(4) { left: 52%; animation-delay: .4s !important; font-size: 2.2rem; }
.hub-fx span:nth-child(5) { left: 66%; animation-delay: 1.8s !important; }
.hub-fx span:nth-child(6) { left: 78%; animation-delay: 1s !important; font-size: 1.4rem; }
.hub-fx span:nth-child(7) { left: 88%; animation-delay: 2.2s !important; }
.hub-fx span:nth-child(8) { left: 15%; animation-delay: 2.6s !important; font-size: 1.2rem; }
@keyframes fxRise {
  0% { transform: translateY(0) rotate(0deg) scale(.5); opacity: 0; }
  12% { opacity: 1; }
  60% { opacity: .9; }
  100% { transform: translateY(-380px) rotate(50deg) scale(1.3); opacity: 0; }
}
/* unified animation for all three hub boxes */
#hub-tools:hover, #hub-more:hover, #hub-sitepro:hover { box-shadow: 0 0 34px rgba(139,92,246,.5); border-color: rgba(139,92,246,.65); }
#hub-tools .hub-fx, #hub-more .hub-fx, #hub-sitepro .hub-fx { background: radial-gradient(ellipse at 50% 120%, rgba(139,92,246,.3), transparent 65%); }

/* nav search */
.nav-search { position: relative; margin-left: 8px; }
#nav-search-btn { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; color: var(--text); }
#nav-search-btn:hover { background: rgba(99,102,241,.2); }
.nav-search-pop { position: absolute; top: 110%; right: 0; width: 300px; background: #151832; border: 1px solid var(--line); border-radius: 14px; padding: 10px; z-index: 100; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.nav-search-pop input { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font-size: .9rem; box-sizing: border-box; }
.nav-search-pop .gs-results { position: static; margin-top: 8px; box-shadow: none; }

/* ===== Global 3D animated background (whole website) ===== */
/* GPU build 2026-10-11 (anim-perf): same 5 blobs, same palette/sizes/rest
   positions — but painted ONCE as static bitmaps on two oversized layers and
   drifted with transform only. Previously: full-viewport background-position
   repaint every frame on desktop. Zero visual/theme change, stays animated. */
body::before { content: ""; position: fixed; inset: -15%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 92.3% 69.2% at 34.6% 26.9%, rgba(99,102,241,.14), transparent 70%),
    radial-gradient(ellipse 76.9% 69.2% at 50% 65.4%, rgba(34,211,238,.08), transparent 70%),
    radial-gradient(ellipse 84.6% 69.2% at 57.7% 65.4%, rgba(168,85,247,.1), transparent 70%);
  will-change: transform; transform: translateZ(0);
  animation: globalDriftA 24s ease-in-out infinite; }
body::after { content: ""; position: fixed; inset: -15%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 84.6% 61.5% at 65.4% 50%, rgba(168,85,247,.12), transparent 70%),
    radial-gradient(ellipse 92.3% 61.5% at 42.3% 73.1%, rgba(99,102,241,.1), transparent 70%);
  will-change: transform; transform: translateZ(0);
  animation: globalDriftB 31s ease-in-out infinite; }
@keyframes globalDriftA {
  0%,100% { transform: translate3d(0,0,0); }
  33% { transform: translate3d(-7%,5%,0); }
  66% { transform: translate3d(6%,-6%,0); } }
@keyframes globalDriftB {
  0%,100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(8%,7%,0); } }
#global-stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; }

/* ===== Premium Picture Studio ===== */
.premium-box { margin-top: 28px; border: 2px solid #a855f7; border-radius: 18px; padding: 24px;
  background: linear-gradient(135deg, rgba(168,85,247,.08), rgba(99,102,241,.08)); }
.premium-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.premium-gallery figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(168,85,247,.3); }
.premium-gallery img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .3s; }
.premium-gallery figure:hover img { transform: scale(1.05); }
.premium-gallery figcaption { padding: 8px 10px; font-size: 12px; color: #c4b5fd; }

/* ===== Premium 3D realistic animation ===== */
.premium-3d { position: relative; overflow: hidden; transform-style: preserve-3d; perspective: 1200px;
  animation: premiumFloat 6s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(168,85,247,.25), inset 0 1px 0 rgba(255,255,255,.15); }
@keyframes premiumFloat {
  0%,100% { transform: rotateX(2deg) rotateY(-2deg) translateY(0); }
  50% { transform: rotateX(-2deg) rotateY(2deg) translateY(-6px); } }
.premium-3d::before { content: ""; position: absolute; inset: -50%; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(168,85,247,.15), transparent 30%);
  animation: premiumSpin 8s linear infinite; }
@keyframes premiumSpin { to { transform: rotate(360deg); } }
.premium-3d > * { position: relative; z-index: 1; }
.premium-3d h3 { text-shadow: 0 2px 12px rgba(168,85,247,.6), 0 4px 24px rgba(0,0,0,.4);
  animation: premiumGlow 3s ease-in-out infinite; }
@keyframes premiumGlow {
  0%,100% { text-shadow: 0 2px 12px rgba(168,85,247,.6); }
  50% { text-shadow: 0 2px 24px rgba(168,85,247,1), 0 0 40px rgba(99,102,241,.5); } }

/* ===== Bulk Picture Generation 3D form controls ===== */
.premium-3d .studio-controls { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  transform-style: preserve-3d; }
.premium-3d .studio-controls input,
.premium-3d .studio-controls select {
  padding: 14px 18px; border-radius: 14px; font-size: 15px; color: #fff;
  background: linear-gradient(145deg, rgba(30,27,75,.9), rgba(15,12,40,.95));
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 2px 0 rgba(255,255,255,.08) inset,
    0 0 0 2px rgba(168,85,247,.35);
  transform: translateZ(20px);
  transition: transform .3s, box-shadow .3s;
  animation: inputFloat 4s ease-in-out infinite; }
.premium-3d .studio-controls input:nth-child(2) { animation-delay: .4s; }
.premium-3d .studio-controls select { animation-delay: .8s; }
.premium-3d .studio-controls select:nth-of-type(2) { animation-delay: 1.2s; }
@keyframes inputFloat {
  0%,100% { transform: translateZ(20px) translateY(0); }
  50% { transform: translateZ(30px) translateY(-4px); } }
.premium-3d .studio-controls input:focus,
.premium-3d .studio-controls select:focus {
  outline: none; transform: translateZ(40px) scale(1.03);
  box-shadow: 0 12px 32px rgba(168,85,247,.5), 0 0 0 2px rgba(168,85,247,.8); }
.premium-3d .studio-controls input::placeholder { color: #a5b4fc; }
.premium-3d .studio-controls select option { background: #1e1b4b; color: #fff; }
.premium-3d #premium-btn {
  padding: 14px 32px; font-size: 16px; font-weight: 700; border: none; border-radius: 14px;
  color: #fff; cursor: pointer;
  background: linear-gradient(145deg, #a855f7, #6366f1, #8b5cf6);
  background-size: 200% 200%;
  box-shadow: 0 10px 30px rgba(168,85,247,.5), 0 4px 0 rgba(0,0,0,.3),
    0 2px 12px rgba(255,255,255,.2) inset;
  transform: translateZ(30px);
  animation: btnShine 3s ease-in-out infinite, inputFloat 4s ease-in-out infinite;
  transition: transform .2s; }
@keyframes btnShine {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; } }
.premium-3d #premium-btn:hover { transform: translateZ(50px) scale(1.08); }
.premium-3d #premium-btn:active { transform: translateZ(10px) scale(.97); }
.premium-3d #premium-btn:disabled { opacity: .6; cursor: wait; }

/* ===== Mobile scroll smoothness: kill the heavy per-frame paint work ===== */
@media (max-width: 768px) {
  html { scroll-behavior: auto !important; }
  body { -webkit-overflow-scrolling: touch; }
  /* mobile-perf 2026-10-12: background-attachment:fixed on body forces full repaints on every
     scroll frame on mobile GPUs — scroll it instead (bg stays covered, no visible change) */
  body { background-attachment: scroll; }
  /* full-viewport gradient repaint every frame was the #1 jank source */
  body::before { animation: none; background-size: 100% 100%; }
  body::after { animation: none; }
  #global-stars, #starfield { display: none; }
  /* backdrop blur on sticky nav is very expensive while scrolling */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13,13,26,.97); }
  /* mobile-perf 2026-10-11: fixed widgets backdrop blur repaints everything behind while scrolling */
  .tw-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13,13,26,.97); }
  /* mobile-perf: fixed action buttons backdrop blur repaints behind them while scrolling */
  .float-actions a, .float-actions button { backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* NOTE: picture/icon animations stay ON on mobile (user request) — only the
     heavy full-screen effects (gradient, star canvases, hero video, blurs) are off */
  /* let the browser skip off-screen cards */
  #languages .article-card { content-visibility: auto; contain-intrinsic-size: 200px 240px; }
  .svc-card, .feat-grid .card, .hub-box { content-visibility: auto; contain-intrinsic-size: 300px 320px; }
  /* hero video replaced by a static poster on mobile (see ui.js) */
  .hero { background: url('bg.jpg') center/cover no-repeat, radial-gradient(600px 300px at 20% 0%, rgba(99,102,241,.25), transparent); }
  .hero-video { display: none !important; }
}

/* ===== Floating top-left mini widgets (weather + speed) ===== */
#top-widgets { position: fixed; left: 10px; top: 128px; z-index: 61; display: flex; flex-direction: column; gap: 6px; width: 190px; }
.tw-card { background: rgba(13,13,26,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 10px; padding: 3px 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.45), 0 0 18px rgba(99,102,241,.18);
  animation: twFloat 5s ease-in-out infinite; }
.tw-card:nth-child(2) { animation-delay: 2.5s; }
@keyframes twFloat { 50% { transform: translateY(-5px); } }
/* PThink2 P5 2026-10-11: open card par bobbing pause (parhne mein aasani) — closed mein animate rahega */
.tw-card.tw-open { animation-play-state: paused; }
.tw-title { font-size: .65rem; font-weight: 800; margin-bottom: 2px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* anim-widgets think-340 2026-10-13 (additive): static widget title icons bob — reuses wxBob, icon-only, no layout shift */
.tw-title .tw-ico { display: inline-block; animation: wxBob 3.2s ease-in-out infinite; }
.tw-title .wx-loc { font-weight: 600; color: var(--muted); font-size: .58rem; }
/* mini temp shown in compact mode (desktop) / collapsed (mobile) */
.wx-mini { display: none; font-weight: 800; color: #fbbf24; font-size: .65rem; margin-left: 4px; white-space: nowrap; }
.wx-now { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.wx-emoji { font-size: 1rem; animation: wxBob 3s ease-in-out infinite; display: inline-block; }
@keyframes wxBob { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.12); } }
.wx-temp { font-size: .8rem; font-weight: 800; }
.wx-cond { font-size: .58rem; color: var(--muted); }
.wx-days { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 1px; scrollbar-width: none; }
.wx-days::-webkit-scrollbar { display: none; }
.wx-day { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 1px 3px; border-radius: 7px; background: rgba(255,255,255,.04); min-width: 32px; }
.wx-day .wx-demoji { animation: wxBob 3s ease-in-out infinite; display: inline-block; }
.wx-day:nth-child(2) .wx-demoji { animation-delay: .4s; } .wx-day:nth-child(3) .wx-demoji { animation-delay: .8s; }
.wx-day:nth-child(4) .wx-demoji { animation-delay: 1.2s; } .wx-day:nth-child(5) .wx-demoji { animation-delay: 1.6s; }
.wx-day:nth-child(6) .wx-demoji { animation-delay: 2s; } .wx-day:nth-child(7) .wx-demoji { animation-delay: 2.4s; }
.wx-dname { font-weight: 700; color: var(--text); font-size: .55rem; }
.wx-demoji { font-size: .72rem; }
.wx-dtmp { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .55rem; white-space: nowrap; }
.spd-ico { display: inline-block; animation: spdZap 1.6s ease-in-out infinite; }
@keyframes spdZap { 0%,100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.25); filter: brightness(1.6); } }
.spd-gauge { width: 44px; margin: 0 auto 1px; }
.spd-gauge svg { display: block; width: 100%; height: auto; }
#spd-needle { transition: transform .25s ease-out; }
#spd-arc { transition: stroke-dashoffset .25s ease-out; }
.spd-live { font-size: .78rem; font-weight: 800; color: var(--text); line-height: 1.05; font-variant-numeric: tabular-nums; text-align: center; }
.spd-live .spd-unit { font-size: .58rem; font-weight: 600; color: var(--muted); }
.spd-bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin: 2px 0 3px; }
.spd-fill { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, #22d3ee, #6366f1, #a855f7); transition: width .15s linear; }
.spd-status { font-size: .6rem; color: var(--muted); min-height: 1.2em; text-align: center; }
.spd-status b { color: var(--text); font-size: .72rem; }
.spd-fit { opacity: .75; font-weight: normal; }
.spd-retest { display: block; margin: 2px auto 0; background: rgba(99,102,241,.15); border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 1px 8px; font-size: .6rem; cursor: pointer; }
.spd-retest:hover { background: rgba(99,102,241,.3); }
.spd-retest[hidden] { display: none; }
/* mini live speed shown in the widget title on mobile (desktop: hidden) */
.spd-mini { display: none; font-weight: 800; color: #22d3ee; font-size: .68rem; margin-left: 4px; }
/* ===== Compact mode: jab RDP/Proxy service boxes screen par hon to widgets mobile-jese slim bars ===== */
#top-widgets.tw-compact .tw-card { cursor: pointer; }
#top-widgets.tw-compact .tw-card .tw-title { position: relative; padding-right: 14px; margin-bottom: 0; }
#top-widgets.tw-compact .tw-card .tw-title::after { content: "▾"; position: absolute; right: 2px; top: 0; font-size: .68rem; color: var(--muted); transition: transform .2s; }
#top-widgets.tw-compact .tw-card.tw-open .tw-title::after { transform: rotate(180deg); }
#top-widgets.tw-compact .tw-card.tw-open .tw-title { margin-bottom: 3px; }
#top-widgets.tw-compact .tw-card:not(.tw-open) .wx-now,
#top-widgets.tw-compact .tw-card:not(.tw-open) .wx-days,
#top-widgets.tw-compact .tw-card:not(.tw-open) .spd-gauge,
#top-widgets.tw-compact .tw-card:not(.tw-open) .spd-live,
#top-widgets.tw-compact .tw-card:not(.tw-open) .spd-bar,
#top-widgets.tw-compact .tw-card:not(.tw-open) .spd-status,
#top-widgets.tw-compact .tw-card:not(.tw-open) .spd-retest { display: none; }
#top-widgets.tw-compact .tw-card:not(.tw-open) .spd-mini { display: inline; }
#top-widgets.tw-compact .tw-card:not(.tw-open) .spd-name { display: none; }
#top-widgets.tw-compact .tw-card:not(.tw-open) .wx-loc { display: none; }
#top-widgets.tw-compact .tw-card:not(.tw-open) .wx-mini { display: inline; }
/* share rail moved to bottom-left so the top widgets never cover it */
#share-rail { top: auto; bottom: 96px; transform: none; }
/* DEAD — line 1895 (bottom:76px !important) wins on all ≥1100px widths; do not "fix" ordering */
/* PThink2 P1 2026-10-11: tall desktop par share-rail feedback-btn se na takraye (additive) */
/* PThink2 2026-10-11 14:28: short desktop (600-840px, e.g. 1366x768 laptop) par bhi overlap tha — rule widen kiya */
@media (min-width: 1100px) and (min-height: 601px) {
  #share-rail { bottom: 188px; z-index: 60; }
  #feedback-btn { z-index: 61; }
  #toTop { z-index: 62; }
}
@media (max-width: 768px) {
  #top-widgets { width: 150px; top: 88px; left: 8px; gap: 8px; }
  /* mobile nav: one tidy row — brand | search | account (compact) | hamburger; theme+lang don't fit, left out */
  .nav { padding: 10px 12px; gap: 8px; }
  .brand { order: 1; font-size: 1.1rem; }
  .nav > #nav-theme, .nav > #nav-lang { display: none; }
  .nav-mobile-tools { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.07); color: var(--muted); font-size: .9rem; }
  .nav-mobile-tools #nav-theme, .nav-mobile-tools #nav-lang { display: inline-flex; }
  #nav-search { order: 2; margin-left: auto; flex-shrink: 0; }
  .nav-account-btn { order: 3; margin-left: 0; padding: 7px 12px; font-size: .78rem; flex-shrink: 0; }
  .nav-toggle { order: 4; width: 40px; height: 40px; }
  /* MQA-nav 2026-10-11: search popup width:300px + right:0 tha — mobile par #nav-search
     right edge par nahi (account+hamburger uske right mein), popup ~88px screen se
     bahar kat jata tha. Ab viewport-anchored full-width; kuch remove/static nahi hua. */
  .nav-search-pop { position: fixed; top: 66px; left: 12px; right: 12px; width: auto; }
  .tw-card { background: rgba(13,13,26,.96); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 7px 9px; cursor: pointer; }
  /* mobile: widgets start collapsed as slim bars — tap title to expand */
  .tw-card .tw-title { position: relative; padding-right: 16px; margin-bottom: 0; cursor: pointer; }
  .tw-card .tw-title::after { content: "▾"; position: absolute; right: 2px; top: 0; font-size: .68rem; color: var(--muted); transition: transform .2s; }
  .tw-card.tw-open .tw-title::after { transform: rotate(180deg); }
  .tw-card.tw-open .tw-title { margin-bottom: 5px; }
  .tw-card:not(.tw-open) .wx-now,
  .tw-card:not(.tw-open) .wx-days,
  .tw-card:not(.tw-open) .spd-gauge,
  .tw-card:not(.tw-open) .spd-live,
  .tw-card:not(.tw-open) .spd-bar,
  .tw-card:not(.tw-open) .spd-status,
  .tw-card:not(.tw-open) .spd-retest { display: none; }
  .tw-card:not(.tw-open) .spd-mini { display: inline; }
  .tw-card:not(.tw-open) .spd-name { display: none; }
  .tw-card:not(.tw-open) .wx-loc { display: none; }
  .tw-card:not(.tw-open) .wx-mini { display: inline; }
  /* sticky ask-question CTA: compact on mobile so it never covers cards */
  #sticky-cta { padding: .55rem 1.05rem; font-size: .78rem; bottom: 12px; max-width: 74vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ===== Har icon/logo har waqt animate (user rule) ===== */
/* share rail buttons: gentle continuous bob, staggered */
.sh { animation: shBob 3.2s ease-in-out infinite; }
.sh-fb { animation-delay: .4s; } .sh-wa { animation-delay: .8s; } .sh-copy { animation-delay: 1.2s; }
@keyframes shBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* brand logo: soft continuous glow pulse */
.brand { animation: brandGlow 3.5s ease-in-out infinite; }
@keyframes brandGlow { 0%,100% { filter: drop-shadow(0 0 0 rgba(168,85,247,0)); } 50% { filter: drop-shadow(0 0 10px rgba(168,85,247,.65)); } }
/* Buy Proxies / Buy RDP cards: picture (pic3d) + glow pulse + animated link */
.svc-card > img { animation: pic3d 9s ease-in-out infinite, svcGlow 3.2s ease-in-out infinite; }
@keyframes svcGlow {
  0%,100% { filter: drop-shadow(0 0 14px rgba(99,102,241,.15)); }
  50% { filter: drop-shadow(0 0 26px rgba(168,85,247,.45)); }
}
.svc-card .read { display: inline-block; animation: arrow-nudge 1.6s ease-in-out infinite; }
/* back-to-top button: gentle pulse so it never sits static */
#toTop { animation: toTopPulse 2.8s ease-in-out infinite; }
@keyframes toTopPulse { 0%,100% { box-shadow: 0 4px 18px rgba(99,102,241,.35); } 50% { box-shadow: 0 4px 26px rgba(168,85,247,.7); } }
/* mobile keeps picture/icon animations ON (user request) — only heavy full-screen fx are off */

/* primary buttons: periodic shine sweep so they never sit static */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: translateX(-178%) skewX(-20deg); animation: btnSheen 3.8s ease-in-out infinite; pointer-events: none;
}
/* sheen sweep via transform (compositor thread) instead of `left` (layout thrash) — visually identical */
@keyframes btnSheen { 0% { transform: translateX(-178%) skewX(-20deg); } 55%, 100% { transform: translateX(300%) skewX(-20deg); } }


/* brand logo image — coin spin every ~2.5s + glow (continuous) */
.brand { position: relative; }
.brand-logo { width: 60px; height: 60px; border-radius: 15px; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 12px rgba(99,102,241,.5); will-change: transform, opacity, filter; animation: logoSpin 2.5s ease-in-out infinite, logoGlow 3s ease-in-out infinite; }
@media (max-width: 768px) { .brand-logo { width: 48px; height: 48px; border-radius: 13px; } }
@keyframes logoSpin {
  0%, 52% { transform: perspective(600px) rotateY(0deg); }
  76%, 100% { transform: perspective(600px) rotateY(360deg); }
}
@keyframes logoGlow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(99,102,241,.8)); } 50% { filter: drop-shadow(0 0 14px rgba(168,85,247,.95)); } }
/* orbiting sparkle around the S */
.brand::after { content: ""; position: absolute; left: 17px; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #c084fc 60%, #7c3aed 100%); box-shadow: 0 0 10px 3px rgba(168,85,247,.9); pointer-events: none; animation: logoOrbit 3s linear infinite; }
@keyframes logoOrbit { from { transform: rotate(0deg) translateX(28px) rotate(0deg); } to { transform: rotate(360deg) translateX(28px) rotate(-360deg); } }

/* ===== Feedback widget (floating button + modal) ===== */
#feedback-btn {
  position: fixed; left: 14px; bottom: 130px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff; font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  animation: fbPulse 2.6s ease-in-out infinite;
}
@keyframes fbPulse {
  0%,100% { transform: scale(1); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
  50% { transform: scale(1.1); box-shadow: 0 8px 32px rgba(168,85,247,.7); }
}
#feedback-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4,6,18,.8); }
#feedback-modal.open { display: flex; }
.fb-box { background: #141730; border: 1px solid var(--line); border-radius: 18px; padding: 22px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
/* MThink3 P2 2026-10-11: feedback modal keyboard trap fix — scrollable on mobile (additive) */
.fb-box { max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.fb-box h3 { margin: 0 0 4px; font-size: 1.15rem; }
.fb-box p.muted { font-size: .82rem; margin: 0 0 14px; }
.fb-box label { display: block; font-size: .8rem; font-weight: 700; margin: 10px 0 5px; color: var(--muted); }
.fb-box select, .fb-box textarea, .fb-box input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font-size: .9rem; font-family: inherit;
}
.fb-box textarea { min-height: 110px; resize: vertical; }
.fb-row { display: flex; gap: 10px; margin-top: 14px; }
.fb-row .btn { flex: 1; text-align: center; }
.fb-msg { font-size: .82rem; margin-top: 10px; min-height: 1.2em; }
.fb-msg.ok { color: #4ade80; } .fb-msg.err { color: #f87171; }
@media (max-width: 768px) {
  #feedback-btn { bottom: 124px; left: 12px; }
}

/* ===== Newsletter box (footer) ===== */
.news-box { max-width: 440px; margin: 0 auto 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(99,102,241,.07); text-align: center; }
.news-box h3 { margin: 0 0 6px; font-size: 1.05rem; }
.news-box .tiny { margin: 0 0 12px; }
#news-form { display: flex; gap: 8px; }
#news-email { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font-size: .9rem; }
/* MQA-forms 2026-10-11: refer-link input must shrink like #news-email (min-width:0) so the Copy button never clips on narrow phones */
#refer-link { min-width: 0; }
#news-form .btn { padding: 10px 22px; font-size: .9rem; }
/* MQA-forms 2026-10-11: footer referral #refer-line row — input needs min-width:0 so the long invite URL can't push the row past the box at ≤340px widths; nothing else changes */
#refer-line input { min-width: 0; }
#news-msg { min-height: 1.2em; margin-top: 8px; }
#news-msg.ok { color: #4ade80; } #news-msg.err { color: #f87171; }
@media (max-width: 560px) { #news-form { flex-direction: column; } }

/* ===== Community section ===== */
.community-row .comm-btn { animation: commFloat 3.4s ease-in-out infinite; }
.community-row .comm-btn:nth-child(2) { animation-delay: 1.1s; }
.community-row .comm-btn:nth-child(3) { animation-delay: 2.2s; }
@keyframes commFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
#comm-note { min-height: 1.2em; }

/* ============ SawalPay (JazzCash payment step) ============ */
.pay-box{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:18px;padding:22px;max-width:520px;margin:14px auto;animation:payIn .35s ease;}
@keyframes payIn{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}
.pay-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;}
.pay-jc{background:linear-gradient(135deg,#d32f2f,#b71c1c);color:#fff;font-weight:800;font-size:1.05rem;padding:8px 18px;border-radius:12px;letter-spacing:.5px;box-shadow:0 4px 18px rgba(211,47,47,.35);animation:tIconFloat 3s ease-in-out infinite;}
.pay-secure{font-size:.8rem;color:#9aa0c7;}
.pay-amount{font-size:2rem;font-weight:800;text-align:center;margin:10px 0 2px;background:linear-gradient(90deg,#ffd76a,#ff9d5c);-webkit-background-clip:text;background-clip:text;color:transparent;}
.pay-item{text-align:center;color:#c7cbe8;margin-bottom:10px;}
.pay-steps{color:#c7cbe8;line-height:1.7;padding-left:22px;margin:10px 0;}
.pay-numrow{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px 0;}
.pay-num{font-size:1.5rem;font-weight:800;letter-spacing:2px;background:rgba(211,47,47,.12);border:1px dashed rgba(211,47,47,.5);padding:10px 22px;border-radius:14px;}
.pay-tid{width:100%;padding:13px 16px;border-radius:12px;border:1px solid rgba(99,102,241,.4);background:#0a0d22;color:#fff;font-size:1.15rem;letter-spacing:3px;text-align:center;}
.pay-lock{text-align:center;padding:34px 18px;background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:18px;max-width:520px;margin:14px auto;}
.pay-lock-ico{font-size:2.6rem;margin-bottom:8px;}
.btn-sm{padding:8px 16px;font-size:.85rem;}
/* ============ My Purchases ============ */
.pur-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin:18px 0 40px;}
.pur-card{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:16px;padding:18px;animation:payIn .4s ease;}
.pur-card h3{margin:0 0 6px;font-size:1.05rem;}
.pur-meta{font-size:.85rem;color:#9aa0c7;line-height:1.8;}
.pur-total{font-size:1.25rem;font-weight:800;color:#ffd76a;margin:8px 0;}
.pur-badge{display:inline-block;font-size:.75rem;font-weight:700;padding:4px 12px;border-radius:20px;margin:2px 4px 2px 0;}
.pur-pending{background:rgba(255,193,7,.15);color:#ffd76a;border:1px solid rgba(255,193,7,.4);}
.pur-paid{background:rgba(76,175,80,.15);color:#7ddf8a;border:1px solid rgba(76,175,80,.4);}
.pur-active{background:rgba(99,102,241,.15);color:#a5b4fc;border:1px solid rgba(99,102,241,.4);}

/* ---------- 8K Picture gallery (inside premium box) ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; max-width: 100%; margin: 12px auto 0; }
.showcase-item { margin: 0; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); transition: transform .25s; }
.showcase-item:hover { transform: translateY(-4px) scale(1.03); }
.showcase-item img { width: 100%; height: 70px; object-fit: cover; display: block; cursor: zoom-in; }
.showcase-item figcaption { padding: 8px 6px; font-size: .78rem; text-align: center; color: var(--muted); line-height: 1.5; }
.dl-link { color: #a78bfa; text-decoration: none; font-size: .75rem; font-weight: 600; }
.dl-link:hover { color: #c4b5fd; text-decoration: underline; }
@media (max-width: 768px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } .showcase-item img { height: 65px; } }

/* ---------- Condensed nav: More dropdown + Account top-right ---------- */
.nav-drop { position: relative; }
.nav-drop-btn { background: none; border: none; color: var(--muted); font-size: 0.95rem; cursor: pointer; white-space: nowrap; padding: 0; font-family: inherit; }
.nav-drop-btn:hover { color: var(--text); }
.nav-drop-menu { display: none; position: absolute; top: 130%; right: 0; min-width: 190px; background: #151832; border: 1px solid var(--line); border-radius: 14px; padding: 8px; z-index: 100; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.nav-drop-menu a:hover { background: rgba(99,102,241,.15); color: var(--text); }
.nav-account-btn { margin-left: 8px; order: 10; background: linear-gradient(135deg,#6366f1,#a855f7); color: #fff !important; padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; text-decoration: none; white-space: nowrap; font-weight: 600; }
.nav-account-btn:hover { opacity: .9; color: #fff !important; }
@media (max-width: 768px) {
  .nav-drop-menu { position: fixed; top: auto; }
  body.nav-open .nav-drop-menu { position: static; box-shadow: none; border: none; background: transparent; padding: 0 0 0 12px; }
  /* think-645 2026-10-13 (additive): "More" group divider in mobile-open menu */
  body.nav-open .nav-drop-menu::before {
    content: "\00B7  More  \00B7";
    display: block;
    font-size: .72rem;
    letter-spacing: .08em;
    color: var(--muted);
    padding: 6px 12px 2px;
  }
  body.nav-open .nav-drop.open .nav-drop-menu { display: block; }
  body.nav-open .nav-account-btn { margin: 10px 4px; display: inline-block; }
}

/* ---------- Premium section: compact single-screen ---------- */
#premium { padding-top: 12px; padding-bottom: 12px; }
#premium .sec-head { margin-bottom: 4px; }
#premium .sec-head h2 { font-size: 1.3rem; margin: 0; }
#premium .sec-head .sec-icon { width: 62px; height: 62px; border-radius: 18px; }
#premium .sub, #premium > .muted.center { font-size: .82rem; margin: 2px 0 6px; }
.premium-box { margin-top: 8px !important; padding: 12px !important; border-radius: 14px; }
#premium .studio-out { min-height: 0; padding: 2px 0; }
#premium .premium-gallery:empty { display: none; }
.premium-3d .studio-controls { gap: 8px; }
.premium-3d .studio-controls input, .premium-3d .studio-controls select { padding: 8px 12px !important; font-size: 13px !important; border-radius: 10px; }
.premium-3d #premium-btn { padding: 9px 20px !important; font-size: 14px !important; border-radius: 10px; }
#premium-out { min-height: 0 !important; }
#premium-out p { margin: 4px 0; font-size: .82rem; }
#premium .showcase-grid { gap: 8px; margin-top: 6px; }
#premium .showcase-item img { height: 52px; }
#premium .showcase-item figcaption { padding: 4px; font-size: .68rem; line-height: 1.35; }
#premium .dl-link { font-size: .68rem; }
#premium .tiny.center { margin: 6px 0 0; font-size: .7rem; }
#premium .btn-ghost { padding: 7px 14px; font-size: .82rem; }

/* ---------- Pro lock system ---------- */
.pro-lock { text-align: center; padding: 30px 16px; max-width: 560px; margin: 0 auto; }
.pro-lock h2 { margin: 10px 0; }
.pro-unlock-anim { font-size: 1.05rem; font-weight: 700; margin: 16px 0;
  background: linear-gradient(90deg,#f0abfc,#a78bfa,#67e8f9,#f0abfc); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: proShimmer 2.5s linear infinite; }
@keyframes proShimmer { to { background-position: 300% 0; } }
.pro-prices { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.pro-price-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; min-width: 170px;
  background: rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pro-price-card.hot { border-color: #a855f7; box-shadow: 0 0 24px rgba(168,85,247,.35); }
.pro-price-card b { font-size: 1.25rem; }
.pro-price-card span { font-size: .78rem; color: var(--muted); }
.pro-free-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.tool-pro-badge { position: absolute; top: 8px; right: 8px; background: linear-gradient(135deg,#a855f7,#6366f1);
  color: #fff; font-size: .65rem; font-weight: 800; padding: 3px 9px; border-radius: 20px; letter-spacing: .5px; }
.tool-card { position: relative; }
.tool-card.locked { opacity: .92; }
.tool-card.locked .t-icon { filter: grayscale(.4); }
/* PQA-tools 2026-10-11: PRO badge fav button ke peeche chhup raha tha — badge left corner mein (additive) */
.tool-card.locked .tool-pro-badge { right: auto; left: 8px; }
/* hourly-new run#3 (2026-10-11): NEW animation add-only — gentle glow drift on tool cards; existing animations untouched */
@keyframes prismGlowDrift { 0%,100% { box-shadow: 0 0 0 rgba(139,92,246,0); } 50% { box-shadow: 0 0 22px rgba(139,92,246,.30); } }
.tool-card { animation: prismGlowDrift 5s ease-in-out infinite; }
.tool-card:nth-child(3n+2) { animation-delay: 1.6s; }
.tool-card:nth-child(3n) { animation-delay: 3.2s; }
.free-anim { display: inline-block; font-weight: 800;
  background: linear-gradient(90deg,#4ade80,#22d3ee,#4ade80); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: proShimmer 2s linear infinite; }

/* ---------- Hero stats: continuous animation ---------- */
.stat-anim { display: inline-block;
  background: linear-gradient(90deg,#c4b5fd,#f0abfc,#67e8f9,#c4b5fd); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: statShimmer 3s linear infinite, statPulse 2s ease-in-out infinite; }
@keyframes statShimmer { to { background-position: 300% 0; } }
@keyframes statPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.stats { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; align-items: center; }

/* ---------- Accessibility ---------- */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
[data-theme="oled"] { --bg: #000; --bg2: #000; --card: #0a0a0a; }
[data-theme="oled"] body { background: #000; }
@media print {
  nav, footer, .share-rail, #a11y-btn, #a11y-panel, .cta-row, .float-widget { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .tool-card { break-inside: avoid; border: 1px solid #ccc; }
}

/* ---------- Homepage additions (compact + animated) ---------- */
.ticker-bar { overflow: hidden; background: linear-gradient(90deg,#4c1d95,#6d28d9,#4c1d95); color: #fff; font-size: .78rem; padding: 6px 0; white-space: nowrap; }
.ticker-track { display: inline-block; animation: tickerMove 30s linear infinite; }
@keyframes tickerMove { to { transform: translateX(-50%); } }
.nav-icon-btn { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; font-size: 17px; cursor: pointer; color: #fff; }
.nav-lang { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 20px; color: #fff; font-size: .75rem; padding: 7px 8px; cursor: pointer; }
.nav-lang option { color: #000; }
.cat-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.cat-pills a { font-size: .78rem; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--line); color: var(--text); text-decoration: none; background: rgba(255,255,255,.04); transition: all .25s; animation: pillFloat 3s ease-in-out infinite; }
.cat-pills a:nth-child(2n) { animation-delay: .5s; } .cat-pills a:nth-child(3n) { animation-delay: 1s; }
@keyframes pillFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.cat-pills a:hover { background: rgba(168,85,247,.25); border-color: #a855f7; }
.tod-box { max-width: 560px; margin: 0 auto 18px; padding: 12px 18px; border-radius: 14px; text-align: center;
  background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(103,232,249,.1)); border: 1px solid rgba(168,85,247,.4);
  animation: todGlow 2.5s ease-in-out infinite; font-size: .9rem; }
@keyframes todGlow { 0%,100% { box-shadow: 0 0 8px rgba(168,85,247,.25); } 50% { box-shadow: 0 0 22px rgba(168,85,247,.55); } }
.why-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.why-item { display: flex; align-items: center; gap: 7px; font-size: .82rem; padding: 8px 14px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); animation: pillFloat 3.5s ease-in-out infinite; }
.why-item:nth-child(2n) { animation-delay: .7s; } .why-item:nth-child(3n) { animation-delay: 1.4s; }
.testi-box { max-width: 520px; margin: 0 auto; text-align: center; padding: 16px; min-height: 110px; }
.testi-box blockquote { font-style: italic; font-size: .95rem; margin: 0 0 8px; animation: fadeSlide .6s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.testi-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.testi-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2); cursor: pointer; }
.testi-dots span.on { background: #a78bfa; }
.poll-mini { max-width: 480px; margin: 0 auto; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); }
.poll-mini button { margin: 4px 6px 4px 0; }
.float-actions { position: fixed; bottom: 140px; right: 14px; z-index: 59; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 768px) { .float-actions { bottom: 134px; right: 12px; } }
.float-actions a, .float-actions button { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; text-decoration: none; border: 1px solid var(--line); cursor: pointer;
  background: rgba(20,20,40,.92); color: #fff; backdrop-filter: blur(8px); transition: transform .2s; animation: pillFloat 4s ease-in-out infinite; }
.float-actions a:hover, .float-actions button:hover { transform: scale(1.12); }
.float-actions .fa-wa { background: #25D366; border-color: #25D366; animation-delay: 1s; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1000px; margin: 24px auto 10px; text-align: left; font-size: .82rem; }
.footer-cols h4 { margin: 0 0 8px; font-size: .88rem; }
.footer-cols a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.footer-cols a:hover { color: #a78bfa; }
/* ---------- Footer icon dock: separate animated icon bar at the very bottom ---------- */
.footer-icon-dock { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1000px; margin: 18px auto 6px; padding: 0 12px; }
.footer-icon-dock a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 1.35rem; text-decoration: none; background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.35); border-radius: 50%; animation: dock-float 3s ease-in-out infinite; transition: transform .2s, background .2s, box-shadow .2s; }
.footer-icon-dock a:nth-child(2n) { animation-delay: -1s; }
.footer-icon-dock a:nth-child(3n) { animation-delay: -2s; }
.footer-icon-dock a:hover { transform: scale(1.18); background: rgba(99,102,241,.28); box-shadow: 0 4px 16px rgba(99,102,241,.45); animation-play-state: paused; }
@keyframes dock-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 640px) { .footer-icon-dock { gap: 8px; } .footer-icon-dock a { width: 40px; height: 40px; font-size: 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .footer-icon-dock a { animation: none; } }
.svc-item .pic.darkbg { background: linear-gradient(135deg, #1a1d3a, #2a2d5a); border: 1px solid rgba(99,102,241,.35); }
.svc-item .pic.ic { display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(168,85,247,.25)); border: 1px solid rgba(99,102,241,.35); padding: 0; }
@media (max-width: 640px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
/* USER 2026-10-13: mobile par Studios/Shop footer text sab se neeche (Contact/About ke saath) */
@media (max-width: 640px) {
  .footer-cols .fcol-company { order: 1; }
  .footer-cols .fcol-studios { order: 2; }
  .footer-cols .fcol-shop { order: 3; }
}
/* USER 2026-10-13: mobile par My Day / My Countdown / Goals hide taake baqi icons saaf nazar aayein */
@media (max-width: 768px) {
  #top-widgets-right .tw-card.hide-mob { display: none !important; }
}
/* MQA-forms 2026-10-11: footer columns stack 1-col at phone width (390px mindset) */
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; gap: 14px; } }
/* MQA-forms 2026-10-11: footer newsletter box side-margin guard on phones */
@media (max-width: 560px) { .news-box { margin-left: 12px; margin-right: 12px; } }
@media (max-width: 768px) {
  .nav-icon-btn { width: 32px; height: 32px; font-size: 15px; }
  .nav-lang { font-size: .68rem; padding: 6px 6px; max-width: 64px; }
  .ticker-bar { font-size: .7rem; }
  .cat-pills a { font-size: .72rem; padding: 5px 11px; }
}

/* ---------- 3D animated studio icons ---------- */
.studio-3d-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 10px; perspective: 600px; }
.studio-3d-icon { width: 72px; height: 72px; min-width: 72px; min-height: 72px; flex-shrink: 0; object-fit: contain; border-radius: 16px;
  animation: spin3d 4s linear infinite; transform-style: preserve-3d;
  filter: drop-shadow(0 0 12px rgba(168,85,247,.5)); }
@keyframes spin3d {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  25% { transform: rotateY(90deg) rotateX(10deg); }
  50% { transform: rotateY(180deg) rotateX(0deg); }
  75% { transform: rotateY(270deg) rotateX(-10deg); }
  100% { transform: rotateY(360deg) rotateX(0deg); }
}
.studio-3d-text { font-size: 1.05rem; font-weight: 800;
  background: linear-gradient(90deg,#f0abfc,#a78bfa,#67e8f9,#f0abfc); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: proShimmer 2.5s linear infinite; }
@media (max-width: 768px) {
  .studio-3d-icon { width: 48px; height: 48px; border-radius: 12px; }
  .studio-3d-text { font-size: .9rem; }
  .studio-3d-wrap { gap: 8px; }
}

/* ---------- Realistic animated success messages ---------- */
.success-anim { text-align: center; padding: 18px 12px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(168,85,247,.15));
  border: 1px solid rgba(34,197,94,.4);
  box-shadow: 0 8px 32px rgba(34,197,94,.2), inset 0 1px 0 rgba(255,255,255,.1);
  animation: successPop .6s cubic-bezier(.34,1.56,.64,1); }
.success-anim .ok { font-size: 1.3rem; font-weight: 900; color: #4ade80;
  text-shadow: 0 0 20px rgba(74,222,128,.5); animation: okPulse 1.5s ease-in-out infinite; }
.success-anim .msg { display: block; margin-top: 8px; font-size: 1rem; font-weight: 700;
  background: linear-gradient(90deg,#f0abfc,#a78bfa,#67e8f9,#f0abfc); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: proShimmer 2s linear infinite; }
@keyframes successPop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes okPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ---------- Realistic studio cards ---------- */
.studio-card, .premium-box { background: linear-gradient(160deg, rgba(30,27,75,.9), rgba(15,12,40,.95));
  border: 1px solid rgba(139,92,246,.3); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(139,92,246,.15), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(10px); padding: 20px; }
.studio-card input, .studio-card select, .premium-box input, .premium-box select {
  background: rgba(255,255,255,.06); border: 1px solid rgba(139,92,246,.3);
  border-radius: 12px; padding: 12px 14px; color: #fff;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.3); transition: all .3s; }
.studio-card input:focus, .studio-card select:focus, .premium-box input:focus, .premium-box select:focus {
  border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.2), inset 0 2px 8px rgba(0,0,0,.3);
  outline: none; }
.studio-card .btn-primary, .premium-box .btn-primary {
  background: linear-gradient(135deg,#7c3aed,#a855f7,#6366f1);
  box-shadow: 0 8px 24px rgba(124,58,237,.4), inset 0 1px 0 rgba(255,255,255,.2);
  border-radius: 14px; font-weight: 800; letter-spacing: .3px;
  transition: transform .2s, box-shadow .2s; }
.studio-card .btn-primary:hover, .premium-box .btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124,58,237,.5), inset 0 1px 0 rgba(255,255,255,.2); }
.studio-card .btn-primary:active, .premium-box .btn-primary:active { transform: translateY(0); }

/* ---------- Video showcase (shorter height, same width) ---------- */
.video-showcase .showcase-item { position: relative; overflow: hidden; }
.video-showcase .showcase-item .vid-wrap { height: 180px; overflow: hidden; border-radius: 12px; background: #000; }
.video-showcase .showcase-item .vid-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.video-showcase .showcase-item video { width: 100% !important; height: 180px !important; max-height: 180px !important; object-fit: cover; display: block;
  border-radius: 12px; cursor: pointer; background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .3s; }
.video-showcase .showcase-item video:hover { transform: scale(1.03); }
.video-showcase .showcase-item { position: relative; }
.video-showcase .showcase-item::after { content: "▶"; position: absolute; top: 70px; left: 50%;
  transform: translateX(-50%); font-size: 2rem; color: #fff; opacity: .8;
  text-shadow: 0 0 12px rgba(0,0,0,.8); pointer-events: none; }
@media (max-width: 768px) {
  .video-showcase .showcase-item video { height: 140px; }
  .video-showcase .showcase-item::after { top: 48px; }
}
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.lang-card { text-align: center; padding: 18px 8px !important; }
.lang-flag { font-size: 2.2rem; margin-bottom: 6px; }
.lang-card h3 { font-size: .95rem; margin: 0; }

/* ---------- Performance: render only visible sections (nothing removed) ---------- */
.section { content-visibility: auto; contain-intrinsic-size: auto 400px; } /* PThink1 P8 2026-10-12: 800px placeholder chhote sections par scroll-shift deta tha */
.showcase-grid, .video-showcase, .gal-grid { content-visibility: auto; contain-intrinsic-size: auto 400px; }
/* GPU acceleration for continuous animations */
.studio-3d-icon, .studio-3d-text, .sec-icon { will-change: transform; transform: translateZ(0); }
img { decoding: async; }

/* ---------- AI Video Studio: compact + animated + bulk ---------- */
.vs-compact { padding-top: 18px; padding-bottom: 18px; }
.vs-head { margin: 6px 0 2px; }
.vs-icon-anim { animation: pic3d 6s ease-in-out infinite; }
.vs-sub { margin: 2px auto 10px; font-size: .92rem; }
.vs-card { padding: 14px 16px; animation: qpGlow 3s ease-in-out infinite; }
.vs-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.vs-grid .vs-prompt { grid-column: 1; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(99,102,241,.35); background: #0a0d22; color: #fff; font-size: .92rem; font-family: inherit; animation: inputGlow 3s ease-in-out infinite; }
@keyframes inputGlow { 0%,100% { box-shadow: 0 0 0 rgba(99,102,241,0); } 50% { box-shadow: 0 0 14px rgba(99,102,241,.35); } }
.vs-grid .vs-dice { grid-column: 2; grid-row: 1; animation: diceWiggle 2.5s ease-in-out infinite; }
/* MThink3 P4 2026-10-11: dice buttons guaranteed 44px touch target (additive) */
.vs-grid .vs-dice, #studio-surprise { min-width: 44px; min-height: 44px; }
@keyframes diceWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.08); } 50% { transform: rotate(10deg) scale(1.08); } 75% { transform: rotate(0); } }
.vs-grid select { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(99,102,241,.35); background: #0a0d22; color: #fff; font-size: .88rem; font-family: inherit; }
.vs-grid select option { color: #000; }
.vs-grid .vs-email { grid-column: 1 / -1; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(99,102,241,.35); background: #0a0d22; color: #fff; font-size: .92rem; font-family: inherit; animation: inputGlow 3s ease-in-out infinite; animation-delay: 1.5s; }
@media (min-width: 640px) {
  .vs-grid { grid-template-columns: 1fr auto 1fr 1fr; }
  .vs-grid .vs-prompt { grid-column: 1 / 4; }
  .vs-grid .vs-dice { grid-column: 4; grid-row: 1; justify-self: center; align-self: center; width: 46px; flex: none; }
  .vs-grid select:nth-of-type(1) { grid-column: 1 / 3; }
  .vs-grid select:nth-of-type(2) { grid-column: 3 / 5; }
  .vs-grid .vs-email { grid-column: 1 / -1; }
}
.vs-qty-wrap { margin-top: 12px; }
.vs-qty-label { font-size: .88rem; color: #d7daf2; margin-bottom: 8px; text-align: center; }
.vs-qty-note { color: #34d399; font-weight: 700; }
.vs-qty-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.vs-qty-pills button { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(99,102,241,.4); background: rgba(99,102,241,.1); color: #fff; font-weight: 800; font-size: .88rem; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s; animation: pillFloat 3s ease-in-out infinite; }
.vs-qty-pills button:nth-child(2n) { animation-delay: .5s; }
.vs-qty-pills button:nth-child(3n) { animation-delay: 1s; }
@keyframes pillFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.vs-qty-pills button em { font-style: normal; font-size: .68rem; opacity: .75; }
.vs-qty-pills button.on { background: linear-gradient(135deg,#10b981,#34d399); color: #04241a; border-color: #34d399; box-shadow: 0 0 18px rgba(52,211,153,.5); }
.vs-qty-pills button.paid { border-color: rgba(255,209,102,.5); background: rgba(255,209,102,.08); }
.vs-qty-pills button.paid.on { background: linear-gradient(135deg,#f59e0b,#ffd166); color: #3a2503; border-color: #ffd166; box-shadow: 0 0 18px rgba(255,209,102,.5); }
.vs-price { margin: 10px auto 0; max-width: 420px; text-align: center; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255,209,102,.5); background: rgba(255,209,102,.07); animation: priceGlow 2.5s ease-in-out infinite; }
.vs-price .vp-big { font-size: 1.4rem; font-weight: 800; color: #ffd166; }
.vs-price .vp-small { font-size: .8rem; color: #8b90b8; margin-top: 2px; }
.vs-btn { width: 100%; margin-top: 12px; padding: 14px; font-size: 1rem; animation: btnPulse 2.4s ease-in-out infinite; }
.vs-out { margin-top: 10px; min-height: 0; padding: 6px 0; }
.vs-samples-h { margin: 10px 0 6px; font-size: 1.05rem; }
.vs-samples { gap: 10px; }
/* PQA-studios 2026-10-12: video-studio samples mein 3 items hain — desktop par 5 ki jagah 3 column balanced */
@media (min-width: 769px) { .showcase-grid.vs-samples { grid-template-columns: repeat(3, 1fr); } }
.vs-vid { cursor: pointer; }
.vs-vid .vid-wrap { position: relative; height: 120px; overflow: hidden; border-radius: 12px; background: #000; border: 1px solid rgba(99,102,241,.3); transition: transform .18s, box-shadow .18s; animation: pic3d 9s ease-in-out infinite; }
.vs-vid:nth-child(2) .vid-wrap { animation-delay: -3s; }
.vs-vid:nth-child(3) .vid-wrap { animation-delay: -6s; }
.vs-vid:hover .vid-wrap { transform: scale(1.04); box-shadow: 0 8px 24px rgba(99,102,241,.4); }
.vs-vid .vid-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.8); pointer-events: none; animation: playPulse 2s ease-in-out infinite; }
@keyframes playPulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.15); opacity: 1; } }
/* video lightbox */
.vs-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(4,6,18,.92); align-items: center; justify-content: center; padding: 18px; }
.vs-lightbox.open { display: flex; }
.vs-lb-box { position: relative; width: min(880px, 100%); background: #0d1026; border: 1px solid rgba(99,102,241,.4); border-radius: 18px; padding: 16px; animation: lbIn .3s ease; }
@keyframes lbIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
.vs-lb-close { position: absolute; top: 8px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.5); color: #fff; font-size: 1rem; cursor: pointer; }
.vs-lb-title { color: #fff; font-weight: 800; margin: 0 0 10px; padding-right: 40px; }

/* ---------- Buy Proxies / Buy RDP: ONE-VIEW compact 3-col + animated ---------- */
#proxies.shop-section, #rdp.shop-section { padding-top: 14px; padding-bottom: 14px; }
#proxies .shop-banner, #rdp .shop-banner { height: 44px; margin: 2px 0 6px; border-radius: 10px; animation: pic3d 7s ease-in-out infinite; }
#proxies h2, #rdp h2 { font-size: 1.5rem; margin: 0 0 2px; }
#proxies h2 .grad, #rdp h2 .grad { animation: titleShimmer 3.5s linear infinite; background-size: 220% auto; }
/* anim-titles: continuous shimmer for section titles */
.anim-title{background:linear-gradient(90deg,#a78bfa,#f472b6,#60a5fa,#a78bfa);background-size:220% auto;-webkit-background-clip:text;background-clip:text;color:transparent;animation:titleShimmer 3.5s linear infinite;}
@keyframes titleShimmer{to{background-position:220% center;}}
#proxies > .muted.center, #rdp > .muted.center { font-size: .82rem; margin: 0 auto 8px; max-width: 700px; }
#proxies .shop-search, #rdp .shop-search { margin: 0 auto 8px; max-width: 420px; }
#proxies .shop-search input, #rdp .shop-search input { padding: 7px 14px; font-size: .85rem; }
#proxies .shop-grid, #rdp .shop-grid { max-width: 1280px; gap: 12px; margin-bottom: 0; }
#subscriptions .shop-grid { max-width: 1280px; gap: 14px; margin-bottom: 0; align-items: start; }
@media (min-width: 1080px) {
  #proxies .shop-grid, #rdp .shop-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); align-items: start; }
  #subscriptions .shop-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); }
}
@media (min-width: 700px) and (max-width: 1079px) {
  #proxies .shop-grid, #rdp .shop-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  #proxies .price-list-card, #rdp .price-list-card { grid-column: 1 / -1; }
  #subscriptions .shop-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  #subscriptions .price-list-card { grid-column: 1 / -1; }
}
#proxies .chat-card, #rdp .chat-card { padding: 10px 12px; animation: cardFloat 5s ease-in-out infinite; }
#proxies .shop-grid .chat-card:nth-child(2), #rdp .shop-grid .chat-card:nth-child(2) { animation-delay: 1.6s; }
#proxies .shop-grid .chat-card:nth-child(3), #rdp .shop-grid .chat-card:nth-child(3) { animation-delay: 3.2s; }
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
#proxies .shop-grid h3, #rdp .shop-grid h3 { margin-bottom: 6px; font-size: .95rem; }
#proxies .price-list-card, #rdp .price-list-card { max-width: none; margin: 0; }
#proxies .price-table-wrap, #rdp .price-table-wrap { max-height: 300px; overflow-y: auto; }
/* MThink1 P5 2026-10-11: mobile par nested scroll trap khatam — table page ke saath scroll (additive) */
@media (max-width: 700px) { #proxies .price-table-wrap, #rdp .price-table-wrap { max-height: none; } }
/* MThink1 P1 2026-10-11: video-studio selects mobile par full-width (additive) */
@media (max-width: 639px) { .vs-grid select { grid-column: 1 / -1; } }
#proxies .price-table th, #proxies .price-table td, #rdp .price-table th, #rdp .price-table td { padding: 3px 5px; font-size: .76rem; }
#proxies .ent-pill, #rdp .ent-pill { animation: pillFloat 3s ease-in-out infinite; }
#proxies .price-box, #rdp .price-box { animation: priceGlow 2.5s ease-in-out infinite; }

/* smooth-paused: off-screen animations paused for scroll performance (invisible change) */
.smooth-paused, .smooth-paused *, .smooth-paused *::before, .smooth-paused *::after { animation-play-state: paused !important; }
/* perf: skip rendering off-screen cards entirely — invisible change, big scroll win
   on long image-heavy grids; `auto` remembers each card's real size after first
   paint so the scrollbar never jumps. */
.svc-card, .msvc, .sp-float, .showcase-item, .hub-box, .article-card,
.vs-vid, .prem-card, .free-card, .feat-grid .card, .sub-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}
/* mobile: GPU compositing hints for buttery scroll, no visual change */
@media (max-width: 768px) {
  .svc-card, .sp-float, .showcase-item, .hub-box { -webkit-transform: translateZ(0); transform: translateZ(0); }
  html { -webkit-overflow-scrolling: touch; }
}

/* ---------- Mobile scroll smoothness: isolate paint-animated infinite
   decorations on their own compositor layers (PageSpeed flagged 36
   non-composited animated elements). These are GPU hints only —
   zero visual change; all animations stay ON per user rule. ---------- */
@media (max-width: 768px) {
  .grad, .msvc h4, .badge, .hub-fx, .brand, .shop-banner, .premium-3d h3 {
    -webkit-transform: translateZ(0); transform: translateZ(0);
  }
  /* neon-ring has a base translate(-50%,-50%) centering — preserve it */
  .neon-ring { -webkit-transform: translate(-50%,-50%) translateZ(0); transform: translate(-50%,-50%) translateZ(0); }
  /* toTop has a slide-up transform transition — don't touch transform, hint only */
  #toTop { will-change: transform; }
}

/* ---------- Viral Subscriptions grid ---------- */
.sub-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px; }
.sub-card { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; color: var(--text); }
.sub-card:hover { transform: translateY(-2px); border-color: rgba(99,102,241,.6); }
.sub-card.active { border-color: #a78bfa; box-shadow: 0 0 0 2px rgba(167,139,250,.35), 0 8px 20px rgba(99,102,241,.25); background: rgba(99,102,241,.08); }
.sub-ico { font-size: 1.5rem; line-height: 1; }
.sub-logo { width: 42px; height: 42px; border-radius: 11px; object-fit: contain; background: #fff; padding: 4px; display: block; box-shadow: 0 2px 10px rgba(0,0,0,.35); animation: subLogoFloat 2.6s ease-in-out infinite; }
@keyframes subLogoFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.07); } }
.sub-card:nth-child(2n) .sub-logo { animation-delay: -1.3s; }
.sub-card:nth-child(3n) .sub-logo { animation-delay: -.65s; }
.sub-detail-logo { margin-bottom: 6px; }
.sub-detail-logo .sub-logo { width: 52px; height: 52px; border-radius: 13px; }
@media (max-width: 500px) {
  .sub-logo { width: 34px; height: 34px; border-radius: 9px; padding: 3px; }
  .sub-detail-logo .sub-logo { width: 44px; height: 44px; }
}
.sub-name { font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.25; overflow-wrap: anywhere; max-width: 100%; }
.sub-price { font-size: .78rem; font-weight: 800; color: #a78bfa; }
.sub-price small { font-weight: 400; color: var(--muted); }
@media (max-width: 500px) { .sub-grid { grid-template-columns: repeat(2, 1fr); } }
/* ---------- Subscriptions mobile: no horizontal overflow ---------- */
@media (max-width: 699px) {
  #subscriptions { overflow-x: hidden; }
  #subscriptions .shop-grid { grid-template-columns: minmax(0,1fr); max-width: 100%; }
  #subscriptions .chat-card { max-width: 100%; min-width: 0; overflow: hidden; }
  #subscriptions .chat-card > * { min-width: 0; max-width: 100%; }
  #subscriptions .fld input, #subscriptions .fld select { max-width: 100%; }
}

/* ---------- Service inner panels (modal) ---------- */
.svc-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: flex-start; justify-content: center; padding: 18px 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.svc-modal.open { display: flex; animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.svc-modal-bg { position: fixed; inset: 0; background: rgba(5,5,20,.82); backdrop-filter: blur(6px); }
.svc-panel { position: relative; width: 100%; max-width: 860px; margin: auto; background: linear-gradient(160deg, #141736, #0d1026); border: 1px solid rgba(99,102,241,.4); border-radius: 22px; padding: 26px 22px; box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 40px rgba(99,102,241,.15); animation: panelUp .3s ease; max-height: calc(100vh - 36px); overflow-y: auto; }
@keyframes panelUp { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
.svc-panel-close { position: sticky; top: 0; float: right; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(99,102,241,.5); background: rgba(99,102,241,.15); color: #fff; font-size: 1.2rem; cursor: pointer; z-index: 2; }
.svc-panel-close:hover { background: rgba(239,68,68,.35); }
.svc-panel-hero { text-align: center; margin-bottom: 18px; }
.svc-panel-hero img { width: 110px; height: 110px; object-fit: cover; border-radius: 26px; box-shadow: 0 8px 30px rgba(99,102,241,.45); border: 2px solid rgba(167,139,250,.5); animation: heroFloat 3s ease-in-out infinite; }
@keyframes heroFloat { 0%,100% { transform: translateY(0) rotate(-2deg) scale(1); } 50% { transform: translateY(-10px) rotate(2deg) scale(1.05); } }
.svc-panel-hero h2 { margin: 12px 0 6px; font-size: 1.5rem; }
.svc-panel-hero p { color: var(--muted); font-size: .92rem; max-width: 560px; margin: 0 auto; line-height: 1.6; }
.svc-panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
/* inner items mirror the outer section's chat-card look */
.svc-item { display: flex; gap: 12px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.svc-item:hover { transform: translateY(-3px); border-color: rgba(99,102,241,.6); box-shadow: 0 10px 26px rgba(99,102,241,.22); }
.svc-item .pic { flex: none; width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: #fff; padding: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.4); animation: itemFloat 2.8s ease-in-out infinite; }
@keyframes itemFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.06); } }
.svc-item:nth-child(2n) .pic { animation-delay: -1.4s; }
.svc-item:nth-child(3n) .pic { animation-delay: -.7s; }
.svc-item .tx { min-width: 0; }
.svc-item .tx b { display: block; font-size: .88rem; margin-bottom: 3px; }
.svc-item .tx span { font-size: .78rem; color: var(--muted); line-height: 1.45; display: block; }
.svc-item .pr { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 800; color: #a78bfa; }
.svc-panel-cta { text-align: center; margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .svc-panel { padding: 20px 14px; border-radius: 18px; }
  .svc-panel-grid { grid-template-columns: 1fr; }
  .svc-panel-hero img { width: 88px; height: 88px; }
}
/* think-311 2026-10-12: iOS Safari auto-zoom rokne ke liye mobile inputs 16px */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px; }
}
/* continuous animation for outer service card pictures (logo-style, always moving) */
.svc-card > img { animation: pic3d 9s ease-in-out infinite, svcGlow 3.2s ease-in-out infinite, svcBob 2.4s ease-in-out infinite !important; }
@keyframes svcBob { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .svc-card > img, .svc-panel-hero img, .svc-item .pic { animation: none !important; } }

/* ---------- sawalai-animations-hourly 2026-10-11 run: tiltBreath ---------- */
/* Gentle independent-property tilt for cards — composes with existing transform animations, mobile-safe. */
.anim-tilt { animation: tiltBreath 5.2s ease-in-out infinite; }
@keyframes tiltBreath { 0%,100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }
@media (prefers-reduced-motion: reduce) { .anim-tilt { animation: none !important; } }

/* ---------- sawalai-animations-hourly 2026-10-11 run: shadowBreath ---------- */
/* Gentle breathing glow-shadow + tiny lift for cards/buttons — transform/box-shadow only, mobile-safe. */
.anim-shadow { animation: shadowBreath 3.6s ease-in-out infinite; }
@keyframes shadowBreath {
  0%,100% { box-shadow: 0 4px 14px rgba(99,102,241,.16); transform: translateY(0); }
  50% { box-shadow: 0 10px 30px rgba(168,85,247,.38); transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) { .anim-shadow { animation: none !important; } }

/* ---------- sawalai-think-332 2026-10-11 (anim-perf): consolidated
   reduced-motion kill-switch — pure ADD. The scattered blocks above only
   cover some animations; this catches every remaining infinite animation
   (gradShift, text-shine, btnShine, proShimmer, statShimmer, fxBgShift,
   globalDriftA/B, badgePulse, ringPulse, toTopPulse, fbPulse, todGlow,
   inputGlow, bannerLive, fxPicPulse, spdZap, brandGlow, logoGlow, floats,
   tickers…). Zero effect unless the user prefers reduced motion. ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== anim-modal: modal entrance animations (add-only; no theme/layout change) =====
   Covers modals whose styles live in shared style.css or per-page blocks:
   .tr-modal (trailers.html), .app-modal (apps.html), .num-modal (numbers.html),
   .tm-modal (temp-box.html), #feedback-modal, .svc-modal (style.css).
   Backdrops fade in; boxes pop in once per open. Honors reduced-motion. */
.tr-modal.open, .app-modal.open, .num-modal.open, .tm-modal.open, #feedback-modal.open {
  animation: sawModalFade .28s ease;
}
@keyframes sawModalFade { from { opacity: 0; } to { opacity: 1; } }
.tr-modal-box, .fb-box, .svc-modal-box {
  animation: sawModalPop .34s cubic-bezier(.2,.9,.3,1.22);
}
@keyframes sawModalPop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tr-modal.open, .app-modal.open, .num-modal.open, .tm-modal.open, #feedback-modal.open,
  .tr-modal-box, .fb-box, .svc-modal-box { animation: none !important; }
}

/* ===== anim-toggles: smooth entrance for instant show/hide toggles (add-only; no theme/layout change) =====
   Targets jo abhi bina animation ke snap hote thay: nav dropdown menu (desktop), floating side-search panel,
   floating-widget expand (tw-open content, mobile + desktop compact), mobile nav drawer, theme-toggle press.
   End states bilkul same rehte hain — sirf open par halki entrance animation. Honors reduced-motion. */
@keyframes sawToggleFade { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
@keyframes sawToggleFadeFlat { from { opacity: 0; } to { opacity: 1; } }
/* nav dropdown menu: desktop par fade+slide on open (mobile static flow untouched) */
@media (min-width: 769px) {
  .nav-drop.open .nav-drop-menu { animation: sawToggleFade .18s ease; }
}
/* floating side search panel: opacity-only fade (translateY(-50%) centering chhuna mana hai) */
#side-search.open #side-search-panel { animation: sawToggleFadeFlat .2s ease; }
/* floating widget expand (tw-open): content halka settle-in */.tw-card.tw-open .wx-now, .tw-card.tw-open .wx-days,
.tw-card.tw-open .spd-gauge, .tw-card.tw-open .spd-live, .tw-card.tw-open .spd-bar,
.tw-card.tw-open .spd-status, .tw-card.tw-open .spd-retest,
.tw-card.tw-open .spd-mini, .tw-card.tw-open .spd-name,
.tw-card.tw-open .wx-loc, .tw-card.tw-open .wx-mini { animation: sawToggleFade .22s ease; }
/* mobile nav drawer: halka slide-down on open */
@media (max-width: 768px) {
  body.nav-open .nav-links { animation: sawToggleFade .22s ease; }
}
/* theme toggle: press feedback (hover scale pehle se hai) */
.theme-toggle:active { transform: scale(.88); }
/* ---------- anim-tabs (add-only): tab panel entrance + active-tab glow ---------- */
@keyframes tabEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-enter { animation: tabEnter .28s ease; }
@keyframes tabGlowPulse { 0%,100% { box-shadow: 0 0 0 rgba(168,85,247,0); } 50% { box-shadow: 0 4px 22px rgba(168,85,247,.55); } }
.auth-tabs .ent-pill.active { animation: tabGlowPulse 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .nav-drop.open .nav-drop-menu, #side-search.open #side-search-panel,
  body.nav-open .nav-links, .tw-card.tw-open .wx-now, .tw-card.tw-open .wx-days,
  .tw-card.tw-open .spd-gauge, .tw-card.tw-open .spd-live, .tw-card.tw-open .spd-bar,
  .tw-card.tw-open .spd-status, .tw-card.tw-open .spd-retest,
  .tw-card.tw-open .spd-mini, .tw-card.tw-open .spd-name,
  .tw-card.tw-open .wx-loc, .tw-card.tw-open .wx-mini,
  .tab-enter, .auth-tabs .ent-pill.active { animation: none !important; }
}

/* MQA-nav 2026-10-11: side-search (fixed right, top:50%) overlapped the 6-pill sports stack
   on phone screens (stack occupies ~190-458px from bottom; button sat inside it at 50% height).
   Dock it just above the stack on mobile. Additive only — nothing removed, desktop untouched. */
@media (max-width: 768px) {
  #side-search { top: auto; bottom: 482px; transform: none; }
  #side-search-panel { max-height: 62vh; overflow-y: auto; }
}

/* ---------- prefers-reduced-motion: full-site respect (WCAG 2.3.3) ----------
   Only kicks in when the visitor's OS asks for reduced motion. Default
   experience (all animations) stays 100% unchanged. Animations jump to
   their final state so no content ever gets stuck invisible. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== PC QA home 2026-10-11 (ADDITIVE): de-overlap fixed floats on short desktop viewports ===== */
@media (min-width: 1100px) and (max-height: 1012px) {
  /* sports stack top chip would sit under the side-search circle on <=1012px-tall
     viewports; anchor the stack below the circle and slim the chips so it fits */
  #sports-float {
    bottom: auto;
    top: calc(50% + 54px);
    max-height: calc(50vh - 52px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  #sports-float::-webkit-scrollbar { display: none; }
  #sports-float .sp-label { display: none; }
  #sports-float .sp-float { padding: 8px 10px; }
}
@media (min-width: 1100px) and (max-height: 840px) {
  /* centered share rail would touch the top widgets on <=840px-tall viewports;
     park it above the feedback button instead */
  #share-rail { top: auto; bottom: 220px; transform: none; }
}
/* User 2026-10-11 17:44 UTC: joke widget ke peeche chhupe share/feedback icons — neeche left corner mein saaf jagah par set (additive) */
@media (min-width: 1100px) {
  #share-rail { z-index: 62; bottom: 76px !important; top: auto !important; transform: none !important; }
  #feedback-btn { z-index: 62; bottom: 20px !important; }
}
/* PQA-tools 2026-10-11 desktop QA (additive only): tool landing pages (.tool-lp) ke inline
   style mein body text near-white hardcoded hai (#d7daf2 / #c7cbe8 / #8b90b8) jo light theme
   par unreadable hai. Sirf light theme ke liye theme vars ka override — dark theme untouched. */
[data-theme="light"] .tool-lp p.lead { color: var(--text); }
[data-theme="light"] .tool-lp ol.howto { color: var(--muted); }
[data-theme="light"] .tool-lp .crumb { color: var(--muted); }

/* ---------- PQA-studios fixes 2026-10-11 (ADDITIVE ONLY — nothing existing touched) ---------- */
/* 1. Tools "N / N shown" bar: the floating sports widget's red .sp-count badge background leaked onto it via the shared class name — restore the intended plain muted text */
.sp-layout .sp-count { background: none; animation: none; }
/* 2. Sample video cards: each card already carries its own centered .vs-play overlay — hide the legacy ::after play triangle that sat misplaced over the caption area */
.video-showcase .showcase-item:has(.vs-play)::after { display: none; }
/* 3. Desktop buy side panel: keep hidden until BuyPanel actually populates it (the old #sp-side:empty guard never matched because of the inner wrapper div) */
#sp-side:has(> #sp-side-body:empty) { display: none; }
/* 4. Video-studio form compacting (user: form should fit in one screen) */
#inbox-video .vs-card { padding: 14px; }
#inbox-video .vs-grid { gap: 6px; }
#inbox-video .vs-qty-wrap { margin-top: 8px; }
#inbox-video .vs-btn { margin-top: 8px; padding: 12px; }
#inbox-video .vs-out { min-height: 56px; }

/* PQA-footer 2026-10-11: footer-cols strictly equal tracks on desktop (guards against 1fr min-content squeeze); mobile stacking rules above stay untouched */
@media (min-width: 641px) { .footer-cols { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* PQA-nav 2026-10-11: mid-desktop squeeze band (1025-1180px) — ADDITIVE only. .nav min-content ~1128px overflows
   viewports 1025-1128px (hamburger only appears <=1024px); right-side controls would clip with no way to scroll
   (html{overflow-x:clip}). Tighten gaps/type here; nothing removed, nothing restyled elsewhere. */
@media (min-width: 1025px) and (max-width: 1180px) {
  .nav { padding: 12px 14px; }
  .nav-links { gap: 8px; }
  .nav-links a, .nav-drop-btn { font-size: 0.82rem; }
  .brand { font-size: 1.15rem; }
  .nav-account-btn { padding: 7px 12px; font-size: 0.82rem; }
  .nav-lang { font-size: 0.7rem; padding: 6px 6px; }
}

/* MQA-studios 2026-10-11 14:57 UTC: mobile flex shrink fixes (additive) */
@media (max-width: 768px) {
  .chat-form input { min-width: 0; }
  .studio-row input[type="text"] { min-width: 0; }
  .vs-grid .vs-prompt { min-width: 0; width: 100%; }
}

/* MQA-forms 2026-10-11 14:58 UTC: refer invite-link row (logged-in footer box) — flex input min-width:0 + column stack on phones, additive */
#refer-line input { min-width: 0; }
@media (max-width: 560px) { #refer-line { flex-direction: column; } }

/* MThink3 2026-10-11 16:00 UTC: mobile forms thumb-friendliness (additive) */
/* P1: iOS auto-zoom guard — 16px font on mobile inputs */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}
/* P2: buy modal family CSS (was unstyled — created by buy-panel.js) */
.buy-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 16px; }
.buy-modal.open { display: flex; }
.buy-bg { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.buy-box { position: relative; background: var(--card, #1a1a2e); border-radius: 20px; padding: 24px 20px; max-width: 480px; width: 100%; max-height: 90vh; max-height: 90dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: buyIn .3s ease; box-sizing: border-box; }
@keyframes buyIn { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.buy-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); border: none; color: #fff; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.buy-x:active { background: rgba(255,255,255,.2); }
.buy-pill { min-height: 44px; padding: 10px 16px; border-radius: 12px; margin: 4px; }
.buy-box button[data-q] { min-width: 44px; min-height: 44px; border-radius: 12px; font-size: 1.1rem; }
/* QA buyflow 2026-10-11: buy-head + option controls were unstyled (ADDITIVE) */
.buy-head{display:flex;align-items:center;gap:12px;margin-bottom:14px;}
.buy-head .pic{flex:none;width:56px;height:56px;border-radius:14px;object-fit:contain;background:#fff;padding:5px;box-shadow:0 4px 14px rgba(0,0,0,.4);}
.buy-head .pic.darkbg{background:linear-gradient(135deg,#1a1d3a,#2a2d5a);}
.buy-head .pic.ic{display:inline-flex;align-items:center;justify-content:center;font-size:1.6rem;background:linear-gradient(135deg,rgba(99,102,241,.25),rgba(168,85,247,.25));border:1px solid rgba(99,102,241,.35);padding:0;}
.buy-head b{display:block;font-size:1rem;}
.buy-head span{font-size:.85rem;color:var(--muted);}
.buy-sec{margin-bottom:14px;}
.buy-sec>span{display:block;font-size:.85rem;color:var(--muted);margin-bottom:8px;}
.buy-pills{display:flex;flex-wrap:wrap;gap:4px;}
.buy-pill{background:rgba(255,255,255,.05);border:1px solid var(--line);color:var(--text);cursor:pointer;transition:border-color .2s,background .2s,transform .2s;}
.buy-pill:hover{border-color:var(--indigo);}
.buy-pill.active{background:linear-gradient(135deg,rgba(99,102,241,.35),rgba(168,85,247,.35));border-color:var(--indigo);color:#fff;animation:buyPillGlow 2.6s ease-in-out infinite;}
@keyframes buyPillGlow{0%,100%{box-shadow:0 0 0 rgba(139,92,246,0);}50%{box-shadow:0 0 16px rgba(139,92,246,.55);}}
.buy-pill .off{display:block;font-size:.72rem;color:#a78bfa;font-weight:700;}
.buy-qty{display:inline-flex;align-items:center;gap:10px;}
.buy-box button[data-q]{background:rgba(255,255,255,.05);border:1px solid var(--line);color:var(--text);cursor:pointer;}
.buy-box button[data-q]:hover{border-color:var(--indigo);}
#buy-qty-n{min-width:2ch;text-align:center;font-size:1.1rem;}
.buy-total{margin:6px 0 14px;font-size:1.05rem;}
.buy-total strong{color:#a78bfa;font-size:1.25rem;}
.buy-go{width:100%;}
/* P4: qty pills 44px */
@media (max-width: 768px) {
  .vs-qty-pills button { min-height: 44px; }
  .vs-qty-pills { gap: 10px; }
}
/* P5: shop inputs 44px on mobile (keep WIDE+SHORT desktop look) */
@media (max-width: 768px) {
  #proxies .fld input, #rdp .fld input, .fld input { min-height: 44px; }
  #news-form .btn { min-height: 44px; }
  #news-email { font-size: 16px; }
}

/* MQA-nav 2026-10-11 16:05 UTC: #side-search mobile par #sports-float se takrata tha — stack ke upar shift (additive) */
@media (max-width: 768px) {
  #side-search { top: auto; bottom: 480px; }
}

/* User 2026-10-11 17:32 UTC: side sports icons thode upar — stack 70px up, search button bhi saath upar (additive) */
@media (max-width: 768px) {
  #sports-float { bottom: 260px; }
  #side-search { bottom: 550px; }
}

/* User 2026-10-11 17:43 UTC: icons aur upar + screen ke dermiyan (vertically centered) — additive */
@media (max-width: 768px) {
  #sports-float { bottom: auto; top: 50%; transform: translateY(-50%); }
  #side-search { bottom: auto; top: calc(50% - 235px); transform: none; }
/* MQA-nav 2026-10-11: chhoti portrait height (561-810px) par #side-search right slim-widget
   column (#top-widgets-right, 88-170px) ke upar aa jata tha (z-index 999 vs 61) — button
   widgets ko dhak kar untappable bana deta tha. Do bands, dono additive: */
@media (max-width: 768px) and (min-height: 701px) and (max-height: 810px) {
  #side-search { top: 200px; bottom: auto; transform: none; }
}
/* MQA-nav 2026-10-11 21:08 UTC: crypto card add hone ke baad right widget column ~88-188px tak pohanch gaya — #side-search ko 16px neeche taake slim bars se takraye hi nahi (additive, mobile 701-810px height band only) */
@media (max-width: 768px) and (min-height: 561px) and (max-height: 700px) {
  #side-search { top: calc(50% + 100px); bottom: auto; transform: none; }
}
}
/* MThink2 P1 2026-10-11: landscape/chhoti height par search button off-screen na jaye (additive) */
@media (max-width: 768px) and (max-height: 560px) {
  #sports-float { top: auto; bottom: 64px; transform: none; flex-direction: row; gap: 6px; }
  #sports-float .sp-label { display: none; }
  #side-search { top: 88px; bottom: auto; transform: none; }
  /* MQA-nav 2026-10-11: landscape mein #side-search right widgets se takrata tha — neeche shift */
  #top-widgets-right { top: 136px; }
}
/* ===== Floating top-right mini widgets (clock + fx + prayer) ===== */
#top-widgets-right { position: fixed; right: 10px; top: 128px; z-index: 61; display: flex; flex-direction: column; gap: 6px; width: 150px; }
#top-widgets-right .tw-card { padding: 2px 6px; }
#top-widgets-right .tw-title { font-size: .58rem; margin-bottom: 1px; }
#top-widgets-right .clk-time { font-size: .62rem; }
#top-widgets-right .clk-date { font-size: .52rem; }
#top-widgets-right .clk-zone { font-size: .58rem; }
#top-widgets-right .clk-dial { width: 22px; height: 22px; }
#top-widgets-right .fx-in { font-size: .62rem; padding: 2px 4px; }
#top-widgets-right .fx-mini { font-size: .58rem; }
#top-widgets-right .tw-card:nth-child(1) { animation-delay: 1.2s; }
#top-widgets-right .tw-card:nth-child(2) { animation-delay: 3.7s; }
#top-widgets-right .tw-card:nth-child(3) { animation-delay: 2.4s; }
/* mini texts shown in compact/collapsed mode */
.clk-mini, .fx-mini, .pt-mini { display: none; font-weight: 800; font-size: .65rem; margin-left: 4px; white-space: nowrap; }
.clk-mini { color: #fbbf24; } .fx-mini { color: #4ade80; } .pt-mini { color: #a78bfa; }
/* clock */
.clk-body { display: flex; flex-direction: column; gap: 5px; }
.clk-row { display: flex; align-items: center; gap: 7px; }
.clk-dial { width: 30px; height: 30px; flex: 0 0 auto; }
.clk-dial .clk-hand { animation: clkSpin 60s linear infinite; transform-origin: 18px 18px; }
@keyframes clkSpin { to { transform: rotate(360deg); } }
.clk-zone { font-size: .6rem; font-weight: 700; color: var(--muted); }
.clk-time { font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.clk-date { font-size: .58rem; color: var(--muted); }
/* fx converter */
.fx-body { display: flex; flex-direction: column; gap: 3px; }
.fx-dir { font-size: .6rem; font-weight: 800; color: #4ade80; }
.fx-row { display: flex; gap: 4px; }
.fx-in { flex: 1; min-width: 0; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 7px; color: var(--text); font-size: .72rem; padding: 3px 6px; }
.fx-swap { background: rgba(74,222,128,.15); border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 2px 8px; cursor: pointer; font-size: .72rem; animation: fxPulse 3s ease-in-out infinite; }
@keyframes fxPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.fx-out { font-size: .8rem; font-weight: 800; color: var(--text); }
.fx-rate { font-size: .58rem; color: var(--muted); }
.fx-rate.fx-glow { animation: fxGlow 1.4s ease-in-out; }
@keyframes fxGlow { 0% { color: #4ade80; } 100% { color: var(--muted); } }
/* prayer times */
.pt-body { display: flex; flex-direction: column; gap: 4px; }
.pt-next-row { display: flex; align-items: center; gap: 8px; }
.pt-ring { width: 38px; height: 38px; flex: 0 0 auto; animation: ptRingPulse 3s ease-in-out infinite; }
@keyframes ptRingPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
#pt-ring-fg { transition: stroke-dashoffset 1s linear; }
.pt-next-label { font-size: .58rem; color: var(--muted); }
.pt-next { font-size: .78rem; font-weight: 800; color: #a78bfa; }
.pt-count { font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.pt-city { font-size: .58rem; color: var(--muted); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.pt-hijri { font-size: .58rem; color: var(--muted); text-align: center; }
.pt-list { display: flex; flex-direction: column; gap: 1px; }
.pt-row { display: flex; justify-content: space-between; font-size: .62rem; padding: 1px 4px; border-radius: 5px; background: rgba(255,255,255,.03); }
.pt-row span:first-child { color: var(--muted); font-weight: 600; }
.pt-row span:last-child { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
/* compact mode (desktop scrolled): same slim-bar behavior as left widgets */
#top-widgets-right.tw-compact .tw-card { cursor: pointer; }
#top-widgets-right.tw-compact .tw-card .tw-title { position: relative; padding-right: 14px; margin-bottom: 0; }
#top-widgets-right.tw-compact .tw-card .tw-title::after { content: "▾"; position: absolute; right: 2px; top: 0; font-size: .68rem; color: var(--muted); transition: transform .2s; }
#top-widgets-right.tw-compact .tw-card.tw-open .tw-title::after { transform: rotate(180deg); }
#top-widgets-right.tw-compact .tw-card.tw-open .tw-title { margin-bottom: 3px; }
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .clk-body,
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .fx-body,
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .pt-body { display: none; }
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .clk-mini,
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .fx-mini,
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .pt-mini { display: inline; }
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .clk-name,
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .fx-name,
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .pt-name { display: none; }
@media (max-width: 768px) {
  #top-widgets-right { width: 150px; top: 88px; right: 8px; gap: 8px; }
  #top-widgets-right .tw-card:not(.tw-open) .clk-body,
  #top-widgets-right .tw-card:not(.tw-open) .fx-body,
  #top-widgets-right .tw-card:not(.tw-open) .pt-body { display: none; }
  #top-widgets-right .tw-card:not(.tw-open) .clk-mini,
  #top-widgets-right .tw-card:not(.tw-open) .fx-mini,
  #top-widgets-right .tw-card:not(.tw-open) .pt-mini { display: inline; }
  #top-widgets-right .tw-card:not(.tw-open) .clk-name,
  #top-widgets-right .tw-card:not(.tw-open) .fx-name,
  #top-widgets-right .tw-card:not(.tw-open) .pt-name { display: none; }
}
/* User 2026-10-11 18:00 UTC: mobile menu khulne par fixed widgets menu ke upar na aayein (additive) */
@media (max-width: 768px) {
  body.nav-open #top-widgets,
  body.nav-open #top-widgets-right,
  body.nav-open #sports-float,
  body.nav-open #side-search,
  body.nav-open #share-rail,
  body.nav-open #feedback-btn,
  body.nav-open #toTop { display: none !important; }
}
@media (max-width: 768px) {
  #top-widgets, #top-widgets-right { width: 78px !important; gap: 4px; opacity: .92; }
  #top-widgets .tw-card, #top-widgets-right .tw-card { padding: 2px 4px; border-radius: 8px; }
  #top-widgets .tw-card .tw-title, #top-widgets-right .tw-card .tw-title { font-size: .6rem; margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #top-widgets .wx-mini, #top-widgets .spd-mini,
  #top-widgets-right .clk-mini, #top-widgets-right .fx-mini, #top-widgets-right .pt-mini { font-size: .6rem; }
  /* joke widget mobile par chhota — hero text na dhake */
  #top-widgets .tw-card .joke-mini { font-size: .62rem; line-height: 1.3; }
  /* sports icons chhote — search bars se na takrayein */
  #sports-float { gap: 5px; }
  #sports-float .sp-float { padding: 6px 8px; font-size: .7rem; }
  #sports-float .sp-emoji { font-size: 1rem; }
  #side-search-btn { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* ============ ₿ Live Crypto widget (additive, 2026-10-11) ============ */
.crypto-card .cr-ico { display: inline-block; animation: crPulse 3s ease-in-out infinite; }
@keyframes crPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.cr-mini { display: none; font-weight: 800; font-size: .65rem; margin-left: 4px; white-space: nowrap; color: #f7931a; }
.cr-body { display: flex; flex-direction: column; gap: 3px; }
.cr-row { display: flex; align-items: baseline; gap: 6px; font-size: .72rem; }
.cr-sym { font-weight: 800; color: var(--muted); width: 34px; }
.cr-price { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; border-radius: 4px; padding: 0 3px; }
.cr-chg { font-size: .62rem; font-weight: 700; margin-left: auto; font-variant-numeric: tabular-nums; }
.cr-up { color: #4ade80; } .cr-down { color: #f87171; }
.cr-note { font-size: .58rem; color: var(--muted); margin-top: 2px; }
.cr-flash-up { animation: crFlashUp .8s ease; }
.cr-flash-down { animation: crFlashDown .8s ease; }
@keyframes crFlashUp { 0% { background: rgba(74,222,128,.45); } 100% { background: transparent; } }
@keyframes crFlashDown { 0% { background: rgba(248,113,113,.45); } 100% { background: transparent; } }
/* compact + mobile slim-bar: same mechanism as clock/fx/prayer */
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .cr-body { display: none; }
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .cr-mini { display: inline; }
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .cr-name { display: none; }
@media (max-width: 768px) {
  #top-widgets-right .tw-card:not(.tw-open) .cr-body { display: none; }
  #top-widgets-right .tw-card:not(.tw-open) .cr-mini { display: inline; }
  #top-widgets-right .tw-card:not(.tw-open) .cr-name { display: none; }
  #top-widgets-right .cr-mini { font-size: .6rem; }
  #top-widgets-right .tw-card.tw-open .cr-body { display: flex; }
}


/* ============ 🪙 Live Gold Rate widget (additive, 2026-10-12) ============ */
.gold-card .gold-ico { display: inline-block; animation: goldShimmer 4s ease-in-out infinite; }
@keyframes goldShimmer { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(251,191,36,.3)); } 50% { transform: scale(1.2); filter: drop-shadow(0 0 8px rgba(251,191,36,.8)); } }
.gold-mini { display: none; font-weight: 800; font-size: .65rem; margin-left: 4px; white-space: nowrap; color: #fbbf24; }
.gold-body { display: flex; flex-direction: column; gap: 3px; }
.gold-price { font-weight: 800; font-size: .95rem; color: var(--text); font-variant-numeric: tabular-nums; border-radius: 4px; padding: 0 3px; }
.gold-chg { font-size: .62rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gold-up-t { color: #4ade80; } .gold-down-t { color: #f87171; }
.gold-note { font-size: .58rem; color: var(--muted); }
.gold-up { animation: goldFlashUp .8s ease; }
.gold-down { animation: goldFlashDown .8s ease; }
@keyframes goldFlashUp { 0% { background: rgba(74,222,128,.45); } 100% { background: transparent; } }
@keyframes goldFlashDown { 0% { background: rgba(248,113,113,.45); } 100% { background: transparent; } }
/* compact + mobile slim-bar: same mechanism as crypto */
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .gold-body { display: none; }
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .gold-mini { display: inline; }
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .gold-name { display: none; }
@media (max-width: 768px) {
  #top-widgets-right .tw-card:not(.tw-open) .gold-body { display: none; }
  #top-widgets-right .tw-card:not(.tw-open) .gold-mini { display: inline; }
  #top-widgets-right .tw-card:not(.tw-open) .gold-name { display: none; }
  #top-widgets-right .gold-mini { font-size: .6rem; }
  #top-widgets-right .tw-card.tw-open .gold-body { display: flex; }
}

/* ============ 🏛️ PSX Market Status chip (additive, 2026-10-12) ============ */
.psx-chip .psx-ico { display: inline-block; animation: psxBounce 3s ease-in-out infinite; }
@keyframes psxBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.psx-mini { display: none; font-weight: 800; font-size: .65rem; margin-left: 4px; white-space: nowrap; }
.psx-body { display: flex; flex-direction: column; gap: 2px; }
.psx-status { font-weight: 800; font-size: .78rem; display: flex; align-items: center; gap: 6px; }
.psx-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; animation: statusBlink 2s ease-in-out infinite; }
.psx-dot.psx-live { background: #4ade80; color: #4ade80; }
.psx-dot.psx-off { background: #f87171; color: #f87171; }
@keyframes statusBlink { 0%,100% { opacity: 1; box-shadow: 0 0 4px currentColor; } 50% { opacity: .55; box-shadow: none; } }
.psx-detail { font-size: .6rem; color: var(--muted); }
/* compact + mobile slim-bar */
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .psx-body { display: none; }
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .psx-mini { display: inline; }
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .psx-name { display: none; }
@media (max-width: 768px) {
  #top-widgets-right .tw-card:not(.tw-open) .psx-body { display: none; }
  #top-widgets-right .tw-card:not(.tw-open) .psx-mini { display: inline; }
  #top-widgets-right .tw-card:not(.tw-open) .psx-name { display: none; }
  #top-widgets-right .psx-mini { font-size: .6rem; }
  #top-widgets-right .tw-card.tw-open .psx-body { display: flex; }
}

/* ============ 📿 Digital Tasbih FAB (additive, 2026-10-12) ============ */
#tasbih-fab { bottom: 140px; animation: fabWiggle 4s ease-in-out infinite, tasbihGlow 5s ease-in-out infinite; }
@keyframes tasbihGlow { 0%,100% { box-shadow: 0 4px 18px rgba(0,0,0,.45); } 50% { box-shadow: 0 4px 22px rgba(251,191,36,.55); } }
#tasbih-fab .tasbih-ring { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); pointer-events: none; }
#tasbih-fab .tasbih-inner { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
#tasbih-fab .tasbih-inner b { font-size: .62rem; font-weight: 800; color: #fbbf24; }
#tasbih-fab .tasbih-goal { position: absolute; bottom: -5px; right: -3px; font-size: .55rem; font-weight: 800; background: rgba(251,191,36,.92); color: #1a1a2e; border-radius: 8px; padding: 1px 5px; cursor: pointer; }
#tasbih-fab.tasbih-tap { animation: tasbihTap .25s ease; }
@keyframes tasbihTap { 0% { transform: scale(1); } 50% { transform: scale(.88); } 100% { transform: scale(1); } }
#tasbih-fab.tasbih-done { animation: tasbihDone 1.2s ease; }
@keyframes tasbihDone { 0% { transform: scale(1); } 30% { transform: scale(1.25); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@media (max-width: 768px) {
  #tasbih-fab { bottom: 128px; }
  body.nav-open #tasbih-fab { display: none !important; }
}

/* ============ Floating action buttons: 🎲 dice + ⬆ back-to-top (additive, 2026-10-11) ============ */
.fab-btn {
  position: fixed; right: 20px; z-index: 62;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(20,20,40,.94); color: #fff;
  font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
  animation: fabWiggle 4s ease-in-out infinite;
  transition: transform .2s, opacity .25s;
}
@keyframes fabWiggle { 0%,100% { transform: rotate(0deg) scale(1); } 25% { transform: rotate(-8deg) scale(1.05); } 50% { transform: rotate(8deg) scale(1); } 75% { transform: rotate(-4deg) scale(1.03); } }
.fab-btn:hover { animation-play-state: paused; transform: scale(1.15); }
#tool-dice { bottom: 88px; }
#tool-dice.dice-roll { animation: diceRoll .6s ease; }
@keyframes diceRoll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(360deg) scale(1.3); } 100% { transform: rotate(720deg) scale(1); } }
.bt-btn { bottom: 20px; opacity: 0; pointer-events: none; animation: fabWiggle 4s ease-in-out infinite, btPulse 2.5s ease-in-out infinite; }
.bt-btn.bt-show { opacity: 1; pointer-events: auto; }
.bt-btn svg { width: 30px; height: 30px; }
@keyframes btPulse { 0%,100% { box-shadow: 0 4px 18px rgba(0,0,0,.45); } 50% { box-shadow: 0 4px 22px rgba(34,211,238,.5); } }
@media (max-width: 768px) {
  .fab-btn { width: 40px; height: 40px; font-size: 1.15rem; right: 14px; }
  #tool-dice { bottom: 76px; }
  .bt-btn { bottom: 16px; }
  body.nav-open #tool-dice, body.nav-open #back-top { display: none !important; }
}

/* mobile-perf 2026-10-11: fixed share buttons — backdrop blur forces backdrop re-composite on every scroll frame on mobile GPUs; bg is 92% opaque so solid looks identical. Animation untouched. */
@media (max-width: 768px) {
  .float-actions a, .float-actions button {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgb(20, 20, 40);
  }
  .float-actions .fa-wa { background: #25D366; }
}

/* mobile-perf 2026-10-11: studio cards — backdrop blur forces backdrop re-composite on every scroll frame on mobile GPUs; card bg is ~90% opaque so solid looks identical. Animation untouched. */
@media (max-width: 768px) {
  .studio-card, .premium-box {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgb(22, 20, 52);
  }
}

/* PQA-home 2026-10-11: fixed side stacks (190px) overlapped .shop-section (1120px) card edges on desktop while scrolled — slim stacks in compact mode (additive) */
@media (min-width: 769px) {
  #top-widgets.tw-compact, #top-widgets-right.tw-compact { width: 150px; }
  #top-widgets.tw-compact .tw-title, #top-widgets-right.tw-compact .tw-card .tw-title { font-size: .6rem; }
}

/* COMPACT right widgets (user 2026-10-11: chhota kar ke lagao) */
#top-widgets-right { width: 150px; gap: 5px; }
#top-widgets-right .tw-card { padding: 2px 6px; border-radius: 8px; }
#top-widgets-right .tw-title { font-size: .58rem; margin-bottom: 1px; }
#top-widgets-right .clk-dial { width: 22px; height: 22px; }
#top-widgets-right .clk-time { font-size: .68rem; }
#top-widgets-right .clk-date { font-size: .52rem; }
#top-widgets-right .clk-zone { font-size: .55rem; }
#top-widgets-right .clk-body { gap: 3px; }
#top-widgets-right .clk-row { gap: 5px; }
#top-widgets-right .fx-in { font-size: .65rem; padding: 2px 5px; }
#top-widgets-right .fx-out { font-size: .7rem; }
#top-widgets-right .fx-rate { font-size: .52rem; }
#top-widgets-right .pt-ring { width: 30px; height: 30px; }
#top-widgets-right .pt-next { font-size: .68rem; }
#top-widgets-right .pt-count { font-size: .62rem; }
#top-widgets-right .pt-row { font-size: .56rem; }
#top-widgets-right .cr-row { font-size: .62rem; }
/* Thinker mobile-audit 2026-10-11 19:40 UTC: mobile touch targets + modal close buttons (additive, mobile-only; higher specificity than page-inline rules) */
@media (max-width: 768px) {
  body .buy-qty button { min-width: 44px; min-height: 44px; }
  button.tr-modal-close, button.num-modal-close, button.buy-x { min-width: 44px; min-height: 44px; }
}

/* iOS auto-zoom guard (mqa-think3 P1): mobile inputs 16px+ */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}

/* PQA-home 2026-10-11: desktop #side-search (top:50%, right:14px, z-999) 6-pill
   #sports-float stack (bottom:190px, ~443px tak) se takrata tha H<~934px par —
   mobile fix maujood tha, desktop nahi. Button ko stack ke NEECHE dock kiya
   (bottom-anchored, height-independent). Kuch remove nahi, animation same. */
@media (min-width: 769px) {
  #side-search { top: auto; bottom: 110px; transform: none; }
}

/* MQA-tools 2026-10-11: tool landing-page CTA button ("▶ Use Free X Now — Free")
   tool names ke sath 390px se chora ho jata hai (~456px vs 358px) — mobile par
   max-width + wrap, desktop untouched */
@media (max-width: 600px) {
  .tool-cta .btn { display: inline-block; max-width: 100%; white-space: normal; padding: 12px 22px; font-size: .95rem; }
}

/* 🔥 Small deal corner badge for RDP/proxy boxes (additive) */
.shop-section { position: relative; }
.deal-corner {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  font-size: .5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  padding: 2px 6px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(239,68,68,.3);
  animation: dealPulse 2s ease-in-out infinite;
  cursor: default;
  white-space: nowrap;
  opacity: .92;
}
@keyframes dealPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* PQA-home 2026-10-11: desktop page-top par #sports-float expanded #top-widgets-right column se takrata tha H<~950px par. Column compact hote hi masla khud khatam — sirf expanded state mein stack ko neeche dock karo. */
@media (min-width: 769px) and (min-height: 790px) {
  body:has(#top-widgets-right:not(.tw-compact)) #sports-float {
    top: 522px;
    bottom: auto;
  }
}

/* Skip to main content link (WCAG 2.4.1) — invisible until keyboard-focused */
.skip-link{position:absolute;left:-9999px;top:0;background:#fff;color:#000;padding:10px 16px;z-index:99999;font-weight:700;border-radius:0 0 8px 0}
.skip-link:focus{left:0;outline:3px solid #2563eb}

/* PQA-footer 2026-10-11: claim-token row (referral More panel) — inline-style flex row; input min-width guard */
#refer-more-panel #claim-token { min-width: 0; }

/* ---------- think-039 2026-10-11: notch/safe-area support (additive) ----------
   env() bina-notch devices par 0 hota hai — zero visual change; notched phones
   par home-indicator ke peeche dabne se bachat. Kuch remove/restyle nahi. */
@supports (padding: env(safe-area-inset-bottom)) {
  #cookie-banner { bottom: calc(16px + env(safe-area-inset-bottom)); }
  #sticky-cta { bottom: calc(18px + env(safe-area-inset-bottom)); }
  #toTop { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* MQA-media 2026-10-11 (additive): mobile par khaali buy-panel aside hide — .sp-layout ka gap content ko squeeze na kare.
   #sp-side mobile par hamesha khaali rehta hai (buy-panel.js mobile par modal use karta hai, sirf >=900px par side panel). */
@media(max-width:899px){
  #sp-side{display:none;}
  .sp-layout{gap:0;}
}

/* MQA-nav 2026-10-11 (additive): mobile par #toTop aur #feedback-btn left widget column (#top-widgets: left 8px, width 78px, z-61) ke peeche chhupe thay (buttons z-60). Dono ko column ke right shift kiya taake poori tap target visible ho. Desktop untouched. */
@media (max-width: 768px) {
  #toTop { left: 94px; }
  #feedback-btn { left: 94px; }
}

/* MQA-nav 20261011-202655 (additive): #side-search button tall phones (min-height:811px) aur 561-700px band mein #sports-float stack se takrata tha. Button ko stack ke upar park kiya. */
@media (max-width: 768px) and (min-height: 811px) {
  #side-search { top: calc(50% - 184px); bottom: auto; transform: none; }
}
@media (max-width: 768px) and (min-height: 561px) and (max-height: 700px) {
  #side-search { top: auto; bottom: 130px; transform: none; }
}

/* MQA-nav 2026-10-12 (additive): 561-700px band mein #side-search (top:calc(50%-184px))
   right widget column (#top-widgets-right, ~88-188px) se takrata tha — z-999 button
   prayer/crypto cards ko dhak kar untappable bana deta tha. Stack ke neeche dock kiya. */

/* PQA-home 2026-10-11 (additive): desktop (769px+) par #side-search (top:50%) 6-item #sports-float stack ke top icon se takrata tha. Stack ke upar dock kiya. Mobile untouched. */
@media (min-width: 769px) {
  #side-search { top: auto; bottom: 482px; transform: none; }
}

/* PC-think2 2026-10-11 (additive): desktop left column tidy stack — #share-rail (bottom:76) #toTop (bottom:72) ko 91% dhak raha tha, #a11y-btn (bottom:90, z-9998) dono par paint hota tha. ≥1100px par clean stack: feedback(20) → rail(76..266) → toTop(276..320) → a11y(332..376). */
@media (min-width: 1100px) {
  #toTop { bottom: 276px; z-index: 63; }
  #a11y-btn { bottom: 332px !important; }
}

/* MQA-nav 20261011-2327 (additive): 811-850px height band mein #side-search Crypto widget se takrata tha — top:200px (701-810 band jesa). */
@media (max-width: 768px) and (min-height: 811px) and (max-height: 850px) {
  #side-search { top: 200px; bottom: auto; transform: none; }
}

/* PQA-home 2026-10-12 (ADDITIVE): desktop par #side-search circle (fixed, z-index:999)
   #top-widgets-right ke cards (prayer/crypto/currency) ko dhak raha tha — CSS geometry +
   live screenshot se confirmed. Circle ko widget column ke LEFT shift kiya (x-separation,
   har viewport height par kaam karta hai); vertical position aur panel ka leftward-open
   behavior unchanged. */
@media (min-width: 769px) {
  #side-search { right: 176px; }
}

/* PQA-home 2026-10-12 (ADDITIVE): tall desktop (>1012px) par #sports-float (bottom:190px anchor)
   #top-widgets-right ke prayer/crypto cards ko dhak raha tha — existing ≤1012px wala fix is
   band par lagoo nahi hota tha. Stack ko widget column (~688px tak) ke neeche anchor kiya;
   slim icon chips wali existing look barkarar, koi cheez remove nahi. */
@media (min-width: 769px) and (min-height: 1013px) {
  #sports-float {
    bottom: auto;
    top: 712px;
    max-height: calc(100vh - 736px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  #sports-float::-webkit-scrollbar { display: none; }
  #sports-float .sp-label { display: none; }
  #sports-float .sp-float { padding: 8px 10px; }
}

/* MOBILE-AUDIT 2026-10-12 (additive): #sawal-wish-link (ui.js se nav mein inject hota hai, font-size:1.3rem ~21px glyph)
   mobile par tap target chhota tha — sirf mobile breakpoint mein 40px min tap area. Desktop untouched, kuch remove nahi. */
@media (max-width: 768px) {
  #sawal-wish-link { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
}

/* mqa-media 2026-10-11: lambi unbroken title/desc strings 390px par card se bahar na niklen */
.sp-card .tx b,.sp-card .tx span{overflow-wrap:anywhere;}

/* mthink2 2026-10-12: mobile menu khulne par a11y button/panel menu ke upar na tairein */
@media (max-width:768px){
  body.nav-open #a11y-btn,body.nav-open #a11y-panel,body.nav-open #wa-share,body.nav-open #wa-join{display:none !important;}
}
/* PC-think2 P1 2026-10-12 (additive): @supports rule unguarded thi — file mein tidy stack (2396)
   ke BAAD hone se desktop par a11y-btn ko bottom:90px par gira kar share-rail par paint karti thi.
   Mobile-only guard lagaya — mobile par 2467 (bottom:96px !important) waise bhi jeetta hai, to zero visual change. */
@media (max-width:768px){
@supports (padding:env(safe-area-inset-bottom)){
  #a11y-btn{bottom:calc(90px + env(safe-area-inset-bottom)) !important;}
}
}
/* mthink2 2026-10-12: joke card mobile par page-top par hi slim ho (baqi cards jesa) */
@media (max-width:768px){
  #top-widgets .jk-otd:not(.tw-open) .jk-otd-text,
  #top-widgets .jk-otd:not(.tw-open) .jk-otd-go{display:none;}
  #top-widgets .jk-otd .tw-title::after{display:none;}
}
/* mthink2 2026-10-12: <=400px par sticky-cta back-top ke neeche na ghuse */
@media (max-width:400px){
  #sticky-cta{max-width:calc(100vw - 150px);}
}

/* MQA-nav 2026-10-12 03:33 UTC (additive): 701-850px height bands mein #side-search (top:200px, z-999) Crypto card ke neeche wale ~31px ko dhak kar untappable bana deta tha. Button ko widget column (~88-231px) ke neeche wale gap mein dock kiya. Dono bands (701-810, 811-850) cover, sports-float (~329px se) se 45px clearance. */
@media (max-width: 768px) and (min-height: 701px) and (max-height: 850px) {
  #side-search { top: 244px; bottom: auto; transform: none; }
}

/* ===== mobile polish 2026-10-12 (user screenshots): tidy small side icons, no overlaps ===== */
@media (max-width:768px){
  /* left-bottom cluster: one tidy small stack */
  #wa-share{width:40px !important;height:40px !important;left:12px !important;bottom:12px !important;font-size:1.25rem !important}
  #wa-join{left:12px !important;bottom:58px !important;font-size:.7rem !important;padding:6px 10px !important}
  #a11y-btn{width:36px !important;height:36px !important;left:12px !important;bottom:96px !important;font-size:16px !important}
  #feedback-btn{width:36px !important;height:36px !important;left:12px !important;bottom:138px !important;font-size:1.05rem !important}
  #toTop{width:36px !important;height:36px !important;left:12px !important;bottom:180px !important;font-size:1rem !important}
  /* right side: smaller */
  #side-search{width:34px !important;height:34px !important;font-size:1rem !important}
  #tool-dice{width:36px !important;height:36px !important;font-size:1.05rem !important}
  .bt-btn{width:36px !important;height:36px !important}
  #sports-float .sp-float{position:relative;width:34px;height:34px;padding:0;justify-content:center;border-radius:50%}
  #sports-float .sp-float .sp-label{display:none}
  #sports-float .sp-float .sp-emoji{font-size:1.05rem;margin:0}
  #sports-float .sp-count{position:absolute;top:-8px;right:-8px;font-size:.55rem;padding:1px 5px;border-radius:10px;white-space:nowrap}
  /* big deal box hidden on mobile — per-box corner badges instead */
  #sawal-deal{display:none !important}
  /* trial strip compact on mobile */
  #pro-trial-strip{font-size:.78rem !important;padding:8px 10px !important}
  /* subtle side ambient glows (lightweight) */
  .m-side-glow{position:fixed;top:28%;width:120px;height:320px;z-index:0;pointer-events:none;filter:blur(60px);opacity:.35;animation:mSideGlow 9s ease-in-out infinite}
  .m-side-glow.l{left:-60px;background:radial-gradient(ellipse,#6366f1,transparent 70%)}
  .m-side-glow.r{right:-60px;background:radial-gradient(ellipse,#a855f7,transparent 70%);animation-delay:-4.5s}
  @keyframes mSideGlow{0%,100%{transform:translateY(-24px);opacity:.28}50%{transform:translateY(24px);opacity:.42}}
}
/* footer: Explore column sab se last on mobile only */
@media (max-width:640px){
  .footer-cols>div:first-child{order:4}
}
/* mqa-nav proposal 2026-10-12: #side-search crypto widget overlap fix (701-850px height band) */
@media (max-width:768px) and (min-height:701px) and (max-height:850px){
  #side-search{top:auto;bottom:130px;transform:none}
}
/* MQA-nav 2026-10-12 14:44 UTC (additive): 701-850px band mein #side-search (top:244px) sports-float column aur top-widgets-right column ko dhak raha tha — sports column ke neeche dock. 244px wale rule ke BAAD rakha taake ye override jeete (min.css mein bhi same order). */
@media (max-width:768px) and (min-height:701px) and (max-height:850px){
  #side-search{top:calc(50% + 130px);bottom:auto;transform:none}
}
/* MThink2 2026-10-12 07:45Z: 701-850px band mein side-search sports stack ke top chips dhak raha tha (top:244px) — bottom:130px pattern par wapis */

/* PC-Think2 P1+P2+P3 2026-10-12 (upd 06:15Z): short desktop (<=1012px tall, e.g. 1366x768 laptop) par floating widgets ka overlap khatam (additive). User complaint: sports icons widgets ke peeche ghayab. */
@media (min-width: 1100px) and (max-height: 1012px) {
  /* Right column: bodies collapsed (tap title to expand) — sports icons se overlap khatam */
  #top-widgets-right .tw-card { cursor: pointer; }
  #top-widgets-right .tw-card .tw-title { position: relative; padding-right: 14px; margin-bottom: 0; }
  #top-widgets-right .tw-card .tw-title::after { content: "\25BE"; position: absolute; right: 2px; top: 0; font-size: .68rem; color: var(--muted); transition: transform .2s; }
  #top-widgets-right .tw-card.tw-open .tw-title::after { transform: rotate(180deg); }
  #top-widgets-right .tw-card.tw-open .tw-title { margin-bottom: 3px; }
  #top-widgets-right .tw-card:not(.tw-open) .clk-body,
  #top-widgets-right .tw-card:not(.tw-open) .fx-body,
  #top-widgets-right .tw-card:not(.tw-open) .pt-body,
  #top-widgets-right .tw-card:not(.tw-open) .cr-body { display: none; }
  /* Sports icons: icon-only, neeche apni jagah — top:auto taake purane top:calc rule se na takraye */
  #sports-float { top: auto; bottom: 150px; gap: 6px; }
  #sports-float .sp-label { display: none; }
  #sports-float .sp-float { padding: 8px 11px; max-width: none; }
  /* tool-dice ka faasla (P3) */
  #tool-dice { bottom: 76px; }
}
@media (min-width: 1100px) and (max-height: 880px) {
  /* Left widgets: page-top par bhi slim bars (share-rail overlap khatam) */
  #top-widgets .tw-card { cursor: pointer; }
  #top-widgets .tw-card .tw-title { position: relative; padding-right: 14px; margin-bottom: 0; }
  #top-widgets .tw-card .tw-title::after { content: "\25BE"; position: absolute; right: 2px; top: 0; font-size: .68rem; color: var(--muted); transition: transform .2s; }
  #top-widgets .tw-card.tw-open .tw-title::after { transform: rotate(180deg); }
  #top-widgets .tw-card.tw-open .tw-title { margin-bottom: 3px; }
  #top-widgets .tw-card:not(.tw-open) .wx-now,
  #top-widgets .tw-card:not(.tw-open) .wx-days,
  #top-widgets .tw-card:not(.tw-open) .spd-gauge,
  #top-widgets .tw-card:not(.tw-open) .spd-live,
  #top-widgets .tw-card:not(.tw-open) .spd-bar,
  #top-widgets .tw-card:not(.tw-open) .spd-status,
  #top-widgets .tw-card:not(.tw-open) .spd-retest,
  #top-widgets .tw-card:not(.tw-open) .spd-name,
  #top-widgets .tw-card:not(.tw-open) .wx-loc,
  #top-widgets .tw-card:not(.tw-open) .jk-otd-text,
  #top-widgets .tw-card:not(.tw-open) .jk-otd-go { display: none; }
  #top-widgets .tw-card:not(.tw-open) .spd-mini { display: inline; }
  #top-widgets .tw-card:not(.tw-open) .wx-mini { display: inline; }
}
/* PC-Think2 P4 2026-10-12: screen-reader-only utility (ticker announcement; visual change nahi) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Thinker-home #4 2026-10-12: premiere countdown chip (additive) */
.premiere-cd{display:inline-block;margin-top:6px;padding:4px 12px;border-radius:20px;font-size:.75rem;font-weight:700;color:#fde68a;background:rgba(180,120,20,.18);border:1px solid rgba(251,191,36,.4);animation:cdPulse 2s ease-in-out infinite}
.premiere-cd.fresh{color:#a7f3d0;background:rgba(20,120,70,.18);border-color:rgba(52,211,153,.5)}
@keyframes cdPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}

/* Thinker-home #9 2026-10-12: continue-reading strip (additive, device-local) */
.continue-strip{margin:26px auto 0;max-width:1100px;padding:0 16px}
.continue-strip h3{font-size:1.05rem;margin:0 0 10px;color:var(--text)}
.continue-list{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px}
.continue-card{flex:0 0 240px;display:block;background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:14px;padding:12px;text-decoration:none;color:var(--text);animation:contFloat 4s ease-in-out infinite}
.continue-card b{display:block;font-size:.85rem;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.continue-bar{height:6px;border-radius:4px;background:rgba(255,255,255,.12);overflow:hidden;margin-bottom:6px}
.continue-bar i{display:block;height:100%;background:linear-gradient(90deg,#6366f1,#a855f7);border-radius:4px}
.continue-card small{color:var(--muted);font-size:.72rem}
@keyframes contFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
/* ===== media-q027 unified card hover polish (ADD-ONLY, 2026-10-12) =====
   Unified hover-lift (-3px) + img-zoom un 6 card types par jin ke koi :hover nahi tha.
   sp-card / trend-card / cat-card ke existing inline :hover untouched (add-only rule).
   @media (hover:hover) wrapper = touch devices par sticky hover nahi (mobile-safe). */
@media (hover:hover) and (pointer:fine){
.tool-card,.lang-card,.tw-card,.chat-card,.video-card,.studio-card{transition:transform .25s ease,box-shadow .25s ease}
.tool-card:hover,.lang-card:hover,.tw-card:hover,.chat-card:hover,.video-card:hover,.studio-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(0,0,0,.45),0 0 14px rgba(139,92,246,.22)}
.tool-card img,.lang-card img,.tw-card img,.chat-card img,.video-card img,.studio-card img,.drama-card img,.sp-card img,.trend-card img,.cat-card img{transition:transform .3s ease}
.tool-card:hover img,.lang-card:hover img,.tw-card:hover img,.chat-card:hover img,.video-card:hover img,.studio-card:hover img,.drama-card:hover img,.sp-card:hover img,.trend-card:hover img,.cat-card:hover img{transform:scale(1.05)}
}

/* Thinker-home 2026-10-12: intent chips + fresh badge (additive) */
.intent-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;margin:14px auto 4px;max-width:900px;padding:0 12px}
.intent-label{font-size:.82rem;color:var(--muted);font-weight:600}
.intent-chips a,.intent-surprise{font-size:.8rem;font-weight:600;padding:7px 14px;border-radius:20px;text-decoration:none;color:var(--text);background:rgba(99,102,241,.12);border:1px solid rgba(99,102,241,.35);transition:transform .2s,background .2s;animation:intentFloat 3.5s ease-in-out infinite}
.intent-chips a:nth-child(odd){animation-delay:-1.7s}
.intent-chips a:hover,.intent-surprise:hover{transform:translateY(-2px) scale(1.04);background:rgba(99,102,241,.25)}
.intent-surprise{cursor:pointer;font-family:inherit;background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.45);color:#fde68a}
@keyframes intentFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
.fresh-badge{display:inline-block;margin-left:10px;font-size:.75rem;font-weight:700;color:#a7f3d0;background:rgba(20,120,70,.15);border:1px solid rgba(52,211,153,.4);padding:4px 12px;border-radius:16px;vertical-align:middle;animation:cdPulse 2.5s ease-in-out infinite}
@media(max-width:640px){.intent-chips{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding-bottom:6px}.intent-label{flex:0 0 auto}}
/* MThink2 2026-10-12 07:45Z P2: landscape (<=560px tall) mein #tool-dice sports row ke oper baithta tha */
@media (max-width:768px) and (max-height:560px){
  #tool-dice{bottom:110px}
}
/* MThink1 2026-10-12 08:10Z: 6 mobile layout-feel fixes (additive) */
@media (max-width:480px){.hero-search .btn{padding:10px 14px;font-size:.85rem}}
@media (max-width:480px){.stats{gap:18px}.stats b{font-size:1.1rem}.stats span{font-size:.8rem}}
@media (max-width:480px){.article-wrap h1{font-size:1.45rem;line-height:1.25}}
@media (max-width:900px){.allart-list{max-height:300px}}
@media (max-width:380px){.brand{font-size:1.1rem}.nav .brand img{width:40px;height:40px}}
@media (max-height:640px){.buy-modal{align-items:flex-start;padding:12px}.buy-box{max-height:94vh}}

/* think-308 2026-10-12: mobile-grid blowout guard — add-only, koi visual change nahi */
.msvc-grid > *, .showcase-grid > *, .hub-grid > *, .footer-cols > *,
.lang-more-grid > *, .lang-grid > * { min-width: 0; }
.msvc h4, .msvc p, .hub-box .hub-items a { overflow-wrap: anywhere; }

/* think-widget-ideas 2026-10-12: 3 new floating widgets (AQI chip, Quick Note FAB, Countdown chip) — add-only, zero visual change to existing */
.aqi-chip{display:flex;align-items:center;gap:8px;padding:8px 12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:12px;margin:8px 0}
.aqi-dot{width:12px;height:12px;border-radius:50%;background:#888;flex:none;animation:aqiPulse 2s ease-in-out infinite}
@keyframes aqiPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.35);opacity:.75}}
.aqi-chip b{font-size:1.1rem}
.aqi-chip .aqi-cat{font-size:.8rem;opacity:.85}
.aqi-chip .aqi-mini{margin-left:auto;font-size:.8rem;opacity:.7}
#aqi-detail{margin-top:6px}
.aqi-tip{font-size:.78rem;opacity:.85;margin-bottom:8px}
.aqi-bars{display:flex;gap:4px;align-items:flex-end;height:64px}
.aqi-bar{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;height:100%;justify-content:flex-end}
.aqi-bar-fill{width:100%;border-radius:3px 3px 0 0;animation:aqiGrow .5s ease-out}
@keyframes aqiGrow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.aqi-bar span{font-size:.62rem;opacity:.6}
#quicknote-fab{animation:qnBob 3s ease-in-out infinite}
#quicknote-fab{bottom:196px}
@media (max-width:768px){
  #quicknote-fab{bottom:180px;width:36px !important;height:36px !important;font-size:1.05rem !important}
  body.nav-open #quicknote-fab{display:none !important}
}
@keyframes qnBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
#quicknote-fab.qn-has::after{content:"";position:absolute;top:6px;right:6px;width:8px;height:8px;border-radius:50%;background:#22d3ee}
#qn-popup{position:fixed;bottom:90px;right:16px;width:320px;max-width:calc(100vw - 32px);background:rgba(17,24,39,.96);border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:12px;z-index:9999;box-shadow:0 8px 32px rgba(0,0,0,.5);backdrop-filter:blur(12px)}
#qn-popup[hidden]{display:none}
.qn-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.qn-head b{font-size:.9rem}
.qn-x{background:none;border:none;color:#fff;font-size:1rem;cursor:pointer;opacity:.7}
.qn-x:hover{opacity:1}
#qn-text{width:100%;min-height:120px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:8px;color:#fff;padding:8px;font:inherit;font-size:.85rem;resize:vertical;box-sizing:border-box}
.qn-foot{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:.78rem}
.qn-count{opacity:.6}
.qn-open{color:#22d3ee;text-decoration:none}
.cd-card .cd-main{display:flex;justify-content:space-between;align-items:center;gap:8px}
.cd-label{font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cd-time{font-size:1rem;font-weight:700;color:#fbbf24;animation:cdGlow 2s ease-in-out infinite;white-space:nowrap}
@keyframes cdGlow{0%,100%{text-shadow:0 0 4px rgba(251,191,36,.4)}50%{text-shadow:0 0 12px rgba(251,191,36,.8)}}
@keyframes priceGlow{0%,100%{text-shadow:0 0 4px rgba(255,209,102,.3);}50%{text-shadow:0 0 16px rgba(255,209,102,.8);}}
.cd-actions{display:flex;gap:6px;margin-top:6px}
.cd-add,.cd-add2,.cd-edit{background:rgba(255,255,255,.08);border:1px dashed rgba(255,255,255,.25);color:#fff;border-radius:8px;padding:6px 12px;cursor:pointer;font-size:.8rem}
.cd-add:hover,.cd-add2:hover,.cd-edit:hover{background:rgba(255,255,255,.14)}
.cd-mini{margin-left:auto;font-size:.78rem;opacity:.7}
@media(max-width:640px){
  #qn-popup{right:0;left:0;bottom:0;width:100%;max-width:100%;border-radius:16px 16px 0 0;max-height:40vh;overflow:auto}
  .aqi-chip{padding:6px 10px;font-size:.85rem}
}
/* compact-mode mini spans for new widgets */
#top-widgets.tw-compact .aqi-chip:not(.tw-open) .aqi-mini{display:inline}
#top-widgets-right.tw-compact .tw-card:not(.tw-open) .cd-mini{display:inline}
.aqi-mini,.cd-mini{display:none}
#top-widgets:not(.tw-compact) .aqi-mini{display:none}

/* think-334: unified card hover-lift (tier-card, pro-price-card, pur-card) */
.tier-card,.pro-price-card,.pur-card{transition:transform .3s ease,box-shadow .3s ease}
.tier-card:hover,.pro-price-card:hover,.pur-card:hover{transform:translateY(-6px);box-shadow:0 12px 24px rgba(0,0,0,.15)}

/* pc-think2 2026-10-12 P1 (additive): short-height desktop — right widget column slim rail, tap title to expand */
@media (min-width:1100px) and (max-height:860px){
#top-widgets-right{max-height:calc(100vh - 260px);overflow-y:auto;scrollbar-width:none;}
#top-widgets-right::-webkit-scrollbar{display:none;}
#top-widgets-right .clk-body,#top-widgets-right .fx-body,#top-widgets-right .pt-body,#top-widgets-right .cr-body,#top-widgets-right .gold-body,#top-widgets-right .psx-body{display:none;}
#top-widgets-right .tw-card.tw-open .clk-body,#top-widgets-right .tw-card.tw-open .fx-body,#top-widgets-right .tw-card.tw-open .pt-body{display:block;}
#top-widgets-right .tw-card.tw-open .cr-body,#top-widgets-right .tw-card.tw-open .gold-body,#top-widgets-right .tw-card.tw-open .psx-body{display:flex;}
#top-widgets-right .tw-card{cursor:pointer;}
}

/* THINK-287 2026-10-12 a11y-contrast (ADDITIVE): high-contrast preference support.
   Default visuals unchanged — sirf prefers-contrast:more users par lagta hai (screen only). */
@media screen and (prefers-contrast: more) {
  body { --sawal-contrast-boost: 1; }
  .tiny.muted, .muted { color: #e8e8e8; }
  a { text-decoration: underline; }
  .btn, button { border: 2px solid currentColor; }
}

/* THINK-287 2026-10-12 a11y-contrast (ADDITIVE): visible keyboard focus indicator.
   Sirf keyboard navigation par dikhta hai, mouse users par zero effect. */
:focus-visible {
  outline: 3px solid #a78bfa;
  outline-offset: 2px;
}

/* mobile-think1 2026-10-12 (additive, mobile-only feel): 2-col lang grid, chip scroll fade, lighter section headers */
@media(max-width:699px){#languages .grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:640px){.intent-chips{-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent);}}
@media(max-width:768px){.sec-icon{width:56px;height:56px;border-radius:16px;}.sec-head{margin-bottom:16px;}}

/* MThink2 2026-10-12 P1 (additive): 561-700px band mein #side-search (bottom:130px, z-999) #tasbih-fab (bottom:128px, z-62) ko taqreeban poora dhak kar untappable bana raha tha — is band mein left side vertically centered dock */
@media (max-width:768px) and (min-height:561px) and (max-height:700px){
  #side-search{left:12px;right:auto;top:50%;bottom:auto;transform:translateY(-50%)}
}
/* MThink2 2026-10-12 P2 (additive): landscape H<=560 mein #tool-dice ka bottom:110px rule min.css ordering se haar raha tha — !important se yaqeeni */
@media (max-width:768px) and (max-height:560px){
  #tool-dice{bottom:110px !important}
}
/* MQA-NAV 2026-10-12 (additive): short-landscape mein #tool-dice (110-146px) #tasbih-fab (128-168px) se 18px overlap tha — tasbih ko oper kar diya, 6px gap */
@media (max-width:768px) and (max-height:560px){
  #tasbih-fab{bottom:152px}
}

/* HOURLY-NEW 2026-10-12 run#3 (additive): store/deal .sp-card aura-lift glow cycle — existing animations untouched */
@keyframes spAuraLift{0%,100%{box-shadow:0 0 0 rgba(167,139,250,0)}50%{box-shadow:0 10px 30px rgba(167,139,250,.38)}}
.sp-card{animation:spAuraLift 6s ease-in-out infinite}
.sp-grid .sp-card:nth-child(2n){animation-delay:-2s}
.sp-grid .sp-card:nth-child(3n){animation-delay:-4s}

/* PQA-STUDIOS picture-studio desktop select row (additive, 2026-10-12) */
@media(min-width:900px){#inbox-studio.studio-row select{flex:1 1 0;min-width:0;}#inbox-studio.studio-row .btn-primary{flex:none;align-self:center;}}

/* think-039 2026-10-13 (additive): tap/scroll mobile polish — koi visual/theme change nahi */
button,a,input,select,textarea,[role="button"]{touch-action:manipulation}
a,button{-webkit-tap-highlight-color:rgba(99,102,241,.25)}


/* MOBILE-RAILS-RESTORE 2026-10-13 (user order): mobile par original widgets wapis — weather, speed, crypto waghera; desktop unchanged */



/* uplift-197 2026-10-13 (additive): article category chip — koi visual/theme change nahi */
.art-cat-chip{display:inline-block;font-size:.78rem;font-weight:700;letter-spacing:.02em;padding:4px 12px;border-radius:999px;background:linear-gradient(135deg,rgba(99,102,241,.16),rgba(168,85,247,.16));border:1px solid rgba(99,102,241,.4);color:#c7d2fe;margin-bottom:10px;animation:catChipGlow 3.2s ease-in-out infinite}
@keyframes catChipGlow{0%,100%{box-shadow:0 0 0 rgba(99,102,241,0)}50%{box-shadow:0 0 12px rgba(99,102,241,.45)}}
a.card .art-cat-chip{font-size:.72rem;padding:3px 10px;margin:6px 0 2px;animation:catChipGlow 3.2s ease-in-out infinite}

/* MQA-FIX 2026-10-13: svc-body images mobile overflow fix */ .svc-card .svc-body img{max-width:100%;height:auto;display:block;}
/* PQA-home 2026-10-12: #quicknote-fab vertical anchor fix (desktop) */ @media (min-width: 769px) { #quicknote-fab { bottom: 424px; right: 176px; } }
/* User 2026-10-13 mobile cleanup: sports icons ke peeche article cards + AQI chip mobile par remove */
@media (max-width: 768px) {
  #top-widgets-right #dua-day-card,
  #top-widgets-right .tw-card:has(#hd-body) { display: none !important; }
  #aqi-chip, #aqi-detail { display: none !important; }
}
/* User 2026-10-13 mobile: footer dock mein contact icons sab se neeche, picture icons upar (sirf mobile) */
@media (max-width: 768px) {
  .footer-icon-dock a[href="contact.html"],
  .footer-icon-dock a[href="about.html"],
  .footer-icon-dock a[href="privacy.html"],
  .footer-icon-dock a[href="numbers.html"] { order: 99; }
  .footer-icon-dock a[href="wallpapers.html"],
  .footer-icon-dock a[href="videos.html"],
  .footer-icon-dock a[href="movies.html"],
  .footer-icon-dock a[href="trailers.html"] { order: -1; }
}
