/* 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; }
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; }
}
/* ---------- 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; } }
.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; }
.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); } }
@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); 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: 1fr 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: 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: 64px; }
.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-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(3, 1fr); } }

/* ---------- 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); }
[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; }

/* ---------- 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); } }
/* 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; } }
.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;
  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; }
@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) ===== */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 15% 10%, rgba(99,102,241,.14), transparent 70%),
    radial-gradient(ellipse 55% 40% at 85% 25%, rgba(168,85,247,.12), transparent 70%),
    radial-gradient(ellipse 50% 45% at 50% 60%, rgba(34,211,238,.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 90%, rgba(99,102,241,.1), transparent 70%),
    radial-gradient(ellipse 55% 45% at 80% 85%, rgba(168,85,247,.1), transparent 70%);
  background-size: 200% 200%;
  animation: globalBgShift 18s ease-in-out infinite; }
@keyframes globalBgShift {
  0%,100% { background-position: 0% 0%, 100% 0%, 50% 50%, 0% 100%, 100% 100%; }
  33% { background-position: 100% 20%, 0% 40%, 80% 70%, 30% 80%, 70% 60%; }
  66% { background-position: 50% 100%, 50% 80%, 20% 30%, 80% 20%, 10% 40%; } }
#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: smooth; }
  body { -webkit-overflow-scrolling: touch; }
  /* full-viewport gradient repaint every frame was the #1 jank source */
  body::before { animation: none; background-size: 100% 100%; }
  #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); }
  /* 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: 100px; z-index: 61; display: flex; flex-direction: column; gap: 7px; 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: 11px; padding: 5px 10px;
  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); } }
.tw-title { font-size: .7rem; font-weight: 800; margin-bottom: 5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-title .wx-loc { font-weight: 600; color: var(--muted); font-size: .62rem; }
.wx-now { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.wx-emoji { font-size: 1.25rem; 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: .92rem; font-weight: 800; }
.wx-cond { font-size: .62rem; color: var(--muted); }
.wx-days { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.wx-days::-webkit-scrollbar { display: none; }
.wx-day { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 5px; border-radius: 8px; background: rgba(255,255,255,.04); min-width: 38px; }
.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: .6rem; }
.wx-demoji { font-size: .9rem; }
.wx-dtmp { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .6rem; 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: 62px; 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: .88rem; font-weight: 800; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; text-align: center; }
.spd-live .spd-unit { font-size: .6rem; font-weight: 600; color: var(--muted); }
.spd-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin: 4px 0 5px; }
.spd-fill { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, #22d3ee, #6366f1, #a855f7); transition: width .15s linear; }
.spd-status { font-size: .66rem; color: var(--muted); min-height: 1.4em; text-align: center; }
.spd-status b { color: var(--text); font-size: .8rem; }
.spd-retest { display: block; margin: 4px auto 0; background: rgba(99,102,241,.15); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 3px 10px; font-size: .64rem; 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; }
/* share rail moved to bottom-left so the top widgets never cover it */
#share-rail { top: auto; bottom: 96px; transform: none; }
@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; }
  .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; }
  /* 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% { box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(99,102,241,.25), 0 0 14px rgba(99,102,241,.15); }
  50% { box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(168,85,247,.55), 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: -80%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); animation: btnSheen 3.8s ease-in-out infinite; pointer-events: none;
}
@keyframes btnSheen { 0% { left: -80%; } 55%, 100% { left: 135%; } }


/* 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); }
.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; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font-size: .9rem; }
#news-form .btn { padding: 10px 22px; font-size: .9rem; }
#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; }
  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); }
.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; }
@media (max-width: 640px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@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 800px; }
.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; }
@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; }
  .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; }
.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; }
#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; }
@media (min-width: 1080px) {
  #proxies .shop-grid, #rdp .shop-grid { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
}
@media (min-width: 700px) and (max-width: 1079px) {
  #proxies .shop-grid, #rdp .shop-grid { grid-template-columns: 1fr 1fr; }
  #proxies .price-list-card, #rdp .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; }
#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 * { animation-play-state: paused !important; }
/* 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; }
}
