/* Link-page themes. Markup: .th-KEY > .cover, .head(.avatar,.htxt(.pname,.pbio)), .plinks > .plink, .pfoot */
.pub{margin:0;min-height:100vh;font-family:"IBM Plex Sans Arabic",system-ui,Tahoma,sans-serif;direction:rtl;-webkit-font-smoothing:antialiased}
.screen{max-width:580px;margin:0 auto;min-height:100vh;box-sizing:border-box;padding:48px max(18px,env(safe-area-inset-left,0px)) 32px max(18px,env(safe-area-inset-right,0px));
  display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;position:relative}
.cover{display:none}
.head{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}
.htxt{display:flex;flex-direction:column;gap:6px;align-items:center;min-width:0}
.avatar{width:96px;height:96px;border-radius:50%;display:grid;place-items:center;font-size:2.4rem;line-height:1;flex:0 0 auto;background:#e9e9e9;color:#222;font-weight:700}
.pname{margin:0;font-size:1.7rem;line-height:1.25;text-wrap:balance;font-weight:700}
.pbio{margin:0;font-size:1rem;line-height:1.7;opacity:.85;max-width:34em;white-space:pre-line}
.plinks{display:flex;flex-direction:column;gap:12px;width:100%;margin-top:12px}
.plink{display:block;width:100%;box-sizing:border-box;padding:15px 18px;font-weight:600;font-size:1.02rem;text-decoration:none;word-break:break-word;
  transition:transform .15s ease,background-color .15s ease,box-shadow .15s ease,color .15s ease;color:inherit}
.plink:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.pfoot{margin-top:auto;padding-top:30px;font-size:.82rem;opacity:.7;color:inherit;text-decoration:none}
@media (prefers-reduced-motion:reduce){.plink{transition:none}}

/* ===== FREE ===== */
/* بسيط */
.th-minimal{background:#fff;color:#1a1a1a;font-family:"Tajawal",sans-serif}
.th-minimal .avatar{background:#f1f1f1;color:#333}
.th-minimal .plink{background:#f3f3f3;border-radius:12px}
.th-minimal .plink:hover{background:#e7e7e7}
/* داكن ناعم */
.th-darksoft{background:#121212;color:#ececec;font-family:"Almarai",sans-serif}
.th-darksoft .avatar{background:#262626;color:#fff;border:1px solid #333}
.th-darksoft .plink{background:#1d1d1d;border:1px solid #2c2c2c;border-radius:14px}
.th-darksoft .plink:hover{background:#262626;transform:translateY(-1px)}
/* باستيل */
.th-pastel{background:linear-gradient(180deg,#fdf2f8,#eef2ff);color:#3d3355;font-family:"Cairo",sans-serif}
.th-pastel .avatar{background:#fff;color:#a3609b;box-shadow:0 10px 30px rgba(163,96,155,.18)}
.th-pastel .plink{background:#fff;border-radius:999px;box-shadow:0 8px 22px rgba(90,70,140,.10)}
.th-pastel .plink:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(90,70,140,.16)}
/* حدود */
.th-outline{background:#fafafa;color:#161616;font-family:"Readex Pro",sans-serif}
.th-outline .avatar{background:transparent;border:2px solid #161616;color:#161616}
.th-outline .plink{background:transparent;border:2px solid #161616;border-radius:999px}
.th-outline .plink:hover{background:#161616;color:#fafafa}
/* سماء */
.th-sky{background:linear-gradient(170deg,#3a7bd5,#7cc4ff);color:#fff;font-family:"Tajawal",sans-serif}
.th-sky .avatar{background:rgba(255,255,255,.25);color:#fff;border:2px solid rgba(255,255,255,.7)}
.th-sky .plink{background:rgba(255,255,255,.92);color:#1d4e89;border-radius:16px}
.th-sky .plink:hover{background:#fff;transform:scale(1.015)}
/* ورقي */
.th-paper{background:#f6f1e7;color:#3a2f22;font-family:"Amiri",serif}
.th-paper .avatar{background:transparent;border:1px solid #8a7a62;color:#5a4a33;font-size:2.6rem}
.th-paper .pname{font-size:2.1rem}
.th-paper .plinks{gap:0;border-top:1px solid #cbbd9f}
.th-paper .plink{border-bottom:1px solid #cbbd9f;padding:16px 6px;font-size:1.15rem;font-weight:700}
.th-paper .plink:hover{background:#efe6d4}

/* ===== PAID ===== */
/* زجاجي */
.th-glass{background:radial-gradient(circle at 15% 20%,#ff6ec4 0,transparent 40%),radial-gradient(circle at 85% 30%,#7873f5 0,transparent 45%),radial-gradient(circle at 50% 90%,#ffb86c 0,transparent 45%),#2b1e4f;color:#fff;font-family:"Readex Pro",sans-serif}
.th-glass .avatar{background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.45);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.th-glass .plink{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);border-radius:18px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.th-glass .plink:hover{background:rgba(255,255,255,.26)}
/* فخامة */
.th-luxury{background:#0b0b0b;color:#d8bd72;font-family:"El Messiri",serif}
.th-luxury .avatar{background:#0b0b0b;color:#d8bd72;border:1px solid #d8bd72;box-shadow:0 0 0 6px #0b0b0b,0 0 0 7px rgba(216,189,114,.45)}
.th-luxury .pname{letter-spacing:.04em;font-size:2rem}
.th-luxury .pbio{color:#bfb59c}
.th-luxury .plink{border:1px solid rgba(216,189,114,.6);border-radius:2px;letter-spacing:.03em}
.th-luxury .plink:hover{background:#d8bd72;color:#0b0b0b}
/* سايبر */
.th-cyber{background:linear-gradient(rgba(0,255,240,.06) 1px,transparent 1px) 0 0/28px 28px,linear-gradient(90deg,rgba(0,255,240,.06) 1px,transparent 1px) 0 0/28px 28px,#07070f;color:#e6fffd;font-family:"Changa",sans-serif}
.th-cyber .avatar{background:#07070f;color:#00fff0;border:2px solid #00fff0;box-shadow:0 0 18px rgba(0,255,240,.6)}
.th-cyber .pname{text-shadow:0 0 12px rgba(0,255,240,.7)}
.th-cyber .plink{border:1px solid #00fff0;border-radius:6px;color:#00fff0;box-shadow:0 0 10px rgba(0,255,240,.35),inset 0 0 10px rgba(0,255,240,.12)}
.th-cyber .plink:hover{background:#00fff0;color:#07070f;box-shadow:0 0 22px rgba(0,255,240,.8)}
/* غلاف */
.th-cover{background:#f4f6fb;color:#1c2333;font-family:"Cairo",sans-serif}
.th-cover .screen{padding-top:0}
.th-cover .cover{display:block;width:calc(100% + 36px);height:170px;margin:0 -18px -70px;background:linear-gradient(120deg,#5b5bd6,#c56cf0);border-radius:0 0 28px 28px}
.th-cover .avatar{background:#fff;color:#5b5bd6;border:5px solid #f4f6fb;width:110px;height:110px;position:relative}
.th-cover .plink{background:#fff;border-radius:14px;border-inline-start:5px solid #5b5bd6;text-align:start;box-shadow:0 2px 10px rgba(28,35,51,.06)}
.th-cover .plink:hover{transform:translateX(-3px)}
/* مربعات */
.th-tiles{background:#fffaf0;color:#222;font-family:"Almarai",sans-serif}
.th-tiles .avatar{background:#222;color:#fffaf0}
.th-tiles .plinks{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.th-tiles .plink{min-height:96px;display:grid;place-items:center;border-radius:20px;font-weight:800;color:#222;background:#ffd6a5}
.th-tiles .plink:nth-child(5n+2){background:#caffbf}.th-tiles .plink:nth-child(5n+3){background:#9bf6ff}
.th-tiles .plink:nth-child(5n+4){background:#bdb2ff}.th-tiles .plink:nth-child(5n+5){background:#ffc6ff}
.th-tiles .plink:hover{transform:rotate(-1.5deg) scale(1.03)}
/* بطاقة عمل */
.th-business{background:#f2f4f7;color:#0f2340;font-family:"IBM Plex Sans Arabic",sans-serif}
.th-business .head{flex-direction:row;justify-content:flex-start;text-align:start;background:#0f2340;color:#fff;padding:18px;border-radius:16px;box-sizing:border-box}
.th-business .htxt{align-items:flex-start}
.th-business .avatar{width:72px;height:72px;font-size:1.8rem;background:#fff;color:#0f2340}
.th-business .pname{font-size:1.4rem}
.th-business .plink{background:#fff;border:1px solid #dde3ea;border-radius:10px;text-align:start;display:flex;justify-content:space-between;gap:10px}
.th-business .plink::after{content:"←";opacity:.5}
.th-business .plink:hover{border-color:#0f2340}
/* طبيعة */
.th-nature{background:radial-gradient(circle at 90% 10%,#b7e4c7 0,transparent 35%),radial-gradient(circle at 5% 85%,#95d5b2 0,transparent 40%),#e9f5ec;color:#1b4332;font-family:"Tajawal",sans-serif}
.th-nature .avatar{background:#1b4332;color:#e9f5ec}
.th-nature .plink{background:#fff;border-radius:20px 6px 20px 6px;color:#1b4332;box-shadow:0 6px 16px rgba(27,67,50,.10)}
.th-nature .plink:hover{background:#d8f3dc}
/* موجة */
.th-wave{background:linear-gradient(200deg,#ff9a8b,#ff6a88 45%,#ff99ac);color:#fff;font-family:"Marhey",sans-serif}
.th-wave .avatar{background:#fff;color:#ff6a88}
.th-wave .plink{background:rgba(255,255,255,.22);border:2px solid rgba(255,255,255,.8);border-radius:999px}
.th-wave .plink:hover{background:#fff;color:#ff6a88}
/* كوفي */
.th-kufi{background:repeating-conic-gradient(from 45deg,rgba(212,175,98,.10) 0 25%,transparent 0 50%) 0 0/36px 36px,#0b3c49;color:#f3e9d2;font-family:"Reem Kufi",sans-serif}
.th-kufi .avatar{background:#f3e9d2;color:#0b3c49;border-radius:18px;transform:rotate(45deg);width:80px;height:80px;margin:12px}
.th-kufi .avatar>*{transform:rotate(-45deg)}
.th-kufi .pname{font-size:2rem}
.th-kufi .plink{background:#f3e9d2;color:#0b3c49;border:1px solid #d4af62;outline:1px solid rgba(212,175,98,.5);outline-offset:3px;border-radius:4px}
.th-kufi .plink:hover{background:#d4af62}
/* تراثي */
.th-heritage{background:#efe2c4;color:#4a2c17;font-family:"Noto Naskh Arabic",serif}
.th-heritage .avatar{background:#4a2c17;color:#efe2c4;font-family:"Aref Ruqaa",serif}
.th-heritage .pname{font-family:"Aref Ruqaa",serif;font-size:2.3rem;font-weight:700}
.th-heritage .plink{border:4px double #7a4a28;border-radius:6px;background:#f7eedb}
.th-heritage .plink:hover{background:#4a2c17;color:#efe2c4}
/* طرفية */
.th-terminal{background:#050805;color:#3cff6e;font-family:"IBM Plex Sans Arabic",ui-monospace,monospace;letter-spacing:.01em}
.th-terminal .screen{align-items:stretch;text-align:start}
.th-terminal .head{align-items:flex-start}.th-terminal .htxt{align-items:flex-start}
.th-terminal .avatar{border-radius:4px;background:transparent;border:1px solid #3cff6e;color:#3cff6e;width:64px;height:64px;font-size:1.6rem}
.th-terminal .pname::before{content:"$ ";opacity:.6}
.th-terminal .plinks{gap:4px}
.th-terminal .plink{padding:8px 4px;font-weight:400}
.th-terminal .plink::before{content:"> ";opacity:.6}
.th-terminal .plink:hover{background:#3cff6e;color:#050805}
/* فقاعات */
.th-bubble{background:#f3eaff;color:#3b1d6e;font-family:"Baloo Bhaijaan 2",sans-serif}
.th-bubble .avatar{background:linear-gradient(135deg,#ff7eb3,#7a5cff);color:#fff}
.th-bubble .plink{background:linear-gradient(135deg,#ff7eb3,#7a5cff);color:#fff;border-radius:30px;font-weight:700;font-size:1.1rem;box-shadow:0 10px 24px rgba(122,92,255,.30)}
.th-bubble .plink:hover{transform:translateY(-3px) scale(1.02)}
/* مجلة */
.th-magazine{background:#fff;color:#111;font-family:"Amiri",serif;counter-reset:mag}
.th-magazine .screen{align-items:stretch;text-align:start}
.th-magazine .head{align-items:flex-start;border-bottom:3px solid #111;padding-bottom:14px}.th-magazine .htxt{align-items:flex-start}
.th-magazine .avatar{display:none}
.th-magazine .pname{font-size:2.8rem;line-height:1.1}
.th-magazine .pbio{color:#c1121f;font-style:italic}
.th-magazine .plinks{gap:0}
.th-magazine .plink{counter-increment:mag;display:flex;gap:16px;align-items:baseline;border-bottom:1px solid #ddd;padding:16px 2px;font-size:1.2rem;font-weight:700}
.th-magazine .plink::before{content:counter(mag,arabic-indic);font-size:1.8rem;color:#c1121f;min-width:1.4em}
.th-magazine .plink:hover{color:#c1121f}
/* أعماق */
.th-deep{background:radial-gradient(ellipse at top,#1b4f72,#0a1929 70%);color:#e3f2fd;font-family:"Readex Pro",sans-serif}
.th-deep .avatar{background:transparent;color:#4fc3f7;border:2px solid #4fc3f7}
.th-deep .plink{background:rgba(79,195,247,.08);border-bottom:2px solid #4fc3f7;border-radius:10px 10px 2px 2px}
.th-deep .plink:hover{background:rgba(79,195,247,.2)}
/* ورد */
.th-rose{background:#f6e3e1;color:#5b2a33;font-family:"Noto Naskh Arabic",serif}
.th-rose .avatar{background:#fff;color:#b5546a;box-shadow:0 0 0 4px #f6e3e1,0 0 0 6px #d99aa5}
.th-rose .plink{background:#fffaf9;border-radius:8px;border:1px solid #ecc4ca}
.th-rose .plink:hover{background:#b5546a;color:#fff;border-color:#b5546a}
/* بطاقة عائمة */
.th-card{background:linear-gradient(135deg,#43cea2,#185a9d);color:#20323f;font-family:"Cairo",sans-serif}
.th-card .screen{background:#fff;margin:28px auto;min-height:0;border-radius:26px;box-shadow:0 30px 60px rgba(0,0,0,.25);width:calc(100% - 32px);padding-top:36px}
.th-card .avatar{background:linear-gradient(135deg,#43cea2,#185a9d);color:#fff}
.th-card .plinks{gap:0}
.th-card .plink{border-bottom:1px solid #edf0f3;padding:15px 6px}
.th-card .plink:hover{color:#185a9d;background:#f6fafc}
/* عريض */
.th-bold{background:#000;color:#fff;font-family:"Lalezar",sans-serif}
.th-bold .screen{align-items:stretch;text-align:start}
.th-bold .head{align-items:flex-start}.th-bold .htxt{align-items:flex-start}
.th-bold .avatar{display:none}
.th-bold .pname{font-size:3.2rem;font-weight:400;line-height:1}
.th-bold .pbio{font-family:"IBM Plex Sans Arabic",sans-serif}
.th-bold .plinks{gap:0}
.th-bold .plink{font-size:1.8rem;font-weight:400;padding:12px 0;border-bottom:1px solid #333}
.th-bold .plink:hover{background:#fff;color:#000;padding-inline:12px}
/* حلويات */
.th-candy{background:repeating-linear-gradient(45deg,#fff0f6 0 18px,#e7f5ff 18px 36px);color:#5c2d6b;font-family:"Baloo Bhaijaan 2",sans-serif}
.th-candy .avatar{background:#fff;color:#e64980;border:3px dashed #e64980}
.th-candy .plink{background:#fff;border:3px solid #f783ac;border-radius:18px;font-weight:700}
.th-candy .plink:nth-child(even){border-color:#74c0fc}
.th-candy .plink:hover{transform:rotate(1deg)}

/* ===== DIFFERENT LAYOUTS (batch 2) ===== */
/* سطري (مجاني) */
.th-lines{background:#f7f7f5;color:#222;font-family:"Tajawal",sans-serif}
.th-lines .avatar{width:64px;height:64px;font-size:1.6rem;background:#222;color:#f7f7f5}
.th-lines .plinks{gap:2px;margin-top:24px}
.th-lines .plink{font-size:1.25rem;font-weight:400;padding:12px 0}
.th-lines .plink::after{content:" ←";opacity:0;transition:opacity .15s}
.th-lines .plink:hover::after{opacity:1}
.th-lines .plink:hover{letter-spacing:.02em}
/* شرائح (مجاني) */
.th-chips{background:#fff;color:#1f2937;font-family:"Almarai",sans-serif}
.th-chips .avatar{width:76px;height:76px;background:#eef2ff;color:#4338ca}
.th-chips .plinks{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:10px}
.th-chips .plink{width:auto;padding:10px 18px;border-radius:999px;border:1.5px solid #c7d2fe;color:#4338ca;background:#f8faff;font-size:.95rem}
.th-chips .plink:hover{background:#4338ca;color:#fff;border-color:#4338ca}
/* محادثة */
.th-chat{background:radial-gradient(#d6cfc4 1px,transparent 1.5px) 0 0/18px 18px,#efeae2;color:#111b21;font-family:"Cairo",sans-serif}
.th-chat .screen{padding-top:0;align-items:stretch}
.th-chat .head{flex-direction:row;justify-content:flex-start;background:#075e54;color:#fff;padding:14px 16px;margin:0 -18px;width:calc(100% + 36px);box-sizing:border-box;text-align:start}
.th-chat .htxt{align-items:flex-start;gap:0}
.th-chat .avatar{width:48px;height:48px;font-size:1.2rem;background:#dfe5e7;color:#075e54}
.th-chat .pname{font-size:1.1rem}.th-chat .pbio{font-size:.82rem;opacity:.8}
.th-chat .plinks{gap:8px;margin-top:18px}
.th-chat .plink{width:fit-content;max-width:85%;background:#fff;border-radius:0 12px 12px 12px;padding:10px 14px;text-align:start;box-shadow:0 1px 1px rgba(0,0,0,.12);font-weight:500}
.th-chat .plink:nth-child(even){align-self:flex-end;background:#d9fdd3;border-radius:12px 0 12px 12px}
.th-chat .plink:hover{filter:brightness(.97)}
/* خط زمني */
.th-timeline{background:#fff;color:#2d2d2d;font-family:"Tajawal",sans-serif}
.th-timeline .plinks{border-inline-start:3px solid #ececec;padding-inline-start:26px;gap:18px;box-sizing:border-box}
.th-timeline .plink{position:relative;text-align:start;padding:6px 0;font-size:1.08rem}
.th-timeline .plink::before{content:"";position:absolute;inset-inline-start:-35px;top:50%;width:14px;height:14px;margin-top:-7px;border-radius:50%;background:#fff;border:3px solid #ff6b35}
.th-timeline .plink:hover{color:#ff6b35}
.th-timeline .avatar{background:#ff6b35;color:#fff}
/* بولارويد */
.th-polaroid{background:#ece8e1;color:#333;font-family:"Changa",sans-serif}
.th-polaroid .avatar{background:#fff;color:#333;border-radius:4px;box-shadow:0 6px 14px rgba(0,0,0,.15);transform:rotate(-4deg)}
.th-polaroid .plinks{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.th-polaroid .plink{background:linear-gradient(#ffd6a5,#ffd6a5) top 10px center/calc(100% - 20px) 70px no-repeat,#fff;padding:92px 10px 14px;box-shadow:0 8px 18px rgba(0,0,0,.15);transform:rotate(-2deg);font-size:.95rem}
.th-polaroid .plink:nth-child(even){transform:rotate(2.5deg);background:linear-gradient(#a0c4ff,#a0c4ff) top 10px center/calc(100% - 20px) 70px no-repeat,#fff}
.th-polaroid .plink:nth-child(3n){background:linear-gradient(#caffbf,#caffbf) top 10px center/calc(100% - 20px) 70px no-repeat,#fff}
.th-polaroid .plink:hover{transform:rotate(0) scale(1.04)}
/* فاتورة */
.th-receipt{background:#d9d6d0;color:#222;font-family:"Readex Pro",sans-serif}
.th-receipt .screen{background:#fffefa;max-width:400px;width:calc(100% - 32px);margin:24px auto;min-height:0;padding:30px 22px;box-shadow:0 10px 30px rgba(0,0,0,.15);
  -webkit-mask:radial-gradient(circle 7px at 50% 0,transparent 98%,#000) top/18px 51% repeat-x,radial-gradient(circle 7px at 50% 100%,transparent 98%,#000) bottom/18px 51% repeat-x;
  mask:radial-gradient(circle 7px at 50% 0,transparent 98%,#000) top/18px 51% repeat-x,radial-gradient(circle 7px at 50% 100%,transparent 98%,#000) bottom/18px 51% repeat-x}
.th-receipt .avatar{display:none}
.th-receipt .head{border-bottom:2px dashed #999;padding-bottom:14px}
.th-receipt .pname{letter-spacing:.08em}
.th-receipt .plinks{gap:0;counter-reset:rc}
.th-receipt .plink{counter-increment:rc;display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px dotted #aaa;font-weight:500;text-align:start}
.th-receipt .plink::after{content:"#" counter(rc);opacity:.5}
.th-receipt .plink:hover{background:#f3f0e6}
.th-receipt .pfoot{border-top:2px dashed #999;width:100%;padding-top:14px}
/* ملصقات */
.th-sticky{background:radial-gradient(rgba(0,0,0,.08) 1px,transparent 1.5px) 0 0/6px 6px,#c69c6d;color:#3b2a14;font-family:"Marhey",sans-serif}
.th-sticky .avatar{background:#fff59d;color:#3b2a14;border-radius:2px;box-shadow:0 6px 12px rgba(0,0,0,.25);transform:rotate(3deg)}
.th-sticky .head .htxt{background:#fffdf4;padding:10px 16px;box-shadow:0 6px 12px rgba(0,0,0,.2);transform:rotate(-1.5deg)}
.th-sticky .plinks{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.th-sticky .plink{min-height:100px;display:grid;place-items:center;background:#fff59d;box-shadow:0 8px 14px rgba(0,0,0,.25);transform:rotate(-2deg);color:#3b2a14}
.th-sticky .plink:nth-child(4n+2){background:#ffcdd2;transform:rotate(2deg)}.th-sticky .plink:nth-child(4n+3){background:#b3e5fc;transform:rotate(1deg)}.th-sticky .plink:nth-child(4n){background:#c8e6c9;transform:rotate(-1deg)}
.th-sticky .plink:hover{transform:rotate(0) scale(1.05)}
/* تذاكر */
.th-ticket{background:#1d3557;color:#f1faee;font-family:"Changa",sans-serif}
.th-ticket .avatar{background:#e63946;color:#fff}
.th-ticket .plink{color:#1d3557;padding:16px 26px;border-radius:6px;
  background:radial-gradient(circle at 0 50%,transparent 11px,#f1faee 12px) left/51% 100% no-repeat,radial-gradient(circle at 100% 50%,transparent 11px,#f1faee 12px) right/51% 100% no-repeat}
.th-ticket .plink:hover{transform:scale(1.03)}
/* مفاتيح */
.th-keys{background:#2f3542;color:#f1f2f6;font-family:"Readex Pro",sans-serif}
.th-keys .avatar{background:#f1f2f6;color:#2f3542;border-radius:16px;box-shadow:0 6px 0 #a4b0be}
.th-keys .plinks{gap:16px}
.th-keys .plink{background:#f1f2f6;color:#2f3542;border-radius:12px;box-shadow:0 7px 0 #a4b0be,0 9px 12px rgba(0,0,0,.35)}
.th-keys .plink:hover{transform:translateY(5px);box-shadow:0 2px 0 #a4b0be,0 3px 6px rgba(0,0,0,.35)}
/* مائل */
.th-split{background:#fff;color:#222;font-family:"Cairo",sans-serif}
.th-split .screen{padding-top:0}
.th-split .cover{display:block;width:calc(100% + 36px);height:300px;margin:0 -18px -270px;background:linear-gradient(120deg,#ff5f6d,#ffc371);clip-path:polygon(0 0,100% 0,100% 78%,0 100%)}
.th-split .head{color:#fff;position:relative}
.th-split .avatar{background:rgba(255,255,255,.95);color:#ff5f6d;width:86px;height:86px}
.th-split .plinks{margin-top:56px}
.th-split .plink{border-bottom:3px solid #ff5f6d;background:#fff5f2;border-radius:0;text-align:start}
.th-split .plink:hover{background:#ff5f6d;color:#fff}
/* إطار متدرج */
.th-gborder{background:#0e0e10;color:#f5f5f7;font-family:"Readex Pro",sans-serif}
.th-gborder .avatar{background:linear-gradient(#0e0e10,#0e0e10) padding-box,linear-gradient(135deg,#f72585,#7209b7,#4cc9f0) border-box;border:3px solid transparent;color:#fff}
.th-gborder .plink{border:2px solid transparent;border-radius:14px;background:linear-gradient(#17171b,#17171b) padding-box,linear-gradient(90deg,#f72585,#7209b7,#4cc9f0) border-box}
.th-gborder .plink:hover{background:linear-gradient(90deg,#f72585,#7209b7,#4cc9f0) padding-box,linear-gradient(90deg,#f72585,#7209b7,#4cc9f0) border-box}
/* معرض */
.th-gallery{background:radial-gradient(ellipse at 50% 0,#4a4a4a,#1e1e1e 70%);color:#eee;font-family:"El Messiri",serif}
.th-gallery .avatar{background:#f5f0e1;color:#5a4220;border-radius:6px;border:6px solid #6b4f2a;box-shadow:inset 0 0 0 2px #c9a54c,0 12px 24px rgba(0,0,0,.5)}
.th-gallery .plinks{gap:20px}
.th-gallery .plink{background:#f5f0e1;color:#3d2c14;border:9px solid #6b4f2a;box-shadow:inset 0 0 0 2px #c9a54c,0 14px 26px rgba(0,0,0,.55);padding:18px}
.th-gallery .plink:hover{transform:translateY(-3px)}
/* لوحة */
.th-dash{background:#f4f6fa;color:#1e293b;font-family:"IBM Plex Sans Arabic",sans-serif;counter-reset:dd}
.th-dash .head{flex-direction:row;justify-content:flex-start;text-align:start}.th-dash .htxt{align-items:flex-start}
.th-dash .avatar{width:64px;height:64px;font-size:1.5rem;border-radius:18px;background:#2563eb;color:#fff}
.th-dash .plinks{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.th-dash .plink{counter-increment:dd;background:#fff;border-radius:14px;text-align:start;padding:14px;box-shadow:0 1px 3px rgba(15,23,42,.08);display:flex;flex-direction:column;gap:10px}
.th-dash .plink::before{content:counter(dd);width:32px;height:32px;border-radius:10px;background:#dbeafe;color:#2563eb;display:grid;place-items:center;font-weight:700}
.th-dash .plink:hover{box-shadow:0 6px 16px rgba(15,23,42,.12)}
/* نجوم */
.th-stars{background:radial-gradient(#fff 1px,transparent 1.5px) 0 0/90px 90px,radial-gradient(rgba(255,255,255,.6) 1px,transparent 1.5px) 45px 30px/70px 70px,linear-gradient(180deg,#0b1026,#2b2d6e);color:#fff;font-family:"El Messiri",serif}
.th-stars .avatar{background:radial-gradient(circle at 35% 35%,#fff7d6,#f2c94c);color:#2b2d6e;box-shadow:0 0 30px rgba(242,201,76,.7)}
.th-stars .plink{border:1px solid rgba(255,255,255,.5);border-radius:999px;box-shadow:0 0 14px rgba(160,170,255,.35)}
.th-stars .plink:hover{background:rgba(255,255,255,.12);box-shadow:0 0 24px rgba(160,170,255,.7)}
/* ناعم بارز */
.th-neumorph{background:#e0e5ec;color:#4a5568;font-family:"Tajawal",sans-serif}
.th-neumorph .avatar{background:#e0e5ec;color:#4a5568;box-shadow:9px 9px 18px #a3b1c6,-9px -9px 18px #fff}
.th-neumorph .plinks{gap:18px}
.th-neumorph .plink{background:#e0e5ec;border-radius:16px;box-shadow:7px 7px 14px #a3b1c6,-7px -7px 14px #fff}
.th-neumorph .plink:hover{box-shadow:inset 6px 6px 12px #a3b1c6,inset -6px -6px 12px #fff}
/* أقواس */
.th-arches{background:repeating-linear-gradient(90deg,rgba(201,165,76,.06) 0 2px,transparent 2px 40px),#0f3d3e;color:#f3e9d2;font-family:"Reem Kufi",sans-serif}
.th-arches .avatar{background:#f3e9d2;color:#0f3d3e;border-radius:999px 999px 14px 14px;width:84px;height:104px}
.th-arches .plinks{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.th-arches .plink{background:#f3e9d2;color:#0f3d3e;border:2px solid #c9a54c;border-radius:999px 999px 10px 10px;padding:42px 10px 16px}
.th-arches .plink:hover{background:#c9a54c}

/* ===== batch 3 (paid) ===== */
/* سبورة */
.th-chalk{background:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1.5px) 0 0/5px 5px,#2f3b33;color:#f4f4ef;font-family:"Marhey",sans-serif}
.th-chalk .avatar{background:transparent;border:3px dashed rgba(255,255,255,.75);color:#fff}
.th-chalk .pname{font-size:2rem}
.th-chalk .plinks{gap:4px}
.th-chalk .plink{border-bottom:2px dashed rgba(255,255,255,.45);font-size:1.2rem;padding:14px 4px}
.th-chalk .plink:hover{color:#ffe066}
/* رسائل */
.th-envelope{background:#e8eef5;color:#33414e;font-family:"Amiri",serif}
.th-envelope .avatar{background:#c0392b;color:#fff;box-shadow:0 0 0 5px #e8eef5,0 0 0 7px #c0392b}
.th-envelope .plink{padding:50px 14px 16px;border-radius:4px;font-size:1.1rem;font-weight:700;box-shadow:0 6px 16px rgba(51,65,78,.15);
  background:linear-gradient(to bottom left,#d9c9a6 50%,transparent 50%) top left/50% 42px no-repeat,linear-gradient(to bottom right,#d9c9a6 50%,transparent 50%) top right/50% 42px no-repeat,#f5ecd9}
.th-envelope .plink:hover{transform:translateY(-3px)}
/* رف كتب */
.th-books{background:#f5efe6;color:#3e2c1c;font-family:"Amiri",serif}
.th-books .avatar{background:#3e2c1c;color:#f5efe6;border-radius:8px}
.th-books .plinks{gap:4px;border-bottom:12px solid #8b5e34;padding-bottom:2px;align-items:flex-start}
.th-books .plink{width:88%;padding:11px 16px;border-radius:3px;color:#fff;background:#7b2d26;box-shadow:inset 10px 0 0 rgba(0,0,0,.18),inset -3px 0 0 rgba(255,255,255,.15);text-align:start;font-weight:700}
.th-books .plink:nth-child(4n+2){width:74%;background:#1f4e5f;align-self:flex-end}
.th-books .plink:nth-child(4n+3){width:95%;background:#c08a2c}
.th-books .plink:nth-child(4n){width:68%;background:#3d5a3a;align-self:center}
.th-books .plink:hover{transform:translateX(-6px)}
/* تطبيقات */
.th-apps{background:linear-gradient(160deg,#a1c4fd,#c2e9fb);color:#1b2a41;font-family:"Cairo",sans-serif}
.th-apps .avatar{border-radius:24px;background:#fff;color:#1b2a41}
.th-apps .plinks{display:grid;grid-template-columns:repeat(3,1fr);gap:18px 10px}
.th-apps .plink{display:flex;flex-direction:column;align-items:center;gap:8px;padding:0;font-size:.85rem;font-weight:600}
.th-apps .plink::before{content:"";width:66px;height:66px;border-radius:18px;background:linear-gradient(135deg,#ff9a9e,#fad0c4);box-shadow:0 6px 14px rgba(27,42,65,.18)}
.th-apps .plink:nth-child(5n+2)::before{background:linear-gradient(135deg,#43e97b,#38f9d7)}
.th-apps .plink:nth-child(5n+3)::before{background:linear-gradient(135deg,#667eea,#764ba2)}
.th-apps .plink:nth-child(5n+4)::before{background:linear-gradient(135deg,#f6d365,#fda085)}
.th-apps .plink:nth-child(5n)::before{background:linear-gradient(135deg,#30cfd0,#330867)}
.th-apps .plink:hover{transform:scale(1.08)}
/* شارات */
.th-badges{background:#fff8e7;color:#2b2d42;font-family:"Changa",sans-serif}
.th-badges .avatar{background:#2b2d42;color:#fff8e7}
.th-badges .plinks{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.th-badges .plink{aspect-ratio:1;border-radius:50%;display:grid;place-items:center;padding:10px;font-size:.85rem;font-weight:600;color:#fff;background:#ef476f;box-shadow:inset 0 0 0 5px #ef476f,inset 0 0 0 7px rgba(255,255,255,.7)}
.th-badges .plink:nth-child(4n+2){background:#118ab2;box-shadow:inset 0 0 0 5px #118ab2,inset 0 0 0 7px rgba(255,255,255,.7)}
.th-badges .plink:nth-child(4n+3){background:#06d6a0;box-shadow:inset 0 0 0 5px #06d6a0,inset 0 0 0 7px rgba(255,255,255,.7)}
.th-badges .plink:nth-child(4n){background:#ffd166;color:#2b2d42;box-shadow:inset 0 0 0 5px #ffd166,inset 0 0 0 7px rgba(43,45,66,.4)}
.th-badges .plink:hover{transform:rotate(-8deg) scale(1.05)}
/* طوابع */
.th-stamps{background:#efe4cf;color:#4b3621;font-family:"El Messiri",serif}
.th-stamps .avatar{background:#4b3621;color:#efe4cf}
.th-stamps .plinks{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.th-stamps .plink{border:7px solid transparent;padding:26px 10px;color:#7a1f1f;font-weight:700;transform:rotate(-1.5deg);
  background:linear-gradient(#fffaf0,#fffaf0) padding-box,radial-gradient(circle,#efe4cf 3.2px,transparent 3.7px) -1px -1px/12px 12px border-box,#fffaf0;
  box-shadow:inset 0 0 0 3px #fffaf0,inset 0 0 0 5px #b23a3a}
.th-stamps .plink:nth-child(even){transform:rotate(2deg);color:#1f4e7a;box-shadow:inset 0 0 0 3px #fffaf0,inset 0 0 0 5px #2f6fa3}
.th-stamps .plink:hover{transform:rotate(0) scale(1.04)}
/* مخطط هندسي */
.th-blueprint{background:linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px) 0 0/100px 100px,linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px) 0 0/100px 100px,linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px) 0 0/20px 20px,linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px) 0 0/20px 20px,#1e4f8c;color:#fff;font-family:"Readex Pro",sans-serif}
.th-blueprint .avatar{background:transparent;border:2px dashed #fff;color:#fff;border-radius:0}
.th-blueprint .plink{border:1.5px dashed rgba(255,255,255,.85);position:relative}
.th-blueprint .plink::before,.th-blueprint .plink::after{content:"";position:absolute;width:10px;height:10px;border:2px solid #fff}
.th-blueprint .plink::before{top:-6px;right:-6px;border-left:0;border-bottom:0}
.th-blueprint .plink::after{bottom:-6px;left:-6px;border-right:0;border-top:0}
.th-blueprint .plink:hover{background:rgba(255,255,255,.12)}
/* قلم تحديد */
.th-highlight{background:linear-gradient(transparent 31px,#e4ecf7 32px) 0 0/100% 32px,#fffef9;color:#222;font-family:"Marhey",sans-serif}
.th-highlight .avatar{background:#fff176;color:#222}
.th-highlight .plinks{align-items:center;gap:14px}
.th-highlight .plink{width:auto;padding:4px 12px;font-size:1.25rem;background:linear-gradient(104deg,transparent 2%,#fff176 3%,#fff176 97%,transparent 98%) 0 75%/100% 55% no-repeat}
.th-highlight .plink:nth-child(4n+2){background-image:linear-gradient(104deg,transparent 2%,#ffb3c7 3%,#ffb3c7 97%,transparent 98%)}
.th-highlight .plink:nth-child(4n+3){background-image:linear-gradient(104deg,transparent 2%,#b9fbc0 3%,#b9fbc0 97%,transparent 98%)}
.th-highlight .plink:nth-child(4n){background-image:linear-gradient(104deg,transparent 2%,#a0e7ff 3%,#a0e7ff 97%,transparent 98%)}
.th-highlight .plink:hover{background-size:100% 100%}
/* نوافذ */
.th-windows{background:linear-gradient(160deg,#ffafbd,#ffc3a0);color:#3a2b2b;font-family:"Readex Pro",sans-serif}
.th-windows .avatar{background:#fff;color:#e2725b;border-radius:22px}
.th-windows .plink{position:relative;background:linear-gradient(#f1f1f3,#f1f1f3) top/100% 30px no-repeat,#fff;border-radius:12px;padding:44px 14px 16px;box-shadow:0 12px 30px rgba(58,43,43,.18)}
.th-windows .plink::before{content:"";position:absolute;top:10px;inset-inline-start:14px;width:10px;height:10px;border-radius:50%;background:#ff5f57;box-shadow:-16px 0 #febc2e,-32px 0 #28c840}
.th-windows .plink:hover{transform:translateY(-3px)}
/* درج */
.th-steps{background:#111827;color:#fff;font-family:"Changa",sans-serif}
.th-steps .avatar{background:#6366f1;color:#fff;border-radius:14px}
.th-steps .plinks{align-items:flex-start;gap:10px}
.th-steps .plink{border-radius:0 12px 12px 0;text-align:start;background:#312e81;width:62%}
.th-steps .plink:nth-child(2){width:71%;background:#3730a3}.th-steps .plink:nth-child(3){width:80%;background:#4338ca}
.th-steps .plink:nth-child(4){width:89%;background:#4f46e5}.th-steps .plink:nth-child(n+5){width:98%;background:#6366f1}
.th-steps .plink:hover{padding-inline-start:28px}
/* عاجل */
.th-news{background:#f2f2f2;color:#111;font-family:"Cairo",sans-serif}
.th-news .avatar{display:none}
.th-news .head{border-bottom:4px solid #c8102e;padding-bottom:10px}
.th-news .pname{font-size:2.2rem;font-weight:900}
.th-news .plinks{gap:10px}
.th-news .plink{display:flex;align-items:center;gap:14px;padding:0 0 0 14px;padding-inline-end:14px;padding-inline-start:0;background:#fff;border-radius:4px;overflow:hidden;text-align:start;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.th-news .plink::before{content:"عاجل";background:#c8102e;color:#fff;padding:14px 12px;font-weight:800;flex:0 0 auto}
.th-news .plink:hover{background:#fff4f5}
/* متراكب */
.th-stack{background:linear-gradient(170deg,#ffecd2,#fcb69f);color:#4a2c2a;font-family:"Tajawal",sans-serif}
.th-stack .avatar{background:#fff;color:#e07a5f}
.th-stack .plinks{gap:0}
.th-stack .plink{position:relative;border-radius:18px;padding:24px 18px 30px;margin-top:-14px;background:#fff;box-shadow:0 -6px 16px rgba(74,44,42,.10)}
.th-stack .plink:first-child{margin-top:0}
.th-stack .plink:nth-child(4n+2){background:#fde2e4}.th-stack .plink:nth-child(4n+3){background:#e2ece9}.th-stack .plink:nth-child(4n){background:#dfe7fd}
.th-stack .plink:hover{transform:translateY(-8px);z-index:2}
/* نصفين */
.th-halves{background:linear-gradient(90deg,#14213d 50%,#fca311 50%);color:#fff;font-family:"Readex Pro",sans-serif}
.th-halves .avatar{background:#fff;color:#14213d;box-shadow:0 0 0 6px rgba(255,255,255,.3)}
.th-halves .htxt{background:#14213d;padding:10px 20px;border-radius:14px;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.th-halves .plink{background:#fff;color:#14213d;border-inline-start:8px solid #fca311;border-inline-end:8px solid #14213d}
.th-halves .plink:hover{background:#14213d;color:#fff}
/* خشب */
.th-wood{background:repeating-linear-gradient(90deg,#8b5a2b 0 58px,#6f4520 58px 61px,#946230 61px 118px,#6f4520 118px 121px);color:#fff8ec;font-family:"El Messiri",serif}
.th-wood .avatar{background:linear-gradient(#e9d3a6,#d9bb85);color:#4a2f12;box-shadow:0 5px 0 #5c3a17}
.th-wood .pname{text-shadow:0 2px 0 rgba(0,0,0,.35)}
.th-wood .plink{background:linear-gradient(#ecd8ae,#d6b57d);color:#4a2f12;border-radius:8px;box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 5px 0 #5c3a17;text-shadow:0 1px 0 rgba(255,255,255,.5);font-weight:700}
.th-wood .plink:hover{transform:translateY(3px);box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 2px 0 #5c3a17}
/* كثبان */
.th-dunes{background:radial-gradient(ellipse 130% 28% at 25% 100%,#c98a4b 60%,transparent 61%),radial-gradient(ellipse 130% 36% at 85% 100%,#e0a96d 60%,transparent 61%),linear-gradient(180deg,#ffcf99,#fff3dc 60%);color:#5a3a17;font-family:"El Messiri",serif}
.th-dunes .avatar{background:radial-gradient(circle,#fff6d8,#ffb347);color:#7a4a12;box-shadow:0 0 40px rgba(255,179,71,.6)}
.th-dunes .plink{background:rgba(255,255,255,.72);border-radius:999px;color:#5a3a17}
.th-dunes .plink:hover{background:#fff}
/* كوميك */
.th-comic{background:radial-gradient(rgba(0,0,0,.14) 1.5px,transparent 2px) 0 0/11px 11px,#ffd60a;color:#111;font-family:"Lalezar",sans-serif}
.th-comic .avatar{background:#fff;color:#e63946;border:3px solid #111}
.th-comic .pname{font-size:2.4rem;font-weight:400;transform:rotate(-3deg);color:#e63946;text-shadow:2px 2px 0 #fff}
.th-comic .plinks{gap:22px}
.th-comic .plink{position:relative;background:#fff;border:3px solid #111;border-radius:24px;font-size:1.2rem;font-weight:400}
.th-comic .plink::after{content:"";position:absolute;bottom:-14px;inset-inline-start:30px;border:12px solid transparent;border-top-color:#111;border-bottom:0}
.th-comic .plink:nth-child(even)::after{inset-inline-start:auto;inset-inline-end:30px}
.th-comic .plink:hover{transform:scale(1.04) rotate(-1deg)}
/* ---- uploaded logo (all themes) ---- */
.avatar{overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.th-kufi .avatar img{transform:rotate(-45deg) scale(1.42)}
.has-logo.th-magazine .avatar,.has-logo.th-bold .avatar,.has-logo.th-receipt .avatar,.has-logo.th-news .avatar{display:grid;width:72px;height:72px;margin:0 auto 12px}
.has-logo.th-magazine .avatar,.has-logo.th-bold .avatar{margin:0 0 10px}
.has-logo.th-receipt .avatar{border-radius:8px;filter:grayscale(1)}
.has-logo.th-news .avatar{border-radius:0;border:2px solid currentColor}
.plink.ghost{opacity:.4;border-style:dashed!important;pointer-events:none}
/* ===== CUSTOM (ثيم مخصص — add-on) : vars set inline by the server / dashboard ===== */
.th-custom{--c-bg:#fff4fb;--c-bg2:#ffd6ef;--c-tx:#1a1a1a;--c-btn:#111;--c-bt:#fff;--c-font:'Tajawal';background:var(--c-bg);color:var(--c-tx);font-family:var(--c-font),"IBM Plex Sans Arabic",sans-serif}
.th-custom.c-grad{background:linear-gradient(165deg,var(--c-bg),var(--c-bg2))}
.th-custom.c-img{background:var(--c-bg) var(--c-img) center/cover no-repeat}
.th-custom.c-img.c-dim{background-image:linear-gradient(rgba(0,0,0,.42),rgba(0,0,0,.42)),var(--c-img)}
.th-custom .avatar{background:var(--c-btn);color:var(--c-bt);box-shadow:0 0 0 4px color-mix(in srgb,var(--c-btn) 25%,transparent)}
.th-custom .pname{font-weight:700}
.th-custom .plink{background:var(--c-btn);color:var(--c-bt);border:2px solid var(--c-btn);border-radius:14px}
.th-custom.c-pill .plink{border-radius:999px}
.th-custom.c-square .plink{border-radius:0}
.th-custom.c-outline .plink{background:transparent;color:var(--c-btn)}
.th-custom.c-shadow .plink{border-color:var(--c-tx);box-shadow:5px 5px 0 var(--c-tx)}
.th-custom.c-glass .plink{background:color-mix(in srgb,var(--c-btn) 30%,transparent);color:var(--c-bt);border-color:color-mix(in srgb,var(--c-btn) 55%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.th-custom .plink:hover{transform:translateY(-2px)}
.th-custom.c-shadow .plink:hover{box-shadow:7px 7px 0 var(--c-tx)}
