/* v2.css — إضافات الإصدار الثاني. بلا تدرّجات ولا ظلال زجاجية، وزوايا حادّة. */
:root { --brand-color: #0F766E; }
html .hs-bar .hs-cta, html .hs-bar a.hs-cta { background: var(--brand-color) !important; border-radius: 6px !important; }
.hs-bar .hs-mark img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.hs-nav .hs-nav-act { display: none; }
@media (max-width: 820px) {
  html .hs-bar .hs-nav .hs-nav-act { display: block !important; }
  html .hs-bar .hs-nav .hs-nav-act.primary { background: var(--brand-color); color: #fff !important; text-align: center; border-radius: 6px; }
}
.hs-foot .hs-copy { display: block; width: 100%; text-align: center; font-size: .82rem; opacity: .85; margin-top: 6px; }
.hs-foot .hs-foot-in { flex-wrap: wrap; justify-content: center; }
.v2-lock { display: inline-block; width: .9em; height: .9em; vertical-align: -.1em; margin-inline-end: .35em; }

/* ——— مكوّنات صفحات v2 ——— */
.v2-wrap { max-width: 64rem; margin-inline: auto; padding: 2.4rem 1rem 3rem; }
.v2-narrow { max-width: 44rem; }
.v2-h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.4; margin: 0 0 .6rem; }
.v2-lede { color: #51636B; font-size: 1.05rem; margin: 0 0 1.4rem; max-width: 46rem; }
.v2-section { margin: 2.6rem 0 0; }
.v2-section > h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
.v2-section > p.sub { color: #51636B; margin: 0 0 1.1rem; }
.v2-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.v2-card { background: #fff; border: 1px solid #E1DCD1; border-radius: 6px; padding: 1.1rem 1.1rem 1rem; }
.v2-card h3 { margin: 0 0 .35rem; font-size: 1.02rem; }
.v2-card p { margin: 0; color: #51636B; font-size: .93rem; line-height: 1.8; }
.v2-card .num { display: inline-block; min-width: 1.7rem; height: 1.7rem; line-height: 1.7rem; text-align: center; border: 1px solid #E1DCD1; border-radius: 4px; font-weight: 700; margin-bottom: .5rem; }
.v2-stats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 1.6rem 0 0; }
.v2-stat { border: 1px solid #E1DCD1; border-radius: 6px; padding: .9rem 1rem; background: #fff; }
.v2-stat b { display: block; font-size: 1.7rem; line-height: 1.2; }
.v2-stat span { color: #51636B; font-size: .88rem; }
.v2-two { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .v2-two { grid-template-columns: 1fr; } }
.v2-faq details { border: 1px solid #E1DCD1; border-radius: 6px; padding: .8rem 1rem; margin: 0 0 .6rem; background: #fff; }
.v2-faq summary { cursor: pointer; font-weight: 700; }
.v2-faq details p { margin: .6rem 0 0; color: #51636B; line-height: 1.9; }
.v2-form label { display: block; font-weight: 700; margin: 1rem 0 .3rem; }
.v2-form input[type=text], .v2-form input[type=email], .v2-form input[type=tel], .v2-form input[type=color], .v2-form textarea, .v2-form select { width: 100%; padding: .6rem .7rem; border: 1px solid #E1DCD1; border-radius: 5px; background: #fff; color: inherit; font: inherit; }
.v2-form textarea { min-height: 7rem; }
.v2-form .hint { color: #51636B; font-size: .85rem; margin: .25rem 0 0; }
.v2-msg { margin: .8rem 0 0; padding: .6rem .8rem; border-radius: 5px; border: 1px solid #E1DCD1; display: none; }
.v2-msg.show { display: block; } .v2-msg.ok { border-color: #0F766E; } .v2-msg.err { border-color: #B42318; }
.v2-plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.2rem; }
.v2-plan { border: 1px solid #E1DCD1; border-radius: 6px; padding: 1.2rem; background: #fff; display: flex; flex-direction: column; gap: .5rem; }
.v2-plan.feat { border-color: var(--brand-color, #0F766E); border-width: 2px; }
.v2-plan h3 { margin: 0; font-size: 1.15rem; }
.v2-plan .price { font-size: 2rem; font-weight: 700; } .v2-plan .price small { font-size: .9rem; font-weight: 400; color: #51636B; }
.v2-plan ul { margin: 0; padding-inline-start: 1.1rem; line-height: 2; }
.v2-toggle { display: inline-flex; border: 1px solid #E1DCD1; border-radius: 6px; overflow: hidden; margin: .4rem 0 0; }
.v2-toggle button { padding: .5rem 1.1rem; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.v2-toggle button[aria-pressed=true] { background: var(--brand-color, #0F766E); color: #fff; }
.v2-note { border-inline-start: 3px solid var(--brand-color, #0F766E); padding: .6rem .9rem; background: #F4F1E9; margin: 1rem 0; border-radius: 4px; }
.v2-bar { height: 8px; background: #E1DCD1; border-radius: 4px; overflow: hidden; }
.v2-bar i { display: block; height: 100%; background: var(--brand-color, #0F766E); }
.v2-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.v2-tag { display: inline-block; padding: .1rem .55rem; border: 1px solid #E1DCD1; border-radius: 4px; font-size: .8rem; }
.v2-q { border: 1px solid #E1DCD1; border-radius: 6px; padding: 1rem; margin: 0 0 .8rem; background: #fff; }
.v2-q h4 { margin: 0 0 .6rem; font-size: 1.02rem; line-height: 1.8; }
.v2-opt { display: block; padding: .5rem .7rem; border: 1px solid #E1DCD1; border-radius: 5px; margin: .35rem 0; cursor: pointer; }
.v2-opt input { margin-inline-end: .5rem; }
.v2-opt.on { border-color: var(--brand-color, #0F766E); }
.v2-opt.good { border-color: #0F766E; } .v2-opt.bad { border-color: #B42318; }
.v2-ord { display: flex; gap: .4rem; align-items: center; padding: .4rem .6rem; border: 1px solid #E1DCD1; border-radius: 5px; margin: .3rem 0; }
.v2-ord button { padding: .1rem .5rem; }
html[data-platform] body .v2-wrap, html[data-platform] body .v2-wrap h1, html[data-platform] body .v2-wrap h2, html[data-platform] body .v2-wrap h3, html[data-platform] body .v2-wrap h4, html[data-platform] body .v2-wrap strong, html[data-platform] body .v2-wrap b, html[data-platform] body .v2-plan .price, html[data-platform] body .v2-stat b, html[data-platform] body .v2-wrap summary, html[data-platform] body .v2-wrap label { color: #0E1A20 !important; }
html[data-platform] body .v2-wrap .muted, html[data-platform] body .v2-wrap .v2-lede, html[data-platform] body .v2-card p, html[data-platform] body .v2-wrap .hint, html[data-platform] body .v2-wrap .sub, html[data-platform] body .v2-stat span, html[data-platform] body .v2-faq details p { color: #51636B !important; }
html[data-platform] body .v2-wrap a:not(.btn) { color: #0B6A5F !important; }
html[data-platform] body .v2-toggle button { background: #fff !important; color: #0E1A20 !important; border: 0 !important; }
html[data-platform] body .v2-toggle button[aria-pressed=true] { font-weight: 700; box-shadow: inset 0 -3px 0 #0F766E; }
html[data-platform] body .v2-note, html[data-platform] body .v2-note strong { color: #0E1A20 !important; }
html[data-platform] body section.wrap.v2-section h2, html[data-platform] body section.wrap.v2-section h3, html[data-platform] body .wrap.v2-section .v2-card h3, html[data-platform] body #how h2, html[data-platform] body #features h2, html[data-platform] body #faq h2, html[data-platform] body .v2-stat b { color: #0E1A20 !important; }
html[data-platform] body section.wrap.v2-section > p.sub, html[data-platform] body .wrap.v2-section .v2-card p, html[data-platform] body .wrap .v2-stat span, html[data-platform] body .wrap .v2-faq details p { color: #51636B !important; }

/* نمط الاشتراك المؤسسي: لا أسعار فردية ولا سلّة على صفحات الدورات */
html.sales-inst .cart-btn, html.sales-inst #d-cartBtn, html.sales-inst .d-cart-btn, html.sales-inst .hr-row .price, html.sales-inst .hr-li-p { display: none !important; }

/* حقول النماذج: سطح فاتح مقروء */
html[data-platform] body .v2-form input:not([type=color]):not([type=file]), html[data-platform] body .v2-form select, html[data-platform] body .v2-form textarea { background: #fff !important; color: #0E1A20 !important; -webkit-text-fill-color: #0E1A20 !important; border: 1px solid #B9C6CD !important; border-radius: 6px !important; }
html[data-platform] body .v2-form input[type=file] { background: #fff !important; color: #0E1A20 !important; border: 1px solid #B9C6CD !important; border-radius: 6px !important; padding: .35rem !important; }
html[data-platform] body .v2-form label { color: #0E1A20 !important; }
