/* الحاسبة كمحادثة، وجنبها جهاز «مشروعك» */
#app { max-width: 1240px; padding-bottom: 40px; }
.tk { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.tk .pv { display: block; }
.tk-chat { position: relative; display: flex; flex-direction: column; height: calc(100vh - 110px); min-height: 560px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #15131bf2, #0d0c12f2); border: 1px solid #ffffff1a; box-shadow: 0 40px 80px -30px #000, inset 0 1px 0 #ffffff12; backdrop-filter: blur(18px); }

/* رأس المحادثة */
.tk-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #ffffff12; background: #ffffff06; }
.tk-head b { display: block; font-size: 16px; } .tk-head small { color: #6fe3b4; font-weight: 700; font-size: 12px; }
.tk-so { margin-inline-start: auto; text-align: end; } .tk-so small { display: block; color: #8e8b98; font-size: 11px; color: #a9a6b2; }
.tk-so b { display: inline-block; font-size: 22px; font-weight: 900; color: #ffd98e; direction: ltr; } .tk-so em { font-style: normal; color: #f1b35c; font-size: 13px; }
.tk-av { position: relative; flex: none; display: flex; justify-content: center; gap: 7px; width: 42px; height: 36px; padding-top: 10px; border-radius: 12px; background: linear-gradient(#fff, #e9e8f2); box-shadow: 0 0 18px #ffffff33; }
.tk-av i { width: 5px; height: 10px; border-radius: 4px; background: #111; animation: blink 4s infinite; }
.tk-av b { position: absolute; bottom: 6px; width: 9px; height: 4px; border-bottom: 2px solid #111; border-radius: 0 0 8px 8px; }

/* الرسائل */
.tk-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 10px; scrollbar-width: thin; }
.tk-m { animation: tk-in .4s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes tk-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.tk-m.bot { display: flex; align-items: flex-end; gap: 10px; align-self: flex-start; max-width: 86%; }
.tk-m.bot .tx { padding: 12px 16px; border-radius: 20px; border-end-start-radius: 6px; background: #ffffff10; border: 1px solid #ffffff14; line-height: 1.8; font-size: 15.5px; }
.tk-m.bot .tk-av { width: 34px; height: 30px; padding-top: 8px; gap: 6px; }
.tk-m.me { align-self: flex-end; max-width: 80%; }
.tk-m.me .tx { display: block; padding: 12px 16px; border-radius: 20px; border-end-end-radius: 6px; background: linear-gradient(135deg, #f1b35c, #e8992e); color: #1a1206; font-weight: 700; line-height: 1.8; box-shadow: 0 10px 24px -10px #f1b35c88; }
.tk-m.typing .dots { display: inline-flex; gap: 4px; padding: 14px 16px; border-radius: 20px; background: #ffffff10; }
.tk-m.typing .dots i { width: 7px; height: 7px; border-radius: 50%; background: #bbb; animation: tk-dot 1s infinite; }
.tk-m.typing .dots i:nth-child(2) { animation-delay: .15s; } .tk-m.typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tk-dot { 30% { transform: translateY(-5px); background: #f1b35c; } }

/* لوحة الردود تحت */
.tk-dock { padding: 14px 18px 18px; border-top: 1px solid #ffffff12; background: #0b0a10e8; max-height: 52%; overflow-y: auto; scrollbar-width: thin; }
.tk-dock:empty { display: none; }
.tk-dock.in > * { animation: tk-in .45s both; }
.tk-hint { margin: 0 0 10px; color: #a9a6b2; font-size: 13.5px; font-weight: 600; }
.tk-opts { display: grid; gap: 10px; }
.tk-opts.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-opts.builds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-opts.team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 18px; border: 1.5px solid #ffffff14; background: linear-gradient(160deg, #ffffff10, #ffffff04); color: inherit; font: inherit; text-align: start; cursor: pointer;
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i) * 60ms); transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.tk-opt:hover { transform: translateY(-3px); border-color: #f1b35c88; }
.tk-opt.on { border-color: #f1b35c; background: radial-gradient(120% 90% at 50% 0%, #f1b35c2a, transparent 65%), #ffffff08; box-shadow: 0 0 0 1px #f1b35c, 0 0 30px -10px #f1b35c; }
.tk-opt .e { font-size: 28px; line-height: 1; }
.tk-opt b { font-size: 15px; } .tk-opt small { color: #a9a6b2; font-size: 12.5px; line-height: 1.6; }
.tk-opt.build .scene { height: 80px; margin: 0 0 6px; font-size: 30px; }
.tk-opt.build ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.tk-opt.build li.p { color: #8fe0b6; } .tk-opt.build li.c { color: #ff9b9b; }
.tk-opt.build li.p::before { content: "✓ "; } .tk-opt.build li.c::before { content: "✗ "; }
.tk-opt .tag { position: absolute; top: 10px; inset-inline-end: 10px; font-style: normal; font-size: 11.5px; color: #f1b35c; font-weight: 700; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #ffffff1a; background: #ffffff08; color: inherit; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s; }
.tk-chip span { font-size: 18px; } .tk-chip i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ffffff14; font-style: normal; font-size: 12px; }
.tk-chip:hover { border-color: #f1b35c66; } .tk-chip.on { border-color: #f1b35c; background: #f1b35c1a; } .tk-chip.on i { background: #f1b35c; color: #1a1206; }
.tk-grp { margin-bottom: 12px; } .tk-grp h4 { margin: 0 0 8px; font-size: 13px; color: #f1b35c; }
.tk-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tk-done { min-height: 50px; padding: 0 28px; border-radius: 999px; border: 0; font: inherit; font-weight: 800; font-size: 16px; color: #1a1206; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  background: linear-gradient(100deg, #e8992e, #ffe2a2 35%, #f1b35c 55%, #e8992e) 0 0 / 250% 100%; animation: sheen 4s linear infinite; box-shadow: 0 12px 26px -10px #f1b35c99; }
.tk-done:disabled { opacity: .3; animation: none; cursor: default; }
.tk-dock > .tk-done { margin-top: 12px; width: 100%; justify-content: center; }
.tk-ghost { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid #ffffff26; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.tk-hintpop { position: absolute; bottom: 16px; left: 50%; z-index: 5; max-width: 90%; padding: 10px 16px; border-radius: 16px; background: #fff; color: #1c1a24; font-weight: 700; font-size: 13.5px; box-shadow: 0 20px 40px #0008; opacity: 0; translate: -50% 20px; transition: all .35s; pointer-events: none; }
.tk-hintpop.on { opacity: 1; translate: -50% -100px; }

/* كرت النتيجة والفاتورة داخل المحادثة */
.tk-m.rcard { align-self: stretch; padding: 22px; border-radius: 24px; background: linear-gradient(160deg, #2a2010, #120e08); border: 1px solid #f1b35c55; box-shadow: 0 0 60px -20px #f1b35c88; }
.tk-m.rcard .k { color: #f1b35c; font-weight: 800; }
.tk-m.rcard .big { margin: 8px 0 12px; font-size: clamp(30px, 4vw, 44px); font-weight: 900; color: #ffd98e; text-align: center; }
.tk-m.rcard .big em { font-style: normal; font-size: 16px; color: #f1b35c; }
.tk-m.rcard .stats { display: flex; gap: 10px; margin: 12px 0; } .tk-m.rcard .stats div { flex: 1; min-width: 0; padding: 10px; text-align: center; border-radius: 14px; background: #ffffff0a; }
.tk-m.rcard .stats b { display: block; font-size: 20px; } .tk-m.rcard .stats small { color: #a9a6b2; }
.tk-m.rcard .split { display: grid; gap: 6px; margin: 8px 0; } .tk-m.rcard .split div { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 12px; background: #ffffff08; font-size: 14px; }
.tk-m.rcard .split b { color: #ffe2a2; }
.tk-m.rcard details { margin: 8px 0; padding: 10px 14px; border-radius: 14px; background: #ffffff08; } .tk-m.rcard summary { cursor: pointer; color: #f1b35c; font-weight: 700; }
.tk-m.rcard details p { color: #c9c6d2; line-height: 1.8; font-size: 14px; } .tk-m.rcard .vat { color: #8e8b98; font-size: 12.5px; text-align: center; }
.tk-m.rcard .cta { display: flex; justify-content: center; min-height: 52px; align-items: center; border-radius: 999px; background: #f1b35c; color: #1a1206; font-weight: 800; text-decoration: none; }
.tk-m.rbill { align-self: stretch; padding: 14px 18px; border-radius: 22px; background: linear-gradient(180deg, #fbf8f1, #efe9dc); color: #111; }
.tk-m.rbill .line { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1.5px dashed #00000018; }
.tk-m.rbill .line:first-child { border-top: 0; } .tk-m.rbill .emo { font-size: 22px; } .tk-m.rbill b { display: block; font-size: 14px; } .tk-m.rbill small { color: #666; font-size: 12px; }
.tk-m.rbill em { font-style: normal; font-weight: 800; text-align: end; white-space: nowrap; font-size: 13.5px; } .tk-m.rbill em small { display: block; font-weight: 500; }

@media (max-width: 1000px) {
  .tk { grid-template-columns: 1fr; } .tk .pv { order: -1; position: relative; top: 0; padding: 14px; } .tk .pv .devices { min-height: 150px; } .tk .pv .scr-in { min-height: 110px; } .tk .pv .bp { aspect-ratio: 16 / 7; }
  .tk-chat { height: 78vh; } .tk-opts.grid, .tk-opts.team { grid-template-columns: 1fr 1fr; } .tk-opts.builds { grid-template-columns: 1fr; }
}

/* ================= شكل شات أرقى ================= */
.tk-chat { background: radial-gradient(70% 40% at 100% 0%, #f1b35c14, transparent 60%), radial-gradient(60% 40% at 0% 100%, #8b6cff14, transparent 60%), linear-gradient(180deg, #14121af5, #0c0b11f5); }
.tk-thread { background-image: radial-gradient(circle at 1px 1px, #ffffff0a 1px, transparent 0); background-size: 22px 22px; padding: 22px 26px 14px; gap: 6px; }
.tk-head { padding: 14px 20px; background: linear-gradient(180deg, #ffffff0c, #ffffff04); }
.tk-av-wrap { position: relative; } .tk-av-wrap .on { position: absolute; bottom: -2px; inset-inline-end: -2px; width: 12px; height: 12px; border-radius: 50%; background: #2fdc85; border: 2px solid #15131b; }
.tk-av-wrap .on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2fdc85; animation: ping 1.8s infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.tk-head small { color: #2fdc85; }
.tk-m.day { align-self: center; margin: 4px 0 10px; } .tk-m.day span { padding: 5px 14px; border-radius: 999px; background: #ffffff10; color: #a9a6b2; font-size: 12px; font-weight: 700; }
/* الفقاعات */
.tk-m.bot { gap: 8px; margin-top: 2px; } .tk-m.bot .tk-av { visibility: hidden; } .tk-m.bot.last .tk-av, .tk-m.bot.typing .tk-av { visibility: visible; }
.tk-m .bub { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 6px; border-radius: 18px; max-width: 100%; }
.tk-m.bot .bub { background: linear-gradient(160deg, #26232f, #1d1b25); border: 1px solid #ffffff12; border-end-start-radius: 6px; box-shadow: 0 6px 18px -8px #000; }
.tk-m.bot.last .bub::before { content: ""; position: absolute; bottom: 0; inset-inline-start: -7px; width: 14px; height: 14px; background: #1d1b25; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
[dir="ltr"] .tk-m.bot.last .bub::before { clip-path: polygon(0 0, 100% 100%, 0 100%); left: -7px; right: auto; }
.tk-m.bot .tx { padding: 0; border: 0; background: none; font-size: 15px; line-height: 1.85; }
.tk-m.bot .tx b { color: #ffd98e; }
.tk-m time { align-self: flex-end; font-size: 10.5px; color: #8e8b98; direction: ltr; } .tk-m.me time { color: #5a3d0e; }
.tk-m.me { margin: 8px 0 4px; } .tk-m.me .bub { background: linear-gradient(135deg, #ffcf7a, #e8992e); color: #1a1206; border-end-end-radius: 6px; box-shadow: 0 10px 24px -10px #f1b35caa; }
.tk-m.me .tx { padding: 0; background: none; box-shadow: none; font-weight: 700; }
.tk-m.me .ticks { font-style: normal; color: #1d6fd6; letter-spacing: -3px; margin-inline-start: 4px; }
.tk-m.typing .dots { background: #26232f; border: 1px solid #ffffff12; }
/* لوحة الردود: شيت من تحت */
.tk-dock { position: relative; border-radius: 24px 24px 0 0; border-top: 1px solid #ffffff22; background: linear-gradient(180deg, #1c1a24f2, #121018f2); box-shadow: 0 -20px 40px -20px #000; padding-top: 22px; }
.tk-dock .grab { position: absolute; top: 8px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 9px; background: #ffffff33; }
.tk-dock.in { animation: sheet .5s cubic-bezier(.2, 1.2, .3, 1) both; }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
/* كروت الأنواع بالستيكرات */
.tk-opt { overflow: hidden; } .tk-opt .ico { display: grid; place-items: center; width: 54px; height: 54px; }
.tk-opt .ico img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 8px 10px #000a); transition: transform .4s cubic-bezier(.2, 1.6, .4, 1); }
.tk-opt:hover .ico img { transform: scale(1.12) rotate(-8deg); }
.tk-opt .tick { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ffffff12; font-style: normal; font-size: 12px; color: transparent; transition: all .3s; }
.tk-opt.on .tick { background: #f1b35c; color: #1a1206; transform: scale(1.1); }
.tk-opt .tm { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #c9c6d2; }
/* أزرار الأجزاء بالوصف */
.tk-row.top { margin: 0 0 10px; } .tk-count { padding: 6px 14px; border-radius: 999px; background: #8fe0b614; border: 1px solid #8fe0b655; color: #b9f0d3; font-weight: 800; font-size: 13px; }
.tk-parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.tk-part { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 1.5px solid #ffffff14; background: #ffffff07; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: all .2s; }
.tk-part:hover { border-color: #f1b35c66; transform: translateY(-2px); }
.tk-part .pe { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ffffff10; font-size: 21px; }
.tk-part .pt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .tk-part .pt b { font-size: 14px; } .tk-part .pt small { color: #a9a6b2; font-size: 12px; line-height: 1.5; }
.tk-part i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ffffff12; font-style: normal; font-size: 12px; }
.tk-part.on { border-color: #f1b35c; background: #f1b35c14; } .tk-part.on .pe { background: #f1b35c33; } .tk-part.on i { background: #f1b35c; color: #1a1206; }
/* كرت النتيجة */
.tk-m.rcard h5, .tk-m.rbill h5 { margin: 14px 0 8px; font-size: 13px; color: #f1b35c; }
.tk-m.rbill h5 { color: #b9771f; font-size: 16px; margin-top: 4px; }
.tk-m.rcard .trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; } .tk-m.rcard .trust span { padding: 5px 12px; border-radius: 999px; background: #8fe0b614; border: 1px solid #8fe0b655; color: #b9f0d3; font-size: 12.5px; font-weight: 700; }
.tk-m.rcard .picks { display: flex; flex-direction: column; gap: 6px; } .tk-m.rcard .picks span { padding: 8px 12px; border-radius: 12px; background: #ffffff08; font-size: 14px; }
.tk-m.rcard .split div { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; }
.tk-m.rcard .split .pi { font-size: 20px; } .tk-m.rcard .split .pn small, .tk-m.rcard .split .pc small { display: block; color: #a9a6b2; font-size: 11.5px; } .tk-m.rcard .split .pc { text-align: end; }
.tk-m.rcard .cta { margin-top: 14px; }
.tk-m.rwords { display: flex; flex-wrap: wrap; gap: 8px; align-self: stretch; } .tk-m.rwords .word { padding: 10px 14px; }

/* شريط الحاسبة القديمة مخفي هني */
#live { display: none !important; }
.tk-m.rcard, .tk-m.rbill { flex: none; }
.tk-m.rfaq { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.tk-m.rfaq details { padding: 12px 16px; border-radius: 16px; background: #ffffff0a; border: 1px solid #ffffff14; }
.tk-m.rfaq summary { cursor: pointer; font-weight: 700; color: #ffe2a2; }
.tk-m.rfaq p { margin: 8px 0 0; color: #c9c6d2; line-height: 1.8; font-size: 14px; }
.tk-m.rwords .word { display: inline-flex; flex-direction: column; gap: 0; border-radius: 16px; border: 1px solid #ffffff1a; background: #ffffff08; color: inherit; font: inherit; cursor: pointer; }
.tk-m.rwords .word span { max-height: 0; overflow: hidden; color: #c9c6d2; font-size: 13px; transition: max-height .35s, margin .35s; }
.tk-m.rwords .word.open { border-color: #f1b35c; } .tk-m.rwords .word.open span { max-height: 60px; margin-top: 4px; }

/* ================= شات حقيقي: الخيارات رسالة، وتحت مربع كتابة ================= */
.tk-chat { height: calc(100vh - 100px); }
/* خلفية المحادثة مثل الواتساب: رسومات برمجة خفيفة */
.tk-thread { position: relative; padding: 22px 26px 18px; scroll-behavior: smooth;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 32l-9 9 9 9M42 32l9 9-9 9M35 28l-6 26'/%3E%3Crect x='112' y='18' width='24' height='42' rx='6'/%3E%3Cpath d='M120 52h8'/%3E%3Ccircle cx='44' cy='130' r='13'/%3E%3Cpath d='M38 130h12M44 124v12'/%3E%3Cpath d='M126 116l4 9 10 1-7 7 2 9-9-5-8 5 2-9-8-7 10-1z'/%3E%3Cpath d='M76 88c0-7 5-11 12-11 4 0 8 2 10 6 5 0 9 3 9 8s-4 8-9 8H84c-5 0-8-5-8-11z'/%3E%3Cpath d='M150 82h14M157 75v14'/%3E%3C/svg%3E"); background-size: 180px 180px; }

/* حالة «يكتب…» في الرأس */
.tk-head small { transition: color .2s; } .tk-head small.ty { color: #ffd98e; }

/* صحّ القراءة: رمادي، ويصير أزرق لما البوت يقرا */
.tk-m.me .ticks { color: #8a6424; transition: color .4s; } .tk-m.me .ticks.read { color: #1d6fd6; }
/* تفاعل البوت على ردّك */
.tk-m.me .bub { overflow: visible; }
.tk-m.me .react { position: absolute; bottom: -14px; inset-inline-start: -10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #26232f; border: 2px solid #15131b; font-size: 15px; box-shadow: 0 4px 10px #0008; animation: react .5s cubic-bezier(.2, 1.8, .4, 1) both; }
@keyframes react { from { transform: scale(0) rotate(-30deg); } }
.tk-m.me:has(.react) { margin-bottom: 16px; }

/* رسالة الخيارات داخل المحادثة */
.tk-m.offer { align-self: stretch; margin: 4px 0 6px; margin-inline-start: 42px; padding: 14px; border-radius: 22px; border-start-start-radius: 8px;
  background: linear-gradient(160deg, #24212d, #1a1822); border: 1px solid #ffffff14; box-shadow: 0 14px 30px -16px #000; transition: height .4s ease, opacity .25s, margin .4s, padding .4s; }
.tk-m.offer.gone { overflow: hidden; opacity: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; pointer-events: none; }
.tk-m.offer .tk-hint { margin: 0 0 10px; }
.tk-m.offer .tk-opt { background: linear-gradient(160deg, #ffffff0d, #ffffff03); }
.tk-m.offer .tk-row.top { margin: 0 0 10px; }
.tk-m.offer.parts .tk-parts-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* طرق البناء: سحب يمين ويسار لو المكان ضيق */
@media (max-width: 1360px) {
  .tk-m.offer .tk-opts.builds, .tk-m.offer .tk-opts.team { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(240px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
  .tk-m.offer .tk-opts.builds > *, .tk-m.offer .tk-opts.team > * { scroll-snap-align: start; }
}

/* ردود سريعة فوق مربع الكتابة */
.tk-quick { display: none; gap: 8px; padding: 10px 18px 0; overflow-x: auto; scrollbar-width: none; }
.tk-quick.on { display: flex; animation: tk-in .35s both; }
.tk-qr { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #f1b35c55; background: #f1b35c12; color: #ffe2a2; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.tk-qr:hover { background: #f1b35c26; transform: translateY(-2px); }
.tk-qr.gold { border: 0; color: #1a1206; background: linear-gradient(100deg, #e8992e, #ffe2a2 35%, #f1b35c 55%, #e8992e) 0 0 / 250% 100%; animation: sheen 4s linear infinite; }

/* مربع الكتابة */
.tk-compose { display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid #ffffff10; background: linear-gradient(180deg, #17151df0, #100f15f5); }
.tk-compose input { flex: 1; min-width: 0; height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid #ffffff1a; background: #ffffff0b; color: #f4f2f8; font: inherit; font-size: 15px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.tk-compose input::placeholder { color: #8e8b98; }
.tk-compose input:focus { border-color: #f1b35c88; background: #ffffff10; box-shadow: 0 0 0 4px #f1b35c1a; }
.tk-send { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 50px; height: 50px; padding: 0; border: 0; border-radius: 999px; color: #1a1206; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  background: linear-gradient(135deg, #ffcf7a, #e8992e); box-shadow: 0 10px 22px -10px #f1b35caa; transition: padding .3s cubic-bezier(.2, 1.3, .4, 1), opacity .2s, transform .2s; }
.tk-send svg { width: 22px; height: 22px; fill: currentColor; }
[dir="rtl"] .tk-send svg { transform: scaleX(-1); }
.tk-send .lbl:empty { display: none; }
.tk-send.wide { padding: 0 18px 0 22px; animation: sendpulse 2.2s ease-in-out infinite; }
.tk-send:hover:not(:disabled) { transform: translateY(-2px); }
.tk-send:disabled { opacity: .35; cursor: default; animation: none; box-shadow: none; }
@keyframes sendpulse { 50% { box-shadow: 0 0 0 7px #f1b35c22, 0 10px 22px -10px #f1b35caa; } }

/* زر «انزل لتحت» */
.tk-down { position: absolute; bottom: 92px; inset-inline-end: 22px; z-index: 4; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #ffffff22; background: #26232ff0; color: #ffe2a2; font-size: 18px; cursor: pointer; box-shadow: 0 10px 24px #0009; opacity: 0; transform: translateY(10px) scale(.8); pointer-events: none; transition: all .25s; }
.tk-down.on { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 1000px) {
  .tk-m.offer { margin-inline-start: 0; }
  .tk-thread { padding: 16px 14px 12px; }
  .tk-compose { padding: 10px 12px 12px; } .tk-compose input { height: 46px; font-size: 14px; } .tk-send { min-width: 46px; height: 46px; }
}

/* ================= روح تلجرام: خلفية تتحرك، فقاعات بذيل، ستيكرات، تفاعلات ================= */
.tk-chat { isolation: isolate; background: #0e0c14; }
/* الخلفية الملونة: 4 بقع ضوء تتحرك مع كل رسالة، وفوقها رسومات خفيفة */
.tk-wall { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tk-wall i { position: absolute; width: 520px; height: 520px; border-radius: 50%; translate: -50% -50%; filter: blur(70px); opacity: .55; transition: left 1.4s cubic-bezier(.3, 1.2, .4, 1), top 1.4s cubic-bezier(.3, 1.2, .4, 1); }
.tk-wall i:nth-child(1) { background: #f1b35c; } .tk-wall i:nth-child(2) { background: #6d4cff; }
.tk-wall i:nth-child(3) { background: #13a89e; } .tk-wall i:nth-child(4) { background: #e2487f; opacity: .35; }
.tk-wall::after { content: ""; position: absolute; inset: 0; background: #0e0c14b8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 32l-9 9 9 9M42 32l9 9-9 9M35 28l-6 26'/%3E%3Crect x='112' y='18' width='24' height='42' rx='6'/%3E%3Cpath d='M120 52h8'/%3E%3Ccircle cx='44' cy='130' r='13'/%3E%3Cpath d='M38 130h12M44 124v12'/%3E%3Cpath d='M126 116l4 9 10 1-7 7 2 9-9-5-8 5 2-9-8-7 10-1z'/%3E%3Cpath d='M76 88c0-7 5-11 12-11 4 0 8 2 10 6 5 0 9 3 9 8s-4 8-9 8H84c-5 0-8-5-8-11z'/%3E%3Cpath d='M150 82h14M157 75v14'/%3E%3C/svg%3E") 0 0 / 180px 180px; }
.tk-thread { position: relative; z-index: 1; background: none; }
.tk-head, .tk-compose, .tk-quick { position: relative; z-index: 2; }
.tk-head { background: #15131dcc; backdrop-filter: blur(16px); }
.tk-compose { background: #15131dd9; backdrop-filter: blur(16px); }
.tk-down { z-index: 3; }

/* «يكتب» بنقاط تتنطط */
.tdots { display: inline-flex; gap: 2px; margin-inline-start: 4px; vertical-align: middle; }
.tdots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: tk-dot 1s infinite; }
.tdots i:nth-child(2) { animation-delay: .15s; } .tdots i:nth-child(3) { animation-delay: .3s; }

/* الفقاعات: ألوان صافية وذيل منحني مثل تلجرام */
.tk-m.bot .bub { background: #23202e; border: 0; box-shadow: 0 2px 6px #0006; border-radius: 18px; border-end-start-radius: 6px; }
.tk-m.bot.last .bub { border-end-start-radius: 4px; }
.tk-m.me .bub { background: linear-gradient(180deg, #ffd27f, #f0a640); border-radius: 18px; border-end-end-radius: 4px; box-shadow: 0 2px 8px #0006; }
.tk-m.bot.last .bub::before, .tk-m.me .bub::after { content: ""; position: absolute; bottom: 0; width: 11px; height: 17px; clip-path: none; }
.tk-m.bot.last .bub::before { background: #23202e; }
.tk-m.me .bub::after { background: #f0a640; }
[dir="rtl"] .tk-m.bot.last .bub::before, [dir="ltr"] .tk-m.me .bub::after { left: auto; right: -10px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 17'%3E%3Cpath d='M0 0v17h10c.6 0 1-.6.4-1C5 12 1 7 0 0z'/%3E%3C/svg%3E") no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 17'%3E%3Cpath d='M0 0v17h10c.6 0 1-.6.4-1C5 12 1 7 0 0z'/%3E%3C/svg%3E") no-repeat; }
[dir="ltr"] .tk-m.bot.last .bub::before, [dir="rtl"] .tk-m.me .bub::after { right: auto; left: -10px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 17'%3E%3Cpath d='M11 0v17H1c-.6 0-1-.6-.4-1C6 12 10 7 11 0z'/%3E%3C/svg%3E") no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 17'%3E%3Cpath d='M11 0v17H1c-.6 0-1-.6-.4-1C6 12 10 7 11 0z'/%3E%3C/svg%3E") no-repeat; }
.tk-m.typing .dots { background: #23202e; border: 0; border-end-start-radius: 4px; }

/* دخول الرسائل: البوت ينفخ من زاويته، ورسالتك تطير من مربع الكتابة */
.tk-m.bot { animation: tg-pop .45s cubic-bezier(.2, 1.5, .4, 1) both; transform-origin: bottom right; }
[dir="ltr"] .tk-m.bot { transform-origin: bottom left; }
@keyframes tg-pop { from { opacity: 0; transform: scale(.5); } }
.tk-m.me { animation: tg-send .5s cubic-bezier(.2, 1.3, .4, 1) both; transform-origin: bottom left; }
[dir="ltr"] .tk-m.me { transform-origin: bottom right; }
@keyframes tg-send { from { opacity: 0; transform: translateY(70px) scale(.7); } }

/* الستيكرات: بدون فقاعة، كبيرة ومتحركة */
.tk-m.sticker { position: relative; align-self: flex-start; margin: 4px 0; animation: tg-sticker .7s cubic-bezier(.2, 1.7, .4, 1) both; }
.tk-m.sticker img { display: block; width: 150px; height: 150px; filter: drop-shadow(0 10px 18px #0009); cursor: pointer; transition: transform .3s; }
.tk-m.sticker img:hover { transform: scale(1.08) rotate(-4deg); }
.tk-m.sticker .emo { display: block; font-size: 110px; line-height: 150px; animation: emo-bob 1.6s ease-in-out infinite; }
@keyframes emo-bob { 50% { transform: translateY(-8px) rotate(6deg); } }
.tk-m.sticker time { position: absolute; bottom: 6px; inset-inline-end: -6px; padding: 2px 8px; border-radius: 999px; background: #00000080; color: #ddd; }
@keyframes tg-sticker { 0% { opacity: 0; transform: scale(.2) rotate(-25deg); } 60% { opacity: 1; } }

/* إيموجي لحاله = كبير بدون فقاعة */
.tk-m.me.bigemo .bub { background: none; box-shadow: none; padding: 0; } .tk-m.me.bigemo .bub::after { display: none; }
.tk-m.me.bigemo .tx { font-size: 58px; line-height: 1.2; } .tk-m.me.bigemo time { padding: 2px 8px; border-radius: 999px; background: #00000080; color: #ddd; }

/* التفاعل: حبة تحت الرسالة + انفجار */
.tk-m.me .react { position: static; display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; width: auto; height: auto; margin-top: 4px; padding: 2px 10px 2px 4px; border: 0; border-radius: 999px; background: #00000026; color: #3a2508; font-size: 13px; font-weight: 800; box-shadow: none; }
.tk-m.me .react b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff6; font-size: 15px; animation: react .6s cubic-bezier(.2, 2, .4, 1) both; }
.tk-m.me:has(.react) { margin-bottom: 4px; }
.tk-burst { position: fixed; z-index: 999; pointer-events: none; font-size: 18px; translate: -50% -50%; animation: tg-burst .85s cubic-bezier(.1, .8, .3, 1) forwards; }
@keyframes tg-burst { 0% { transform: scale(.3); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1.1); opacity: 0; } }

/* الخيارات: أزرار زجاجية فوق الخلفية مثل أزرار بوتات تلجرام */
.tk-m.offer { padding: 0; border: 0; background: none; box-shadow: none; animation: tg-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.tk-m.offer .tk-hint, .tk-m.offer .tk-count { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #00000059; backdrop-filter: blur(10px); color: #e7e4ee; }
.tk-m.offer .tk-opt, .tk-m.offer .tk-part { background: #1d1a27b3; border-color: #ffffff1f; backdrop-filter: blur(14px); box-shadow: 0 4px 14px #0005; }
.tk-m.offer .tk-opt:active, .tk-m.offer .tk-part:active { transform: scale(.96); }
.tk-m.offer .tk-opt.on, .tk-m.offer .tk-part.on { background: #3a2a10cc; border-color: #f1b35c; }
.tk-m.offer .tk-ghost { background: #00000059; backdrop-filter: blur(10px); border-color: #ffffff2a; }
.tk-m.offer .tk-opt { animation-name: tg-key; }
@keyframes tg-key { from { opacity: 0; transform: translateY(18px) scale(.9); } }

/* كروت النتيجة تدخل بنفخة */
.tk-m.rcard, .tk-m.rbill, .tk-m.rfaq, .tk-m.rwords { animation: tg-pop .6s cubic-bezier(.2, 1.4, .4, 1) both; transform-origin: center bottom; }
.tk-m.day span { background: #00000059; backdrop-filter: blur(10px); color: #e7e4ee; }

@media (prefers-reduced-motion: reduce) { .tk-wall i { transition: none; } .tk-burst { display: none; } }

/* ================= فقاعات البوت بيضاء وواضحة، والمهمة بلون مميز ================= */
.tk-m.bot .bub { --bb: #fff; background: var(--bb); color: #1d1b26; box-shadow: 0 3px 10px #0006; }
.tk-m.bot.last .bub::before { background: var(--bb); }
.tk-m.bot .tx { font-weight: 500; }
.tk-m.bot .tx b { color: #b25e00; }
.tk-m.bot .tx a { color: #0a7d55; font-weight: 800; }
.tk-m.bot time { color: #9a97a6; }
.tk-m.typing .dots { background: #fff; } .tk-m.typing .dots i { background: #c4c1cf; }
@keyframes tk-dot { 30% { transform: translateY(-5px); background: #f1b35c; } }

/* السؤال الرئيسي: بنفسجي يلمع */
.tk-m.bot.q .bub { --bb: #6a46f0; background: linear-gradient(180deg, #9a7bff, #6a46f0); color: #fff; box-shadow: 0 10px 26px -8px #6a46f0cc; }
.tk-m.bot.q .tx { font-size: 16.5px; font-weight: 700; } .tk-m.bot.q .tx b { color: #fff3c4; } .tk-m.bot.q time { color: #ffffffb3; }
.tk-m.bot.q .bub { animation: q-glow 2.6s ease-in-out 2; }
@keyframes q-glow { 50% { box-shadow: 0 10px 34px -4px #8b6cffee; } }
/* نصيحة أو معلومة مهمة: أصفر فاتح */
.tk-m.bot.tip .bub { --bb: #fff4d4; background: var(--bb); color: #3d2800; } .tk-m.bot.tip .tx b { color: #a24f00; }
/* الفلوس: أخضر */
.tk-m.bot.money .bub { --bb: #c9f5dc; background: linear-gradient(180deg, #ecfff4, #c9f5dc); color: #0d3b24; } .tk-m.bot.money .tx b { color: #077a43; }
/* الخطوات: أزرق */
.tk-m.bot.plan .bub { --bb: #e3eeff; background: var(--bb); color: #0f2650; } .tk-m.bot.plan .tx b { color: #1f5fd1; }
/* المطلوب منك: بنفسجي فاتح */
.tk-m.bot.need .bub { --bb: #efe9ff; background: var(--bb); color: #241650; } .tk-m.bot.need .tx b { color: #6a46f0; }

/* ================= طرق البناء: كروت بوكيمون ================= */
.tk-m.offer .tk-opts.builds { gap: 18px; align-items: stretch; padding: 6px 2px 10px; }
.tk-m.offer .tk-opt.pk { display: block; padding: 0; border: 0; border-radius: 16px; background: none; backdrop-filter: none; box-shadow: none; overflow: visible; animation: none; perspective: 1000px; color: #1a1206; }
.tk-m.offer .tk-opt.pk:hover { transform: none; }
.tk-m.offer .tk-opt.pk:active .pk-in { scale: .97; }
/* الكرت ينوزع مقلوب وبعدين ينقلب */
.pk-in { position: relative; display: block; height: 100%; border-radius: 16px; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out, box-shadow .3s, scale .15s;
  animation: pk-deal 1.15s cubic-bezier(.3, 1.1, .4, 1) backwards; animation-delay: calc(var(--i) * 230ms); box-shadow: 0 16px 30px -14px #000; }
@keyframes pk-deal {
  0% { opacity: 0; transform: translateY(-160px) rotate(-16deg) rotateY(180deg) scale(.7); }
  45% { opacity: 1; transform: translateY(0) rotate(0) rotateY(180deg) scale(1); }
  100% { transform: rotateY(0); } }
.pk:hover .pk-in { box-shadow: 0 30px 50px -18px #000, 0 0 40px -6px var(--glow); }
.pk-face { -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 16px; }

/* الوجه: إطار أصفر ولون حسب النوع */
.pk-front { position: relative; display: flex; flex-direction: column; gap: 7px; height: 100%; padding: 9px 10px 8px; border: 7px solid #f2c935; text-align: start;
  box-shadow: inset 0 0 0 2px #ffffff80, 0 0 0 1px #8a6a08; background-image: radial-gradient(#ffffff26 1px, transparent 1.5px), var(--pk-bg); background-size: 10px 10px, 100% 100%; }
.pk-native { --glow: #ff6a3d; --pk-bg: linear-gradient(170deg, #ffd9c2, #f7a273 55%, #e86a3f); --en: radial-gradient(circle at 35% 30%, #ffb08f, #e8431c); --sky: linear-gradient(180deg, #ffcf8a, #ff8a5c 70%, #c94a2c); }
.pk-cross { --glow: #ffd21f; --pk-bg: linear-gradient(170deg, #fff7cc, #ffe36b 55%, #f2c218); --en: radial-gradient(circle at 35% 30%, #fff19a, #f0b800); --sky: linear-gradient(180deg, #4b2c8f, #7b4fd6 60%, #f7c94a); }
.pk-template { --glow: #58c46a; --pk-bg: linear-gradient(170deg, #e6f7d8, #addf92 55%, #77c25d); --en: radial-gradient(circle at 35% 30%, #a7f0a0, #2f9a3c); --sky: linear-gradient(180deg, #bfe8ff, #8fd0f5 60%, #6cbf5a); }

.pk-top { display: flex; align-items: center; gap: 6px; direction: ltr; }
.pk-top b { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 900; letter-spacing: -.2px; }
.pk-hp { font-size: 19px; font-weight: 900; color: #b3261e; line-height: 1; } .pk-hp small { margin-inline-end: 2px; font-size: 9px; }
.pk-en { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: var(--en); font-style: normal; font-size: 12px; box-shadow: 0 2px 4px #0006; }
.pk-en.sm { width: 22px; height: 22px; font-size: 11px; }

/* نافذة الرسمة بإطار فضي ولمعة هولو */
.pk-art { position: relative; display: block; overflow: hidden; border: 4px solid; border-color: #eee #8d8d8d #7a7a7a #e2e2e2; box-shadow: 0 2px 6px #0005; }
.tk-opt.pk .pk-art .scene { height: 112px; margin: 0; border: 0; border-radius: 0; background: var(--sky); }
.pk-holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .75;
  background: linear-gradient(115deg, transparent 20%, #ff00c859 38%, #00f0ff59 50%, #fff20059 62%, transparent 80%); background-size: 260% 260%; background-position: var(--mx, 50%) var(--my, 50%); }
.pk:not(:hover) .pk-holo { animation: holo 5s ease-in-out infinite alternate; }
@keyframes holo { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

.pk-sub { display: block; padding: 4px 8px; border-radius: 3px; font-size: 11px; font-style: italic; font-weight: 600; line-height: 1.55; color: #3d2b00;
  background: linear-gradient(90deg, #caa52a, #f7e08a 50%, #caa52a); box-shadow: inset 0 1px 0 #fff8; }
.pk-moves { display: flex; flex-direction: column; }
.pk-moves .mv { display: flex; align-items: center; gap: 8px; padding: 5px 2px; border-bottom: 1px solid #0000002e; }
.pk-moves .mv b { font-size: 13.5px; font-weight: 800; }
.pk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pk-stats > span { display: flex; flex-direction: column; align-items: center; padding: 4px; border-radius: 6px; background: #ffffff59; font-size: 12px; letter-spacing: 1px; color: #1a1206; }
.pk-stats small { font-size: 10.5px; font-weight: 800; letter-spacing: 0; color: #4a3500; } .pk-stats em { font-style: normal; color: #0000002e; }
.pk-weak { display: block; font-size: 11.5px; font-weight: 700; line-height: 1.5; color: #7a1d10; }
.pk-weak small { display: inline-block; margin-inline-end: 6px; padding: 1px 7px; border-radius: 999px; background: #b3261e; color: #fff; font-size: 10px; font-weight: 800; }
.pk-foot { display: flex; justify-content: space-between; margin-top: auto; direction: ltr; font-size: 9.5px; font-weight: 800; color: #00000099; }
.pk-foot span:first-child { color: #1a1206; letter-spacing: 1px; }
.pk-glare { position: absolute; inset: 0; z-index: 3; border-radius: 16px; pointer-events: none; opacity: 0; transition: opacity .3s; transform: translateZ(1px); -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #ffffffa6, transparent 45%); mix-blend-mode: overlay; }
.pk:hover .pk-glare { opacity: 1; }

/* ظهر الكرت */
.pk-back { position: absolute; inset: 0; display: grid; place-items: center; transform: rotateY(180deg); border: 8px solid #13286b;
  background: radial-gradient(circle, #5d8bff55, transparent 45%), repeating-conic-gradient(from 0deg, #2a56d6 0 15deg, #1d3fa8 15deg 30deg); box-shadow: inset 0 0 30px #000a; }
.pk-ball { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 4px solid #15131b; box-shadow: 0 6px 18px #000a;
  background: linear-gradient(180deg, #f1b35c 0 45%, #15131b 45% 55%, #fff 55%); }
.pk-ball b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 4px solid #15131b; background: #fff; color: #15131b; font-size: 10px; font-weight: 900; }

@media (prefers-reduced-motion: reduce) { .pk-in { animation: none; transition: none; } .pk-holo { animation: none !important; } }

/* لوجو توب نت داخل الفقاعة */
.tk-m .tx .tn-logo { display: inline-block; height: 1.25em; width: auto; margin: 0 4px; vertical-align: -0.28em; color: #e0a516; filter: drop-shadow(0 1px 0 #7a520033); animation: logo-pop .7s cubic-bezier(.2, 1.8, .4, 1) .3s both; }
@keyframes logo-pop { from { transform: scale(0) rotate(-20deg); } }

/* رمز الدرهم */
.aed { display: inline-block; flex: none; height: .82em; width: auto; vertical-align: -0.04em; margin-inline-end: 5px; }
.tk-so-v { display: inline-flex; align-items: center; color: #ffd98e; font-size: 22px; } .tk-so-v .aed { height: .8em; }
.gb .pv-price b .aed { height: 1em; margin-inline-end: 6px; filter: drop-shadow(2px 2px 0 #9a5a10); }

/* ================= الفريق: شاشة اختيار الشخصيات، كل كرت شكل ولون ================= */
.tk-m.offer .tk-opts.team { gap: 16px; align-items: stretch; padding: 4px 2px 8px; }
.tk-m.offer .tk-opt.sq { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 9px; padding: 14px 14px 16px; border: 0; color: #fff; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--a), var(--b)); backdrop-filter: none; box-shadow: none;
  animation: sq-in .7s cubic-bezier(.2, 1.4, .4, 1) backwards; animation-delay: calc(var(--i) * 150ms); transition: transform .3s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes sq-in { from { opacity: 0; transform: translateY(40px) scale(.75) rotate(calc((var(--i) - 1) * 6deg)); } }
.tk-m.offer .tk-opt.sq:hover { transform: translateY(-7px) scale(1.03); }
.sq > * { position: relative; z-index: 1; }
.sq .sq-bg { position: absolute; inset: 2px; z-index: 0; clip-path: inherit; border-radius: inherit; background: var(--pat), var(--bg); }

/* SOLO: كرت ناعم مدوّر، أخضر هادي */
.sq-solo { --a: #2fdc85; --b: #13a89e; --bg: linear-gradient(170deg, #0f3d2e, #0a1d18); --pat: radial-gradient(120% 60% at 50% 0%, #2fdc8533, transparent 60%); border-radius: 28px; }
/* DUO: زوايا مقصوصة مثل الدرع، بنفسجي */
.sq-duo { --a: #a48bff; --b: #3d6dff; --bg: linear-gradient(170deg, #2a1f63, #120e30); --pat: radial-gradient(#ffffff14 1px, transparent 1.5px) 0 0 / 14px 14px;
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px); }
/* SQUAD: كرت مايل وسريع، ناري، وخطوط سرعة تتحرك */
.sq-squad { --a: #ffb03d; --b: #ff3d6e; --bg: linear-gradient(170deg, #5a1f12, #250a10); --pat: repeating-linear-gradient(-60deg, #ffffff0d 0 12px, transparent 12px 26px);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px)); }
.sq-squad .sq-bg { background-size: 60px 60px, 100% 100%; animation: sq-run .8s linear infinite; }
@keyframes sq-run { to { background-position: 60px 0, 0 0; } }

.sq-head { display: flex; align-items: center; justify-content: space-between; direction: ltr; }
.sq-tag { padding: 5px 8px; border: 2px solid var(--a); border-radius: 4px; font-family: "Press Start 2P", monospace; font-size: 9px; font-weight: 400; color: var(--a); text-shadow: 0 0 10px var(--a); }
.sq-mas { width: 46px; height: 46px; filter: drop-shadow(0 6px 8px #0008); animation: emo-bob 2s ease-in-out infinite; }

/* المسرح: المبرمجين واقفين ويشتغلون */
.sq-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 78px; }
.sq-dev { font-size: 42px; line-height: 1; filter: drop-shadow(0 6px 6px #0009); animation: sq-bob 1.1s ease-in-out infinite; animation-delay: calc(var(--j) * -.35s); }
.sq-duo .sq-dev { font-size: 38px; } .sq-squad .sq-dev { font-size: 34px; animation-duration: .55s; }
@keyframes sq-bob { 50% { transform: translateY(-6px); } }
.sq:hover .sq-dev { animation: sq-jump .5s cubic-bezier(.2, 1.6, .4, 1) infinite alternate; animation-delay: calc(var(--j) * .1s); }
@keyframes sq-jump { to { transform: translateY(-14px) rotate(-6deg); } }
.sq-floor { position: absolute; bottom: -2px; left: 18%; right: 18%; height: 12px; border-radius: 50%; background: radial-gradient(var(--a), transparent 70%); opacity: .55; }
.sq-squad .sq-stage::before { content: ""; position: absolute; inset: 20% -10% 25%; background: repeating-linear-gradient(0deg, transparent 0 9px, #ffffff2e 9px 11px); -webkit-mask: linear-gradient(90deg, transparent, #000 40%, transparent); mask: linear-gradient(90deg, transparent, #000 40%, transparent); animation: sq-lines .5s linear infinite; }
@keyframes sq-lines { from { transform: translateX(-30%); } to { transform: translateX(30%); } }

.sq-name { font-size: 18px; font-weight: 900; }
.sq-note { align-self: center; padding: 3px 12px; border-radius: 999px; background: color-mix(in srgb, var(--a) 22%, transparent); border: 1px solid color-mix(in srgb, var(--a) 60%, transparent); color: var(--a); font-size: 12px; font-weight: 800; }
.sq-stats { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; text-align: start; }
.sq-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; }
.sq-row small { color: #ffffffa6; font-size: 11.5px; font-weight: 700; } .sq-row b { font-size: 13.5px; font-weight: 800; }
.sq-row .aed { height: .8em; margin-inline-end: 3px; }
.sq-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: #ffffff17; overflow: hidden; }
.sq-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--a), var(--b)); box-shadow: 0 0 10px var(--a); animation: sq-fill 1.1s cubic-bezier(.3, 1.2, .4, 1) backwards; animation-delay: calc(var(--i) * 150ms + .3s); }
@keyframes sq-fill { from { width: 0; } }

@media (prefers-reduced-motion: reduce) { .sq .sq-bg, .sq-dev, .sq-mas, .sq-stage::before { animation: none !important; } }
