/* ArabProsto — marketing, legal & accessibility extensions based on adapted patterns */
:focus-visible { outline:3px solid #b7460a;outline-offset:3px }
.skip-link{position:fixed;top:-80px;left:12px;background:white;border:2px solid var(--orange);z-index:999;padding:13px 20px;border-radius:12px}
.skip-link:focus{top:10px}
.topbar{position:sticky;top:0;backdrop-filter:blur(12px);box-shadow:0 2px 20px rgba(25,33,36,.025)}
.topbar .main-nav{gap:24px}
.topbar .nav-active{color:var(--orange)}
.home-proof-strip{background:#252524;color:#fff;padding:15px 0}
.home-proof-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:center}
.home-proof-grid span{font-size:12px;font-weight:700;line-height:1.6}
.home-proof-grid b{color:#ffad7b;font-size:15px;margin-right:9px}
.section-how-home .home-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:35px}
.home-step{position:relative;border-radius:23px;border:1px solid #f0e5d9;background:#fff;padding:28px 22px;box-shadow:0 12px 44px rgba(45,26,9,.045);min-height:221px}
.home-step>span{display:grid;place-items:center;background:#ffefe3;color:#ce551f;border-radius:13px;font-size:15px;font-weight:900;width:49px;height:49px}
.home-step h3{font-size:18px;letter-spacing:-.5px;line-height:1.35;margin:18px 0 11px}
.home-step p{font-size:12px;color:#687278;line-height:1.8;margin:0}
.home-sample-section{background:linear-gradient(125deg,#fdeedc,#fffaf6 62%,#fef0ed)}
.sample-layout{display:grid;grid-template-columns:1fr 420px;gap:70px;align-items:center}
.sample-copy h2{font-size:clamp(35px,4.2vw,59px);letter-spacing:-2.7px;line-height:1.12;margin:16px 0 22px}
.sample-copy p{max-width:490px;line-height:1.85;color:#657074;font-size:14px}
.sample-trust{color:#8b643f;font-size:12px;font-weight:700;margin-top:26px}
.sample-widget{background:white;border:1px solid #f0e5dc;border-radius:30px;padding:32px;box-shadow:0 35px 80px rgba(85,55,22,.11)}
.sample-letter{font-size:120px;line-height:1.45;text-align:center;color:#eb7131;font-family:'Noto Naskh Arabic',Tahoma,serif}
.sample-instruction{font-weight:800;text-align:center;font-size:16px}
.sample-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:22px 0 15px}
.sample-buttons button{background:#fff7f1;border:1px solid #f4dfcb;border-radius:13px;padding:15px 5px;font-size:13px;font-weight:800;transition:transform .15s ease,background .15s ease}
.sample-buttons button:hover{transform:translateY(-2px);background:#ffe7d3}
.sample-buttons button.correct{border-color:#078558;background:#e4f9ec;color:#046b46}
.sample-buttons button.incorrect{border-color:#d45743;background:#fff0ee;color:#af3b30}
.sample-result{text-align:center;color:#64706e;font-size:12px;min-height:22px}
.sample-next{display:block;text-align:center;color:#d75925;font-weight:800;font-size:12px;padding:16px 0 0}
.home-pricing-grid,.plan-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.home-plan,.plan-tile{background:#fff;border-radius:26px;border:1px solid #efe4dd;padding:35px;box-shadow:var(--shadow)}
.home-plan-accent,.plan-tile-highlight{background:linear-gradient(135deg,#fff1e6,#fff 88%);border-color:#f3bd92}
.home-plan>span{font-size:11px;color:#d36d2f;letter-spacing:1.2px;font-weight:900}
.home-plan h3{font-size:28px;letter-spacing:-1px;margin:12px 0 15px}
.home-plan-value,.plan-price{font-size:41px;letter-spacing:-2px;font-weight:900;line-height:1.3;color:#1c2427;margin:0}
.home-plan-value small,.plan-price small{font-size:14px;letter-spacing:0;font-weight:600;color:#737b7e}
.home-plan p,.plan-tile p{font-size:13px;color:#6a7478;line-height:1.8;min-height:44px}
.home-plan ul{padding:0;list-style:none;line-height:2.3;font-size:13px;font-weight:650;min-height:116px}
.home-plan .button{margin-top:9px}
.home-faq-section{background:#fff7ee}
.faq-accordion{width:min(850px,100%);margin:35px auto 0;display:grid;gap:12px}
.faq-accordion details{background:white;border:1px solid #f0e4d9;border-radius:17px;transition:box-shadow .2s}
.faq-accordion details[open]{box-shadow:0 16px 40px rgba(61,44,25,.07)}
.faq-accordion summary{padding:22px 26px;font-size:14px;font-weight:850;cursor:pointer;list-style:none;display:flex;gap:15px;align-items:center;justify-content:space-between}
.faq-accordion summary::-webkit-details-marker{display:none}
.faq-accordion summary span{color:var(--orange);font-size:25px;line-height:1;transition:transform .2s}
.faq-accordion details[open] summary span{transform:rotate(45deg)}
.faq-accordion details p{margin:0;padding:0 26px 25px;color:#646d73;font-size:13px;line-height:1.9}
.faq-accordion details p a,.legal-article a,.plan-fineprint a,.legal-help-callout a{color:#d75925;text-decoration:underline;text-underline-offset:3px}
.last-cta{padding-top:40px;padding-bottom:95px}
.last-cta-card{padding:62px 32px;background:#f9e8d8;border-radius:31px;text-align:center;position:relative;overflow:hidden}
.last-cta-card h2{font-size:clamp(32px,4.3vw,51px);letter-spacing:-2px;margin:13px 0 12px}
.last-cta-card p{color:#626a70;font-size:14px;margin:0 auto 23px;max-width:570px;line-height:1.8}
.footer-grid-plus{grid-template-columns:1.5fr 1fr 1fr .65fr;gap:38px}
.footer-grid-plus .footer-links{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.footer-grid-plus .footer-links strong{font-size:13px;font-weight:900;margin-bottom:9px}
.footer-grid-plus .footer-links a,.footer-cookie-control{font-size:12px;line-height:1.55}
.footer-grid-plus .footer-end{white-space:normal;line-height:1.8}
.footer-note{color:#888;font-size:11px;max-width:250px;margin-top:18px!important}
.footer-cookie-control{padding:0;border:0;background:none;color:inherit;text-align:left;text-decoration:underline;text-underline-offset:3px}
.footer-cookie-control:hover{color:var(--orange)}
.legal-doc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin:35px 0}
.legal-doc-card{display:flex;flex-direction:column;align-items:flex-start;background:#fff;border:1px solid #f0e4da;border-radius:21px;padding:26px;min-height:225px;transition:border-color .15s,transform .15s,box-shadow .15s}
.legal-doc-card:hover{border-color:#efaa7e;transform:translateY(-3px);box-shadow:var(--shadow)}
.legal-doc-icon{font-size:25px;color:var(--orange)}
.legal-doc-card h2{margin:17px 0 7px;font-size:17px;letter-spacing:-.3px;line-height:1.45}
.legal-doc-card p{font-size:12px;line-height:1.6;margin:0 0 17px;color:#6b7578}
.legal-doc-open{margin-top:auto;color:#d86128;font-size:12px;font-weight:800}
.legal-help-callout{background:#fff1e6;border-radius:20px;padding:27px 30px;margin-top:40px}
.legal-help-callout h2{font-size:20px;margin:0 0 8px}
.legal-help-callout p{color:#697073;font-size:13px;line-height:1.7;margin:0 0 20px}
.legal-enhanced{max-width:990px;padding-bottom:95px}
.legal-enhanced>.section-label{display:block;margin:18px 0 10px}
.legal-enhanced h1{line-height:1.18;max-width:850px}
.legal-article{margin-top:32px;background:#fff;border-radius:23px;border:1px solid #eee4de;padding:30px 42px;box-shadow:0 12px 50px rgba(53,31,12,.03)}
.legal-article h2{font-size:19px;margin-top:28px;line-height:1.4}
.legal-article p{line-height:1.95;font-size:13px;color:#4c585d;overflow-wrap:anywhere}
.legal-article h2:first-child{margin-top:4px}
.legal-article .legal-edition{font-size:11px;letter-spacing:.2px;color:#8b8d8d}
.legal-bottom-link{margin-top:26px;color:#d65a25;font-weight:800;font-size:13px}
.steps-layout{display:grid;gap:18px;max-width:900px;margin-top:40px}
.steps-layout article{position:relative;padding:26px 30px 26px 99px;border:1px solid #efe4dc;background:white;border-radius:20px}
.steps-layout article>span{position:absolute;left:27px;top:29px;font-size:29px;color:#ee7834;font-weight:900}
.steps-layout h2{font-size:21px;margin:0 0 9px;letter-spacing:-.5px}
.steps-layout p{font-size:13px;line-height:1.75;color:#697275;margin:0}
.how-action{display:flex;gap:13px;flex-wrap:wrap;margin-top:35px}
.pricing-public .plan-comparison{max-width:930px;margin:35px auto 0}
.pricing-public .plan-tile h2{font-size:26px;margin:17px 0 20px}
.pricing-public .plan-tile .checklist{margin:22px 0 30px;font-size:13px;line-height:2.2}
.pricing-public .plan-tile .button{margin-top:auto}
.pricing-public .plan-tile{display:flex;flex-direction:column}
.pricing-public .plan-fineprint{max-width:900px;margin:25px auto;font-size:12px;line-height:1.8;color:#6a7478}
.cookie-banner-plus{position:fixed;z-index:90;left:18px;right:18px;bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:27px;padding:20px 25px;max-width:1050px;margin:0 auto;border-radius:19px;background:#202a2d;color:#fff;box-shadow:0 18px 60px rgba(12,23,25,.23)}
.cookie-banner-plus[hidden]{display:none!important}
.cookie-banner-content strong{font-size:15px}
.cookie-banner-content p{margin:7px 0 0;font-size:12px;color:#dee4e4;line-height:1.6}
.cookie-banner-content a{color:#ffb988;text-decoration:underline}
.cookie-banner-controls{display:flex;gap:9px;flex-shrink:0}
.cookie-banner-controls .button{white-space:nowrap;font-size:11px;min-width:unset;padding:12px 17px}
.cookie-banner-controls .button-outline{background:#344144;border-color:#556063;color:#fff}
@media(max-width:1050px){.topbar .main-nav{gap:14px}.nav-optional{display:none}.footer-grid-plus{grid-template-columns:1.5fr 1fr 1fr}.footer-grid-plus .footer-end{grid-column:1/-1}.sample-layout{grid-template-columns:1fr 370px;gap:35px}.legal-doc-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.home-proof-grid{grid-template-columns:repeat(2,1fr);gap:8px}.section-how-home .home-steps{grid-template-columns:repeat(2,1fr)}.sample-layout{grid-template-columns:1fr}.sample-widget{max-width:470px;width:100%;margin:0 auto}.home-pricing-grid,.plan-comparison{grid-template-columns:1fr}.footer-grid-plus{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid-plus .footer-brand{grid-column:1/-1}.cookie-banner-plus{flex-direction:column;align-items:stretch;gap:14px}.cookie-banner-controls{justify-content:flex-end}.steps-layout article{padding:22px 20px 22px 80px}.steps-layout article>span{left:20px;top:22px}}
@media(max-width:490px){.topbar .main-nav{gap:10px}.topbar .main-nav a{font-size:11px}.topbar .main-nav a:last-child{display:none}.topbar-inner{gap:9px}.topbar .wordmark{font-size:20px;gap:4px}.topbar .brand-symbol{width:34px;height:34px;font-size:26px}.home-proof-grid b{display:block}.home-proof-grid span{font-size:10px}.section-how-home .home-steps{grid-template-columns:1fr}.home-step{min-height:auto}.legal-doc-grid{grid-template-columns:1fr}.legal-doc-card{min-height:175px}.legal-article{padding:22px}.sample-widget{padding:22px}.sample-letter{font-size:85px}.footer-grid-plus{grid-template-columns:1fr}.footer-grid-plus .footer-brand,.footer-grid-plus .footer-end{grid-column:auto}.last-cta-card{padding:45px 19px}.cookie-banner-controls{flex-wrap:wrap;justify-content:stretch}.cookie-banner-controls .button{flex:1}.steps-layout article{padding:20px}.steps-layout article>span{position:static;display:block;margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Legal-footer & consent UI — v3, adapted from OfferFlow to ArabProsto. */
.footer-grid-legal { grid-template-columns:minmax(195px,1.38fr) minmax(130px,.85fr) minmax(205px,1.1fr) minmax(205px,1.1fr);gap:34px;align-items:start }
.footer-grid-legal .footer-links { display:flex;flex-direction:column;gap:11px;align-items:flex-start }
.footer-grid-legal .footer-links strong { font-size:13px;font-weight:900;color:#303b3e;margin-bottom:12px }
.footer-grid-legal .footer-links a,.footer-grid-legal .footer-cookie-control { font-size:12px;line-height:1.6;color:#656f73;text-align:left }
.footer-grid-legal .footer-links a:hover,.footer-grid-legal .footer-cookie-control:hover { color:var(--orange);text-decoration:underline;text-underline-offset:3px }
.footer-grid-legal .footer-note { line-height:1.75;font-size:12px }
.footer-operator-link { color:#676f73;text-decoration:underline;text-underline-offset:4px;font-size:11px;line-height:1.7;display:inline-block;overflow-wrap:anywhere;margin-top:8px }
.footer-legal-bottom { border-top:1px solid #ebe3dc;margin-top:36px;padding-top:22px;display:flex;gap:20px;justify-content:space-between;align-items:center;flex-wrap:wrap;font-size:11px;line-height:1.7 }
.footer-legal-bottom a { color:#ce6e34;font-weight:800 }
.cookie-banner-plus { max-width:920px;padding:20px 23px;z-index:150;border:1px solid #526065;bottom:18px }
.cookie-banner-plus[hidden],.cookie-dialog-overlay[hidden] { display:none!important }
.cookie-banner-controls .button[disabled] { opacity:.38;cursor:not-allowed }
.cookie-dialog-overlay { position:fixed;inset:0;display:grid;place-items:center;background:rgba(14,23,27,.66);z-index:200;padding:20px;overflow-y:auto }
.cookie-dialog-open { overflow:hidden }
.cookie-settings-dialog { position:relative;width:min(570px,100%);background:#fff;border:1px solid #f1dfd3;border-radius:24px;padding:32px 35px;box-shadow:0 22px 85px rgba(0,0,0,.20);outline:none;max-height:calc(100vh - 40px);overflow-y:auto }
.cookie-settings-dialog h2 {font-size:28px;letter-spacing:-1px;margin:11px 0 12px;color:#192124}
.cookie-settings-dialog>p {font-size:12px;line-height:1.8;color:#667277}
.cookie-dialog-close {position:absolute;top:18px;right:21px;background:#f5eee9;border:0;border-radius:50%;width:35px;height:35px;color:#354045;font-size:24px;line-height:1}
.cookie-settings-option {display:flex;gap:18px;align-items:center;justify-content:space-between;border:1px solid #f0e4db;border-radius:13px;background:#fffaf6;padding:18px;margin-top:12px;color:#263236}
.cookie-settings-option strong {display:block;font-size:14px;margin-bottom:5px}
.cookie-settings-option small {display:block;font-size:11px;color:#7f8b8f;line-height:1.5}
.cookie-settings-option input {width:20px;height:20px;flex-shrink:0}
.cookie-required-tag {white-space:nowrap;color:#3b8c6c;font-size:11px;font-weight:800}
.cookie-settings-dialog .cookie-metrika-missing {background:#f7f4f0;padding:10px;border-radius:9px}
.cookie-dialog-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.cookie-dialog-actions .button {padding:12px 15px;font-size:12px;flex:1;min-width:180px}
.cookie-settings-dialog .cookie-dialog-note {margin:20px 0 0;text-align:center}
.cookie-dialog-note a {text-decoration:underline;text-underline-offset:3px;color:#c36026}
@media(max-width:1100px){.footer-grid-legal{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.cookie-banner-plus{padding:17px 18px;bottom:12px;left:12px;right:12px;gap:11px}.footer-legal-bottom{display:block}.footer-legal-bottom>*{display:block;margin:7px 0}}
@media(max-width:500px){.footer-grid-legal{grid-template-columns:1fr;gap:28px}.cookie-banner-plus{max-height:65vh;overflow:auto}.cookie-banner-controls{flex-wrap:wrap}.cookie-banner-controls .button{flex:1;padding:11px 8px}.cookie-settings-dialog{padding:25px 19px}.cookie-required-tag{white-space:normal;text-align:right}}

/* ArabProsto wordmark: keep header readable on smaller phones. */
@media (max-width: 620px) { .topbar .main-nav { display: none; } .topbar .wordmark { font-size: 19px; gap: 6px; letter-spacing: -1px; } .topbar .wordmark .brand-name { gap: 0; } }

/* ArabProsto v6 — footer aligned closer to OfferFlow structure and spacing. */
.wordmark .brand-name,
.ap-footer-wordmark .brand-name {
  display:inline-flex;
  align-items:baseline;
  gap:0;
  white-space:nowrap;
}
.topbar .wordmark {gap:8px}
.topbar .brand-symbol {flex:0 0 auto}
.footer.ap-footer {
  margin-top:72px;
  padding:50px 0 18px;
  border-top:0;
  background:#fffaf5;
  color:#525e63;
}
.ap-footer .ap-footer-grid {
  display:grid;
  grid-template-columns:minmax(230px,1.55fr) repeat(5,minmax(0,1fr));
  gap:34px;
  align-items:start;
}
.ap-footer .ap-footer-brand {min-width:0}
.ap-footer .ap-footer-wordmark {
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0;
  color:#192124;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.4px;
}
.ap-footer .ap-footer-wordmark .brand-symbol {width:30px;height:30px;border-radius:10px;font-size:22px;line-height:1}
.ap-footer-brand p {color:#707b81;font-size:12px;line-height:1.62;max-width:230px;margin:18px 0 0}
.ap-footer .ap-footer-badges {display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.ap-footer .ap-footer-badges span {color:#67727a;border:1px solid #e5dcd4;border-radius:999px;font-size:10px;padding:6px 10px;line-height:1.3}
.ap-footer .ap-footer-help-block {margin-top:34px;display:flex;flex-direction:column;align-items:flex-start}
.ap-footer .ap-footer-help-block h2,
.ap-footer .ap-footer-links h2 {color:#192124;font-size:13px;font-weight:800;margin:0 0 14px;line-height:1.4}
.ap-footer .ap-footer-help-block a,
.ap-footer .ap-footer-links a,
.ap-footer .ap-footer-cookie-button {
  display:block;width:auto;max-width:100%;text-align:left;overflow-wrap:anywhere;
  font-size:12px;line-height:1.55;color:#59666e;text-decoration:none;margin:0 0 9px;
  background:none;border:0;padding:0;font-weight:500;
}
.ap-footer .ap-footer-links {display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.ap-footer .ap-footer-help-block a:hover,
.ap-footer .ap-footer-help-block a:focus-visible,
.ap-footer .ap-footer-links a:hover,
.ap-footer .ap-footer-links a:focus-visible,
.ap-footer .ap-footer-cookie-button:hover,
.ap-footer .ap-footer-cookie-button:focus-visible {color:#e96525;text-decoration:none;opacity:1}
.ap-footer .ap-footer-links .ap-footer-all {color:#e96525;font-weight:800}
.ap-footer .ap-footer-bottom {
  margin-top:34px;padding-top:20px;border-top:1px solid #e9ded6;color:#8b969b;font-size:11px;line-height:1.6;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px 24px
}
@media(max-width:1180px) {
  .ap-footer .ap-footer-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
  .ap-footer .ap-footer-brand {grid-column:1/-1}
}
@media(max-width:760px) {
  .footer.ap-footer {padding:36px 0 18px;margin-top:45px}
  .ap-footer .ap-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}
  .ap-footer .ap-footer-brand {grid-column:1/-1}
  .ap-footer .ap-footer-help-block {margin-top:24px}
  .ap-footer .ap-footer-bottom {display:grid;align-items:start;gap:7px;margin-top:24px;padding-top:16px}
}
@media(max-width:480px) {
  .ap-footer .ap-footer-grid {grid-template-columns:1fr}
}
/* Compact right-side bubble, matching the current OfferFlow presentation. */
.ap-cookie-banner {
  position:fixed;z-index:900;right:16px;bottom:16px;left:auto;
  box-sizing:border-box;width:min(390px,calc(100vw - 32px));max-width:390px;
  margin:0;padding:12px 13px;
  display:flex;flex-direction:column;align-items:stretch;gap:8px;
  color:#fff;background:rgba(17,24,39,.98);
  border:1px solid rgba(255,255,255,.15);border-radius:14px;
  box-shadow:0 12px 38px rgba(0,0,0,.26);
  backdrop-filter:blur(14px);
}
.ap-cookie-banner[hidden],.ap-cookie-dialog-overlay[hidden],.ap-cookie-status[hidden]{display:none!important}
.ap-cookie-text strong {font-size:12px;font-weight:850;line-height:1.4}
.ap-cookie-text p {margin:5px 0 0;color:#c2cad6;font-size:10.5px;line-height:1.52}
.ap-cookie-text a {color:#fff;text-decoration:underline;text-underline-offset:2px}
.ap-cookie-actions {display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ap-cookie-btn {display:inline-flex;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:33px;padding:7px 9px;border-radius:8px;font-weight:800;font-size:10px;line-height:1.25;cursor:pointer;transition:background .18s,border-color .18s}
.ap-cookie-btn-secondary {background:#253047;border:1px solid #47546c;color:#fff}
.ap-cookie-btn-primary {background:#f07836;border:1px solid #f07836;color:#fff}
.ap-cookie-btn-secondary:hover {background:#3a4b67}
.ap-cookie-btn-primary:hover {background:#d86228}
.ap-cookie-details {align-self:flex-start;font-size:10px;color:#bac5d8;border:0;background:none;padding:2px 0;text-decoration:underline;text-underline-offset:2px}
.ap-cookie-details:hover {color:#fff}
.ap-cookie-dialog-open {overflow:hidden}
.ap-cookie-dialog-overlay {position:fixed;inset:0;z-index:999;display:grid;place-items:center;background:rgba(8,17,32,.67);padding:15px;overflow:auto}
.ap-cookie-dialog {position:relative;width:min(540px,100%);max-height:calc(100dvh - 30px);overflow:auto;outline:0;background:#fff;color:#263238;border-radius:20px;padding:29px 33px;box-shadow:0 20px 65px rgba(0,0,0,.26)}
.ap-cookie-dialog-close {position:absolute;right:18px;top:16px;border:0;border-radius:50%;width:34px;height:34px;background:#f7f0e9;font-size:23px;line-height:1;color:#263238}
.ap-cookie-dialog-eyebrow {color:#e87739;font-size:10px;letter-spacing:1.6px;font-weight:800}
.ap-cookie-dialog h2 {font-size:26px;letter-spacing:-.8px;margin:11px 0 13px}
.ap-cookie-dialog>p {font-size:12px;line-height:1.75;color:#67737a}
.ap-cookie-option {display:flex;justify-content:space-between;gap:16px;align-items:center;background:#fffaf7;border:1px solid #f1e1d6;border-radius:12px;padding:15px;margin:10px 0}
.ap-cookie-option strong {display:block;font-size:13px}
.ap-cookie-option small {display:block;font-size:11px;margin-top:5px;line-height:1.5;color:#69757d}
.ap-cookie-option>span:last-child {font-size:11px;color:#339172;white-space:nowrap;font-weight:800}
.ap-cookie-option input {width:19px;height:19px;flex:0 0 auto}
.ap-cookie-dialog .ap-cookie-unconfigured {padding:11px 12px;background:#fff3e9;border-radius:9px;color:#835535;font-size:11px}
.ap-cookie-dialog-actions {display:flex;gap:10px;margin-top:21px}
.ap-cookie-dialog-actions .ap-cookie-btn {flex:1;font-size:12px;min-height:41px}
.ap-cookie-dialog .ap-cookie-dialog-links {text-align:center;margin:19px 0 0;font-size:11px}
.ap-cookie-dialog-links a {text-decoration:underline;color:#c36026}
.ap-cookie-status {position:fixed;z-index:1000;right:16px;bottom:16px;width:min(370px,calc(100vw - 32px));background:#172b23;color:#fff;border:1px solid #3c8d6b;border-radius:12px;padding:12px 16px;box-shadow:0 14px 35px rgba(0,0,0,.23);font-size:12px;line-height:1.5}
@media(max-width:1180px) {
  .ap-footer .ap-footer-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
  .ap-footer .ap-footer-brand {grid-column:1/-1}
}
@media(max-width:680px) {
  .footer.ap-footer {padding:37px 0 20px;margin-top:45px}
  .ap-footer .ap-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 19px}
  .ap-footer .ap-footer-brand {grid-column:1/-1}
  .ap-footer .ap-footer-links h2 {margin-bottom:9px}
  .ap-footer .ap-footer-links a,.ap-footer .ap-footer-cookie-button {font-size:12px;margin:5px 0}
  .ap-footer .ap-footer-bottom {display:grid;gap:8px;margin-top:23px;padding-top:15px}
  .ap-cookie-banner {right:9px;bottom:9px;width:calc(100vw - 18px);max-width:390px;padding:11px}
  .ap-cookie-dialog {padding:25px 18px}
  .ap-cookie-dialog-actions {flex-wrap:wrap}
}
@media(max-width:380px) {
  .ap-cookie-actions {gap:5px}
  .ap-cookie-btn {font-size:9.5px;padding:6px 5px}
  .ap-cookie-text p {font-size:10px}
  .ap-cookie-dialog-actions {display:grid}
}

/* ArabProsto v5: cookie preference action remains obvious and accessible. */
.ap-footer .ap-footer-cookie-button {cursor:pointer;color:#59666e;padding:0;font-weight:500;text-decoration:underline;text-underline-offset:3px;}
.ap-footer .ap-footer-cookie-status {display:block;color:#89939a;font-size:10px;line-height:1.55;margin-top:3px;}
.ap-footer .ap-footer-cookie-button:focus-visible,.ap-cookie-details:focus-visible {outline:3px solid #ffab78;outline-offset:4px;border-radius:2px;}
.theory-block p {white-space:pre-line;}
.quiz-word[lang="ru"] {direction:ltr;font-size:clamp(20px,3vw,30px);line-height:1.4;}
.quiz-option[lang="ar"] {font-size:clamp(16px,2vw,22px);text-align:center;line-height:1.65;}
.ap-cookie-dialog .ap-cookie-option>input {accent-color:#e86d31;cursor:pointer;}

.ap-catalog-controls {display:flex;align-items:end;flex-wrap:wrap;gap:13px 18px;margin-bottom:25px;padding:19px 21px;background:#fff;border:1px solid #f0e4db;border-radius:15px;}
.ap-catalog-field {display:flex;flex-direction:column;gap:8px;min-width:200px;flex:1;font-size:12px;color:#52616a;font-weight:700;}
.ap-catalog-field input,.ap-catalog-field select {width:100%;height:43px;padding:9px 13px;border:1px solid #dccdc1;border-radius:9px;background:#fffcf9;color:#202b30;font-size:13px;}
.ap-catalog-field :is(input,select):focus-visible {outline:2px solid #ee7a3b;outline-offset:2px;}
.ap-catalog-result {margin:0;align-self:end;min-height:42px;display:flex;align-items:center;font-size:12px;color:#73808a;}
.course-card[hidden],.ap-catalog-empty[hidden] {display:none!important;}
.ap-catalog-empty {padding:24px;border:1px dashed #e9c5b3;border-radius:12px;text-align:center;color:#55636b;}
@media(max-width:640px){.ap-catalog-controls{padding:14px;gap:11px}.ap-catalog-field{min-width:100%}}

/* ArabProsto v21: aligned progress and self-service payment method unlink. */
.dashboard-summary .ap-progress-value{display:inline-flex;align-items:baseline;justify-content:flex-start;gap:2px;font-size:clamp(48px,6vw,64px);font-weight:800;line-height:1.08;letter-spacing:-2.7px;margin:22px 0 8px;color:#17252b;font-variant-numeric:tabular-nums}
.dashboard-summary .ap-progress-value .ap-progress-percent{font-size:.41em;letter-spacing:-.4px;color:#ee7535;font-weight:800;line-height:1;vertical-align:baseline}
.dashboard-summary .summary-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;align-items:start}
.dashboard-summary .summary-stats>div{min-width:0}
.dashboard-summary .summary-stats span{font-size:11px;line-height:1.5}
.dashboard-course-info{min-width:0}
.dashboard-course-info h3{overflow-wrap:anywhere}
.ap-account-payment{margin:27px 0 30px;padding:23px 25px;border:1px solid #f0dfd2;border-radius:20px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 20px;align-items:center;box-shadow:0 12px 30px rgba(71,49,33,.035)}
.ap-account-payment h2{font-size:22px;letter-spacing:-.5px;line-height:1.25;margin:8px 0 5px;color:#19272d}
.ap-account-payment p{font-size:12px;color:#718088;line-height:1.6;margin:0}
.ap-account-payment-status{display:flex;flex-direction:column;align-items:flex-end;gap:9px;font-size:12px}
.ap-account-payment-status a{color:#c46431;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.ap-method-indicator{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:800;white-space:nowrap;background:#f7f3ee;color:#6c7880}
.ap-method-indicator::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.ap-method-indicator.is-linked{background:#eaf7ef;color:#257b54}
.ap-unlink-confirm{grid-column:1/-1;min-width:0}
.ap-unlink-confirm>summary{display:inline-flex;list-style:none;cursor:pointer;border:1px solid #f0bfaa;border-radius:10px;color:#a34727;background:#fff9f5;padding:10px 13px;font-size:12px;font-weight:800;transition:background .15s}
.ap-unlink-confirm>summary::-webkit-details-marker{display:none}
.ap-unlink-confirm>summary:hover{background:#fff0e5}
.ap-unlink-confirm>summary:focus-visible,.ap-unlink-danger:focus-visible{outline:3px solid #f28a52;outline-offset:3px}
.ap-unlink-confirm-body{margin-top:11px;max-width:560px;background:#fff8f3;border:1px solid #f0d9cc;border-radius:12px;padding:16px}
.ap-unlink-confirm-body strong{font-size:13px;color:#26323a}
.ap-unlink-confirm-body p{margin:8px 0 14px;font-size:12px;line-height:1.6;color:#68757c}
.ap-unlink-danger{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:10px 15px;color:white;background:#bc4936;border:0;border-radius:9px;font-size:12px;font-weight:800;cursor:pointer}
.ap-unlink-danger:hover{background:#9d3426}
.ap-billing-method{margin-top:15px;padding:14px 16px;border:1px solid #eddfd3;background:#fffdfb;border-radius:13px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 15px;font-size:12px}
.ap-billing-method>span{color:#6b7880}
.ap-billing-method>strong{color:#24343b}
.ap-billing-method .ap-unlink-confirm{flex:0 0 100%}
@media(max-width:650px){.ap-account-payment{grid-template-columns:1fr;padding:19px 17px;gap:13px}.ap-account-payment-status{align-items:flex-start}.dashboard-summary .summary-stats{gap:12px}.ap-unlink-danger{width:100%}}
@media(max-width:360px){.dashboard-summary .ap-progress-value{font-size:50px}.dashboard-course-row{gap:10px;padding:12px}.course-row-right{min-width:60px}}
.ap-method-unlinked-note{grid-column:1/-1;color:#7d8990;font-size:11px;line-height:1.6;margin:0}
