/* HeartCare One Pro additions — intentionally additive to the approved HeartCare One 5.0 visual system. */
:root{--hcp-primary:var(--hc-primary,#0b3f7d);--hcp-accent:var(--hc-accent,#e51f3d);--hcp-text:var(--hc-text,#12335c);--hcp-soft:var(--hc-bg-soft,#f6faff)}

/* New brand logo inside the original v5 header shell */
.hc-brand-logo{display:block;max-width:210px;max-height:58px;width:auto;height:auto;object-fit:contain;object-position:right center}
.hc-header-tools{display:flex;align-items:center;gap:10px;white-space:nowrap}.hc-patient-link{font-size:13px;font-weight:800;color:var(--hc-primary);padding:10px 12px;border-radius:10px}.hc-patient-link:hover{background:var(--hc-bg-soft)}

/* Choose Your Care — new functionality, v5 colors and geometry */
.hcp-quick-box-v5{background:var(--hc-primary);color:#fff;border-radius:24px;padding:22px;box-shadow:0 22px 50px rgba(11,63,125,.22)}
.hcp-quick-box-v5 .hcp-eyebrow{display:block;color:#fff;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;opacity:.8;margin-bottom:7px}
.hcp-quick-box-v5 h3{margin:0 0 15px;color:#fff;font-size:22px;line-height:1.65}
.hcp-care-v5{display:grid;gap:9px}.hcp-care-v5 a{display:flex;align-items:center;gap:11px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.25);border-radius:13px;padding:11px 12px;color:#fff;transition:.22s}.hcp-care-v5 a:hover{transform:translateX(-3px);background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.48)}
.hcp-care-v5 i{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#fff;color:var(--hc-primary);font-style:normal;font-size:17px;flex:none}.hcp-care-v5 .text i,.hcp-care-v5 .video i{color:var(--hc-accent)}
.hcp-care-v5 strong{display:block;color:#fff;font-size:14px}.hcp-care-v5 small{display:block;color:#d9e8f7;font-size:11px;margin-top:1px}.hcp-care-v5 .urgent{background:var(--hc-accent);border-color:var(--hc-accent)}.hcp-care-v5 .urgent i{color:var(--hc-accent)}.hcp-care-v5 .urgent small{color:#fff}
.hcp-care-note{margin:12px 0 0;font-size:10px;line-height:1.8;color:#d7e7f6}

/* Heart + Technology effect around the original v5 doctor frame */
.hcp-heart-tech-stage{position:relative}.hcp-heart-tech-stage .hcp-particles{position:absolute;inset:-2% -7%;pointer-events:none;z-index:5}.hcp-particle{position:absolute;width:4px;height:4px;border-radius:50%;background:var(--hc-primary);box-shadow:0 0 9px currentColor;opacity:.35;animation:hcpFloat var(--d,7s) ease-in-out infinite alternate}.hcp-particle.red{background:var(--hc-accent)}@keyframes hcpFloat{to{transform:translate3d(var(--x,8px),var(--y,-16px),0);opacity:.7}}
.hcp-heart-tech-stage .hcp-ecg-overlay{position:absolute;z-index:6;left:-6%;right:-6%;top:43%;pointer-events:none}.hcp-heart-tech-stage .hcp-ecg-overlay svg{width:100%;height:auto;overflow:visible}.hcp-heart-tech-stage .hcp-ecg-overlay path{fill:none;stroke:var(--hc-accent);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:30 12;animation:hcpEcg 7s linear infinite;filter:drop-shadow(0 0 5px rgba(229,31,61,.2))}@keyframes hcpEcg{to{stroke-dashoffset:-168}}

/* New home modules use the v5 card language */
.hcp-home-extra{padding:var(--hc-ask-py,58px) 0}.hcp-v5-feature{border:1px solid var(--hc-border);border-radius:var(--hc-ask-radius,22px);background:var(--hc-card);box-shadow:0 14px 36px rgba(11,63,125,.08);padding:30px 34px;display:flex;align-items:center;justify-content:space-between;gap:28px}.hcp-v5-feature h2{margin:0 0 8px;color:var(--hc-primary);font-size:clamp(26px,3vw,38px)}.hcp-v5-feature p{margin:0 0 16px;color:var(--hc-muted);line-height:1.9}.hcp-v5-feature .hcp-art{font-size:64px;min-width:100px;text-align:center}.hcp-v5-feature.cafe{background:linear-gradient(115deg,#fffaf6,#fff);border-color:#eadfd5}.hcp-v5-feature.partner{background:linear-gradient(120deg,var(--hc-primary),#174f87);border-color:transparent;color:#fff}.hcp-v5-feature.partner h2{color:#fff}.hcp-v5-feature.partner p{color:#dce9f6}

/* Patient/consultation/plugin pages inherit v5 palette instead of redefining the brand */
.hcon-shell,.hcp-booking,.hcp-public-form,.hcp-cafe-page{font-family:var(--hc-font);color:var(--hc-text)}.hcon-head span,.hcp-section-title span{color:var(--hc-accent)!important}.hcon-head h1,.hcon-head h2,.hcp-section-title h1,.hcp-section-title h2{color:var(--hc-primary)!important}.hcon-card,.hcon-login,.hcp-booking,.hcp-public-form,.hcp-cafe-page{border-color:var(--hc-border)!important}.hcon-card button,.hcon-login button,.hcp-booking button,.hcp-public-form button{background:var(--hc-primary)!important;color:#fff!important}.hcon-card.urgent button,.hcon-card.urgent .hcon-icon{background:var(--hc-accent)!important}

/* v5 footer with added trust badge support */
.hc-footer-enamad{margin-top:12px}.hc-footer-enamad img{max-width:110px;background:#fff;border-radius:8px;padding:6px}.hc-footer-enamad .placeholder{display:block;border:1px dashed rgba(255,255,255,.25);border-radius:10px;padding:10px;color:#c7d8ea;font-size:11px}

@media(max-width:980px){.hc-header-tools{margin-inline-start:auto}.hc-patient-link{display:none}.hcp-v5-feature{display:grid;grid-template-columns:1fr;text-align:center}.hcp-v5-feature .hcp-art{order:-1}.hcp-care-v5{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.hcp-quick-box-v5{padding:17px}.hcp-quick-box-v5 h3{font-size:19px}.hcp-care-v5{grid-template-columns:1fr}.hcp-v5-feature{padding:24px 20px}.hcp-heart-tech-stage .hcp-ecg-overlay{left:-2%;right:-2%}}
@media(prefers-reduced-motion:reduce){.hcp-particle,.hcp-heart-tech-stage .hcp-ecg-overlay path,.hcs-hero-ecg path,.hcs-motion-icon span,.hcs-question-art *,.hcs-coffee-art *{animation:none!important}.hcp-care-v5 a{transition:none!important}}

.hcs-section-off{display:none!important}

/* Handoff-ready refinements */
.hcs-brand-logo{width:var(--hcs-logo-width,156px);max-width:var(--hcs-logo-width,156px);max-height:76px;object-fit:contain;object-position:center}.hc-header{overflow:visible}.hc-brand{overflow:visible}.hc-topbar{height:42px!important;min-height:42px!important;max-height:42px!important;overflow:hidden!important;padding:0!important}.hc-topbar .hc-wrap,.hc-topbar .hc-topbar-inner{height:42px!important;min-height:42px!important;max-height:42px!important;display:flex!important;align-items:center!important}.hcs-topbar-logo{display:flex!important;align-items:center!important;justify-content:center!important;margin-inline-start:auto!important;height:32px!important;max-height:32px!important;overflow:hidden!important;flex:0 0 auto!important}.hc-topbar .hcs-topbar-logo img{display:block!important;width:auto!important;height:28px!important;max-width:74px!important;max-height:28px!important;object-fit:contain!important;object-position:center!important}.hc-topbar-cta{display:none!important}
.hcs-hero-ecg{width:min(330px,80%);margin:0 0 8px auto;height:34px;overflow:hidden}.hcs-hero-ecg svg{width:100%;height:100%}.hcs-hero-ecg path{fill:none;stroke:var(--hcp-accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:26 10;animation:hcsEcg 5.5s linear infinite;filter:drop-shadow(0 0 4px rgba(229,31,61,.18))}@keyframes hcsEcg{to{stroke-dashoffset:-144}}

/* Service motion icons */
.hcs-motion-icon{position:relative;overflow:visible}.hcs-motion-icon span::before{display:block;font-size:31px;line-height:1}.hcs-service-heart .hcs-motion-icon span::before{content:'♥';color:var(--hcp-accent);animation:hcsBeat 2.4s ease-in-out infinite}.hcs-service-runner .hcs-motion-icon span::before{content:'🏃';animation:hcsRun 2.8s ease-in-out infinite}.hcs-service-ecg .hcs-motion-icon span::before{content:'⌁';font-size:38px;color:var(--hcp-accent);animation:hcsPulseLine 2.3s ease-in-out infinite}.hcs-service-holter .hcs-motion-icon span::before{content:'▣';color:var(--hcp-primary);animation:hcsHolter 3.2s ease-in-out infinite}.hcs-service-pressure .hcs-motion-icon span::before{content:'♥';color:var(--hcp-primary);animation:hcsBeat 2.8s ease-in-out infinite}.hcs-service-rhythm .hcs-motion-icon span::before{content:'≈';color:var(--hcp-accent);font-size:38px;animation:hcsPulseLine 2.1s ease-in-out infinite}.hcs-service-nuclear .hcs-motion-icon span::before{content:'✦';color:var(--hcp-primary);animation:hcsNuclear 5s linear infinite}@keyframes hcsBeat{0%,100%{transform:scale(1)}12%{transform:scale(1.13)}24%{transform:scale(1)}36%{transform:scale(1.08)}48%{transform:scale(1)}}@keyframes hcsRun{0%,100%{transform:translateX(0) rotate(0)}50%{transform:translateX(-5px) rotate(-4deg)}}@keyframes hcsPulseLine{0%,100%{transform:translateX(0);opacity:.75}50%{transform:translateX(-5px);opacity:1}}@keyframes hcsHolter{0%,100%{transform:rotate(0)}50%{transform:rotate(4deg) translateY(-2px)}}@keyframes hcsNuclear{to{transform:rotate(360deg)}}

/* About + compact timeline */
.hc-about-facts li{position:relative;padding-right:23px}.hc-about-facts li::before{content:'♥';position:absolute;right:0;top:.18em;color:var(--hcp-accent);font-size:11px}.hcs-timeline-compact{margin-top:26px}.hcs-timeline-compact .hc-section-head{margin-bottom:12px}.hcs-timeline-compact .hc-timeline{gap:8px}.hcs-timeline-compact .hc-timeline-item{min-height:0;padding:11px 14px;border-radius:14px}.hcs-timeline-compact .hc-timeline-year{font-size:12px;min-width:70px}.hcs-timeline-compact .hc-timeline-body h3{font-size:15px;margin-bottom:2px}.hcs-timeline-compact .hc-timeline-body p{font-size:12px;line-height:1.65;margin:0}

/* Questions / Café v5 red-blue identity */
.hcs-question-section .hcp-v5-feature{position:relative;overflow:hidden;border:2px solid var(--hcp-primary);background:linear-gradient(135deg,#fff 0%,#f6faff 72%,rgba(229,31,61,.05) 100%)}.hcs-question-section .hcp-v5-feature::after{content:'';position:absolute;left:0;bottom:0;width:34%;height:5px;background:var(--hcp-accent)}.hcs-question-art{position:relative;width:110px;height:95px;display:grid;place-items:center}.hcs-question-art .heart{font-size:64px;color:var(--hcp-accent);animation:hcsBeat 2.5s ease-in-out infinite}.hcs-question-art .qmark{position:absolute;font-weight:900;color:var(--hcp-primary);font-size:26px;animation:hcsOrbit 5s linear infinite}@keyframes hcsOrbit{from{transform:rotate(0) translateX(44px) rotate(0)}to{transform:rotate(360deg) translateX(44px) rotate(-360deg)}}
.hcs-cafe-section .hcp-v5-feature{border:2px solid var(--hcp-accent);background:linear-gradient(120deg,#fff 0%,#fff8f4 50%,#f4f8ff 100%)}.hcs-coffee-art{position:relative;width:120px;height:110px;display:grid;place-items:end center}.hcs-coffee-art .cup{font-size:64px}.hcs-coffee-art i{position:absolute;color:var(--hcp-accent);font-style:normal;font-size:14px;bottom:50px;left:50%;opacity:0;animation:hcsSteamHeart 4s ease-in-out infinite}.hcs-coffee-art i:nth-of-type(2){animation-delay:1.25s}.hcs-coffee-art i:nth-of-type(3){animation-delay:2.5s}@keyframes hcsSteamHeart{0%{opacity:0;transform:translate(0,0) scale(.7)}25%{opacity:.75}100%{opacity:0;transform:translate(-14px,-58px) scale(1.25)}}

/* Knowledge + detail pages */
.hcs-knowledge-art{position:relative;min-height:190px;overflow:hidden;background:linear-gradient(135deg,#edf5ff,#fff5f6);border-radius:18px}.hcs-knowledge-art::before,.hcs-knowledge-art::after{content:'';position:absolute;border-radius:50%}.hcs-knowledge-art::before{width:150px;height:150px;background:rgba(11,63,125,.10);left:-30px;top:-25px}.hcs-knowledge-art::after{width:120px;height:120px;background:rgba(229,31,61,.10);right:-28px;bottom:-32px}.hcs-knowledge-art span{position:absolute;inset:0;display:grid;place-items:center;font-size:72px;z-index:2}.hcs-art-blood-pressure span::before{content:'◉';color:#0b3f7d;text-shadow:34px 22px 0 rgba(229,31,61,.9)}.hcs-art-nuclear-heart-scan span::before{content:'✦';color:#0b3f7d;animation:hcsNuclear 6s linear infinite}.hcs-art-healthy-heart span::before{content:'♥';color:#e51f3d;animation:hcsBeat 2.8s ease-in-out infinite}.hcs-art-stress-heart span::before{content:'≈♥';color:#0b3f7d;letter-spacing:8px}.hc-post-card .hc-post-thumb img{width:100%;height:100%;object-fit:cover}.hc-detail-page{padding:54px 0 80px;background:var(--hc-bg-soft)}.hc-detail-card{max-width:930px;margin:auto;background:#fff;border:1px solid var(--hc-border);border-radius:24px;padding:clamp(24px,5vw,54px);box-shadow:0 18px 50px rgba(11,63,125,.08)}.hc-detail-card h1{color:var(--hcp-primary);font-size:clamp(30px,5vw,50px);line-height:1.5}.hc-detail-card .lead{font-size:18px;color:var(--hc-muted);line-height:2}.hc-detail-body{font-size:17px;line-height:2.15;color:var(--hcp-text)}.hc-detail-body p{margin:0 0 18px}.hc-service-detail-image{margin:20px 0 26px}.hc-service-detail-image img{display:block;width:100%;max-height:440px;object-fit:cover;border-radius:18px}.hc-back{display:inline-block;margin-bottom:24px;color:var(--hcp-primary);font-weight:800}.hc-referral-box{padding:22px;border-radius:18px;border:1px solid #d8e6f5;background:#f7fbff}.hcs-referral-list{margin-top:30px}.hcs-referral-list>h2,.hcs-service-media h2,.hcs-service-document h2{color:var(--hcp-primary);font-size:22px}.hcs-referral-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.hcs-referral-grid .hc-referral-box{margin:0}.hcs-referral-grid h3{margin:0 0 8px;color:var(--hcp-primary)}.hcs-service-media,.hcs-service-document{margin-top:30px;padding:22px;border:1px solid var(--hc-border);border-radius:18px;background:#fbfdff}.hcs-service-media video,.hcs-video-embed iframe{display:block;width:100%;max-width:900px;aspect-ratio:16/9;border:0;border-radius:16px;background:#071b32}.hcs-service-media p{line-height:2;color:var(--hc-muted)}.hcs-service-document{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.hc-medical-note{margin-top:30px;padding:14px 16px;border-radius:12px;background:#fff7f8;border-right:4px solid var(--hcp-accent);font-size:13px}.hc-article-hero{display:grid;grid-template-columns:280px 1fr;gap:28px;align-items:center;margin-bottom:32px}.hc-article-hero img{width:100%;border-radius:20px;background:#f4f8ff}

/* Trust final placement / alternating borders */
.hcs-trust-final .hc-trust-card:nth-child(odd){border:2px solid var(--hcp-primary)}.hcs-trust-final .hc-trust-card:nth-child(even){border:2px solid var(--hcp-accent)}

/* Café magazine */
.hcs-cafe-magazine{background:#fff!important;border-radius:24px!important;padding:clamp(20px,4vw,44px)!important}.hcs-cafe-hero{display:grid;grid-template-columns:minmax(280px,.8fr) 1.2fr;gap:28px;align-items:center;background:linear-gradient(135deg,#f4f8ff,#fff7f3);border:1px solid #dce8f5;border-radius:24px;padding:28px;margin:26px 0}.hcs-cafe-scene{height:260px;border-radius:20px;position:relative;overflow:hidden;background:linear-gradient(160deg,#dce9f7 0 45%,#f2e3d8 45% 100%)}.hcs-cafe-scene .window{position:absolute;top:24px;right:28px;width:110px;height:110px;border:10px solid #fff;background:linear-gradient(#bcd4ec,#eef5fb)}.hcs-cafe-scene .chair{position:absolute;bottom:28px;left:48px;width:90px;height:70px;border-radius:42px 42px 12px 12px;background:#214d7f}.hcs-cafe-scene .cup{position:absolute;bottom:42px;right:76px;font-size:48px}.hcs-cafe-scene i{position:absolute;right:92px;bottom:92px;color:var(--hcp-accent);font-style:normal;animation:hcsSteamHeart 4s ease-in-out infinite}.hcs-cafe-scene i:nth-of-type(2){animation-delay:1.3s}.hcs-cafe-scene i:nth-of-type(3){animation-delay:2.6s}.hcs-cafe-layout{display:grid;grid-template-columns:.72fr 1.28fr;gap:20px}.hcs-cafe-side,.hcs-cafe-main{display:grid;gap:20px}.hcs-cafe-layout article{border:1px solid var(--hc-border);border-radius:18px;padding:22px;background:#fff}.hcs-cafe-layout article>span{color:var(--hcp-accent);font-size:12px;font-weight:900}.hcs-cafe-side blockquote{font-size:18px;line-height:2;margin:12px 0}.hcs-cafe-main .psychology{background:linear-gradient(120deg,#f5f9ff,#fff)}.hcs-cafe-main .stories{background:linear-gradient(120deg,#fff8f6,#fff)}

/* Multiple trust / license badges */
.hcs-license-badges{display:flex;flex-wrap:wrap;gap:8px}.hcs-license-badges a{display:grid;place-items:center;min-width:72px;min-height:72px}.hcs-license-text{padding:8px;border:1px solid rgba(255,255,255,.25);border-radius:8px;color:#fff}

/* Consultation focus + Jalali selector inserted by JS */
.hcon-card.hcs-channel-focus{outline:3px solid rgba(229,31,61,.18);box-shadow:0 18px 44px rgba(11,63,125,.14)!important;transform:translateY(-3px)}
.hcs-jalali-picker{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:6px}.hcs-jalali-picker select{width:100%;min-height:44px;border:1px solid var(--hc-border);border-radius:10px;background:#fff;padding:7px}.hcs-gregorian-hidden{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}

/* Consultation staged journey */
.hcon-shell{position:relative}.hcs-consult-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0 24px}.hcs-consult-steps span{position:relative;display:flex;align-items:center;gap:9px;min-height:52px;padding:10px 12px;border:1px solid #dbe7f3;border-radius:15px;background:#fff;color:#66788f;transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease,background .28s ease}.hcs-consult-steps span::after{content:"";position:absolute;left:-11px;top:50%;width:11px;height:1px;background:#dbe7f3}.hcs-consult-steps span:first-child::after{display:none}.hcs-consult-steps b{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#eef5fb;color:#0b3f7d;font-size:13px}.hcs-consult-steps i{font-style:normal;font-size:12px;font-weight:700}.hcs-consult-steps .is-active{border-color:rgba(229,31,61,.35);box-shadow:0 10px 28px rgba(11,63,125,.1);color:#12335c;transform:translateY(-2px)}.hcs-consult-steps .is-active b{background:#e51f3d;color:#fff;box-shadow:0 0 0 5px rgba(229,31,61,.08)}.hcs-consult-steps .is-done{border-color:rgba(11,63,125,.24);background:#f8fbff;color:#0b3f7d}.hcs-consult-steps .is-done b{background:#0b3f7d;color:#fff}.hcon-cards{margin-bottom:20px}.hcon-card{position:relative;overflow:hidden;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}.hcon-card::before{content:"";position:absolute;inset:auto -44px -52px auto;width:132px;height:132px;border-radius:50%;background:radial-gradient(circle,rgba(11,63,125,.11),transparent 68%);pointer-events:none;transition:transform .4s ease}.hcon-card:nth-child(even)::before{background:radial-gradient(circle,rgba(229,31,61,.11),transparent 68%)}.hcon-card:not(.disabled):hover,.hcon-card:not(.disabled):focus-visible,.hcon-card.hcs-selected{transform:translateY(-5px);box-shadow:0 20px 42px rgba(11,63,125,.16);border-color:rgba(11,63,125,.3)}.hcon-card.hcs-selected{outline:3px solid rgba(229,31,61,.12)}.hcon-card:not(.disabled):hover::before,.hcon-card.hcs-selected::before{transform:scale(1.22)}.hcon-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:19px;background:linear-gradient(145deg,#fff,#f2f7fc);border:1px solid rgba(11,63,125,.14);box-shadow:0 9px 22px rgba(11,63,125,.09)}.hcon-card:nth-child(even) .hcon-icon{background:linear-gradient(145deg,#fff,#fff4f6);border-color:rgba(229,31,61,.14)}.hcon-icon svg{width:42px;height:42px;fill:none;stroke:#0b3f7d;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;animation:hcsConsultFloat 3.6s ease-in-out infinite}.hcon-card:nth-child(even) .hcon-icon svg{stroke:#e51f3d}.hcon-icon .hcs-icon-accent{stroke:#e51f3d;stroke-dasharray:70;animation:hcsConsultTrace 2.8s ease-in-out infinite}.hcon-card.urgent:not(.disabled) .hcon-icon{box-shadow:0 0 0 0 rgba(229,31,61,.18);animation:hcsUrgentPulse 2.6s ease-out infinite}.hcon-card.disabled{cursor:not-allowed;filter:saturate(.65);opacity:.62}.hcon-login{margin-top:10px}.hcon-login.hcs-stage-enter{animation:hcsStageIn .42s ease both}.hcon-login input:focus,.hcon-create input:focus,.hcon-create select:focus,.hcon-create textarea:focus{outline:none;border-color:#0b3f7d;box-shadow:0 0 0 4px rgba(11,63,125,.08)}.hcon-card button,.hcon-login button,.hcon-create button{transition:transform .22s ease,box-shadow .22s ease}.hcon-card button:not(:disabled):hover,.hcon-login button:not(:disabled):hover,.hcon-create button:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 9px 20px rgba(11,63,125,.15)}.hcon-msg.hcs-error{color:#b42318;background:#fff4f5;border:1px solid #f2b8c0;border-radius:10px;padding:9px 11px;margin-top:8px}@keyframes hcsConsultFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}@keyframes hcsConsultTrace{0%,100%{stroke-dashoffset:0;opacity:1}50%{stroke-dashoffset:18;opacity:.7}}@keyframes hcsUrgentPulse{0%{box-shadow:0 0 0 0 rgba(229,31,61,.16)}70%{box-shadow:0 0 0 10px rgba(229,31,61,0)}100%{box-shadow:0 0 0 0 rgba(229,31,61,0)}}@keyframes hcsStageIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}.hcon-card[data-channel="phone"] .hcon-icon svg{transform-origin:50% 55%;animation:hcsPhoneRing 3.4s ease-in-out infinite}.hcon-card[data-channel="phone"] .hcs-ring-line{stroke:#e51f3d;stroke-dasharray:36;animation:hcsRingWave 3.4s ease-in-out infinite}.hcon-card[data-channel="text"] .hcon-icon svg{animation:hcsPencilWrite 3.8s ease-in-out infinite}.hcon-card[data-channel="text"] .hcs-write-line{stroke-dasharray:42;stroke-dashoffset:42;animation:hcsWriteLine 3.8s ease-in-out infinite}.hcon-card[data-channel="video"] .hcon-icon svg{animation:hcsLaptopFloat 4s ease-in-out infinite}.hcon-card[data-channel="video"] .hcs-laptop-screen{transform-box:fill-box;transform-origin:50% 100%;animation:hcsLaptopOpen 4s ease-in-out infinite}.hcon-card[data-channel="urgent"] .hcon-icon{border-color:rgba(229,31,61,.24);background:linear-gradient(145deg,#fff,#fff1f3)}.hcon-card[data-channel="urgent"] .hcon-icon svg{stroke:#e51f3d;transform-origin:50% 55%;animation:hcsUrgentRing 2.7s ease-in-out infinite}.hcon-card[data-channel="urgent"] .hcs-ring-line{stroke:#e51f3d;stroke-dasharray:48;animation:hcsUrgentWave 2.7s ease-in-out infinite}@keyframes hcsPhoneRing{0%,72%,100%{transform:rotate(0)}76%{transform:rotate(-6deg)}80%{transform:rotate(6deg)}84%{transform:rotate(-4deg)}88%{transform:rotate(4deg)}92%{transform:rotate(0)}}@keyframes hcsRingWave{0%,68%,100%{opacity:.15;stroke-dashoffset:36}76%,90%{opacity:1;stroke-dashoffset:0}}@keyframes hcsPencilWrite{0%,18%,100%{transform:translate(0,0)}38%{transform:translate(-3px,2px)}58%{transform:translate(3px,-2px)}78%{transform:translate(-2px,1px)}}@keyframes hcsWriteLine{0%,18%{stroke-dashoffset:42;opacity:.3}65%,82%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:42;opacity:.3}}@keyframes hcsLaptopFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}@keyframes hcsLaptopOpen{0%,18%,100%{transform:scaleY(.82)}42%,78%{transform:scaleY(1)}}@keyframes hcsUrgentRing{0%,62%,100%{transform:rotate(0)}68%{transform:rotate(-7deg)}74%{transform:rotate(7deg)}80%{transform:rotate(-5deg)}86%{transform:rotate(5deg)}92%{transform:rotate(0)}}@keyframes hcsUrgentWave{0%,58%,100%{opacity:.12;stroke-dashoffset:48}70%,90%{opacity:1;stroke-dashoffset:0}}

@media(max-width:980px){.hcs-brand-logo{max-height:64px}.hc-topbar{display:block}.hc-topbar-inner{min-height:34px}.hc-topbar-list{font-size:11px}.hc-topbar-list span:first-child,.hc-topbar-list span:nth-child(2){display:none}.hcs-topbar-logo img{width:40px;height:24px}.hc-article-hero,.hcs-cafe-hero,.hcs-cafe-layout,.hcs-referral-grid{grid-template-columns:1fr}.hcs-cafe-scene{height:220px}.hcs-consult-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.hcs-consult-steps span::after{display:none}}
@media(max-width:640px){.hcs-brand-logo{width:min(var(--hcs-logo-width,156px),128px);max-width:128px}.hcs-hero-ecg{width:76%;margin-right:0}.hcs-timeline-compact .hc-timeline-item{padding:10px}.hc-detail-page{padding-top:28px}.hc-detail-card{border-radius:16px}.hcs-jalali-picker{grid-template-columns:1fr}.hcs-question-art,.hcs-coffee-art{margin:auto}.hcs-consult-steps{grid-template-columns:1fr 1fr;gap:7px}.hcs-consult-steps span{min-height:46px;padding:8px}.hcs-consult-steps i{font-size:11px}.hcon-icon{width:56px;height:56px}.hcon-icon svg{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.hcon-icon svg,.hcon-icon .hcs-icon-accent,.hcon-card.urgent:not(.disabled) .hcon-icon,.hcon-login.hcs-stage-enter{animation:none!important}.hcon-card,.hcs-consult-steps span,.hcon-card button,.hcon-login button,.hcon-create button{transition:none!important}}

/* Stable consultation identity field + exact channel-specific motion */
.hcs-hcon-name-field{display:grid;gap:7px;margin:0 0 12px}.hcs-hcon-name-field span{font-weight:700;color:#12335c}.hcs-hcon-name-field input{width:100%;min-height:48px;border:1px solid #dbe7f3;border-radius:12px;background:#fff;padding:10px 12px}.hcs-channel-phone .hcs-phone-body{transform-origin:32px 32px;animation:hcsPhoneRing 3.4s ease-in-out infinite}.hcs-channel-text .hcs-pencil-body{transform-origin:32px 32px;animation:hcsPencilWrite 3.2s ease-in-out infinite}.hcs-channel-video .hcs-laptop-lid{transform-box:fill-box;transform-origin:center bottom;animation:hcsLaptopOpen2 3.8s ease-in-out infinite}.hcs-channel-urgent .hcs-urgent-phone{transform-origin:32px 32px;animation:hcsUrgentRing 2.8s ease-in-out infinite}.hcs-channel-urgent .hcon-icon{border-color:rgba(229,31,61,.24);background:linear-gradient(145deg,#fff,#fff1f3)}@keyframes hcsLaptopOpen2{0%,100%{transform:perspective(120px) rotateX(0)}45%{transform:perspective(120px) rotateX(-12deg)}65%{transform:perspective(120px) rotateX(-4deg)}}

/* Payment-choice page. Final success is withheld until payment is actually confirmed. */
.hcs-payment-shell{max-width:860px;margin:28px auto 54px;padding:30px;border:1px solid #dbe7f3;border-radius:24px;background:#fff;box-shadow:0 18px 48px rgba(11,63,125,.11);font-family:var(--hcs-pay-font,Tahoma,Arial,sans-serif);font-size:var(--hcs-pay-text-size,15px);color:var(--hcs-pay-text,#12335c)}.hcs-payment-head{text-align:center;margin-bottom:24px}.hcs-payment-head .hc-kicker{color:var(--hcs-pay-kicker,#e51f3d)}.hcs-payment-head h1{margin:8px 0;color:var(--hcs-pay-title,#0b3f7d);font-size:var(--hcs-pay-title-size,34px)}.hcs-payment-head p,.hcs-payment-card p,.hcs-payment-note,.hcs-payment-choice-msg{font-size:var(--hcs-pay-text-size,15px);color:var(--hcs-pay-text,#12335c)}.hcs-payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hcs-payment-card{position:relative;border:1px solid #dbe7f3;border-radius:18px;padding:22px;background:#fbfdff}.hcs-payment-card.manual{background:#fff8f9;border-color:#f0c8cf}.hcs-payment-card h2{margin-top:0;color:var(--hcs-pay-card-title,#0b3f7d);font-size:var(--hcs-pay-card-title-size,22px)}.hcs-payment-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef5fb;color:#0b3f7d;font-size:12px;font-weight:700}.hcs-payment-card.manual .hcs-payment-badge{background:#fff0f2;color:#b4233a}.hcs-payment-data{display:grid;gap:8px;margin-top:14px}.hcs-payment-data div{padding:10px 12px;border:1px dashed #dbe7f3;border-radius:10px;background:#fff}.hcs-payment-note{margin-top:20px;padding:12px 14px;border-radius:12px;background:#fff8e8;border:1px solid #f1d99b;color:#705719}.hcs-payment-tracking{margin:12px auto 0;display:inline-flex;padding:8px 11px;border-radius:10px;background:#f6faff;color:var(--hcs-pay-title,#0b3f7d);font-weight:700}@media(max-width:640px){.hcs-payment-shell{padding:20px}.hcs-payment-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.hcs-phone-body,.hcs-ring-line,.hcs-pencil-body,.hcs-write-line,.hcs-laptop-lid,.hcs-urgent-phone{animation:none!important}}

/* Robust urgent mobile icon + clearly interactive payment choices */
.hcs-channel-urgent .hcon-icon{position:relative}.hcs-channel-urgent .hcon-icon::before{content:"";position:absolute;width:22px;height:34px;border:2.4px solid #e51f3d;border-radius:6px;box-sizing:border-box;animation:hcsUrgentCssRing 2.8s ease-in-out infinite}.hcs-channel-urgent .hcon-icon::after{content:"";position:absolute;width:8px;height:2px;border-radius:2px;background:#e51f3d;transform:translateY(-11px)}.hcs-channel-urgent .hcon-icon svg{opacity:.18}.hcs-payment-choice{cursor:pointer;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}.hcs-payment-choice:hover,.hcs-payment-choice:focus-visible,.hcs-payment-choice.is-selected{transform:translateY(-4px);box-shadow:0 18px 38px rgba(11,63,125,.14);border-color:rgba(11,63,125,.34);outline:none}.hcs-payment-choice.manual:hover,.hcs-payment-choice.manual:focus-visible,.hcs-payment-choice.manual.is-selected{border-color:rgba(229,31,61,.32)}.hcs-payment-action{margin-top:14px;min-height:44px;padding:9px 16px;border:0;border-radius:12px;background:var(--hcs-pay-btn-bg,#0b3f7d);color:var(--hcs-pay-btn-color,#fff);font-family:var(--hcs-pay-font,Tahoma,Arial,sans-serif);font-size:var(--hcs-pay-btn-size,14px);font-weight:700;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.hcs-payment-card.manual .hcs-payment-action{background:var(--hcs-pay-btn-bg,#0b3f7d);color:var(--hcs-pay-btn-color,#fff)}.hcs-payment-action:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(11,63,125,.16)}.hcs-payment-choice-msg{min-height:0;margin-top:14px;padding:0;border-radius:12px}.hcs-payment-choice-msg.is-warning,.hcs-payment-choice-msg.is-ok{padding:11px 13px;border:1px solid}.hcs-payment-choice-msg.is-warning{background:#fff8e8;border-color:#f1d99b;color:#705719}.hcs-payment-choice-msg.is-ok{background:#f3f9ff;border-color:#bfd8ee;color:#0b3f7d}@keyframes hcsUrgentCssRing{0%,62%,100%{transform:rotate(0)}68%{transform:rotate(-7deg)}74%{transform:rotate(7deg)}80%{transform:rotate(-5deg)}86%{transform:rotate(5deg)}92%{transform:rotate(0)}}@media(prefers-reduced-motion:reduce){.hcs-channel-urgent .hcon-icon::before{animation:none!important}.hcs-payment-choice,.hcs-payment-action{transition:none!important}}

/* Appointment patient identity fields + stronger centered submit action */
.hcp-booking .hcp-patient-field{display:grid;gap:8px;padding:12px 14px;border:1px solid #dbe7f3;border-radius:15px;background:#f9fcff;box-shadow:0 8px 22px rgba(11,63,125,.06);font-weight:700;color:#12335c}.hcp-booking .hcp-patient-field input{width:100%;min-height:50px;padding:11px 13px;border:1.5px solid #bfd3e6;border-radius:12px;background:#fff;color:#12335c;font:inherit;box-sizing:border-box;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}.hcp-booking .hcp-patient-field input::placeholder{color:#8a9bb0}.hcp-booking .hcp-patient-field input:focus{outline:none;border-color:#0b3f7d;box-shadow:0 0 0 4px rgba(11,63,125,.09);background:#fff}.hcp-booking .hcp-btn.primary[data-hcp-book]{display:block;width:min(100%,300px);min-height:58px;margin:26px auto 0;padding:12px 24px;border-radius:16px;font-size:17px;font-weight:800;text-align:center;box-shadow:0 12px 28px rgba(11,63,125,.16);transition:transform .22s ease,box-shadow .22s ease}.hcp-booking .hcp-btn.primary[data-hcp-book]:hover,.hcp-booking .hcp-btn.primary[data-hcp-book]:focus-visible{transform:translateY(-2px);box-shadow:0 16px 32px rgba(11,63,125,.2)}@media(max-width:640px){.hcp-booking .hcp-patient-field{padding:10px 11px}.hcp-booking .hcp-btn.primary[data-hcp-book]{width:100%;min-height:56px}}@media(prefers-reduced-motion:reduce){.hcp-booking .hcp-patient-field input,.hcp-booking .hcp-btn.primary[data-hcp-book]{transition:none!important}}

/* Private manual-payment receipt workflow */
.hcs-manual-receipt-panel{margin-top:18px;padding:22px;border:1px solid #e7d7aa;border-radius:18px;background:linear-gradient(180deg,#fffef9,#fffaf0);box-shadow:0 14px 34px rgba(112,87,25,.08)}.hcs-manual-receipt-panel[hidden]{display:none!important}.hcs-manual-receipt-panel h2{margin:0 0 8px;color:var(--hcs-pay-card-title,#0b3f7d);font-size:var(--hcs-pay-card-title-size,22px)}.hcs-manual-receipt-panel>p{margin:0 0 16px;color:var(--hcs-pay-text,#12335c)}.hcs-receipt-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hcs-receipt-form label{display:grid;gap:7px;font-weight:700;color:var(--hcs-pay-text,#12335c)}.hcs-receipt-form label:first-of-type,.hcs-receipt-form label:last-of-type{grid-column:1/-1}.hcs-receipt-form input[type=text],.hcs-receipt-form input[type=file],.hcs-receipt-form textarea{width:100%;box-sizing:border-box;border:1px solid #d7c894;border-radius:12px;background:#fff;padding:11px 12px;font:inherit;color:#12335c}.hcs-receipt-form input:focus,.hcs-receipt-form textarea:focus{outline:none;border-color:#0b3f7d;box-shadow:0 0 0 4px rgba(11,63,125,.08)}.hcs-receipt-form small{font-weight:400;color:#7b6a38}.hcs-receipt-submit{grid-column:1/-1;justify-self:center;min-width:230px}.hcs-receipt-state{padding:13px 15px;border-radius:12px;font-weight:800}.hcs-receipt-state.pending{background:#fff8e8;border:1px solid #f1d99b;color:#705719}.hcs-receipt-state.approved{background:#edf9f1;border:1px solid #b8dfc3;color:#24643a}.hcs-receipt-state.rejected{margin-bottom:14px;background:#fff1f3;border:1px solid #f2c1ca;color:#9e2940}@media(max-width:640px){.hcs-receipt-form{grid-template-columns:1fr}.hcs-receipt-form label{grid-column:1/-1}.hcs-receipt-submit{width:100%;min-width:0}}
