/* AMTech Tap - shared styles (v3, light HiHello-inspired, original) */
:root {
  --bg: color-mix(in srgb, var(--accent-bright) 5%, #fbf6ec);
  --surface: #ffffff;
  --surface-2: color-mix(in srgb, var(--accent-bright) 7%, #f6eddc);
  --text: #2a1a22;
  --muted: #7a6670;
  --accent: #a8801f;
  --accent-bright: #c8a24a;
  --accent-2: #7a1f3d;
  --border: color-mix(in srgb, var(--accent-bright) 14%, #eadfca);
  --radius: 20px;
  --font: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: radial-gradient(90% 55% at 100% 0%, color-mix(in srgb, var(--accent-bright) 15%, transparent), transparent 62%), radial-gradient(80% 50% at 0% 100%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.container { width: 100%; max-width: 480px; margin: 0 auto; padding: 24px 20px 48px; }

/* ---------- Buttons (pill style) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .1s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, #c8a24a, #7a1f3d);
  color: #fff;
  box-shadow: 0 6px 20px rgba(168, 128, 31, .35);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(122, 31, 61, .35); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-outline { background: transparent; color: var(--text); border-color: #c4d2de; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Public card page ---------- */
body.card-view { background: var(--bg); }
.card-wrap { width: 100%; max-width: 470px; margin: 0 auto; padding: 28px 16px 56px; }
.card-shell {
  --c-bg: #ffffff;
  --c-text: #0a2540;
  --c-muted: #5b7288;
  --c-surface: #f0f4f8;
  --c-border: #eadfca;
  background: var(--c-bg);
  color: var(--c-text);
  border-radius: 28px;
  box-shadow: 0 14px 44px rgba(10, 37, 64, .1);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.card-cover { height: 130px; background: linear-gradient(135deg, #c8a24a, #7a1f3d); background-size: cover; background-position: center; position: relative; }
.card-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.12)); }
.card-head { text-align: center; padding: 0 24px 6px; margin-top: -54px; position: relative; z-index: 1; }
.card-head .avatar {
  width: 108px; height: 108px; border-radius: 50%;
  margin: 0 auto 14px; object-fit: cover;
  background: linear-gradient(135deg, #c8a24a, #7a1f3d);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 800; color: #fff;
  border: 4px solid var(--c-bg);
  box-shadow: 0 6px 18px rgba(10, 37, 64, .18);
}
.card-name { font-size: 24px; font-weight: 800; }
.card-title { color: var(--c-muted); font-size: 15px; margin-top: 4px; }
.card-company { color: var(--accent); font-size: 14px; font-weight: 700; margin-top: 2px; }
.card-bio { color: var(--c-muted); font-size: 14px; margin: 14px 4px 0; line-height: 1.8; }
.card-body { padding: 20px 20px 28px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions .btn-primary { grid-column: 1 / -1; }

/* أزرار التواصل الملونة */
.contact-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.contact-row {
  display: flex; align-items: center; gap: 13px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  padding: 12px 16px; border-radius: 16px; text-decoration: none; font-size: 15px;
  transition: transform .12s ease, box-shadow .2s ease;
  color: var(--c-text);
}
.contact-row:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(10, 37, 64, .1); }
.contact-row .ci {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.contact-row .ci svg { width: 18px; height: 18px; fill: currentColor; }
.contact-row .ci.phone { background: #14b86e; }
.contact-row .ci.whatsapp { background: #25d366; }
.contact-row .ci.email { background: #00a8d4; }
.contact-row .ci.website { background: #6b7c93; }
.contact-row { min-width: 0; }
.contact-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: start; }
.contact-row .label { font-weight: 700; font-size: 14px; line-height: 1.3; }
.contact-row .value {
  display: block; max-width: 100%; color: var(--c-muted); font-size: 13px; line-height: 1.4;
  direction: ltr; unicode-bidi: isolate; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.contact-row .ci { align-self: center; }
.contact-row .arrow { color: var(--c-muted); font-size: 14px; }

/* أزرار السوشيال */
.social-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.social-btn {
  width: 52px; height: 52px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  box-shadow: 0 4px 14px rgba(10, 37, 64, .18);
  transition: transform .15s ease, box-shadow .2s ease;
}
.social-btn:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 22px rgba(10, 37, 64, .28); }
.social-btn svg { width: 25px; height: 25px; fill: currentColor; }
.social-btn.sp-facebook { background: #1877f2; }
.social-btn.sp-whatsapp { background: #25d366; }
.social-btn.sp-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.social-btn.sp-linkedin { background: #0a66c2; }
.social-btn.sp-x { background: #111; }
.social-btn.sp-telegram { background: #229ed9; }
.social-btn.sp-youtube { background: #ff0000; }
.social-btn.sp-tiktok { background: #111; }
.social-btn.sp-github { background: #24292e; }
.social-btn.sp-website { background: #6b7c93; }

/* لينكات عامة */
.links { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.link-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  padding: 13px 16px; border-radius: 16px; text-decoration: none; font-size: 15px;
  color: var(--c-text);
  transition: transform .12s ease, box-shadow .2s ease;
}
.link-row:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(10, 37, 64, .1); }
.link-row .icon { display: inline-flex; width: 22px; justify-content: center; color: var(--accent); }
.link-row .icon svg { width: 20px; height: 20px; fill: currentColor; }
.link-row .label { flex: 1; font-weight: 600; }
.link-row .arrow { color: var(--c-muted); }

/* قالب: كلاسيك (افتراضي مجاني) — الشكل الأساسي فوق */

/* قالب: بسيط (مجاني) */
.theme-minimal .card-shell { box-shadow: none; border: 1px solid var(--c-border); }
.theme-minimal .card-cover { display: none; }
.theme-minimal .card-head { margin-top: 36px; }
.theme-minimal .card-head .avatar { width: 92px; height: 92px; border-width: 0; box-shadow: none; }
.theme-minimal .card-name { font-size: 22px; letter-spacing: .2px; }
.theme-minimal .card-body { border-top: 1px solid var(--c-border); margin-top: 18px; }
.theme-minimal .contact-row, .theme-minimal .link-row { background: transparent; border-color: var(--c-border); }

/* قالب: داكن (مدفوع) */
.theme-dark { background: #04101f; }
.theme-dark .card-shell {
  --c-bg: #0a2540;
  --c-text: #f2f7fb;
  --c-muted: #8fa8c4;
  --c-surface: #103252;
  --c-border: #1d4468;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.theme-dark .card-cover { background: linear-gradient(135deg, #062a18, #06304a 55%, #0a2540); }
.theme-dark .card-company { color: var(--accent-2); }
.theme-dark .btn-ghost { background: #103252; color: #f2f7fb; border-color: #1d4468; }

/* قالب: متدرج (مدفوع) */
.theme-gradient .card-cover { height: 200px; background: linear-gradient(140deg, #00d4ff, #14f195 60%, #b3ff5e); }
.theme-gradient .card-head { margin-top: -64px; }

/* قالب: غلاف بصورة (مدفوع) */
.theme-cover .card-cover { height: 190px; background-color: #0a2540; background-blend-mode: normal; }
.theme-cover .card-cover.no-photo { background: linear-gradient(140deg, #0a2540, #00a8d4 70%, #14f195); }
.theme-cover .card-head { margin-top: -60px; }

/* مشاركة + عملاء + محتوى غني على صفحة الكارت */
.share { margin-top: 18px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; text-align: center; }
.share-title { font-size: 16px; margin-bottom: 14px; font-weight: 700; }
.qr-box { display: flex; justify-content: center; margin-bottom: 14px; }
.share-buttons { display: grid; gap: 10px; }
.share-hint { color: var(--c-muted); font-size: 12px; margin-top: 12px; }
.lead-form { margin-top: 18px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; }
.lead-form .share-title { font-size: 15px; margin-bottom: 12px; }
.lead-form .field-input { margin-top: 10px; }
.rich-h { font-size: 15px; margin: 24px 0 10px; font-weight: 800; }
.rich-row { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; font-size: 13px; }
.rich-row p { margin: 4px 0 0; color: var(--c-muted); font-size: 13px; line-height: 1.7; }
.rich-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.rich-by { display: block; margin-top: 6px; color: var(--accent); font-size: 12px; }
.card-footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 26px; }
.card-footer a { color: var(--muted); }

/* داخل قالب داكن: نماذج */
.theme-dark .field-input { background: #061a2e; border-color: #1d4468; color: #f2f7fb; }

/* ---------- Landing (HiHello-spirit, light) ---------- */
.landing { max-width: 1020px; position: relative; }
.topnav {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 4px; position: relative; z-index: 10;
  background: transparent;
}
.topnav .spacer { flex: 1; order: 50; }
.topnav .brand { order: 99; }
.topnav .nav-link { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; white-space: nowrap; }
@media (max-width: 760px) {
  .topnav .nav-link:not([href*="login"]) { display: none; }
  .topnav { gap: 6px; }
  .topnav .btn { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
}
.topnav .nav-link:hover { color: var(--text); }
.brand { font-weight: 800; font-size: 19px; letter-spacing: .3px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.brand span { color: var(--accent); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #c8a24a, #7a1f3d);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 900;
}
.hero2 { display: grid; gap: 44px; align-items: center; padding: 56px 0 32px; }
@media (min-width: 880px) { .hero2 { grid-template-columns: 1.05fr .95fr; padding: 72px 0 40px; } }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  color: var(--accent); border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 700; margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(10, 37, 64, .06);
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.hero2 h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.14; font-weight: 800; letter-spacing: -.5px; }
.hero2 h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero2 .sub { color: var(--muted); font-size: 17px; margin: 20px 0 30px; max-width: 540px; line-height: 1.8; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 13px; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; stroke: #14b86e; }

html, body { overflow-x: hidden; }

/* استعراض القوالب في الهيرو: كروت متراكبة */
.hero-mock { display: flex; justify-content: center; position: relative; min-height: 420px; }
.tpl-card {
  width: 250px; border-radius: 24px; overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(10, 37, 64, .16);
  position: absolute; top: 20px;
  transition: transform .25s ease;
}
.tpl-card:hover { transform: translateY(-8px) rotate(0deg) !important; z-index: 5; }
.tpl-card .tc-cover { height: 74px; }
.tpl-card .tc-avatar {
  width: 62px; height: 62px; border-radius: 50%; margin: -31px auto 0;
  border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, #c8a24a, #7a1f3d);
  overflow: hidden;
}
.tpl-card .tc-body { text-align: center; padding: 10px 16px 18px; }
.tpl-card .tc-name { font-weight: 800; font-size: 15px; }
.tpl-card .tc-sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.tpl-card .tc-socials { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.tpl-card .tc-socials i { width: 28px; height: 28px; border-radius: 9px; display: inline-block; }
.tpl-card .tc-btn { margin: 12px auto 0; width: 82%; border-radius: 999px; padding: 8px; font-size: 11.5px; font-weight: 800; text-align: center; }
.tpl-pos-1 { right: 6%; transform: rotate(4deg); z-index: 1; }
.tpl-pos-2 { right: 30%; top: 56px; transform: rotate(-3deg); z-index: 2; }
.tpl-pos-3 { right: 55%; top: 92px; transform: rotate(5deg); z-index: 3; }
@media (max-width: 879px) {
  .hero-mock { min-height: 380px; }
  .tpl-card { width: 210px; }
  .tpl-pos-1 { right: 2%; }
  .tpl-pos-2 { right: 28%; }
  .tpl-pos-3 { right: 54%; }
}

/* أقسام */
.section-h { text-align: center; font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin: 76px 0 10px; letter-spacing: -.3px; }
.section-sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 36px; max-width: 560px; margin-inline: auto; }
.features { display: grid; gap: 16px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 26px 22px;
  transition: transform .18s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(10, 37, 64, .1); }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.75; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feat-icon {
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(0, 212, 255, .15), rgba(20, 241, 149, .15));
  display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* عرض القوالب في قسم */
.tpl-showcase { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tpl-tile { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: 0 8px 26px rgba(10, 37, 64, .08); }
.tpl-tile .tt-cover { height: 60px; }
.tpl-tile .tt-avatar { width: 48px; height: 48px; border-radius: 50%; margin: -24px auto 0; border: 3px solid #fff; background: linear-gradient(135deg, #c8a24a, #7a1f3d); }
.tpl-tile .tt-lines { padding: 12px 14px 16px; text-align: center; }
.tpl-tile .tt-line { height: 8px; border-radius: 4px; background: var(--surface-2); margin: 7px auto 0; }
.tpl-tile .tt-name { font-weight: 800; font-size: 14px; margin-top: 12px; }
.tpl-tile .tt-badge {
  position: absolute; top: 10px; inset-inline-start: 10px;
  font-size: 10.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  background: rgba(4, 38, 59, .75); color: #fff; backdrop-filter: blur(4px);
}
.tpl-tile .tt-badge.free { background: rgba(20, 184, 110, .9); }

.steps { display: grid; gap: 16px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 26px 22px; }
.step-num {
  width: 38px; height: 38px; border-radius: 13px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #c8a24a, #7a1f3d);
  color: #fff; font-weight: 800; font-size: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

.cta-band {
  margin-top: 76px; text-align: center;
  border-radius: 30px; padding: 52px 24px;
  background:
    radial-gradient(ellipse at top right, rgba(0, 212, 255, .25), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(20, 241, 149, .2), transparent 55%),
    #0a2540;
  color: #f2f7fb;
  box-shadow: 0 20px 50px rgba(10, 37, 64, .25);
}
.cta-band h2 { font-size: clamp(22px, 4vw, 32px); font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: #a9c0d6; font-size: 15px; margin-bottom: 28px; }
.landing-footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 44px; }
.landing-footer a { color: var(--muted); }

/* ---------- Forms ---------- */
.field-label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.field-input {
  width: 100%; padding: 13px 14px; border-radius: 13px;
  border: 1px solid #c9d6e2; background: #fff; color: var(--text);
  font-size: 15px; font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 168, 212, .15); }
.notice { border-radius: 13px; padding: 12px 14px; font-size: 14px; margin: 14px 0; display: none; }
.notice.show { display: block; }
.notice.err { background: rgba(230, 60, 60, .08); border: 1px solid rgba(230, 60, 60, .3); color: #c23434; }
.notice.ok { background: rgba(20, 184, 110, .08); border: 1px solid rgba(20, 184, 110, .3); color: #0e8a52; }
input, textarea, select { max-width: 100%; }
main.container form { overflow-wrap: break-word; }

/* صفحة الفورم (إنشاء/تعديل كارت) */
.form-shell {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: 26px 20px; box-shadow: 0 10px 30px rgba(10, 37, 64, .07);
}

/* رفع الصورة */
.photo-field { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.photo-preview {
  width: 78px; height: 78px; border-radius: 50%; flex: none;
  background: var(--surface-2); border: 2px dashed #b9c9d8;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: var(--muted); font-size: 22px; font-weight: 800;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-field .hint { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* لينكات بمنصات */
.link-row-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-bottom: 4px; }
.platform-chip {
  width: 47px; height: 47px; border-radius: 14px; margin-bottom: 1px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.platform-chip svg { width: 22px; height: 22px; fill: currentColor; }
.platform-chip.sp-facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.platform-chip.sp-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.platform-chip.sp-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); border-color: #dd2a7b; color: #fff; }
.platform-chip.sp-linkedin { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.platform-chip.sp-x { background: #111; border-color: #111; color: #fff; }
.platform-chip.sp-telegram { background: #229ed9; border-color: #229ed9; color: #fff; }
.platform-chip.sp-youtube { background: #ff0000; border-color: #ff0000; color: #fff; }
.platform-chip.sp-tiktok { background: #111; border-color: #111; color: #fff; }
.platform-chip.sp-github { background: #24292e; border-color: #24292e; color: #fff; }
.platform-chip.sp-website { background: #6b7c93; border-color: #6b7c93; color: #fff; }

/* اختيار القالب */
.theme-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin-top: 6px; }
.theme-option { position: relative; cursor: pointer; }
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-option .to-box {
  border: 2px solid var(--border); border-radius: 16px; overflow: hidden;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.theme-option input:checked + .to-box { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 168, 212, .18); }
.theme-option .to-cover { height: 30px; }
.theme-option .to-avatar { width: 26px; height: 26px; border-radius: 50%; margin: -13px auto 0; border: 2px solid #fff; background: linear-gradient(135deg, #c8a24a, #7a1f3d); }
.theme-option .to-lines { padding: 6px 10px 10px; }
.theme-option .to-line { height: 5px; border-radius: 3px; background: var(--surface-2); margin-top: 5px; }
.theme-option .to-name { text-align: center; font-size: 11.5px; font-weight: 700; padding: 7px 4px 9px; color: var(--text); }
.theme-option .to-lock {
  position: absolute; top: 6px; inset-inline-start: 6px; z-index: 2;
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: rgba(4, 38, 59, .8); color: #ffd166;
  display: inline-flex; align-items: center; gap: 3px;
}
.theme-option .to-box.locked { opacity: .65; }
.upgrade-note {
  display: none; margin-top: 12px; border-radius: 14px; padding: 14px 16px;
  background: rgba(255, 209, 102, .12); border: 1px solid rgba(255, 209, 102, .5);
  font-size: 13.5px;
}
.upgrade-note.show { display: block; }
.upgrade-note a { color: var(--accent); font-weight: 700; }

/* ---------- Dashboard/auth/pricing ---------- */
.dash-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(10, 37, 64, .04); }
.dash-card h3 { font-size: 16px; margin-bottom: 2px; }
.dash-card p { color: var(--muted); font-size: 13px; }
.dash-card .url { direction: ltr; text-align: left; color: var(--accent); font-size: 12px; margin-top: 8px; word-break: break-all; }
.dash-top { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 20px; }
.dash-top .who { color: var(--muted); font-size: 13px; }
.link-btn { background: none; border: none; color: var(--accent); font-size: 13px; cursor: pointer; font-family: inherit; font-weight: 700; }
.otp-row { display: flex; gap: 10px; direction: ltr; justify-content: center; margin: 18px 0; }
.otp-row input { width: 48px; height: 56px; text-align: center; font-size: 24px; font-weight: 700; border-radius: 13px; border: 1px solid #c9d6e2; background: #fff; color: var(--text); }
.otp-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 168, 212, .15); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px; text-align: center; }
.stat strong { display: block; font-size: 22px; color: var(--accent); }
.stat span { font-size: 11px; color: var(--muted); }
.lead-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.lead-status { font-size: 11px; background: var(--surface-2); border-radius: 8px; padding: 3px 10px; color: #0e8a52; font-weight: 700; }
.lead-date { font-size: 11px; color: var(--muted); flex: 1; }
.lead-msg { font-size: 13px; color: var(--muted); }
.plans-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 22px; }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 10px 30px rgba(0, 168, 212, .15); }
.plan-card h3 { font-size: 17px; }
.plan-price { color: var(--accent); font-size: 22px; font-weight: 800; margin: 6px 0 12px; }
.plan-card ul { list-style: none; }
.plan-card li { font-size: 13px; color: var(--muted); padding: 4px 0; }
.plan-card li::before { content: "✓ "; color: #14b86e; font-weight: 800; }
.tabs { display: flex; gap: 8px; margin: 16px 0 4px; flex-wrap: wrap; }
.tab { background: #fff; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 8px 16px; font-size: 13px; cursor: pointer; font-family: inherit; font-weight: 600; }
.tab.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, rgba(0,212,255,.35), rgba(20,241,149,.35)); }
.plan-line { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; font-size: 13px; margin-top: 12px; }

[hidden] { display: none !important; }
.emoji-icon { font-size: 18px; }

/* Legacy classes kept for compatibility */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 32px; }
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: 38px; line-height: 1.15; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(135deg, #c8a24a, #7a1f3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 17px; margin: 18px 0 28px; max-width: 520px; }

/* ---------- تنسيق قوي للبيانات ---------- */
.card-head { min-width: 0; }
.card-name, .card-title, .card-company, .card-bio { overflow-wrap: anywhere; word-break: break-word; }
.card-name { line-height: 1.35; }
.link-row { min-width: 0; }
.link-row .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body { min-width: 0; }

/* ---------- اختيار المنصة بالأيقونات ---------- */
.lp-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 10px 6px; margin: 4px 0 14px; }
.lp-ic { background: none; border: 0; padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 5px; font-family: inherit; cursor: pointer; color: #0a2540; -webkit-tap-highlight-color: transparent; }
.lp-ic-dot { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 3px 10px rgba(10,37,64,.2); transition: transform .12s; }
.lp-ic:active .lp-ic-dot { transform: scale(.92); }
.lp-ic-dot svg { width: 24px; height: 24px; fill: currentColor; }
.lp-ic-name { font-size: 11px; color: #5b7288; font-weight: 600; text-align: center; line-height: 1.2; }
.lp-ic-dot.sp-facebook { background: #1877f2; } .lp-ic-dot.sp-whatsapp { background: #25d366; }
.lp-ic-dot.sp-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.lp-ic-dot.sp-linkedin { background: #0a66c2; } .lp-ic-dot.sp-x, .lp-ic-dot.sp-tiktok { background: #111; }
.lp-ic-dot.sp-telegram { background: #229ed9; } .lp-ic-dot.sp-youtube { background: #ff0000; }
.lp-ic-dot.sp-github { background: #24292e; } .lp-ic-dot.sp-website { background: #6b7c93; }
.lp-list { display: flex; flex-direction: column; gap: 10px; }
.lp-item { display: flex; align-items: center; gap: 10px; background: #f0f4f8; border: 1px solid #eadfca; border-radius: 16px; padding: 10px 12px; }
.lp-item .platform-chip { flex: none; }
.lp-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lp-name { font-size: 12px; font-weight: 700; color: #5b7288; }
.lp-url, .lp-label { width: 100%; min-width: 0; padding: 10px 12px; border-radius: 11px; border: 1px solid #c9d6e2; background: #fff; color: #0a2540; font-size: 15px; font-family: inherit; }
.lp-url { text-align: left; }
.lp-del { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: #b3425a; font-size: 22px; line-height: 1; cursor: pointer; border: 1px solid #eadfca; }

/* موبايل: الهيرو والناف جوه الشاشة دايما */
.hero2 > * { min-width: 0; }
.hero2 h1, .hero2 .sub { overflow-wrap: anywhere; }
.topnav { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 520px) {
  .topnav { padding: 10px 2px; gap: 4px; }
  .topnav .brand { font-size: 16px; gap: 6px; }
  .topnav .brand-mark { width: 26px; height: 26px; font-size: 13px; }
  .topnav .nav-link { padding: 6px 6px; font-size: 13px; }
  .topnav .btn { padding: 8px 12px; font-size: 12.5px; }
  .hero2 { padding-top: 28px; gap: 28px; }
  .hero2 .sub { font-size: 15.5px; margin: 16px 0 24px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; text-align: center; justify-content: center; }
  .trust-row { gap: 12px; }
  .badge-pill { font-size: 12px; padding: 6px 12px; max-width: 100%; }
  .hero-mock { min-height: 330px; overflow: hidden; }
}

/* شريط التنقل: القطعة الزرقاء بتتحرك مع الهوفر وبترجع للمختار */
.navgrp { position: relative; display: flex; align-items: center; gap: 2px; order: 1; }
.navgrp > a { position: relative; z-index: 1; }
.navgrp .nav-pill { position: absolute; top: 0; left: 0; z-index: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(135deg, #c8a24a, #7a1f3d); box-shadow: 0 6px 20px rgba(168, 128, 31, .35);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), width .28s cubic-bezier(.4, 0, .2, 1), height .28s; }
.navgrp .btn-primary { background: transparent; box-shadow: none; padding: 9px 18px; }
.navgrp .btn-primary:hover { box-shadow: none; }
.navgrp > a.pill-on { color: #fff; }
.navgrp > a.nav-link { padding: 9px 14px; }
@media (max-width: 760px) { .navgrp .btn-primary, .navgrp > a.nav-link { padding: 9px 12px; font-size: 13px; white-space: nowrap; } }

/* ---------- التقييمات ---------- */
.reviews { margin: 44px 0; padding: 26px 18px; border-radius: 26px; background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent-bright) 14%, transparent), transparent 60%), radial-gradient(100% 100% at 0% 100%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 60%), var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 34px rgba(10, 37, 64, .07); }
.rv-sum { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 18px; }
.rv-avg { font-size: 46px; font-weight: 800; line-height: 1; color: var(--text); }
.rv-stars, .rv-s { display: flex; gap: 2px; direction: ltr; }
.rv-stars i, .rv-s i { display: block; width: 20px; height: 20px; }
.rv-stars svg, .rv-s svg { width: 100%; height: 100%; fill: #d5dde6; }
.rv-stars i.on svg, .rv-s i.on svg { fill: #f5b301; }
.rv-count { font-size: 13px; color: var(--muted); margin-top: 2px; }
.rv-list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; }
.rv-card { flex: 0 0 min(78%, 280px); scroll-snap-align: start; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 14px; box-shadow: 0 4px 14px rgba(10, 37, 64, .06); display: flex; flex-direction: column; gap: 8px; }
.rv-card p { font-size: 14px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; flex: 1; }
.rv-card b { font-size: 13px; color: var(--muted); }
.rv-card .rv-s i { width: 16px; height: 16px; }
.rv-empty { color: var(--muted); font-size: 14px; text-align: center; width: 100%; padding: 10px 0; }
.rv-form { margin-top: 12px; padding-top: 16px; border-top: 1px dashed var(--border); }
.rv-form h3 { font-size: 16px; margin-bottom: 8px; }
.rv-form textarea { margin: 10px 0; resize: vertical; }
.rv-pick { display: flex; gap: 6px; direction: ltr; }
.rv-pick button { border: 0; background: none; padding: 2px; cursor: pointer; width: 38px; height: 38px; }
.rv-pick svg { width: 100%; height: 100%; fill: #d5dde6; transition: transform .12s; }
.rv-pick button.on svg { fill: #f5b301; }
.rv-pick button:hover svg { transform: scale(1.12); }
.rv-note { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 18px; }
.rv-login { text-align: center; margin-top: 10px; }

.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 40px 0 0; text-align: center; }
.stats-strip[hidden] { display: none; }
.stats-strip div { background: none; border: 0; box-shadow: none; padding: 6px 4px; }
.stats-strip div + div { border-inline-start: 1px solid var(--border); }
.stats-strip strong { display: block; font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px; background: linear-gradient(135deg, var(--accent, #00a8d4), var(--accent-2, #3b2bf0)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stats-strip span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; font-weight: 600; }
@media (max-width: 380px) { .stats-strip strong { font-size: 28px; } }

/* فرحنا */
.brand-big{font-family:'Aref Ruqaa','Amiri',serif;font-size:56px;color:var(--accent-2);font-weight:700}
.brand{font-family:'Aref Ruqaa','Amiri',serif;font-size:26px;color:var(--accent-2)}
.btn-gold{background:linear-gradient(135deg,#c8a24a,#7a1f3d);color:#fff;box-shadow:0 6px 20px rgba(168,128,31,.35)}
.wrap{max-width:1040px;margin:0 auto;padding:20px}
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#2a1a22;color:#fff;padding:12px 18px;border-radius:14px;z-index:99;font-weight:700;max-width:90vw;text-align:center}
.toast.bad{background:#a61b3b}
.chip{display:inline-block;padding:3px 10px;border-radius:999px;background:#f1e5c6;color:#7a1f3d;font-size:12px;font-weight:700}
.apanel{background:#fff;border:1px solid var(--border);border-radius:20px;padding:16px;margin-bottom:14px}
.apanel h2{font-size:18px;margin-bottom:10px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.field-label{display:block;margin:10px 0 4px;font-size:13px;font-weight:700}
.row-btns{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:380px){.grid2{grid-template-columns:1fr}}
