:root{
  --white:#ffffff;
  --ink:#21154f;
  --glass:rgba(245,239,255,.19);
  --glass-strong:rgba(248,243,255,.32);
  --line:rgba(255,255,255,.48);
  --shadow:0 18px 50px rgba(25,13,68,.24), inset 0 1px 0 rgba(255,255,255,.66);
  --pink:#ff89dc;
  --violet:#8369ff;
  --cyan:#68ddff;
  --site-bg:#17112f;
  --site-bg-accent:#2f2252;
  --slide-base:#25154d;
  --slide-border:#dccbff;
  --menu-gap:8px;
  --right-button-gap:7px;
  --social-gap:5px;
  --avatar-gap:-8px;
}

*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{font-family:Inter,"Segoe UI",Tahoma,Arial,sans-serif;background:var(--site-bg);color:#fff;direction:ltr}
a{text-decoration:none;color:inherit}
button{font:inherit}

.site-shell{
  position:relative;
  width:100vw;
  height:100vh;
  min-height:620px;
  overflow:hidden;
  isolation:isolate;
  display:grid;
  place-items:center;
  padding:32px;
  background-color:var(--site-bg);
  background-image:
    radial-gradient(circle at 18% 18%,rgba(123,96,186,.20),transparent 32%),
    radial-gradient(circle at 83% 75%,rgba(79,170,196,.12),transparent 32%),
    linear-gradient(145deg,rgba(255,255,255,.025),rgba(255,255,255,0) 48%),
    linear-gradient(135deg,var(--site-bg),var(--site-bg-accent));
}
.site-shell::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:46px 46px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.7),transparent 88%);
}

.slide-frame{
  position:relative;
  width:min(88vw,1600px);
  height:min(86vh,820px);
  min-height:560px;
  overflow:hidden;
  isolation:isolate;
  border:1px solid var(--slide-border);
  border-radius:34px;
  background:var(--slide-base);
  box-shadow:
    0 34px 90px rgba(4,2,18,.52),
    0 0 0 9px rgba(255,255,255,.035),
    0 0 50px rgba(184,141,255,.16),
    inset 0 1px 0 rgba(255,255,255,.72);
}
.slide-frame::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  z-index:30;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),inset 0 0 34px rgba(255,255,255,.06);
}

.site-background{position:absolute;inset:0;background:url("assets/background/crystal-room.png") center center/cover no-repeat;z-index:-5}
.site-background::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(33,14,74,.31) 0%,rgba(35,18,82,.07) 29%,rgba(31,12,73,.03) 69%,rgba(22,8,59,.29) 100%);z-index:1}
.site-background::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 63%,rgba(255,188,247,.18),transparent 22%),radial-gradient(circle at 50% 44%,rgba(93,221,255,.10),transparent 28%);mix-blend-mode:screen;animation:ambient 6s ease-in-out infinite;z-index:2}
.motion-layer{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none;z-index:-2}

@keyframes ambient{0%,100%{opacity:.72}50%{opacity:1}}

.topbar{position:absolute;left:0;top:0;width:100%;height:112px;z-index:20;pointer-events:none}
.brand-link{position:absolute;left:24px;top:18px;width:250px;height:70px;display:flex;align-items:center;pointer-events:auto;filter:drop-shadow(0 8px 18px rgba(35,13,79,.24));transition:transform .28s ease,filter .28s ease}
.brand-link:hover{transform:translateY(-2px) scale(1.015);filter:drop-shadow(0 11px 24px rgba(52,18,103,.34))}
.brand-link img{width:100%;height:100%;object-fit:contain;object-position:left center}

.menu-bar{position:absolute;top:24px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:var(--menu-gap);padding:7px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:linear-gradient(145deg,rgba(255,255,255,.26),rgba(185,160,255,.12));box-shadow:0 16px 34px rgba(39,19,89,.18),inset 0 1px 0 rgba(255,255,255,.72);backdrop-filter:blur(18px) saturate(145%);-webkit-backdrop-filter:blur(18px) saturate(145%);pointer-events:auto;white-space:nowrap}
.menu-item{position:relative;min-width:92px;height:42px;padding:0 17px;border:1px solid transparent;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:650;letter-spacing:.01em;color:#3a276f;text-shadow:0 1px 0 rgba(255,255,255,.4);transition:all .3s cubic-bezier(.2,.8,.2,1);overflow:hidden}
.menu-item::after{content:"";position:absolute;left:50%;right:50%;bottom:5px;height:2px;border-radius:10px;background:linear-gradient(90deg,var(--cyan),var(--pink));transition:left .25s ease,right .25s ease;box-shadow:0 0 10px rgba(255,128,225,.7)}
.menu-item:hover,.menu-item.active{color:#24134f;border-color:rgba(255,255,255,.65);box-shadow:0 8px 24px rgba(72,44,139,.18),inset 0 1px 0 #fff;transform:translateY(-1px)}
.menu-item:hover::after,.menu-item.active::after{left:24%;right:24%}
.menu-item-image{width:19px;height:19px;border-radius:50%;object-fit:cover;flex:none;filter:drop-shadow(0 3px 5px rgba(38,20,80,.2))}

.language-toggle{position:absolute;right:28px;top:20px;width:58px;height:58px;border-radius:50%;border:1px solid rgba(255,255,255,.72);padding:5px;background:linear-gradient(145deg,rgba(255,255,255,.68),rgba(211,194,255,.38));box-shadow:0 15px 30px rgba(46,21,101,.22),inset 0 1px 0 #fff;backdrop-filter:blur(16px);cursor:pointer;pointer-events:auto;transition:transform .28s ease,box-shadow .28s ease}
.language-toggle:hover{transform:translateY(-2px) rotate(3deg);box-shadow:0 18px 34px rgba(46,21,101,.32),0 0 26px rgba(255,144,225,.26),inset 0 1px 0 #fff}
.language-toggle img{width:100%;height:100%;display:block;border-radius:50%;object-fit:cover;box-shadow:inset 0 0 0 2px rgba(255,255,255,.72)}

.social-card{position:absolute;left:24px;top:29%;width:64px;padding:10px 7px;display:flex;flex-direction:column;align-items:center;gap:var(--social-gap);border:1px solid rgba(255,255,255,.48);border-radius:30px;background:linear-gradient(145deg,rgba(255,255,255,.31),rgba(188,161,255,.13));box-shadow:var(--shadow);backdrop-filter:blur(18px) saturate(145%);-webkit-backdrop-filter:blur(18px) saturate(145%);z-index:15}
.social-link{position:relative;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(255,255,255,.63);background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(188,177,221,.54));box-shadow:7px 9px 18px rgba(32,19,71,.20),-4px -4px 10px rgba(255,255,255,.42),inset 1px 1px 0 rgba(255,255,255,.95),inset -2px -3px 6px rgba(87,65,126,.15);transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease;overflow:hidden}
.social-link::after{content:"";position:absolute;left:6px;top:4px;width:23px;height:11px;border-radius:50%;background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,0));transform:rotate(-14deg);opacity:.8}
.social-link:hover{transform:translateX(5px) rotateY(-14deg) scale(1.07);box-shadow:10px 12px 22px rgba(32,19,71,.30),0 0 20px rgba(113,222,255,.32),inset 1px 1px 0 #fff}
.social-link img{width:20px;height:20px;object-fit:contain;filter:grayscale(1) contrast(1.35);opacity:.82;position:relative;z-index:2}

.hero-copy{position:absolute;left:112px;top:27%;width:min(420px,32vw);z-index:10;color:#2c1d61;text-align:left;filter:drop-shadow(0 2px 1px rgba(255,255,255,.45));padding:0;border:1px solid transparent;border-radius:26px}
.hero-eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;padding:8px 14px;border:1px solid rgba(255,255,255,.58);border-radius:999px;background:rgba(255,255,255,.25);box-shadow:inset 0 1px 0 rgba(255,255,255,.72);backdrop-filter:blur(12px);font-size:11px;font-weight:700;color:#58419b}
.hero-eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,var(--cyan),var(--pink));box-shadow:0 0 12px rgba(255,121,222,.72)}
.hero-title{margin:0 0 16px;font-size:clamp(36px,3.7vw,64px);line-height:.98;letter-spacing:-.045em;font-weight:800;color:#34206c;max-width:430px}
.hero-subtitle{margin:0;max-width:390px;font-size:clamp(13px,1vw,17px);line-height:1.9;font-weight:500;color:#4b3b76}
.hero-content-image{display:block;width:76px;height:76px;margin-top:15px;border-radius:22px;object-fit:cover;border:1px solid rgba(255,255,255,.72);box-shadow:0 13px 30px rgba(50,25,105,.22),inset 0 1px 0 #fff;background:rgba(255,255,255,.26)}
.hero-content-image[hidden]{display:none}
.hero-copy.is-fa{direction:rtl;text-align:right;letter-spacing:0}
.hero-copy.is-fa .hero-title{letter-spacing:0;line-height:1.18;font-family:Tahoma,"Segoe UI",sans-serif}
.hero-copy.is-fa .hero-subtitle{line-height:2.05;font-family:Tahoma,"Segoe UI",sans-serif}

.right-actions{position:absolute;right:30px;top:30%;width:220px;display:flex;flex-direction:column;align-items:stretch;z-index:14}
.action-link{height:68px;padding:0 18px;display:flex;align-items:center;justify-content:center;gap:9px;text-align:center;color:#fff;font-size:14.5px;font-weight:700;line-height:1.35;border:1px solid rgba(255,255,255,.45);background:linear-gradient(135deg,rgba(255,154,218,.67),rgba(116,90,255,.58));box-shadow:0 15px 32px rgba(53,20,104,.20),inset 0 1px 0 rgba(255,255,255,.72);backdrop-filter:blur(16px) saturate(140%);-webkit-backdrop-filter:blur(16px) saturate(140%);transition:transform .28s ease,filter .28s ease,box-shadow .28s ease;position:relative;overflow:hidden}
.action-link::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 14%,rgba(255,255,255,.28) 43%,transparent 67%);transform:translateX(-120%);transition:transform .7s ease}
.action-link:hover::before{transform:translateX(120%)}
.action-link:hover{transform:translateX(-5px) scale(1.02);filter:saturate(1.15);box-shadow:0 19px 40px rgba(53,20,104,.30),0 0 28px rgba(255,135,220,.25),inset 0 1px 0 #fff}
.action-link.top{border-radius:23px;margin-bottom:var(--right-button-gap)}
.action-link.middle.first{border-radius:21px 21px 7px 7px;border-bottom-color:rgba(255,255,255,.18)}
.action-link.middle.second{border-radius:7px 7px 21px 21px;border-top-color:rgba(255,255,255,.2);margin-top:0}
.action-link.bottom{border-radius:23px;margin-top:var(--right-button-gap)}
.action-link.is-fa{direction:rtl;font-family:Tahoma,"Segoe UI",sans-serif}
.action-item-image{width:25px;height:25px;border-radius:50%;object-fit:cover;flex:none;border:1px solid rgba(255,255,255,.55);box-shadow:0 4px 11px rgba(40,17,90,.22)}

.trust-block{position:absolute;left:112px;bottom:42px;width:376px;display:grid;grid-template-columns:1fr 128px;gap:4px;align-items:center;z-index:12;color:#322164}
.trust-copy{min-width:0;grid-column:1;grid-row:1;text-align:left;justify-self:end;width:100%}
.avatar-window{grid-column:2;grid-row:1;position:relative;width:128px;height:54px;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 9%,#000 94%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 94%,transparent)}
.avatar-track{position:absolute;left:0;top:5px;height:46px;display:flex;align-items:center;animation:avatar-flow 8.5s linear infinite;will-change:transform}
.avatar-track:hover{animation-play-state:paused}
.avatar-item{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.88);box-shadow:0 6px 13px rgba(45,26,84,.22);margin-left:var(--avatar-gap);flex:none;background:#d7c4ff}
.avatar-item:first-child{margin-left:0}
@keyframes avatar-flow{from{transform:translateX(-50%)}to{transform:translateX(0)}}
.trust-image{float:left;width:32px;height:32px;margin:0 7px 4px 0;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.8);box-shadow:0 6px 14px rgba(45,26,84,.2)}
.trust-image[hidden]{display:none}
.trust-text{font-size:12px;font-weight:750;color:#3c2b70;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:7px}
.trust-text.is-fa{direction:rtl;text-align:left;font-family:Tahoma,"Segoe UI",sans-serif}
.rating-row{display:flex;align-items:center;gap:9px;white-space:nowrap}
.rating-value{font-size:13px;font-weight:850;color:#2a185f}
.stars{display:flex;gap:2px;color:#ffb400;text-shadow:0 1px 0 #fff,0 0 8px rgba(255,174,0,.5);font-size:16px;line-height:1}
.rating-label{font-size:11.5px;color:#6a568c;font-weight:600}
.rating-label.is-fa{direction:rtl;font-family:Tahoma,"Segoe UI",sans-serif}

.data-status{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:50;padding:7px 13px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:rgba(37,19,77,.58);backdrop-filter:blur(12px);font-size:10px;color:rgba(255,255,255,.88);transition:opacity .4s ease}
.data-status.hidden{opacity:0;pointer-events:none}

@media (max-width:1500px){
  .site-shell{padding:24px}
  .slide-frame{width:91vw;height:86vh}
  .brand-link{width:214px}
  .menu-item{min-width:74px;padding:0 11px;font-size:10.5px}
  .hero-copy{left:96px;width:340px}
  .right-actions{width:184px}
  .trust-block{left:96px;width:352px}
}

@media (max-width:1180px){
  .site-shell{padding:18px}
  .slide-frame{width:94vw;height:88vh;border-radius:26px}
  .topbar{height:130px}
  .brand-link{left:14px;top:12px;width:184px}
  .language-toggle{right:16px;top:14px;width:52px;height:52px}
  .menu-bar{top:77px;max-width:90%;overflow-x:auto;justify-content:flex-start;scrollbar-width:none}
  .menu-bar::-webkit-scrollbar{display:none}
  .menu-item{min-width:102px}
  .social-card{left:14px;top:34%;width:55px}
  .social-link{width:36px;height:36px}
  .hero-copy{left:82px;top:34%;width:330px}
  .right-actions{right:16px;top:36%;width:174px}
  .action-link{height:58px;font-size:11px}
  .trust-block{left:82px;bottom:30px;width:330px;grid-template-columns:1fr 120px;gap:3px}
  .avatar-window{width:120px}
}

@media (max-width:820px){
  .site-shell{min-height:520px;padding:10px}
  .slide-frame{width:97vw;height:94vh;min-height:500px;border-radius:20px}
  .site-background{background-position:52% center}
  .brand-link{width:160px;height:58px}
  .menu-bar{top:68px;padding:5px}
  .menu-item{min-width:88px;height:36px;font-size:9.5px}
  .hero-copy{left:62px;top:29%;width:46vw;min-width:250px}
  .hero-title{font-size:clamp(30px,7vw,44px)}
  .hero-subtitle{font-size:12px;line-height:1.65}
  .social-card{left:8px;top:31%;padding:7px 5px;gap:var(--social-gap);width:48px}
  .social-link{width:32px;height:32px}
  .social-link img{width:17px;height:17px}
  .right-actions{right:8px;top:34%;width:142px}
  .action-link{height:49px;padding:0 9px;font-size:9px}
  .trust-block{left:62px;bottom:22px;width:286px;grid-template-columns:1fr 112px;gap:2px}
  .avatar-window{width:112px}
  .trust-text{font-size:10px}
  .rating-label{display:none}
}

@media (max-width:590px){
  .site-shell{padding:6px}
  .slide-frame{width:98vw;height:97vh;min-height:480px;border-radius:16px}
  .hero-copy{left:56px;top:26%;width:58vw;min-width:0}
  .hero-eyebrow{display:none}
  .hero-title{font-size:27px;margin-bottom:9px}
  .hero-subtitle{font-size:10.5px;line-height:1.5}
  .right-actions{top:auto;bottom:22px;right:8px;width:124px}
  .action-link{height:42px;font-size:8px}
  .trust-block{left:55px;bottom:16px;width:186px;grid-template-columns:1fr 96px;gap:1px}
  .avatar-window{width:96px;height:45px}
  .avatar-track{top:3px;height:40px}
  .avatar-item{width:38px;height:38px}
  .trust-text{display:none}
  .stars{font-size:12px}
  .rating-row{gap:4px}
}

/* V04: joined left social controls and connected middle action pair */
.social-card{
  gap:var(--social-gap);
  padding-top:9px;
  padding-bottom:9px;
}
.social-link + .social-link{
  margin-top:0;
}
.social-link{
  position:relative;
  z-index:1;
}
.social-link:hover{
  z-index:5;
}

.right-actions{
  gap:0;
}
.action-link.top{
  border-radius:23px;
  margin-bottom:4px;
}
.action-link.middle.first{
  border-radius:22px 22px 0 0;
  border-bottom-width:0;
  margin:0;
}
.action-link.middle.second{
  border-radius:0 0 22px 22px;
  border-top-color:rgba(255,255,255,.28);
  margin:0;
}
.action-link.bottom{
  border-radius:23px;
  margin-top:4px;
}
.menu-item-image,
.action-item-image{
  width:var(--item-icon-size,25px);
  height:var(--item-icon-size,25px);
}

/* V05: full-height hero and three glass content panels below the slide */
html,body{
  min-height:100%;
  height:auto;
  overflow-x:hidden;
  overflow-y:auto;
  scroll-behavior:smooth;
}
body{
  min-height:100vh;
  background:
    radial-gradient(circle at 14% 10%,rgba(124,94,190,.22),transparent 31%),
    radial-gradient(circle at 86% 48%,rgba(69,192,220,.13),transparent 30%),
    linear-gradient(145deg,var(--site-bg),var(--site-bg-accent));
}
.site-shell{
  width:100%;
  min-height:100vh;
  height:auto;
  overflow:visible;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 3vw 0;
}
.site-shell::before{
  position:fixed;
}
.slide-frame{
  width:min(94vw,1820px);
  height:calc(100vh - 24px);
  min-height:650px;
  flex:none;
}

.content-panels{
  position:relative;
  width:100%;
  padding:12px 3vw 72px;
  background:
    radial-gradient(circle at 12% 16%,rgba(143,109,217,.18),transparent 28%),
    radial-gradient(circle at 85% 75%,rgba(75,193,219,.11),transparent 31%),
    linear-gradient(145deg,var(--site-bg),var(--site-bg-accent));
  isolation:isolate;
}
.content-panels::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.017) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.017) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.72),transparent 100%);
}
.panels-grid{
  position:relative;
  z-index:1;
  width:min(94vw,1820px);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}
.glass-panel{
  position:relative;
  min-height:720px;
  padding:22px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:34px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.14),rgba(176,149,233,.075) 50%,rgba(94,201,224,.055));
  box-shadow:
    0 28px 65px rgba(5,2,22,.33),
    0 0 0 8px rgba(255,255,255,.018),
    inset 0 1px 0 rgba(255,255,255,.48),
    inset 0 -20px 50px rgba(60,30,110,.06);
  backdrop-filter:blur(24px) saturate(130%);
  -webkit-backdrop-filter:blur(24px) saturate(130%);
  overflow:hidden;
}
.glass-panel::before{
  content:"";
  position:absolute;
  left:7%;
  right:7%;
  top:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.78),transparent);
  opacity:.8;
}
.glass-panel::after{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  border-radius:50%;
  right:-90px;
  bottom:-110px;
  background:radial-gradient(circle,rgba(121,219,255,.12),transparent 66%);
  pointer-events:none;
}
.glass-inner{
  position:relative;
  border:1px solid rgba(255,255,255,.34);
  background:
    linear-gradient(145deg,rgba(255,255,255,.155),rgba(255,255,255,.065) 55%,rgba(138,107,202,.05));
  box-shadow:
    0 18px 38px rgba(8,3,30,.16),
    inset 0 1px 0 rgba(255,255,255,.48),
    inset 0 -14px 32px rgba(68,37,123,.045);
  backdrop-filter:blur(20px) saturate(125%);
  -webkit-backdrop-filter:blur(20px) saturate(125%);
}
.panel-standard{
  display:flex;
  flex-direction:column;
}
.panel-square{
  width:100%;
  aspect-ratio:1 / 1;
  flex:none;
  border-radius:28px;
}
.panel-square::before,
.panel-circle::before{
  content:"";
  position:absolute;
  inset:12px;
  border-radius:inherit;
  border:1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 30% 24%,rgba(255,255,255,.18),transparent 28%),
    linear-gradient(135deg,rgba(255,137,220,.055),rgba(104,221,255,.04));
}
.panel-rows{
  margin-top:16px;
  display:grid;
  gap:12px;
  flex:1;
  grid-template-rows:repeat(4,minmax(58px,1fr));
}
.panel-row{
  width:100%;
  min-height:58px;
  border-radius:19px;
}
.panel-row:nth-child(odd){
  background:linear-gradient(145deg,rgba(255,255,255,.15),rgba(204,164,255,.065));
}
.panel-row:nth-child(even){
  background:linear-gradient(145deg,rgba(255,255,255,.135),rgba(104,221,255,.055));
}
.panel-puzzle{
  display:flex;
  flex-direction:column;
  align-items:center;
  overflow:visible;
}
.panel-circle{
  width:calc(100% - 18px);
  max-width:390px;
  aspect-ratio:1 / 1;
  flex:none;
  border-radius:50%;
}
.puzzle-grid{
  width:100%;
  flex:1;
  min-height:300px;
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(86px,1fr));
  gap:3px;
  padding:8px 10px 10px;
  overflow:visible;
}
.puzzle-piece{
  --piece-top:rgba(255,255,255,.16);
  --piece-bottom:rgba(185,151,239,.075);
  position:relative;
  z-index:1;
  min-height:86px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:20px;
  background:linear-gradient(145deg,var(--piece-top),var(--piece-bottom));
  box-shadow:
    0 13px 28px rgba(8,3,30,.13),
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -12px 26px rgba(70,35,130,.045);
  backdrop-filter:blur(19px) saturate(125%);
  -webkit-backdrop-filter:blur(19px) saturate(125%);
}
.puzzle-piece::before,
.puzzle-piece::after{
  content:"";
  position:absolute;
  width:30px;
  height:30px;
  border:1px solid rgba(255,255,255,.32);
  border-radius:50%;
  background:linear-gradient(145deg,var(--piece-top),var(--piece-bottom));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38);
}
.puzzle-piece.tab-right::before{
  right:-16px;
  top:50%;
  transform:translateY(-50%);
}
.puzzle-piece.socket-left::before{
  left:-16px;
  top:50%;
  transform:translateY(-50%);
  box-shadow:0 0 0 7px rgba(23,17,47,.42),inset 0 1px 0 rgba(255,255,255,.18);
  opacity:.76;
}
.puzzle-piece.tab-bottom::after{
  left:50%;
  bottom:-16px;
  transform:translateX(-50%);
}
.puzzle-piece.socket-top::after{
  left:50%;
  top:-16px;
  transform:translateX(-50%);
  box-shadow:0 0 0 7px rgba(23,17,47,.42),inset 0 1px 0 rgba(255,255,255,.18);
  opacity:.76;
}
.piece-a{--piece-top:rgba(255,255,255,.18);--piece-bottom:rgba(255,137,220,.075)}
.piece-b{--piece-top:rgba(255,255,255,.16);--piece-bottom:rgba(104,221,255,.07)}
.piece-c{--piece-top:rgba(255,255,255,.16);--piece-bottom:rgba(133,105,255,.08)}
.piece-d{--piece-top:rgba(255,255,255,.15);--piece-bottom:rgba(255,181,225,.07)}
.piece-e{--piece-top:rgba(255,255,255,.16);--piece-bottom:rgba(94,203,224,.07)}
.piece-f{--piece-top:rgba(255,255,255,.17);--piece-bottom:rgba(184,141,255,.08)}

@media (max-width:1500px){
  .site-shell{padding:10px 2.5vw 0}
  .slide-frame{width:95vw;height:calc(100vh - 20px)}
  .content-panels{padding:10px 2.5vw 60px}
  .panels-grid{width:95vw;gap:14px}
  .glass-panel{min-height:650px;padding:18px}
}
@media (max-width:1180px){
  .site-shell{padding:8px 2vw 0}
  .slide-frame{width:96vw;height:calc(100vh - 16px);min-height:580px}
  .content-panels{padding:10px 2vw 54px}
  .panels-grid{width:96vw;gap:12px}
  .glass-panel{min-height:590px;padding:15px;border-radius:27px}
  .panel-square{border-radius:23px}
  .panel-rows{gap:10px;margin-top:12px}
  .puzzle-grid{grid-template-rows:repeat(3,minmax(72px,1fr))}
}
@media (max-width:820px){
  .site-shell{padding:6px 1.5vw 0;min-height:0}
  .slide-frame{width:97vw;height:calc(100vh - 12px);min-height:520px}
  .content-panels{padding:9px 1.5vw 44px}
  .panels-grid{width:97vw;grid-template-columns:1fr;gap:12px}
  .glass-panel{min-height:auto;padding:16px}
  .panel-standard{min-height:650px}
  .panel-puzzle{min-height:710px}
  .panel-circle{max-width:360px}
}
@media (max-width:590px){
  .site-shell{padding:4px 1vw 0}
  .slide-frame{width:98vw;height:calc(100vh - 8px);min-height:480px}
  .content-panels{padding:8px 1vw 36px}
  .panels-grid{width:98vw;gap:10px}
  .glass-panel{padding:13px;border-radius:22px}
  .panel-standard{min-height:590px}
  .panel-puzzle{min-height:650px}
  .panel-square{border-radius:20px}
  .panel-row{border-radius:15px}
  .puzzle-grid{padding:8px 6px 8px;grid-template-rows:repeat(3,minmax(76px,1fr))}
  .puzzle-piece{border-radius:16px}
}

/* V07 — corrected slide crop, top-left controls and four-piece glass puzzle */
.site-shell{
  padding:12px 2vw 0;
  min-height:0;
  height:auto;
  align-items:flex-start;
}
.slide-frame{
  width:min(96vw,1916px);
  height:auto;
  min-height:0;
  max-height:none;
  aspect-ratio:1916 / 821;
  flex:none;
}
.site-background{
  background-position:var(--slider-x,50%) var(--slider-y,50%);
  transform-origin:var(--slider-x,50%) var(--slider-y,50%);
  will-change:transform,filter;
}
.slide-frame[data-morph="none"] .site-background{
  animation:none;
  transform:scale(var(--morph-scale,1));
}
.slide-frame[data-morph="drift"] .site-background{
  animation:slideMorphDrift var(--morph-speed,16s) cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
.slide-frame[data-morph="zoom"] .site-background{
  animation:slideMorphZoom var(--morph-speed,16s) ease-in-out infinite alternate;
}
.slide-frame[data-morph="float"] .site-background{
  animation:slideMorphFloat var(--morph-speed,16s) ease-in-out infinite alternate;
}
.slide-frame[data-morph="pulse"] .site-background{
  animation:slideMorphPulse var(--morph-speed,16s) ease-in-out infinite;
}
.slide-frame[data-morph]:not([data-morph="none"]) .motion-layer{
  animation:morphOverlayBreathe var(--morph-speed,16s) ease-in-out infinite alternate;
}
@keyframes slideMorphDrift{
  0%{transform:translate3d(var(--morph-shift-x-neg,-12px),var(--morph-shift-y,-7px),0) scale(var(--morph-scale,1.06));filter:saturate(1) brightness(1)}
  50%{filter:saturate(1.06) brightness(1.025)}
  100%{transform:translate3d(var(--morph-shift-x,12px),var(--morph-shift-y-neg,7px),0) scale(var(--morph-scale,1.06));filter:saturate(1.02) brightness(1.015)}
}
@keyframes slideMorphZoom{
  0%{transform:scale(1.01);filter:saturate(1)}
  100%{transform:scale(var(--morph-scale,1.07));filter:saturate(1.07) brightness(1.025)}
}
@keyframes slideMorphFloat{
  0%{transform:translate3d(0,var(--morph-shift-y,-7px),0) scale(var(--morph-scale,1.05)) rotate(-.12deg)}
  100%{transform:translate3d(var(--morph-shift-x,12px),var(--morph-shift-y-neg,7px),0) scale(var(--morph-scale,1.05)) rotate(.12deg)}
}
@keyframes slideMorphPulse{
  0%,100%{transform:scale(1.015);filter:saturate(1) brightness(1)}
  50%{transform:scale(var(--morph-scale,1.065));filter:saturate(1.08) brightness(1.035)}
}
@keyframes morphOverlayBreathe{
  0%{opacity:.78;transform:scale(.995)}
  100%{opacity:1;transform:scale(1.008)}
}

.top-left-tools{
  position:absolute;
  left:24px;
  top:96px;
  width:205px;
  display:grid;
  justify-items:start;
  gap:6px;
  pointer-events:auto;
  z-index:24;
}
.top-left-tools .language-toggle{
  position:relative;
  inset:auto;
  right:auto;
  top:auto;
  width:46px;
  height:46px;
  padding:4px;
}
.phone-chip,
.compact-booking{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:148px;
  height:32px;
  padding:0 13px;
  overflow:hidden;
  white-space:nowrap;
  border:1px solid rgba(255,255,255,.62);
  color:#fff;
  text-shadow:0 1px 8px rgba(34,12,76,.38);
  box-shadow:0 10px 24px rgba(31,13,75,.19),inset 0 1px 0 rgba(255,255,255,.68);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  transition:transform .25s ease,box-shadow .25s ease,filter .25s ease;
}
.phone-chip{
  border-radius:999px;
  background:linear-gradient(135deg,rgba(72,54,138,.74),rgba(90,157,205,.54));
  font-size:11px;
  font-weight:760;
  letter-spacing:.025em;
}
.phone-chip::before{
  content:"☎";
  margin-right:7px;
  font-size:12px;
  opacity:.9;
}
.compact-booking{
  width:158px;
  min-width:158px;
  height:34px;
  border-radius:12px;
  background:linear-gradient(105deg,#ff4caf,#9b6eff 62%,#58cfe8);
  border-color:rgba(255,231,249,.9);
  font-size:10.5px;
  font-weight:850;
  letter-spacing:.01em;
  box-shadow:0 11px 26px rgba(215,57,173,.30),0 0 22px rgba(255,83,186,.20),inset 0 1px 0 rgba(255,255,255,.75);
}
.phone-chip:hover,
.compact-booking:hover{
  transform:translateY(-2px);
  filter:saturate(1.08) brightness(1.04);
  box-shadow:0 15px 30px rgba(31,13,75,.27),0 0 24px rgba(104,221,255,.18),inset 0 1px 0 rgba(255,255,255,.82);
}

/* Keep left-side content clear of the new compact controls. */
.hero-copy{top:33%;}
.social-card{top:45%;}

/* The slide now ends at the natural image ratio; panels begin immediately below it. */
.content-panels{padding-top:7px;}
.panels-grid{gap:10px;}

.panel-puzzle-left{order:1;}
.panel-standard-center{order:2;}
.panel-standard-right{order:3;}
.puzzle-art{
  position:relative;
  width:100%;
  max-width:430px;
  min-height:320px;
  flex:1;
  margin:14px auto 0;
  display:grid;
  place-items:center;
  overflow:visible;
}
.puzzle-art::before{
  content:"";
  position:absolute;
  inset:10% 8%;
  border-radius:42%;
  background:radial-gradient(circle,rgba(255,255,255,.10),rgba(126,99,217,.035) 52%,transparent 74%);
  filter:blur(18px);
  pointer-events:none;
}
.puzzle-art svg{
  position:relative;
  z-index:1;
  width:100%;
  height:auto;
  overflow:visible;
  filter:drop-shadow(0 22px 34px rgba(7,3,28,.20));
}
.puzzle-piece-svg{
  transform-box:fill-box;
  transform-origin:center;
}
.puzzle-a{animation:puzzleFloatA 8s ease-in-out infinite alternate;}
.puzzle-b{animation:puzzleFloatB 8.8s ease-in-out .4s infinite alternate;}
.puzzle-c{animation:puzzleFloatC 9.2s ease-in-out .8s infinite alternate;}
.puzzle-d{animation:puzzleFloatD 8.4s ease-in-out 1.1s infinite alternate;}
@keyframes puzzleFloatA{to{transform:translate(-2px,-4px) rotate(-.5deg)}}
@keyframes puzzleFloatB{to{transform:translate(3px,-3px) rotate(.55deg)}}
@keyframes puzzleFloatC{to{transform:translate(-3px,3px) rotate(.45deg)}}
@keyframes puzzleFloatD{to{transform:translate(3px,4px) rotate(-.45deg)}}

@media (max-width:1500px){
  .site-shell{padding:10px 1.8vw 0;}
  .slide-frame{width:96.4vw;height:auto;min-height:0;aspect-ratio:1916/821;}
  .top-left-tools{left:19px;top:86px;width:185px;}
  .top-left-tools .language-toggle{width:42px;height:42px;}
  .phone-chip{min-width:138px;height:30px;font-size:10px;}
  .compact-booking{width:148px;min-width:148px;height:32px;font-size:10px;}
  .hero-copy{top:32%;}
  .social-card{top:44%;}
  .content-panels{padding:7px 1.8vw 60px;}
  .panels-grid{width:96.4vw;gap:9px;}
}
@media (max-width:1180px){
  .slide-frame{width:97vw;height:auto;min-height:0;aspect-ratio:1916/821;}
  .top-left-tools{left:14px;top:74px;gap:4px;}
  .phone-chip{min-width:128px;height:28px;font-size:9px;}
  .compact-booking{width:138px;min-width:138px;height:30px;font-size:9px;}
  .hero-copy{top:34%;}
  .social-card{top:48%;}
  .content-panels{padding-top:6px;}
  .panels-grid{width:97vw;gap:8px;}
}
@media (max-width:820px){
  .site-shell{padding:6px 1.5vw 0;}
  .slide-frame{width:97vw;height:78vh;min-height:520px;aspect-ratio:auto;}
  .top-left-tools{left:8px;top:65px;width:135px;}
  .top-left-tools .language-toggle{width:38px;height:38px;}
  .phone-chip{min-width:112px;height:26px;padding:0 8px;font-size:8px;}
  .compact-booking{width:120px;min-width:120px;height:28px;padding:0 8px;font-size:8px;}
  .hero-copy{top:30%;}
  .social-card{top:49%;}
  .panels-grid{grid-template-columns:1fr;}
  .panel-puzzle-left{order:1;}
  .panel-standard-center{order:2;}
  .panel-standard-right{order:3;}
}
@media (max-width:590px){
  .slide-frame{width:98vw;height:82vh;min-height:500px;aspect-ratio:auto;}
  .top-left-tools{top:58px;left:7px;}
  .phone-chip{display:none;}
  .compact-booking{width:112px;min-width:112px;height:27px;font-size:7.5px;}
  .hero-copy{top:27%;}
  .social-card{top:47%;}
  .puzzle-art{min-height:280px;}
}

/* V09 — right-side language/contact controls, global avatar sizing and adaptive menu */
:root{
  --menu-scale:1;
  --avatar-size:44px;
}

.menu-bar{
  width:max-content;
  max-width:none;
  overflow:visible;
  transform:translateX(-50%) scale(var(--menu-scale));
  transform-origin:top center;
  flex-wrap:nowrap;
  transition:transform .22s ease,width .22s ease;
}
.menu-item{
  flex:0 0 auto;
}

.top-right-tools{
  position:absolute;
  right:22px;
  top:14px;
  width:190px;
  display:grid;
  justify-items:end;
  gap:5px;
  pointer-events:auto;
  z-index:24;
}
.top-right-tools .language-toggle{
  position:relative;
  inset:auto;
  width:48px;
  height:48px;
  padding:4px;
  justify-self:end;
}
.phone-chip{
  min-width:0 !important;
  width:auto !important;
  height:auto !important;
  padding:2px 1px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  color:#fff6dc;
  text-shadow:0 2px 8px rgba(25,8,63,.9),0 0 10px rgba(255,246,220,.22);
  font-size:12px;
  font-weight:800;
  letter-spacing:.025em;
  justify-content:flex-end;
}
.phone-chip::before{
  margin-right:6px;
  color:#fff0ba;
  text-shadow:0 1px 7px rgba(25,8,63,.95);
}
.compact-booking{
  width:158px;
  min-width:158px;
  height:34px;
  border-radius:12px;
  color:#fff;
  background:linear-gradient(110deg,#ff9a2f,#ff6f18 58%,#ffb347);
  border-color:rgba(255,224,177,.95);
  box-shadow:0 11px 27px rgba(173,66,7,.34),0 0 20px rgba(255,139,37,.25),inset 0 1px 0 rgba(255,255,255,.78) !important;
}
.compact-booking:hover{
  box-shadow:0 15px 32px rgba(173,66,7,.44),0 0 26px rgba(255,139,37,.32),inset 0 1px 0 rgba(255,255,255,.86) !important;
}

.avatar-window{
  height:calc(var(--avatar-size) + 10px) !important;
}
.avatar-track{
  height:calc(var(--avatar-size) + 2px) !important;
}
.avatar-item{
  width:var(--avatar-size) !important;
  height:var(--avatar-size) !important;
}

@media (max-width:1500px){
  .top-right-tools{right:18px;top:12px;width:178px;}
  .top-right-tools .language-toggle{width:44px;height:44px;}
  .phone-chip{font-size:10.5px;}
  .compact-booking{width:148px;min-width:148px;height:32px;font-size:10px;}
}
@media (max-width:1180px){
  .top-right-tools{right:12px;top:10px;width:164px;gap:4px;}
  .top-right-tools .language-toggle{width:41px;height:41px;}
  .phone-chip{font-size:9.5px;}
  .compact-booking{width:138px;min-width:138px;height:30px;font-size:9px;}
}
@media (max-width:820px){
  .top-right-tools{right:8px;top:7px;width:142px;}
  .top-right-tools .language-toggle{width:38px;height:38px;}
  .phone-chip{font-size:8.5px;}
  .compact-booking{width:120px;min-width:120px;height:28px;font-size:8px;}
}
@media (max-width:590px){
  .top-right-tools{right:6px;top:6px;width:126px;}
  .top-right-tools .language-toggle{width:36px;height:36px;}
  .phone-chip{display:flex;font-size:7.5px;}
  .compact-booking{width:112px;min-width:112px;height:27px;font-size:7.5px;}
}

/* V11 — top contact group moved left of language button; all right action buttons joined */
.top-right-tools{
  width:224px;
  display:grid;
  grid-template-columns:minmax(0,158px) 48px;
  grid-template-rows:auto auto;
  column-gap:8px;
  row-gap:4px;
  align-items:center;
  justify-items:stretch;
  direction:ltr;
}
.top-right-tools .language-toggle{
  grid-column:2;
  grid-row:1 / span 2;
  align-self:start;
  justify-self:end;
}
.top-right-tools .phone-chip{
  grid-column:1;
  grid-row:1;
  justify-self:end;
  align-self:end;
  max-width:158px;
  text-align:right;
}
.top-right-tools .compact-booking{
  grid-column:1;
  grid-row:2;
  justify-self:end;
  align-self:start;
}

.right-actions{
  gap:0 !important;
}
.right-actions .action-link{
  margin:0 !important;
}
.right-actions .action-link.top{
  border-radius:23px 23px 0 0 !important;
  border-bottom-color:rgba(255,255,255,.20) !important;
}
.right-actions .action-link.middle.first,
.right-actions .action-link.middle.second{
  border-radius:0 !important;
  border-top-color:rgba(255,255,255,.20) !important;
  border-bottom-color:rgba(255,255,255,.20) !important;
}
.right-actions .action-link.bottom{
  border-radius:0 0 23px 23px !important;
  border-top-color:rgba(255,255,255,.20) !important;
}
.right-actions .action-link + .action-link{
  margin-top:-1px !important;
}

@media (max-width:1500px){
  .top-right-tools{
    width:210px;
    grid-template-columns:minmax(0,148px) 44px;
    column-gap:7px;
  }
}
@media (max-width:1180px){
  .top-right-tools{
    width:192px;
    grid-template-columns:minmax(0,138px) 41px;
    column-gap:6px;
  }
}
@media (max-width:820px){
  .top-right-tools{
    width:166px;
    grid-template-columns:minmax(0,120px) 38px;
    column-gap:5px;
  }
}
@media (max-width:590px){
  .top-right-tools{
    width:153px;
    grid-template-columns:minmax(0,112px) 36px;
    column-gap:5px;
  }
}

/* V12 — final right action corner geometry
   Top and bottom buttons keep all four corners rounded.
   The two middle buttons form one joined rectangle: only their outer corners are rounded. */
.right-actions{
  gap:0 !important;
}
.right-actions .action-link{
  margin:0 !important;
}
.right-actions .action-link.top{
  border-radius:23px !important;
  border-bottom-color:rgba(255,255,255,.20) !important;
}
.right-actions .action-link.middle.first{
  border-radius:21px 21px 0 0 !important;
  border-top-color:rgba(255,255,255,.20) !important;
  border-bottom-color:rgba(255,255,255,.18) !important;
}
.right-actions .action-link.middle.second{
  border-radius:0 0 21px 21px !important;
  border-top-color:rgba(255,255,255,.18) !important;
  border-bottom-color:rgba(255,255,255,.20) !important;
}
.right-actions .action-link.bottom{
  border-radius:23px !important;
  border-top-color:rgba(255,255,255,.20) !important;
}
.right-actions .action-link + .action-link{
  margin-top:-1px !important;
}

/* V13 — Excel-driven doctors carousel in the right panel below the home slide */
.doctor-panel{
  --doctor-row-height:92px;
  --doctor-row-gap:11px;
  min-height:930px;
  overflow:hidden;
}
.doctor-detail-shell{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 46px;
  gap:10px;
  align-items:center;
  flex:none;
}
.doctor-detail{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  border-radius:28px;
  padding:24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  overflow:hidden;
  isolation:isolate;
  transition:background .55s ease,border-color .55s ease,box-shadow .55s ease;
}
.doctor-detail::before{
  content:"";
  position:absolute;
  inset:-30% 12% auto;
  height:68%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.26),rgba(124,225,255,.10) 42%,transparent 70%);
  filter:blur(12px);
  pointer-events:none;
  z-index:-1;
}
.doctor-detail-photo-wrap{
  position:relative;
  width:34%;
  min-width:105px;
  max-width:160px;
  aspect-ratio:1;
  border-radius:50%;
  padding:6px;
  background:linear-gradient(145deg,rgba(255,255,255,.90),rgba(135,224,255,.52),rgba(244,130,223,.52));
  box-shadow:0 18px 34px rgba(11,4,41,.26),0 0 30px rgba(145,218,255,.22),inset 0 1px 0 rgba(255,255,255,.92);
  flex:none;
}
.doctor-detail-photo-wrap::after{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.34);
  animation:doctorHalo 4.8s ease-in-out infinite;
}
@keyframes doctorHalo{50%{transform:scale(1.045);opacity:.52}}
.doctor-detail-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.88);
  background:#d9c8fa;
}
.doctor-detail-content{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  min-width:0;
}
.doctor-detail-name{
  margin:0;
  max-width:100%;
  color:#fff;
  font-size:clamp(20px,1.55vw,30px);
  line-height:1.22;
  text-shadow:0 4px 15px rgba(20,8,60,.36);
}
.doctor-detail-specialty{
  margin-top:5px;
  color:rgba(245,240,255,.88);
  font-size:clamp(12px,.9vw,16px);
  font-weight:750;
}
.doctor-detail-meta{
  width:100%;
  margin:15px 0 0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.doctor-detail-meta div{
  min-width:0;
  padding:9px 8px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:14px;
  background:rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30);
}
.doctor-detail-meta dt{
  color:rgba(246,239,255,.72);
  font-size:10px;
  font-weight:700;
}
.doctor-detail-meta dd{
  margin:4px 0 0;
  color:#fff;
  font-size:11px;
  font-weight:850;
  line-height:1.35;
}
.doctor-detail-actions{
  width:100%;
  margin-top:13px;
  display:flex;
  justify-content:center;
  gap:8px;
  direction:ltr;
}
.doctor-detail-button{
  min-width:108px;
  height:38px;
  padding:0 15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.65);
  border-radius:13px;
  color:#fff;
  font-size:11px;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 11px 22px rgba(14,6,47,.20),inset 0 1px 0 rgba(255,255,255,.46);
  transition:transform .24s ease,filter .24s ease,box-shadow .24s ease;
}
.doctor-detail-button.details{background:linear-gradient(135deg,rgba(105,79,200,.88),rgba(141,107,229,.72));}
.doctor-detail-button.booking{background:linear-gradient(135deg,#ff8a2b,#ff5e64);}
.doctor-detail-button:hover{transform:translateY(-2px);filter:brightness(1.07);box-shadow:0 15px 28px rgba(14,6,47,.28),0 0 22px rgba(255,255,255,.13);}
.doctor-scroll-control{
  width:46px;
  min-height:150px;
  padding:7px 5px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:23px;
  background:linear-gradient(160deg,rgba(255,255,255,.18),rgba(139,103,218,.12));
  box-shadow:0 16px 32px rgba(7,3,28,.20),inset 0 1px 0 rgba(255,255,255,.50);
  backdrop-filter:blur(17px);
  outline:none;
  cursor:ns-resize;
}
.doctor-scroll-control:focus-visible{box-shadow:0 0 0 3px rgba(119,224,255,.30),0 16px 32px rgba(7,3,28,.20);}
.doctor-scroll-arrow{
  width:30px;
  height:27px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:10px;
  color:#fff;
  background:rgba(255,255,255,.10);
  font-size:17px;
  line-height:1;
  cursor:pointer;
}
.doctor-scroll-arrow:hover{background:rgba(255,255,255,.22);}
.doctor-mouse{
  position:relative;
  width:29px;
  height:54px;
  border:2px solid rgba(255,255,255,.80);
  border-radius:17px;
  background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(95,207,229,.08));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.40),0 0 18px rgba(126,218,255,.12);
}
.doctor-mouse::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:1px;
  background:linear-gradient(transparent,rgba(255,255,255,.30) 30%,rgba(255,255,255,.30) 70%,transparent);
}
.doctor-wheel{
  position:absolute;
  left:50%;
  top:9px;
  width:7px;
  height:17px;
  border-radius:6px;
  transform:translateX(-50%);
  background:linear-gradient(180deg,#ff8b47,#ff5f81);
  box-shadow:0 0 11px rgba(255,104,126,.60);
  transition:transform .24s ease;
}
.doctor-scroll-control.scrolling-up .doctor-wheel{transform:translate(-50%,-4px);}
.doctor-scroll-control.scrolling-down .doctor-wheel{transform:translate(-50%,4px);}
.doctor-list-shell{
  position:relative;
  margin-top:14px;
  height:calc(var(--doctor-row-height) * 4 + var(--doctor-row-gap) * 3);
  flex:none;
  border-radius:23px;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(87,54,145,.055));
}
.doctor-list-shell::before,
.doctor-list-shell::after{
  content:"";
  position:absolute;
  z-index:5;
  left:0;
  right:0;
  height:30px;
  pointer-events:none;
}
.doctor-list-shell::before{top:0;background:linear-gradient(to bottom,rgba(40,24,78,.22),transparent);}
.doctor-list-shell::after{bottom:0;background:linear-gradient(to top,rgba(40,24,78,.26),transparent);}
.doctor-list-viewport{
  position:absolute;
  inset:0;
  overflow:hidden;
  border-radius:23px;
}
.doctor-list-track{
  position:absolute;
  left:0;
  right:0;
  top:0;
  display:flex;
  flex-direction:column;
  gap:var(--doctor-row-gap);
  will-change:transform;
  transition:transform .92s cubic-bezier(.22,.78,.22,1);
}
.doctor-row{
  position:relative;
  width:100%;
  height:var(--doctor-row-height);
  min-height:var(--doctor-row-height);
  display:grid;
  grid-template-columns:minmax(0,1fr) 76px;
  align-items:center;
  gap:12px;
  padding:9px 14px 9px 18px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:21px;
  background:linear-gradient(145deg,rgba(255,255,255,.17),rgba(157,118,220,.085));
  box-shadow:0 12px 25px rgba(8,3,31,.13),inset 0 1px 0 rgba(255,255,255,.37);
  overflow:hidden;
  opacity:.78;
  transition:opacity .55s ease,filter .55s ease;
}
.doctor-row:nth-child(even){background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(88,205,226,.075));}
.doctor-row.is-selected{opacity:1;filter:saturate(1.12) brightness(1.04);}
.doctor-row-photo{
  grid-column:2;
  width:68px;
  height:68px;
  border-radius:50%;
  object-fit:cover;
  object-position:center top;
  border:2px solid rgba(255,255,255,.92);
  background:#d7c7f7;
  box-shadow:0 8px 16px rgba(15,7,49,.22);
}
.doctor-row-info{
  grid-column:1;
  min-width:0;
  text-align:left;
  direction:ltr;
}
.doctor-row-info.is-fa{direction:rtl;text-align:right;}
.doctor-row-name{
  display:block;
  color:#fff;
  font-size:14.5px;
  font-weight:900;
  line-height:1.25;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.doctor-row-specialty{
  display:block;
  margin-top:5px;
  color:rgba(244,238,255,.82);
  font-size:11.5px;
  font-weight:700;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.doctor-selection-frame{
  position:absolute;
  z-index:6;
  left:0;
  right:0;
  top:0;
  height:var(--doctor-row-height);
  border:2px solid rgba(255,112,137,.94);
  border-radius:19px;
  background:linear-gradient(105deg,rgba(255,91,124,.20),rgba(255,133,80,.07));
  box-shadow:0 0 0 1px rgba(255,255,255,.13),0 0 25px rgba(255,91,124,.20),inset 0 1px 0 rgba(255,255,255,.30);
  pointer-events:none;
}
.doctor-detail.is-changing .doctor-detail-photo,
.doctor-detail.is-changing .doctor-detail-content{animation:doctorDetailSwap .52s ease;}
@keyframes doctorDetailSwap{
  0%{opacity:.45;transform:translateY(7px) scale(.985)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}
@media(max-width:1500px){
  .doctor-panel{--doctor-row-height:84px;min-height:900px;}
  .doctor-detail{padding:18px;gap:10px;}
  .doctor-detail-photo-wrap{min-width:88px;max-width:130px;}
  .doctor-detail-meta{margin-top:10px;gap:6px;}
  .doctor-detail-actions{margin-top:9px;}
 .doctor-row-photo{width:62px;height:62px;}
  .doctor-row{grid-template-columns:minmax(0,1fr) 68px;}
}
@media(max-width:1180px){
  .doctor-panel{--doctor-row-height:78px;min-height:835px;}
  .doctor-detail{padding:14px;border-radius:23px;}
  .doctor-detail-photo-wrap{min-width:75px;max-width:105px;padding:4px;}
  .doctor-detail-name{font-size:18px;}
  .doctor-detail-meta dd{font-size:9px;}
  .doctor-detail-button{min-width:88px;height:33px;padding:0 9px;font-size:9px;}
 .doctor-row-photo{width:56px;height:56px;}
  .doctor-row{grid-template-columns:minmax(0,1fr) 62px;padding-left:12px;}
}
@media(max-width:820px){
  .doctor-panel{--doctor-row-height:82px;min-height:940px;}
  .doctor-detail-shell{grid-template-columns:minmax(0,1fr) 42px;}
  .doctor-scroll-control{width:42px;}
  .doctor-detail-photo-wrap{min-width:104px;max-width:145px;}
  .doctor-detail-name{font-size:24px;}
  .doctor-detail-meta dd{font-size:11px;}
  .doctor-detail-button{min-width:108px;height:38px;font-size:10px;}
}
@media(max-width:590px){
  .doctor-panel{--doctor-row-height:76px;min-height:850px;}
  .doctor-detail-shell{grid-template-columns:minmax(0,1fr) 38px;gap:7px;}
  .doctor-scroll-control{width:38px;padding:6px 3px;}
  .doctor-scroll-arrow{width:27px;}
  .doctor-detail{padding:12px;}
  .doctor-detail-photo-wrap{min-width:82px;max-width:105px;}
  .doctor-detail-name{font-size:18px;}
  .doctor-detail-meta{grid-template-columns:1fr;gap:5px;margin-top:8px;}
  .doctor-detail-meta div{padding:6px;}
  .doctor-detail-actions{gap:5px;}
  .doctor-detail-button{min-width:83px;height:32px;padding:0 6px;font-size:8.5px;}
  .doctor-row{grid-template-columns:minmax(0,1fr) 56px;gap:9px;padding:7px 9px 7px 11px;}
 .doctor-row-photo{width:50px;height:50px;}
  .doctor-row-name{font-size:12px;}
  .doctor-row-specialty{font-size:9.5px;}
}


/* V15 — doctor card refinement + scientific articles carousel */
.doctor-detail{
  aspect-ratio:auto;
  min-height:280px;
  border-radius:28px;
  padding:18px 20px;
  display:grid;
  grid-template-columns:132px minmax(0,1fr);
  align-items:center;
  gap:18px;
  border-width:2px;
}
.doctor-detail-photo-wrap{width:132px;min-width:132px;max-width:132px;padding:5px;}
.doctor-detail-content{align-items:flex-start;text-align:right;}
.doctor-detail-heading-line{
  width:100%;display:flex;flex-direction:row-reverse;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px 10px;
}
.doctor-detail-name,.doctor-detail-specialty{margin:0;line-height:1.22;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.doctor-detail-name{font-size:clamp(20px,1.45vw,32px);font-weight:900;}
.doctor-detail-separator{color:rgba(255,255,255,.92);font-size:20px;font-weight:900;line-height:1;}
.doctor-detail-specialty{font-size:clamp(14px,.98vw,18px);font-weight:800;color:#ffd03b;}
.doctor-detail-meta{margin-top:12px;grid-template-columns:1fr;gap:8px;}
.doctor-detail-meta div{padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.08);}
.doctor-detail-meta dt,.doctor-detail-meta dd{text-align:right;}
.doctor-detail-actions{margin-top:12px;justify-content:flex-start;}
.doctor-detail-button{min-width:122px;height:40px;border-radius:15px;font-size:12px;font-weight:900;}
.doctor-detail-button.details{background:linear-gradient(135deg,#7a45f4,#a45cff);}
.doctor-detail-button.booking{background:linear-gradient(135deg,#ff9b2b,#ff7a24);}
.doctor-scroll-control,.article-scroll-control{
  width:52px;min-height:168px;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  border:none;background:transparent;box-shadow:none;backdrop-filter:none;cursor:ns-resize;
}
.doctor-scroll-arrow,.article-scroll-arrow{
  width:36px;height:28px;border:none;background:transparent;position:relative;box-shadow:none;border-radius:0;
}
.doctor-scroll-arrow::before,.article-scroll-arrow::before{
  content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;border-right:5px solid rgba(255,255,255,.98);border-bottom:5px solid rgba(255,255,255,.98);
  transform-origin:center;filter:drop-shadow(0 0 10px rgba(255,255,255,.22));
}
.doctor-scroll-arrow.up::before,.article-scroll-arrow.up::before{transform:translate(-50%,-35%) rotate(225deg);}
.doctor-scroll-arrow.down::before,.article-scroll-arrow.down::before{transform:translate(-50%,-65%) rotate(45deg);}
.doctor-scroll-arrow:hover::before,.article-scroll-arrow:hover::before{filter:drop-shadow(0 0 12px rgba(148,234,255,.46));}
.doctor-mouse,.article-mouse{
  position:relative;width:34px;height:62px;border:2px solid rgba(255,255,255,.92);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(159,126,233,.10));box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 10px 22px rgba(13,6,44,.18);
}
.doctor-mouse::before,.article-mouse::before{content:"";position:absolute;left:50%;top:6px;bottom:6px;width:1px;background:linear-gradient(transparent,rgba(255,255,255,.54) 24%,rgba(255,255,255,.54) 76%,transparent);}
.doctor-wheel,.article-wheel{position:absolute;left:50%;top:11px;width:8px;height:18px;border-radius:10px;transform:translateX(-50%);background:linear-gradient(180deg,#f5d3ff,#af8cff);box-shadow:0 0 12px rgba(188,142,255,.45);transition:transform .24s ease;}
.doctor-scroll-control.scrolling-up .doctor-wheel,.article-scroll-control.scrolling-up .article-wheel{transform:translate(-50%,-4px);}
.doctor-scroll-control.scrolling-down .doctor-wheel,.article-scroll-control.scrolling-down .article-wheel{transform:translate(-50%,4px);}
.doctor-list-shell{margin-top:16px;height:calc(var(--doctor-row-height) * 4 + var(--doctor-row-gap) * 3 + 10px);}
.doctor-selection-frame{top:calc(var(--doctor-row-height) + var(--doctor-row-gap));height:var(--doctor-row-height);border-color:rgba(77,225,117,.98);background:linear-gradient(105deg,rgba(57,211,109,.22),rgba(111,255,159,.08));box-shadow:0 0 0 1px rgba(255,255,255,.13),0 0 25px rgba(61,215,112,.22),inset 0 1px 0 rgba(255,255,255,.3);}
.doctor-row{height:104px;min-height:104px;grid-template-columns:minmax(0,1fr) 86px;gap:12px;padding:10px 14px 10px 18px;border-radius:24px;}
.doctor-row-photo{width:78px;height:78px;}
.doctor-row-info{display:flex;flex-direction:row-reverse;align-items:center;justify-content:flex-start;gap:10px;white-space:nowrap;overflow:hidden;}
.doctor-row-name,.doctor-row-specialty{display:inline-block;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.doctor-row-name{font-size:14px;max-width:54%;}
.doctor-row-specialty{font-size:12px;color:#ffd03b;max-width:36%;}
.doctor-row-info::between{content:"|";}
.doctor-row-info::before{content:"|";order:2;color:rgba(255,255,255,.68);font-weight:800;display:none;}
.doctor-row-info > .doctor-row-name{order:3;}
.doctor-row-info > .doctor-row-specialty{order:1;}
.doctor-row-info{direction:rtl;}
.doctor-row-info .doctor-row-name::before{content:"|";color:rgba(255,255,255,.7);margin:0 10px 0 0;display:inline-block;}
.article-panel{--article-row-height:84px;--article-row-gap:11px;min-height:930px;overflow:hidden;}
.article-detail-shell{display:grid;grid-template-columns:minmax(0,1fr) 52px;gap:10px;align-items:center;}
.article-detail{position:relative;min-height:360px;border-radius:28px;padding:18px;display:flex;flex-direction:column;gap:14px;cursor:pointer;transition:transform .24s ease,box-shadow .24s ease,background .55s ease,border-color .55s ease;}
.article-detail:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(8,3,31,.24),0 0 30px rgba(80,225,116,.12),inset 0 1px 0 rgba(255,255,255,.48);}
.article-detail-image-wrap{width:100%;height:198px;border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.35);box-shadow:0 14px 30px rgba(11,4,41,.18);background:rgba(255,255,255,.08);}
.article-detail-image{width:100%;height:100%;object-fit:cover;display:block;}
.article-detail-content{display:flex;flex-direction:column;align-items:flex-start;text-align:right;gap:10px;}
.article-detail-label{padding:6px 12px;border-radius:999px;background:linear-gradient(135deg,rgba(66,217,119,.24),rgba(66,217,119,.1));border:1px solid rgba(136,255,170,.44);color:#e5ffe6;font-size:11px;font-weight:800;letter-spacing:.02em;}
.article-detail-title{margin:0;color:#fff;font-size:clamp(21px,1.45vw,30px);line-height:1.35;}
.article-detail-excerpt{margin:0;color:rgba(246,239,255,.86);font-size:13px;line-height:1.9;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;}
.article-list-shell{position:relative;margin-top:16px;height:calc(var(--article-row-height) * 4 + var(--article-row-gap) * 3 + 10px);border-radius:24px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(87,54,145,.055));}
.article-list-shell::before,.article-list-shell::after{content:"";position:absolute;z-index:5;left:0;right:0;height:30px;pointer-events:none;}
.article-list-shell::before{top:0;background:linear-gradient(to bottom,rgba(40,24,78,.22),transparent);} .article-list-shell::after{bottom:0;background:linear-gradient(to top,rgba(40,24,78,.26),transparent);} 
.article-list-viewport{position:absolute;inset:0;overflow:hidden;border-radius:24px;}
.article-list-track{position:absolute;left:0;right:0;top:0;display:flex;flex-direction:column;gap:var(--article-row-gap);transition:transform .92s cubic-bezier(.22,.78,.22,1);will-change:transform;}
.article-row{position:relative;height:var(--article-row-height);min-height:var(--article-row-height);display:grid;grid-template-columns:minmax(0,1fr) 70px;align-items:center;gap:12px;padding:9px 14px 9px 16px;border:1px solid rgba(255,255,255,.28);border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.16),rgba(101,196,140,.08));box-shadow:0 12px 25px rgba(8,3,31,.12),inset 0 1px 0 rgba(255,255,255,.37);overflow:hidden;opacity:.78;transition:opacity .55s ease,filter .55s ease;cursor:pointer;}
.article-row:nth-child(even){background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(87,54,145,.08));}
.article-row.is-selected{opacity:1;filter:saturate(1.12) brightness(1.05);}
.article-row-thumb{grid-column:2;width:62px;height:62px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.92);background:#e0d8ff;box-shadow:0 8px 16px rgba(15,7,49,.22);}
.article-row-info{grid-column:1;min-width:0;text-align:right;direction:rtl;}
.article-row-title{display:block;color:#fff;font-size:13.5px;font-weight:900;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.article-row-snippet{display:block;margin-top:6px;color:rgba(244,238,255,.82);font-size:11px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.article-selection-frame{position:absolute;z-index:6;left:0;right:0;top:calc(var(--article-row-height) + var(--article-row-gap));height:var(--article-row-height);border:2px solid rgba(77,225,117,.96);border-radius:20px;background:linear-gradient(105deg,rgba(57,211,109,.18),rgba(111,255,159,.05));box-shadow:0 0 0 1px rgba(255,255,255,.13),0 0 25px rgba(61,215,112,.18),inset 0 1px 0 rgba(255,255,255,.30);pointer-events:none;}
.article-modal[hidden]{display:none;}
.article-modal{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:24px;}
.article-modal-backdrop{position:absolute;inset:0;background:rgba(8,4,24,.74);backdrop-filter:blur(10px);}
.article-modal-dialog{position:relative;z-index:1;width:min(820px,92vw);max-height:min(88vh,900px);overflow:auto;padding:20px 20px 24px;border-radius:28px;border:1px solid rgba(255,255,255,.36);background:linear-gradient(145deg,rgba(36,21,77,.92),rgba(67,43,121,.92));box-shadow:0 28px 80px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.38);color:#fff;}
.article-modal-close{position:absolute;top:14px;left:14px;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.12);color:#fff;font-size:26px;line-height:1;cursor:pointer;}
.article-modal-image{width:100%;max-height:300px;object-fit:cover;border-radius:20px;border:1px solid rgba(255,255,255,.28);}
.article-modal-title{margin:18px 0 10px;font-size:28px;line-height:1.4;}
.article-modal-body{font-size:15px;line-height:2;color:rgba(251,247,255,.9);white-space:pre-line;}
@media (max-width: 980px){
  .doctor-detail{grid-template-columns:1fr;justify-items:center;text-align:center;}
  .doctor-detail-content{align-items:center;text-align:center;}
  .doctor-detail-heading-line{justify-content:center;}
  .doctor-detail-actions{justify-content:center;}
  .doctor-row{grid-template-columns:minmax(0,1fr) 74px;height:96px;min-height:96px;}
  .article-detail{min-height:330px;}
}

.doctor-row-separator{color:rgba(255,255,255,.72);font-size:13px;font-weight:900;line-height:1;}
.doctor-row-name::before{content:none !important;}
.doctor-row-info > .doctor-row-name,.doctor-row-info > .doctor-row-specialty,.doctor-row-info > .doctor-row-separator{order:0 !important;}


/* V16 — doctor detail card matched closer to reference sample */
.doctor-detail{
  min-height:230px;
  padding:18px 18px 16px;
  grid-template-columns:150px minmax(0,1fr);
  gap:16px;
  align-items:center;
  border-radius:26px;
  border:2px solid rgba(231,188,255,.95);
  background:linear-gradient(145deg,rgba(88,60,198,.92),rgba(83,52,190,.82) 54%,rgba(71,44,172,.88));
  box-shadow:0 18px 38px rgba(17,7,55,.34),0 0 28px rgba(233,145,255,.22),inset 0 1px 0 rgba(255,255,255,.36);
}
.doctor-detail::before{
  inset:auto auto -24px -10px;
  width:180px;
  height:120px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.16),rgba(255,255,255,0) 72%);
  filter:blur(12px);
}
.doctor-detail-photo-wrap{
  width:150px;
  min-width:150px;
  max-width:150px;
  height:190px;
  aspect-ratio:auto;
  border-radius:22px;
  padding:5px;
  background:linear-gradient(145deg,rgba(255,255,255,.35),rgba(165,227,255,.18),rgba(255,170,235,.18));
  box-shadow:0 14px 28px rgba(7,2,29,.28),inset 0 1px 0 rgba(255,255,255,.64);
  overflow:hidden;
}
.doctor-detail-photo-wrap::after{
  inset:-4px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.28);
}
.doctor-detail-photo{
  width:100%;
  height:100%;
  border-radius:18px;
  border:2px solid rgba(255,255,255,.86);
  object-fit:cover;
  object-position:center top;
}
.doctor-detail-content{
  align-items:flex-end;
  text-align:right;
  justify-content:center;
}
.doctor-detail-heading-line{
  justify-content:flex-start;
  flex-direction:row-reverse;
  gap:6px 9px;
  margin-bottom:2px;
}
.doctor-detail-name{
  font-size:clamp(24px,1.7vw,34px);
  font-weight:900;
  color:#ffffff;
  text-shadow:0 3px 10px rgba(10,4,36,.32);
}
.doctor-detail-specialty{
  font-size:clamp(15px,1vw,19px);
  font-weight:900;
  color:#ffd34f;
  text-shadow:0 2px 10px rgba(0,0,0,.18);
}
.doctor-detail-separator{
  color:rgba(255,255,255,.88);
  font-size:19px;
  font-weight:900;
}
.doctor-detail-meta{
  margin-top:10px;
  gap:6px;
}
.doctor-detail-meta div{
  padding:4px 0;
  background:transparent;
  border:none;
  box-shadow:none;
  border-radius:0;
}
.doctor-detail-meta dt{
  display:inline;
  margin:0;
  color:#ffffff;
  font-size:12px;
  font-weight:900;
}
.doctor-detail-meta dt::after{content:": ";}
.doctor-detail-meta dd{
  display:inline;
  margin:0;
  color:#f6f0ff;
  font-size:12.5px;
  font-weight:800;
  line-height:1.7;
}
.doctor-detail-actions{
  width:100%;
  margin-top:14px;
  justify-content:center;
  align-items:center;
  gap:10px;
}
.doctor-detail-button{
  min-width:118px;
  height:39px;
  border-radius:15px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 10px 22px rgba(14,6,47,.18),inset 0 1px 0 rgba(255,255,255,.4);
}
.doctor-detail-button.details{
  background:linear-gradient(135deg,#6f33f2,#9e54ff);
}
.doctor-detail-button.booking{
  background:linear-gradient(135deg,#ff9c2d,#ff7424);
}
.doctor-list-shell{
  margin-top:15px;
}
.doctor-selection-frame{
  top:0;
  height:var(--doctor-row-height);
  border-color:rgba(255,83,120,.98);
  background:linear-gradient(105deg,rgba(255,83,120,.20),rgba(255,142,89,.08));
  box-shadow:0 0 0 1px rgba(255,255,255,.13),0 0 24px rgba(255,83,120,.18),inset 0 1px 0 rgba(255,255,255,.30);
}
.doctor-row{
  height:96px;
  min-height:96px;
  grid-template-columns:minmax(0,1fr) 78px;
  gap:10px;
  border-radius:22px;
}
.doctor-row-photo{
  width:70px;
  height:70px;
}
.doctor-row-info{
  align-items:center;
}
.doctor-row-name{
  font-size:13.5px;
  max-width:50%;
}
.doctor-row-specialty{
  font-size:11.5px;
  max-width:34%;
}
@media (max-width: 980px){
  .doctor-detail{
    grid-template-columns:132px minmax(0,1fr);
    min-height:220px;
  }
  .doctor-detail-photo-wrap{
    width:132px;min-width:132px;max-width:132px;height:170px;
  }
  .doctor-detail-content{align-items:flex-end;text-align:right;}
  .doctor-detail-actions{justify-content:center;}
}
@media (max-width: 760px){
  .doctor-detail{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
  }
  .doctor-detail-photo-wrap{
    width:140px;min-width:140px;max-width:140px;height:170px;
  }
  .doctor-detail-content{align-items:center;text-align:center;}
  .doctor-detail-heading-line{justify-content:center;}
  .doctor-detail-meta{text-align:center;}
}


/* V17 — doctor panel alignment fix and slimmer rows */
.doctor-panel{
  --doctor-row-height: 84px;
  --doctor-row-gap: 8px;
}
.doctor-list-shell{
  margin-top: 12px;
  height: calc(var(--doctor-row-height) * 4 + var(--doctor-row-gap) * 3 + 6px);
}
.doctor-list-viewport{
  border-radius: 24px;
}
.doctor-list-track{
  gap: var(--doctor-row-gap);
}
.doctor-selection-frame{
  top: 0;
  height: var(--doctor-row-height);
  border-radius: 20px;
}
.doctor-row{
  height: var(--doctor-row-height);
  min-height: var(--doctor-row-height);
  grid-template-columns: minmax(0,1fr) 72px;
  gap: 10px;
  padding: 8px 12px 8px 14px;
  border-radius: 20px;
}
.doctor-row-photo{
  width: 62px;
  height: 62px;
}
.doctor-row-info{
  gap: 8px;
}
.doctor-row-name{
  font-size: 13px;
  max-width: 52%;
}
.doctor-row-specialty{
  font-size: 11px;
  max-width: 32%;
}
.doctor-row-separator{
  font-size: 12px;
}
@media (max-width: 980px){
  .doctor-panel{
    --doctor-row-height: 80px;
    --doctor-row-gap: 8px;
  }
  .doctor-row{
    grid-template-columns: minmax(0,1fr) 68px;
  }
  .doctor-row-photo{
    width: 58px;
    height: 58px;
  }
}


/* V18 — final layout fixes for doctor panel and article panel */
.doctor-panel{
  --doctor-row-height: 72px;
  --doctor-row-gap: 6px;
}
.doctor-detail{
  min-height: 214px;
  padding: 18px 18px 16px;
  grid-template-columns: 136px minmax(0,1fr);
  gap: 16px;
}
.doctor-detail-photo-wrap{
  width: 136px;
  min-width: 136px;
  max-width: 136px;
  height: 136px;
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
  border-radius: 18px;
  overflow: hidden;
}
.doctor-detail-photo-wrap::after{display:none;}
.doctor-detail-photo{
  width: 136px;
  height: 136px;
  border: none;
  border-radius: 18px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 22px rgba(12,5,39,.25);
}
.doctor-detail-content{
  width: 100%;
  align-items: flex-end;
  justify-content: center;
}
.doctor-detail-actions{
  width: 100%;
  display: flex;
  justify-content: center !important;
  align-items: center;
  align-self: center;
  margin-inline: auto;
  gap: 10px;
}
.doctor-list-shell{
  margin-top: 12px;
  height: calc(var(--doctor-row-height) * 6 + var(--doctor-row-gap) * 5 + 6px);
}
.doctor-selection-frame{
  top: 0;
  height: var(--doctor-row-height);
}
.doctor-row{
  height: var(--doctor-row-height);
  min-height: var(--doctor-row-height);
  grid-template-columns: minmax(0,1fr) 60px;
  gap: 10px;
  padding: 7px 12px 7px 14px;
  border-radius: 18px;
}
.doctor-row-photo{
  width: 54px;
  height: 54px;
}
.doctor-row-info{
  gap: 7px;
  align-items: center;
}
.doctor-row-name{
  font-size: 12.5px;
  max-width: 50%;
}
.doctor-row-specialty{
  font-size: 10.5px;
  max-width: 30%;
}
.doctor-row-separator{
  font-size: 11px;
}
.article-panel{
  --article-row-height: 70px;
  --article-row-gap: 6px;
}
.article-list-shell{
  height: calc(var(--article-row-height) * 6 + var(--article-row-gap) * 5 + 6px);
}
.article-selection-frame{
  top: 0;
  height: var(--article-row-height);
}
.article-row{
  height: var(--article-row-height);
  min-height: var(--article-row-height);
  grid-template-columns: minmax(0,1fr) 60px;
  gap: 10px;
  padding: 7px 12px 7px 14px;
  border-radius: 18px;
}
.article-row-thumb{
  width: 52px;
  height: 52px;
}
.article-row-title{
  font-size: 12.5px;
}
.article-row-snippet{
  font-size: 10.5px;
  margin-top: 4px;
}
@media (max-width: 980px){
  .doctor-panel{--doctor-row-height: 70px; --doctor-row-gap: 6px;}
  .doctor-row{grid-template-columns:minmax(0,1fr) 56px;}
  .doctor-row-photo{width:50px;height:50px;}
  .article-panel{--article-row-height: 68px; --article-row-gap: 6px;}
  .article-row{grid-template-columns:minmax(0,1fr) 56px;}
  .article-row-thumb{width:48px;height:48px;}
}


/* V19 — doctor panel final polish */
.doctor-panel{
  display:flex !important;
  flex-direction:column !important;
  min-height:940px !important;
  --doctor-row-gap:6px;
}
.doctor-detail-shell{
  flex:0 0 auto;
  align-items:center;
  min-height:220px;
}
.doctor-detail{
  min-height:210px !important;
  grid-template-columns:112px minmax(0,1fr) !important;
  gap:14px !important;
  padding:16px 18px !important;
}
.doctor-detail-photo-wrap{
  width:112px !important;
  min-width:112px !important;
  max-width:112px !important;
  height:144px !important;
  padding:0 !important;
  background:none !important;
  box-shadow:none !important;
  border:none !important;
  border-radius:16px !important;
  overflow:hidden !important;
}
.doctor-detail-photo-wrap::after{display:none !important;}
.doctor-detail-photo{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center top !important;
  border:none !important;
  border-radius:16px !important;
  box-shadow:none !important;
}
.doctor-detail-content{
  min-width:0;
  width:100%;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;
  justify-content:center !important;
  text-align:right !important;
}
.doctor-detail-meta{
  width:100%;
}
.doctor-detail-actions{
  width:max-content !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  align-self:center !important;
  margin:12px auto 0 !important;
  gap:10px !important;
}
.doctor-detail-button{
  min-width:116px !important;
}
.doctor-list-shell{
  flex:1 1 auto !important;
  min-height:0 !important;
  height:auto !important;
  margin-top:10px !important;
}
.doctor-list-viewport{
  height:100%;
}
.doctor-list-track{
  gap:var(--doctor-row-gap) !important;
}
.doctor-selection-frame{
  top:0 !important;
}
.doctor-row{
  border-radius:18px !important;
  grid-template-columns:minmax(0,1fr) 58px !important;
  padding:6px 10px 6px 12px !important;
}
.doctor-row-photo{
  width:50px !important;
  height:50px !important;
}
.doctor-row-name{font-size:12.2px !important;}
.doctor-row-specialty{font-size:10.2px !important;}
.doctor-row-separator{font-size:10.8px !important;}
@media (max-width:980px){
  .doctor-detail{grid-template-columns:100px minmax(0,1fr) !important;}
  .doctor-detail-photo-wrap{width:100px !important;min-width:100px !important;max-width:100px !important;height:130px !important;}
  .doctor-detail-button{min-width:108px !important;}
}


/* V20 — doctor action buttons centered and contained */
.doctor-detail{
  grid-template-columns: 100px minmax(0,1fr) !important;
  min-height: 198px !important;
  padding: 14px 16px !important;
  gap: 14px !important;
  overflow: hidden !important;
}
.doctor-detail-photo-wrap{
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  height: 124px !important;
  border-radius: 14px !important;
}
.doctor-detail-photo{
  border-radius: 14px !important;
}
.doctor-detail-content{
  align-items: stretch !important;
  justify-content: center !important;
  width: 100% !important;
}
.doctor-detail-heading-line{
  justify-content: flex-end !important;
  gap: 5px 8px !important;
}
.doctor-detail-name{
  font-size: clamp(21px,1.45vw,30px) !important;
}
.doctor-detail-specialty{
  font-size: clamp(14px,.95vw,18px) !important;
}
.doctor-detail-meta{
  margin-top: 8px !important;
  gap: 4px !important;
}
.doctor-detail-meta dt,
.doctor-detail-meta dd{
  font-size: 12px !important;
}
.doctor-detail-actions{
  width: 100% !important;
  max-width: 236px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  justify-content: center !important;
  align-items: center !important;
  align-self: center !important;
  margin: 12px auto 0 !important;
  gap: 8px !important;
  direction: rtl !important;
}
.doctor-detail-button{
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 34px !important;
  padding: 0 8px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.doctor-detail-button.details{
  background: linear-gradient(135deg,#6d48dd,#8c61ff) !important;
}
.doctor-detail-button.booking{
  background: linear-gradient(135deg,#ff9529,#ff7725) !important;
}
@media (max-width: 980px){
  .doctor-detail{
    grid-template-columns: 92px minmax(0,1fr) !important;
  }
  .doctor-detail-photo-wrap{
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 116px !important;
  }
  .doctor-detail-actions{
    max-width: 220px !important;
  }
  .doctor-detail-button{
    font-size: 12px !important;
    height: 32px !important;
  }
}


/* V21 — gallery panel, 15 doctors, 10 articles */
.gallery-panel{display:flex;flex-direction:column;align-items:center;min-height:930px;overflow:hidden;}
.gallery-circle{position:relative;width:calc(100% - 8px);max-width:396px;aspect-ratio:1/1;overflow:hidden;}
.gallery-circle::before{content:"";position:absolute;inset:16px;border-radius:50%;border:1px solid rgba(255,255,255,.28);pointer-events:none;z-index:2;}
.gallery-hero-image{position:absolute;inset:16px;width:calc(100% - 32px);height:calc(100% - 32px);object-fit:cover;border-radius:50%;box-shadow:0 20px 40px rgba(13,6,40,.24);z-index:1;}
.gallery-hero-glow{position:absolute;inset:16px;border-radius:50%;background:linear-gradient(to top,rgba(31,16,69,.58),transparent 38%);z-index:2;pointer-events:none;}
.gallery-hero-title{position:absolute;left:34px;right:34px;bottom:30px;z-index:3;color:#fff;font-size:16px;font-weight:800;line-height:1.55;text-align:center;text-shadow:0 2px 12px rgba(0,0,0,.34);}
.gallery-scroll-control{position:absolute;top:50%;right:18px;transform:translateY(-50%);z-index:4;width:48px;min-height:168px;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:none;background:transparent;box-shadow:none;backdrop-filter:none;cursor:ns-resize;}
.gallery-scroll-arrow{width:36px;height:28px;border:none;background:transparent;position:relative;box-shadow:none;border-radius:0;}
.gallery-scroll-arrow::before{content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;border-right:5px solid rgba(255,255,255,.98);border-bottom:5px solid rgba(255,255,255,.98);transform-origin:center;filter:drop-shadow(0 0 10px rgba(255,255,255,.22));}
.gallery-scroll-arrow.up::before{transform:translate(-50%,-35%) rotate(225deg);} .gallery-scroll-arrow.down::before{transform:translate(-50%,-65%) rotate(45deg);} 
.gallery-mouse{position:relative;width:34px;height:62px;border:2px solid rgba(255,255,255,.92);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(159,126,233,.10));box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 10px 22px rgba(13,6,44,.18);} 
.gallery-mouse::before{content:"";position:absolute;left:50%;top:6px;bottom:6px;width:1px;background:linear-gradient(transparent,rgba(255,255,255,.54) 24%,rgba(255,255,255,.54) 76%,transparent);} 
.gallery-wheel{position:absolute;left:50%;top:11px;width:8px;height:18px;border-radius:10px;transform:translateX(-50%);background:linear-gradient(180deg,#f5d3ff,#af8cff);box-shadow:0 0 12px rgba(188,142,255,.45);transition:transform .24s ease;}
.gallery-scroll-control.scrolling-up .gallery-wheel{transform:translate(-50%,-4px);} .gallery-scroll-control.scrolling-down .gallery-wheel{transform:translate(-50%,4px);} 
.gallery-puzzle-shell{width:100%;margin-top:16px;flex:1 1 auto;min-height:0;overflow:hidden;}
.gallery-puzzle-viewport{position:relative;height:100%;overflow:hidden;}
.gallery-puzzle-track{position:absolute;inset:0 auto auto 0;width:100%;display:flex;flex-direction:column;gap:8px;transition:transform .92s cubic-bezier(.22,.78,.22,1);will-change:transform;}
.gallery-puzzle-item{position:relative;height:106px;min-height:106px;border-radius:24px;overflow:hidden;border:1px solid rgba(255,255,255,.34);box-shadow:0 16px 30px rgba(8,3,30,.12),inset 0 1px 0 rgba(255,255,255,.38);background:linear-gradient(145deg,rgba(255,255,255,.14),rgba(175,130,244,.08));}
.gallery-puzzle-item::before,.gallery-puzzle-item::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.18);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);}
.gallery-puzzle-item.left-notch::before{width:26px;height:26px;left:-13px;top:50%;transform:translateY(-50%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.24);} 
.gallery-puzzle-item.right-notch::before{width:26px;height:26px;right:-13px;top:50%;transform:translateY(-50%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.24);} 
.gallery-puzzle-item.top-notch::after{width:24px;height:24px;left:50%;top:-12px;transform:translateX(-50%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.24);} 
.gallery-puzzle-item.bottom-notch::after{width:24px;height:24px;left:50%;bottom:-12px;transform:translateX(-50%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.24);} 
.gallery-puzzle-thumb{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.05);} 
.gallery-puzzle-caption{position:absolute;left:12px;right:12px;bottom:10px;padding:6px 10px;border-radius:14px;background:rgba(25,11,56,.46);border:1px solid rgba(255,255,255,.18);color:#fff;font-size:12px;font-weight:700;line-height:1.35;text-align:center;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
.gallery-modal[hidden]{display:none;}
.gallery-modal{position:fixed;inset:0;z-index:130;display:flex;align-items:center;justify-content:center;padding:24px;}
.gallery-modal-backdrop{position:absolute;inset:0;background:rgba(8,4,24,.74);backdrop-filter:blur(10px);}
.gallery-modal-dialog{position:relative;z-index:1;width:min(860px,92vw);max-height:min(88vh,900px);overflow:auto;padding:20px 20px 24px;border-radius:28px;border:1px solid rgba(255,255,255,.36);background:linear-gradient(145deg,rgba(36,21,77,.92),rgba(67,43,121,.92));box-shadow:0 28px 80px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.38);color:#fff;}
.gallery-modal-close{position:absolute;top:14px;left:14px;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.12);color:#fff;font-size:26px;line-height:1;cursor:pointer;}
.gallery-modal-image{width:100%;max-height:480px;object-fit:cover;border-radius:20px;border:1px solid rgba(255,255,255,.28);}
.gallery-modal-title{margin:18px 0 10px;font-size:28px;line-height:1.4;}
.gallery-modal-body{font-size:15px;line-height:2;color:rgba(251,247,255,.9);white-space:pre-line;}
@media (max-width:980px){.gallery-puzzle-item{height:92px;min-height:92px}.gallery-circle{max-width:360px}.gallery-scroll-control{right:12px}}


/* V22 — lower section matched to the approved three-column reference */
.content-panels{
  padding:16px 1.35vw 68px !important;
  background:
    radial-gradient(circle at 18% 25%,rgba(126,82,220,.12),transparent 34%),
    radial-gradient(circle at 78% 64%,rgba(64,208,231,.08),transparent 30%),
    linear-gradient(180deg,#110928 0%,#0b071d 100%) !important;
}
.panels-grid{
  width:min(97.3vw,1900px) !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:stretch !important;
}
.glass-panel{
  min-height:930px !important;
  height:930px !important;
  padding:18px !important;
  border-radius:34px !important;
  border:1px solid rgba(212,183,255,.48) !important;
  background:
    linear-gradient(145deg,rgba(52,36,98,.82),rgba(24,18,61,.9) 56%,rgba(22,46,74,.72)) !important;
  box-shadow:0 24px 62px rgba(0,0,0,.34),0 0 0 7px rgba(255,255,255,.014),inset 0 1px 0 rgba(255,255,255,.34) !important;
  overflow:hidden !important;
}
.panel-heading{
  position:relative;z-index:4;display:flex;align-items:center;justify-content:center;gap:10px;height:42px;margin-bottom:10px;color:#fff;
}
.panel-heading h2{margin:0;font-size:20px;line-height:1;font-weight:900;letter-spacing:-.01em;}
.panel-heading-icon{width:25px;height:25px;display:grid;place-items:center;color:#f5efff;}
.panel-heading-icon svg{width:100%;height:100%;}
.panel-hint{margin-top:auto;padding-top:10px;text-align:center;color:rgba(244,238,255,.82);font-size:12px;font-weight:700;}
.panel-view-all{
  align-self:center;margin-top:12px;min-width:176px;height:42px;padding:0 22px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.45);border-radius:13px;background:linear-gradient(135deg,#6d49d9,#8a57f2);color:#fff;text-decoration:none;font-size:12px;font-weight:900;box-shadow:0 12px 24px rgba(19,7,55,.24),inset 0 1px 0 rgba(255,255,255,.38);
}
/* Gallery */
.gallery-panel{display:flex !important;flex-direction:column !important;align-items:stretch !important;}
.gallery-feature-wrap{position:relative;display:flex;align-items:center;justify-content:center;height:365px;flex:0 0 365px;}
.gallery-circle{position:relative;width:340px;height:340px;max-width:none !important;aspect-ratio:auto !important;border-radius:50%;overflow:hidden;border:2px solid rgba(218,184,255,.9) !important;box-shadow:0 0 0 5px rgba(255,255,255,.025),0 0 32px rgba(191,115,255,.26),inset 0 1px 0 rgba(255,255,255,.54) !important;cursor:pointer;}
.gallery-circle::before{content:"";position:absolute;inset:10px;border-radius:50%;border:1px solid rgba(255,255,255,.28);z-index:4;pointer-events:none;}
.gallery-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;z-index:1;}
.gallery-hero-glow{position:absolute;inset:0;border-radius:50%;z-index:2;background:linear-gradient(to top,rgba(20,8,52,.88),rgba(20,8,52,.2) 36%,transparent 62%);pointer-events:none;}
.gallery-hero-copy{position:absolute;left:34px;right:34px;bottom:28px;z-index:3;text-align:center;color:#fff;}
.gallery-hero-title{position:static !important;font-size:17px;font-weight:900;line-height:1.45;text-shadow:0 3px 12px rgba(0,0,0,.45);}
.gallery-hero-description{margin-top:5px;font-size:12px;font-weight:650;line-height:1.5;color:rgba(248,244,255,.88);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.gallery-scroll-control,.article-scroll-control,.doctor-scroll-control{
  width:48px !important;min-height:170px !important;padding:0 !important;display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;gap:10px !important;border:none !important;background:transparent !important;box-shadow:none !important;backdrop-filter:none !important;cursor:ns-resize !important;z-index:10;
}
.gallery-scroll-control{position:absolute !important;right:2px !important;top:50% !important;transform:translateY(-50%) !important;}
.gallery-scroll-arrow,.article-scroll-arrow,.doctor-scroll-arrow{width:36px !important;height:28px !important;border:none !important;background:transparent !important;position:relative !important;box-shadow:none !important;border-radius:0 !important;}
.gallery-scroll-arrow::before,.article-scroll-arrow::before,.doctor-scroll-arrow::before{content:"";position:absolute;left:50%;top:50%;width:15px;height:15px;border-right:5px solid rgba(255,255,255,.98);border-bottom:5px solid rgba(255,255,255,.98);filter:drop-shadow(0 0 9px rgba(255,255,255,.25));}
.gallery-scroll-arrow.up::before,.article-scroll-arrow.up::before,.doctor-scroll-arrow.up::before{transform:translate(-50%,-35%) rotate(225deg);}
.gallery-scroll-arrow.down::before,.article-scroll-arrow.down::before,.doctor-scroll-arrow.down::before{transform:translate(-50%,-65%) rotate(45deg);}
.gallery-mouse,.article-mouse,.doctor-mouse{position:relative;width:34px;height:62px;border:2px solid rgba(255,255,255,.92);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(159,126,233,.10));box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 10px 22px rgba(13,6,44,.18);}
.gallery-mouse::before,.article-mouse::before,.doctor-mouse::before{content:"";position:absolute;left:50%;top:6px;bottom:6px;width:1px;background:linear-gradient(transparent,rgba(255,255,255,.54) 24%,rgba(255,255,255,.54) 76%,transparent);}
.gallery-wheel,.article-wheel,.doctor-wheel{position:absolute;left:50%;top:11px;width:8px;height:18px;border-radius:10px;transform:translateX(-50%);background:linear-gradient(180deg,#f5d3ff,#af8cff);box-shadow:0 0 12px rgba(188,142,255,.45);transition:transform .24s ease;}
.gallery-scroll-control.scrolling-up .gallery-wheel,.article-scroll-control.scrolling-up .article-wheel,.doctor-scroll-control.scrolling-up .doctor-wheel{transform:translate(-50%,-4px);}
.gallery-scroll-control.scrolling-down .gallery-wheel,.article-scroll-control.scrolling-down .article-wheel,.doctor-scroll-control.scrolling-down .doctor-wheel{transform:translate(-50%,4px);}
.gallery-puzzle-grid{width:100%;height:355px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:0;padding:8px 4px 0;overflow:visible;}
.gallery-puzzle-piece{position:relative;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer;filter:drop-shadow(0 12px 18px rgba(7,2,26,.24));transition:transform .24s ease,filter .24s ease;}
.gallery-puzzle-piece:hover{transform:translateY(-3px) scale(1.02);filter:drop-shadow(0 16px 22px rgba(106,70,215,.34));}
.gallery-puzzle-piece svg{width:108%;height:108%;margin:-4%;overflow:visible;}
.gallery-puzzle-piece .piece-outline{fill:none;stroke:rgba(255,255,255,.62);stroke-width:2.2;vector-effect:non-scaling-stroke;}
.gallery-puzzle-grid.is-rising{animation:galleryPuzzleRise .56s cubic-bezier(.22,.78,.22,1);}
@keyframes galleryPuzzleRise{0%{transform:translateY(18px);opacity:.48}100%{transform:translateY(0);opacity:1}}
/* Articles */
.article-panel{display:flex !important;flex-direction:column !important;--article-row-height:112px;--article-row-gap:8px;}
.article-list-shell{position:relative;margin:0 !important;height:760px !important;flex:1 1 auto;border-radius:24px;overflow:hidden;background:rgba(255,255,255,.018);}
.article-list-viewport{position:absolute;inset:0 42px 0 0 !important;overflow:hidden;border-radius:22px;}
.article-list-track{position:absolute;left:0;right:0;top:0;display:flex;flex-direction:column;gap:var(--article-row-gap);will-change:transform;}
.article-row{height:var(--article-row-height) !important;min-height:var(--article-row-height) !important;display:grid !important;grid-template-columns:88px minmax(0,1fr) !important;gap:12px !important;padding:9px 12px !important;border:1px solid rgba(255,255,255,.18) !important;border-radius:18px !important;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(102,74,174,.055)) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16) !important;opacity:.86 !important;overflow:hidden !important;cursor:pointer;}
.article-row.is-selected{opacity:1 !important;filter:saturate(1.08) brightness(1.04);}
.article-row-thumb{grid-column:1 !important;width:88px !important;height:88px !important;border-radius:12px !important;object-fit:cover;border:1px solid rgba(255,255,255,.25) !important;}
.article-row-info{grid-column:2 !important;min-width:0;text-align:right !important;direction:rtl !important;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;}
.article-row-title{width:100%;font-size:14px !important;font-weight:900;line-height:1.45;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.article-row-snippet{width:100%;margin-top:5px !important;font-size:11px !important;line-height:1.6;color:rgba(244,238,255,.82);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal !important;}
.article-row-date{margin-top:5px;color:#67f090;font-size:10px;font-weight:800;direction:ltr;}
.article-selection-frame{position:absolute;z-index:6;left:0;right:42px;top:0 !important;height:var(--article-row-height) !important;border:2px solid rgba(70,230,127,.92) !important;border-radius:18px;background:linear-gradient(105deg,rgba(58,219,112,.07),transparent);box-shadow:0 0 20px rgba(63,222,115,.12),inset 0 1px 0 rgba(255,255,255,.16);pointer-events:none;}
.article-scroll-control{position:absolute !important;right:-3px !important;top:50% !important;transform:translateY(-50%) !important;}
/* Doctors */
.doctor-panel{display:flex !important;flex-direction:column !important;--doctor-row-height:48px;--doctor-row-gap:5px;}
.doctor-detail-shell{display:block !important;min-height:238px !important;flex:0 0 238px !important;margin-bottom:10px;}
.doctor-detail{width:calc(100% - 42px) !important;height:238px !important;min-height:238px !important;padding:14px 16px !important;display:grid !important;grid-template-columns:134px minmax(0,1fr) !important;gap:15px !important;border-radius:24px !important;overflow:hidden !important;}
.doctor-detail-photo-wrap{width:134px !important;min-width:134px !important;max-width:134px !important;height:186px !important;padding:0 !important;border:0 !important;border-radius:18px !important;background:transparent !important;box-shadow:none !important;overflow:hidden !important;align-self:center;}
.doctor-detail-photo-wrap::after{display:none !important;}
.doctor-detail-photo{width:100% !important;height:100% !important;object-fit:cover !important;object-position:center top !important;border:0 !important;border-radius:18px !important;box-shadow:0 10px 24px rgba(8,3,28,.24) !important;}
.doctor-detail-content{min-width:0;width:100%;display:flex !important;flex-direction:column !important;align-items:stretch !important;justify-content:center !important;text-align:right !important;}
.doctor-detail-heading-line{display:flex !important;flex-direction:row-reverse !important;align-items:center !important;justify-content:flex-start !important;gap:5px 8px !important;flex-wrap:wrap;}
.doctor-detail-name{margin:0;font-size:23px !important;line-height:1.2;font-weight:900;color:#fff;}
.doctor-detail-specialty{font-size:14px !important;font-weight:850;color:#f4efff !important;}
.doctor-detail-separator{color:rgba(255,255,255,.8);font-weight:900;}
.doctor-detail-meta{width:100%;margin:11px 0 0 !important;display:grid !important;grid-template-columns:1fr !important;gap:6px !important;}
.doctor-detail-meta div{padding:0 !important;border:0 !important;background:transparent !important;box-shadow:none !important;}
.doctor-detail-meta dt,.doctor-detail-meta dd{display:inline !important;margin:0 !important;font-size:11.5px !important;line-height:1.5;color:#f8f3ff;}
.doctor-detail-meta dt{font-weight:900;color:rgba(255,255,255,.88);}.doctor-detail-meta dt::after{content:": ";}
.doctor-detail-actions{width:100% !important;max-width:270px !important;display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;align-self:center !important;margin:13px auto 0 !important;gap:10px !important;direction:rtl !important;}
.doctor-detail-button{width:100% !important;min-width:0 !important;height:40px !important;padding:0 8px !important;border-radius:13px !important;font-family:Tahoma,Arial,sans-serif !important;font-size:12px !important;font-weight:900 !important;white-space:nowrap;}
.doctor-detail-button.details{background:linear-gradient(135deg,#6d45da,#8d59f2) !important;}.doctor-detail-button.booking{background:linear-gradient(135deg,#ff9a29,#ec7a19) !important;}
.doctor-list-shell{position:relative;margin-top:0 !important;height:606px !important;flex:1 1 auto !important;border-radius:22px;overflow:hidden;background:rgba(255,255,255,.018);}
.doctor-list-viewport{position:absolute;inset:0 42px 0 0 !important;overflow:hidden;border-radius:20px;}
.doctor-list-track{position:absolute;left:0;right:0;top:0;display:flex;flex-direction:column;gap:var(--doctor-row-gap) !important;will-change:transform;}
.doctor-row{height:var(--doctor-row-height) !important;min-height:var(--doctor-row-height) !important;display:grid !important;grid-template-columns:minmax(0,1fr) 39px !important;gap:7px !important;padding:4px 9px !important;border:1px solid rgba(255,255,255,.16) !important;border-radius:15px !important;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(109,77,179,.045)) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.14) !important;opacity:.88 !important;}
.doctor-row.is-selected{opacity:1 !important;}
.doctor-row-photo{grid-column:2 !important;width:36px !important;height:36px !important;border-radius:50% !important;object-fit:cover;border:1px solid rgba(255,255,255,.78) !important;}
.doctor-row-info{grid-column:1 !important;min-width:0;display:flex !important;flex-direction:row-reverse !important;align-items:center !important;justify-content:flex-start !important;gap:6px !important;direction:rtl !important;white-space:nowrap;overflow:hidden;}
.doctor-row-name{font-size:11px !important;max-width:56% !important;color:#fff;}.doctor-row-specialty{font-size:10px !important;max-width:34% !important;color:rgba(245,238,255,.88) !important;}.doctor-row-separator{font-size:10px !important;color:#f5c84c !important;}
.doctor-selection-frame{position:absolute;z-index:6;left:0;right:42px;top:0 !important;height:var(--doctor-row-height) !important;border:2px solid rgba(255,91,133,.92) !important;border-radius:15px;background:linear-gradient(105deg,rgba(255,72,120,.07),transparent);box-shadow:0 0 18px rgba(255,74,125,.12),inset 0 1px 0 rgba(255,255,255,.15);pointer-events:none;}
.doctor-scroll-control{position:absolute !important;right:-3px !important;top:50% !important;transform:translateY(-50%) !important;}
@media(max-width:1300px){
  .glass-panel{height:870px !important;min-height:870px !important;padding:14px !important}.gallery-feature-wrap{height:325px;flex-basis:325px}.gallery-circle{width:300px;height:300px}.gallery-puzzle-grid{height:330px}.article-panel{--article-row-height:102px}.article-list-shell{height:700px !important}.doctor-detail{grid-template-columns:112px minmax(0,1fr) !important;height:218px !important;min-height:218px !important}.doctor-detail-shell{min-height:218px !important;flex-basis:218px !important}.doctor-detail-photo-wrap{width:112px !important;min-width:112px !important;max-width:112px !important;height:164px !important}.doctor-list-shell{height:572px !important}.doctor-detail-name{font-size:19px !important}
}
@media(max-width:900px){
  .panels-grid{grid-template-columns:1fr !important}.glass-panel{height:auto !important;min-height:760px !important}.gallery-circle{width:min(78vw,340px);height:min(78vw,340px)}.article-list-shell,.doctor-list-shell{height:690px !important}.doctor-detail{width:calc(100% - 42px) !important}
}


/* V23 final requested fixes */
body, button, input, select, textarea, .hero-title, .hero-subtitle, .doctor-detail-name, .doctor-detail-specialty, .article-row-title, .article-row-snippet, .gallery-hero-title, .gallery-hero-description {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

/* Doctor main card */
.doctor-detail-shell{
  min-height: 230px !important;
}
.doctor-detail{
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-height: 220px !important;
  height: 220px !important;
  padding: 16px 18px !important;
  overflow: hidden !important;
}
.doctor-detail-photo-wrap{
  order: 2 !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 122px !important;
  border-radius: 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.doctor-detail-photo-wrap::after{display:none !important;}
.doctor-detail-photo{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 16px !important;
  border: none !important;
  box-shadow: none !important;
}
.doctor-detail-content{
  order: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  text-align: right !important;
}
.doctor-detail-heading-line{
  display: flex !important;
  flex-direction: row !important;
  direction: rtl !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  margin-bottom: 6px !important;
}
.doctor-detail-link-arrow{
  color: rgba(255,255,255,.96) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  flex: 0 0 auto !important;
}
.doctor-detail-name,
.doctor-detail-specialty,
.doctor-detail-separator{
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}
.doctor-detail-name{
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}
.doctor-detail-separator{
  font-size: 17px !important;
  color: rgba(255,255,255,.76) !important;
  font-weight: 900 !important;
}
.doctor-detail-specialty{
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #ffd55d !important;
}
.doctor-detail-meta{
  margin-top: 8px !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
}
.doctor-detail-meta div{
  padding: 8px 11px !important;
  border-radius: 14px !important;
}
.doctor-detail-meta dt,
.doctor-detail-meta dd{
  font-size: 11px !important;
}
.doctor-detail-actions{
  width: 100% !important;
  margin-top: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding-top: 8px !important;
}
.doctor-detail-button{
  width: 138px !important;
  min-width: 138px !important;
  max-width: 138px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
.doctor-detail-button.details{background: linear-gradient(135deg,#7a47ed,#9d62ff) !important;}
.doctor-detail-button.booking{background: linear-gradient(135deg,#ff9e2d,#ff7f26) !important;}

/* Article popup and rows */
.article-panel{
  min-height: 960px !important;
}
.article-list-shell{
  height: 760px !important;
}
.article-row{
  min-height: 94px !important;
  height: 94px !important;
}
.article-row-thumb{
  width: 72px !important;
  height: 72px !important;
  border-radius: 18px !important;
}
.article-row-title{font-size: 15px !important;}
.article-row-snippet{font-size: 12px !important;}
.article-modal-dialog{
  width: min(980px,94vw) !important;
  max-height: min(90vh,980px) !important;
  padding: 24px 24px 28px !important;
}
.article-modal-image{
  width: 100% !important;
  max-height: 430px !important;
  object-fit: contain !important;
  background: rgba(17,9,42,.64) !important;
  padding: 8px !important;
  box-sizing: border-box !important;
  border-radius: 24px !important;
}
.article-modal-title{
  font-size: 30px !important;
}
.article-modal-body{
  font-size: 16px !important;
  line-height: 2.1 !important;
}

/* Gallery puzzle closer to sample */
.gallery-panel{
  align-items: stretch !important;
}
.gallery-feature-wrap{
  height: 350px !important;
  flex-basis: 350px !important;
}
.gallery-circle{
  width: 330px !important;
  height: 330px !important;
}
.gallery-puzzle-grid{
  width: 100% !important;
  height: 360px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  grid-template-rows: repeat(2, minmax(0,1fr)) !important;
  gap: 2px !important;
  padding: 8px 6px 0 !important;
  align-items: center !important;
}
.gallery-puzzle-piece{
  height: 168px !important;
  filter: drop-shadow(0 10px 18px rgba(7,2,26,.22)) !important;
}
.gallery-puzzle-piece svg{
  width: 102% !important;
  height: 102% !important;
  margin: -1% !important;
}
.gallery-puzzle-piece .piece-outline{
  stroke: rgba(255,255,255,.78) !important;
  stroke-width: 2 !important;
}
.gallery-puzzle-grid.is-rising{
  animation: galleryPuzzleRise .72s cubic-bezier(.22,.78,.22,1) !important;
}

@media (max-width: 1200px){
  .doctor-detail-button{
    width: 126px !important;
    min-width: 126px !important;
    max-width: 126px !important;
    font-size: 13px !important;
  }
}
@media (max-width: 980px){
  .doctor-detail{
    height: auto !important;
    min-height: 240px !important;
  }
  .doctor-detail-button{
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    font-size: 12px !important;
  }
}


/* V24 — final doctor panel alignment fixes */
.doctor-detail{
  position: relative !important;
}
.doctor-detail-content{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
}
.doctor-detail-actions{
  width: 100% !important;
  max-width: 320px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  align-self: center !important;
  margin: 12px auto 0 auto !important;
  padding-top: 6px !important;
  gap: 12px !important;
}
.doctor-detail-button{
  flex: 0 0 auto !important;
}

/* Small moving doctor cards under the big card */
.doctor-row{
  grid-template-columns: 64px minmax(0,1fr) !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  align-items: center !important;
}
.doctor-row-photo{
  grid-column: 1 !important;
  justify-self: end !important;
  width: 50px !important;
  height: 50px !important;
}
.doctor-row-info{
  grid-column: 2 !important;
  display: flex !important;
  flex-direction: row !important;
  direction: rtl !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
  text-align: right !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.doctor-row-name,
.doctor-row-specialty,
.doctor-row-separator{
  flex: 0 1 auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.doctor-row-name{
  order: 1 !important;
  font-size: 13px !important;
  max-width: 52% !important;
}
.doctor-row-separator{
  order: 2 !important;
  font-size: 13px !important;
  color: rgba(255,255,255,.72) !important;
}
.doctor-row-specialty{
  order: 3 !important;
  font-size: 11px !important;
  color: #ffd55d !important;
  max-width: 36% !important;
}
.doctor-row-info .doctor-row-name::before,
.doctor-row-info::before{content:none !important;}


/* V25 — article frame fix + gallery rows redesign */
.article-panel{
  --article-row-height: 94px !important;
  --article-row-gap: 10px !important;
}
.article-list-shell{
  height: calc(var(--article-row-height) * 6 + var(--article-row-gap) * 5 + 8px) !important;
}
.article-row{
  height: var(--article-row-height) !important;
  min-height: var(--article-row-height) !important;
}
.article-selection-frame{
  top: 0 !important;
  height: var(--article-row-height) !important;
  border: 4px solid rgba(77,225,117,.98) !important;
  border-radius: 22px !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 28px rgba(77,225,117,.24), inset 0 1px 0 rgba(255,255,255,.33) !important;
}

.gallery-panel{
  --gallery-row-height: 104px;
  --gallery-row-gap: 10px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  min-height: 930px !important;
  overflow: hidden !important;
}
.gallery-feature-wrap{
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}
.gallery-circle{
  width: 330px !important;
  height: 330px !important;
}
.gallery-scroll-control{
  position: absolute !important;
  right: 28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.gallery-list-shell{
  position: relative !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin-top: 4px !important;
  height: calc(var(--gallery-row-height) * 6 + var(--gallery-row-gap) * 5 + 10px) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg,rgba(255,255,255,.05),rgba(84,59,140,.05)) !important;
}
.gallery-list-shell::before,
.gallery-list-shell::after{
  content: "";
  position: absolute;
  left: 0; right: 0; z-index: 5; pointer-events: none; height: 30px;
}
.gallery-list-shell::before{top:0;background:linear-gradient(to bottom,rgba(34,19,72,.25),transparent);} 
.gallery-list-shell::after{bottom:0;background:linear-gradient(to top,rgba(34,19,72,.28),transparent);} 
.gallery-list-viewport{
  position: relative;
  height: 100%;
  overflow: hidden;
}
.gallery-list-track{
  position: absolute;
  left: 0; right: 0; top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gallery-row-gap);
  transition: transform .92s cubic-bezier(.22,.78,.22,1);
  will-change: transform;
}
.gallery-row{
  position: relative;
  height: var(--gallery-row-height);
  min-height: var(--gallery-row-height);
  display: grid;
  grid-template-columns: 76px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 22px;
  background: linear-gradient(145deg,rgba(255,255,255,.15),rgba(103,66,170,.08));
  box-shadow: 0 12px 24px rgba(9,4,30,.12), inset 0 1px 0 rgba(255,255,255,.34);
  overflow: hidden;
  opacity: .8;
  cursor: pointer;
  transition: opacity .45s ease, filter .45s ease;
}
.gallery-row:nth-child(even){background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(80,131,233,.08));}
.gallery-row.is-selected{opacity:1;filter:saturate(1.08) brightness(1.04);}
.gallery-row-thumb{
  grid-column: 1;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,.86);
  box-shadow: 0 10px 20px rgba(12,6,40,.22);
}
.gallery-row-info{
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  text-align: left;
  direction: ltr;
}
.gallery-row-title{
  display: block;
  width: 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-row-text{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  color: rgba(244,238,255,.82);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}
.gallery-selection-frame{
  position: absolute;
  z-index: 6;
  left: 0; right: 0; top: 0;
  height: var(--gallery-row-height);
  border: 4px solid rgba(255,211,71,.98);
  border-radius: 22px;
  background: linear-gradient(105deg,rgba(255,209,48,.17),rgba(255,221,108,.04));
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 26px rgba(255,215,90,.22), inset 0 1px 0 rgba(255,255,255,.30);
  pointer-events: none;
}
.gallery-hero-copy{
  position: absolute;
  inset: auto 30px 26px 30px;
  z-index: 3;
  text-align: center;
}
.gallery-hero-title{
  font-size: 18px !important;
  font-weight: 900 !important;
}
.gallery-hero-description{
  margin-top: 8px !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
  color: rgba(250,246,255,.9) !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
@media (max-width: 980px){
  .gallery-circle{width: min(78vw,330px) !important; height: min(78vw,330px) !important;}
  .gallery-list-shell{height: calc(var(--gallery-row-height) * 6 + var(--gallery-row-gap) * 5 + 8px) !important;}
  .gallery-row{grid-template-columns: 68px minmax(0,1fr);}
  .gallery-row-thumb{width: 68px; height: 68px;}
}


/* V26 — doctor panel corrective fixes */
.doctor-panel{
  --doctor-row-height: 52px !important;
  --doctor-row-gap: 6px !important;
}
.doctor-detail-actions{
  width: 100% !important;
  max-width: 286px !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  align-self: center !important;
  margin: 16px auto 0 auto !important;
  padding-top: 2px !important;
  transform: translateY(4px) !important;
}
.doctor-detail-button{
  width: 128px !important;
  min-width: 128px !important;
  max-width: 128px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.doctor-detail-button.booking{
  order: 1 !important;
}
.doctor-detail-button.details{
  order: 2 !important;
}
.doctor-list-shell{
  margin-top: 8px !important;
  height: calc(var(--doctor-row-height) * 8 + var(--doctor-row-gap) * 7 + 10px) !important;
}
.doctor-selection-frame{
  top: 0 !important;
  height: var(--doctor-row-height) !important;
}
.doctor-row{
  height: var(--doctor-row-height) !important;
  min-height: var(--doctor-row-height) !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0,1fr) !important;
  gap: 8px !important;
  padding: 5px 10px !important;
  align-items: center !important;
}
.doctor-row-photo{
  grid-column: 1 !important;
  justify-self: start !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
}
.doctor-row-info{
  grid-column: 2 !important;
  display: flex !important;
  flex-direction: row !important;
  direction: rtl !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.doctor-row-name,
.doctor-row-specialty,
.doctor-row-separator{
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 0 1 auto !important;
}
.doctor-row-name{
  order: 1 !important;
  max-width: 48% !important;
  font-size: 11.5px !important;
  color: #ffffff !important;
}
.doctor-row-separator{
  order: 2 !important;
  font-size: 11px !important;
  color: rgba(255,255,255,.78) !important;
}
.doctor-row-specialty{
  order: 3 !important;
  max-width: 34% !important;
  font-size: 10px !important;
  color: #f7c94f !important;
}
@media (max-width: 980px){
  .doctor-detail-actions{
    max-width: 270px !important;
    gap: 10px !important;
  }
  .doctor-detail-button{
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    height: 34px !important;
    font-size: 13px !important;
  }
}


/* V28 final corrections: doctor panel + gallery motion */
.doctor-detail-actions{
  width:100% !important;
  max-width:282px !important;
  display:flex !important;
  flex-direction:row !important;
  justify-content:center !important;
  align-items:center !important;
  align-self:center !important;
  gap:12px !important;
  margin:14px auto 0 auto !important;
  padding-top:0 !important;
  direction:ltr !important;
  transform:translateY(2px) !important;
}
.doctor-detail-button{
  width:132px !important;
  min-width:132px !important;
  max-width:132px !important;
  height:35px !important;
  padding:0 12px !important;
  border-radius:12px !important;
  font-size:14px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.doctor-detail-button.booking{order:1 !important;}
.doctor-detail-button.details{order:2 !important;}
.doctor-row{
  grid-template-columns:40px minmax(0,1fr) !important;
  gap:8px !important;
  padding:5px 10px !important;
  align-items:center !important;
}
.doctor-row-photo{
  grid-column:1 !important;
  justify-self:start !important;
  align-self:center !important;
  width:36px !important;
  height:36px !important;
}
.doctor-row-info{
  grid-column:2 !important;
  min-width:0 !important;
  height:100% !important;
  display:flex !important;
  flex-direction:row !important;
  direction:rtl !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:6px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
}
.doctor-row-name{order:1 !important; max-width:48% !important; font-size:11.4px !important;}
.doctor-row-separator{order:2 !important; font-size:10.8px !important; color:rgba(255,255,255,.78) !important;}
.doctor-row-specialty{order:3 !important; max-width:34% !important; font-size:10.1px !important; color:#f4c94b !important;}
.doctor-list-shell{height:calc(var(--doctor-row-height) * 8 + var(--doctor-row-gap) * 7 + 8px) !important;}
.doctor-selection-frame{top:0 !important; height:var(--doctor-row-height) !important;}

.gallery-panel{
  --gallery-row-height:98px;
  --gallery-row-gap:10px;
}
.gallery-list-shell{
  position:relative !important;
  margin-top:10px !important;
  height:calc(var(--gallery-row-height) * 4 + var(--gallery-row-gap) * 3 + 8px) !important;
  flex:0 0 auto !important;
  border-radius:22px !important;
  overflow:hidden !important;
  background:rgba(255,255,255,.018) !important;
}
.gallery-list-viewport{position:absolute !important; inset:0 !important; overflow:hidden !important; border-radius:20px !important;}
.gallery-list-track{position:absolute !important; left:0 !important; right:0 !important; top:0 !important; display:flex !important; flex-direction:column !important; gap:var(--gallery-row-gap) !important; will-change:transform !important;}
.gallery-row{
  height:var(--gallery-row-height) !important;
  min-height:var(--gallery-row-height) !important;
  display:grid !important;
  grid-template-columns:64px minmax(0,1fr) !important;
  gap:10px !important;
  padding:10px 12px !important;
  align-items:center !important;
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:18px !important;
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(109,77,179,.05)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14) !important;
  opacity:.9 !important;
  cursor:pointer !important;
}
.gallery-row-thumb{
  grid-column:1 !important;
  width:56px !important;
  height:56px !important;
  border-radius:16px !important;
  object-fit:cover !important;
  border:1px solid rgba(255,255,255,.82) !important;
  justify-self:start !important;
}
.gallery-row-info{
  grid-column:2 !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  text-align:left !important;
  direction:ltr !important;
  gap:5px !important;
}
.gallery-row-title{
  width:100% !important;
  font-size:14px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.gallery-row-text{
  width:100% !important;
  font-size:11px !important;
  line-height:1.45 !important;
  color:rgba(246,240,255,.84) !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  overflow:hidden !important;
}
.gallery-selection-frame{
  position:absolute !important;
  z-index:6 !important;
  left:0 !important;
  right:0 !important;
  top:0 !important;
  height:var(--gallery-row-height) !important;
  border:3px solid rgba(255,212,72,.98) !important;
  border-radius:18px !important;
  background:linear-gradient(105deg,rgba(255,209,48,.10),transparent) !important;
  box-shadow:0 0 22px rgba(255,209,64,.16), inset 0 1px 0 rgba(255,255,255,.18) !important;
  pointer-events:none !important;
}
.gallery-circle{position:relative !important;}
.gallery-hero-image{opacity:1 !important;}
.gallery-hero-copy{z-index:3 !important;}


/* V29 final doctor small-cards fix */
.doctor-panel{
  --doctor-row-height: 52px !important;
  --doctor-row-gap: 6px !important;
}
.doctor-list-shell{
  height: calc(var(--doctor-row-height) * 8 + var(--doctor-row-gap) * 7 + 8px) !important;
}
.doctor-selection-frame{
  top: 0 !important;
  height: var(--doctor-row-height) !important;
}
.doctor-row{
  height: var(--doctor-row-height) !important;
  min-height: var(--doctor-row-height) !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0,1fr) !important;
  gap: 8px !important;
  padding: 5px 10px !important;
  align-items: center !important;
}
.doctor-row-photo{
  grid-column: 1 !important;
  width: 36px !important;
  height: 36px !important;
  justify-self: start !important;
  align-self: center !important;
  border-radius: 50% !important;
}
.doctor-row-info,
.doctor-row-info.is-fa{
  grid-column: 2 !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  direction: ltr !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 6px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.doctor-row-name,
.doctor-row-separator,
.doctor-row-specialty{
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
  flex: 0 1 auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.doctor-row-name{
  order: 1 !important;
  max-width: 48% !important;
  font-size: 11.6px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}
.doctor-row-separator{
  order: 2 !important;
  font-size: 10.8px !important;
  font-weight: 900 !important;
  color: rgba(255,255,255,.78) !important;
}
.doctor-row-specialty{
  order: 3 !important;
  max-width: 36% !important;
  font-size: 10.2px !important;
  font-weight: 700 !important;
  color: #f7ca4e !important;
}
.doctor-row-info .doctor-row-name::before,
.doctor-row-info::before{
  content: none !important;
}
.doctor-detail-actions{
  width: 100% !important;
  max-width: 286px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 14px auto 0 auto !important;
  align-self: center !important;
  direction: ltr !important;
}
.doctor-detail-button{
  width: 132px !important;
  min-width: 132px !important;
  max-width: 132px !important;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}
.doctor-detail-button.booking{order:1 !important;}
.doctor-detail-button.details{order:2 !important;}


/* V31 — homepage doctor panel rebuilt from Excel data */
#doctorPanel.home-doctor-panel{
  --doctor-row-height:102px !important;
  --doctor-row-gap:10px !important;
  display:flex !important;
  flex-direction:column !important;
  height:930px !important;
  min-height:930px !important;
  padding:18px !important;
  overflow:hidden !important;
}
#doctorPanel .home-doctor-detail-shell{
  flex:0 0 360px !important;
  min-height:360px !important;
  margin:0 0 14px !important;
}
#doctorPanel .home-doctor-detail{
  position:relative !important;
  width:100% !important;
  height:360px !important;
  min-height:360px !important;
  padding:22px 24px 18px !important;
  display:grid !important;
  grid-template-columns:154px minmax(0,1fr) !important;
  grid-template-rows:minmax(0,1fr) 48px !important;
  column-gap:24px !important;
  row-gap:14px !important;
  align-items:center !important;
  border-radius:28px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
#doctorPanel .doctor-detail-photo-wrap{
  grid-column:1 !important;
  grid-row:1 !important;
  width:154px !important;
  min-width:154px !important;
  max-width:154px !important;
  height:230px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:20px !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:hidden !important;
  align-self:center !important;
}
#doctorPanel .doctor-detail-photo-wrap::after{display:none !important;}
#doctorPanel .doctor-detail-photo{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center top !important;
  border:0 !important;
  border-radius:20px !important;
  box-shadow:none !important;
}
#doctorPanel .doctor-detail-content{
  grid-column:2 !important;
  grid-row:1 !important;
  min-width:0 !important;
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  text-align:left !important;
  gap:9px !important;
}
#doctorPanel .doctor-detail-name{
  width:100% !important;
  margin:0 !important;
  font-size:27px !important;
  line-height:1.3 !important;
  font-weight:900 !important;
  color:#fff !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
#doctorPanel .doctor-detail-specialty{
  width:100% !important;
  margin:0 !important;
  font-size:17px !important;
  line-height:1.45 !important;
  font-weight:800 !important;
  color:#ffd45e !important;
  white-space:normal !important;
}
#doctorPanel .doctor-detail-meta{
  width:100% !important;
  margin:8px 0 0 !important;
  padding:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
}
#doctorPanel .doctor-detail-meta div{
  width:100% !important;
  margin:0 !important;
  padding:9px 12px !important;
  border:1px solid rgba(255,255,255,.15) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.055) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10) !important;
}
#doctorPanel .doctor-detail-meta dt,
#doctorPanel .doctor-detail-meta dd{
  display:inline !important;
  margin:0 !important;
  font-size:13px !important;
  line-height:1.6 !important;
}
#doctorPanel .doctor-detail-meta dt{
  font-weight:900 !important;
  color:rgba(255,255,255,.92) !important;
}
#doctorPanel .doctor-detail-meta dt::after{content:": " !important;}
#doctorPanel .doctor-detail-meta dd{
  font-weight:700 !important;
  color:rgba(250,246,255,.92) !important;
}
#doctorPanel .doctor-detail-actions{
  grid-column:1 / -1 !important;
  grid-row:2 !important;
  width:100% !important;
  max-width:360px !important;
  height:48px !important;
  margin:0 auto !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  align-self:end !important;
  direction:ltr !important;
  transform:none !important;
}
#doctorPanel .doctor-detail-button{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:42px !important;
  padding:0 14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:14px !important;
  font-family:"Segoe UI",Tahoma,Arial,sans-serif !important;
  font-size:14px !important;
  font-weight:900 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
}
#doctorPanel .doctor-detail-button.booking{order:1 !important;}
#doctorPanel .doctor-detail-button.details{order:2 !important;}

#doctorPanel .home-doctor-list-shell{
  position:relative !important;
  flex:0 0 calc(var(--doctor-row-height) * 4 + var(--doctor-row-gap) * 3) !important;
  width:100% !important;
  height:calc(var(--doctor-row-height) * 4 + var(--doctor-row-gap) * 3) !important;
  min-height:calc(var(--doctor-row-height) * 4 + var(--doctor-row-gap) * 3) !important;
  margin:0 !important;
  overflow:hidden !important;
  border-radius:24px !important;
  background:rgba(255,255,255,.018) !important;
}
#doctorPanel .doctor-list-viewport{
  position:absolute !important;
  inset:0 !important;
  overflow:hidden !important;
  border-radius:22px !important;
}
#doctorPanel .doctor-list-track{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:var(--doctor-row-gap) !important;
  will-change:transform !important;
}
#doctorPanel .doctor-row{
  position:relative !important;
  width:100% !important;
  height:var(--doctor-row-height) !important;
  min-height:var(--doctor-row-height) !important;
  display:grid !important;
  grid-template-columns:78px minmax(0,1fr) !important;
  align-items:center !important;
  gap:14px !important;
  padding:11px 16px !important;
  border:1px solid rgba(255,255,255,.22) !important;
  border-radius:20px !important;
  background:linear-gradient(145deg,rgba(255,255,255,.10),rgba(102,72,171,.055)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 10px 22px rgba(8,3,30,.10) !important;
  box-sizing:border-box !important;
  opacity:.88 !important;
  overflow:hidden !important;
  cursor:pointer !important;
}
#doctorPanel .doctor-row.is-selected{opacity:1 !important;}
#doctorPanel .doctor-row-photo{
  grid-column:1 !important;
  width:68px !important;
  height:68px !important;
  justify-self:start !important;
  align-self:center !important;
  object-fit:cover !important;
  object-position:center top !important;
  border:2px solid rgba(255,255,255,.84) !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.08) !important;
  box-shadow:0 8px 18px rgba(8,3,28,.18) !important;
}
#doctorPanel .doctor-row-info,
#doctorPanel .doctor-row-info.is-fa{
  grid-column:2 !important;
  min-width:0 !important;
  width:100% !important;
  height:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:7px !important;
  text-align:left !important;
  direction:ltr !important;
  overflow:hidden !important;
}
#doctorPanel .doctor-row-name,
#doctorPanel .doctor-row-specialty{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  line-height:1.25 !important;
}
#doctorPanel .doctor-row-name{
  font-size:15px !important;
  font-weight:900 !important;
  color:#fff !important;
}
#doctorPanel .doctor-row-specialty{
  font-size:12px !important;
  font-weight:750 !important;
  color:#ffd45e !important;
}
#doctorPanel .doctor-row-separator{display:none !important;}
#doctorPanel .doctor-selection-frame{
  position:absolute !important;
  z-index:6 !important;
  left:0 !important;
  right:0 !important;
  top:0 !important;
  width:100% !important;
  height:var(--doctor-row-height) !important;
  border:4px solid #ffd447 !important;
  border-radius:20px !important;
  background:linear-gradient(105deg,rgba(255,212,71,.13),rgba(255,212,71,.025)) !important;
  box-shadow:0 0 0 1px rgba(255,255,255,.15),0 0 26px rgba(255,212,71,.22),inset 0 1px 0 rgba(255,255,255,.28) !important;
  pointer-events:none !important;
  box-sizing:border-box !important;
}

#doctorPanel [lang="fa"]{
  direction:rtl !important;
  text-align:right !important;
}
#doctorPanel .doctor-row-info.is-fa{
  direction:rtl !important;
  text-align:right !important;
  align-items:flex-end !important;
}

@media(max-width:1300px){
  #doctorPanel.home-doctor-panel{height:870px !important;min-height:870px !important;padding:14px !important;--doctor-row-height:94px !important;--doctor-row-gap:8px !important;}
  #doctorPanel .home-doctor-detail-shell{flex-basis:330px !important;min-height:330px !important;}
  #doctorPanel .home-doctor-detail{height:330px !important;min-height:330px !important;grid-template-columns:130px minmax(0,1fr) !important;padding:18px !important;}
  #doctorPanel .doctor-detail-photo-wrap{width:130px !important;min-width:130px !important;max-width:130px !important;height:196px !important;}
  #doctorPanel .doctor-detail-name{font-size:23px !important;}
  #doctorPanel .doctor-detail-specialty{font-size:15px !important;}
  #doctorPanel .doctor-row{grid-template-columns:68px minmax(0,1fr) !important;padding:9px 13px !important;}
  #doctorPanel .doctor-row-photo{width:58px !important;height:58px !important;}
}
@media(max-width:900px){
  #doctorPanel.home-doctor-panel{height:auto !important;min-height:820px !important;}
  #doctorPanel .home-doctor-detail-shell{flex-basis:auto !important;min-height:360px !important;}
  #doctorPanel .home-doctor-detail{height:auto !important;min-height:360px !important;}
}


/* V32 — right doctor square matches center square; mouse wheel inside first row */
#doctorPanel.home-doctor-panel{
  --doctor-row-height:74px;
  --doctor-row-gap:10px;
  display:flex !important;
  flex-direction:column !important;
  height:930px !important;
  min-height:930px !important;
  padding:18px !important;
  overflow:hidden !important;
}

/* Same width and 1:1 ratio as the center panel's .panel-square */
#doctorPanel .home-doctor-detail-shell{
  width:100% !important;
  aspect-ratio:1 / 1 !important;
  flex:0 0 auto !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 0 16px !important;
}
#doctorPanel .home-doctor-detail{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  box-sizing:border-box !important;
  padding:24px 26px 22px !important;
  display:grid !important;
  grid-template-columns:38% minmax(0,1fr) !important;
  grid-template-rows:minmax(0,1fr) 50px !important;
  column-gap:24px !important;
  row-gap:16px !important;
  align-items:center !important;
  border-radius:28px !important;
  overflow:hidden !important;
}
#doctorPanel .doctor-detail-photo-wrap{
  grid-column:1 !important;
  grid-row:1 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:86% !important;
  max-height:300px !important;
  padding:0 !important;
  margin:0 !important;
  align-self:center !important;
  border:0 !important;
  border-radius:20px !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:hidden !important;
}
#doctorPanel .doctor-detail-photo{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center top !important;
  border:0 !important;
  border-radius:20px !important;
  box-shadow:none !important;
}
#doctorPanel .doctor-detail-content{
  grid-column:2 !important;
  grid-row:1 !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  text-align:left !important;
  gap:10px !important;
}
#doctorPanel .doctor-detail-name{font-size:28px !important;}
#doctorPanel .doctor-detail-specialty{font-size:17px !important;}
#doctorPanel .doctor-detail-meta{margin-top:8px !important;gap:10px !important;}
#doctorPanel .doctor-detail-actions{
  grid-column:1 / -1 !important;
  grid-row:2 !important;
  width:100% !important;
  max-width:360px !important;
  height:50px !important;
  margin:0 auto !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
  align-items:center !important;
  justify-content:center !important;
  align-self:end !important;
  direction:ltr !important;
  transform:none !important;
}
#doctorPanel .doctor-detail-button{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:42px !important;
}

/* Four small rows occupy exactly the remaining space below the square */
#doctorPanel .home-doctor-list-shell{
  position:relative !important;
  width:100% !important;
  flex:1 1 auto !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  border-radius:24px !important;
  background:rgba(255,255,255,.018) !important;
}
#doctorPanel .doctor-list-viewport{
  position:absolute !important;
  inset:0 !important;
  overflow:hidden !important;
  border-radius:22px !important;
}
#doctorPanel .doctor-list-track{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:var(--doctor-row-gap) !important;
  will-change:transform !important;
}
#doctorPanel .doctor-row{
  width:100% !important;
  height:var(--doctor-row-height) !important;
  min-height:var(--doctor-row-height) !important;
  grid-template-columns:68px minmax(0,1fr) !important;
  gap:12px !important;
  padding:9px 70px 9px 14px !important;
  align-items:center !important;
  box-sizing:border-box !important;
}
#doctorPanel .doctor-row-photo{
  width:58px !important;
  height:58px !important;
  border-radius:16px !important;
}
#doctorPanel .doctor-row-info{
  min-width:0 !important;
  height:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  text-align:left !important;
  gap:5px !important;
}
#doctorPanel .doctor-row-name{
  width:100% !important;
  max-width:100% !important;
  font-size:14px !important;
  line-height:1.3 !important;
}
#doctorPanel .doctor-row-specialty{
  width:100% !important;
  max-width:100% !important;
  font-size:11px !important;
  line-height:1.35 !important;
}
#doctorPanel .doctor-selection-frame{
  top:0 !important;
  height:var(--doctor-row-height) !important;
  border:3px solid rgba(255,211,71,.98) !important;
  border-radius:20px !important;
  z-index:6 !important;
  pointer-events:none !important;
}

/* Mouse-wheel control is physically inside the first/selected small row, on its right */
#doctorPanel .home-doctor-scroll-control{
  position:absolute !important;
  z-index:9 !important;
  top:6px !important;
  right:8px !important;
  width:48px !important;
  height:calc(var(--doctor-row-height) - 12px) !important;
  min-height:52px !important;
  display:grid !important;
  grid-template-rows:15px minmax(22px,1fr) 15px !important;
  align-items:center !important;
  justify-items:center !important;
  gap:1px !important;
  padding:2px 3px !important;
  border:1px solid rgba(255,255,255,.36) !important;
  border-radius:17px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(107,74,172,.13)) !important;
  box-shadow:0 8px 18px rgba(9,3,31,.20),inset 0 1px 0 rgba(255,255,255,.40) !important;
  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;
  cursor:ns-resize !important;
}
#doctorPanel .home-doctor-scroll-arrow{
  position:relative !important;
  width:28px !important;
  height:15px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
#doctorPanel .home-doctor-scroll-arrow::before{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  width:8px !important;
  height:8px !important;
  border-right:2px solid rgba(255,255,255,.96) !important;
  border-bottom:2px solid rgba(255,255,255,.96) !important;
}
#doctorPanel .home-doctor-scroll-arrow.up::before{transform:translate(-50%,-25%) rotate(225deg) !important;}
#doctorPanel .home-doctor-scroll-arrow.down::before{transform:translate(-50%,-75%) rotate(45deg) !important;}
#doctorPanel .home-doctor-mouse{
  position:relative !important;
  width:24px !important;
  height:100% !important;
  min-height:28px !important;
  max-height:40px !important;
  border:2px solid rgba(255,255,255,.92) !important;
  border-radius:13px !important;
  background:rgba(255,255,255,.05) !important;
}
#doctorPanel .home-doctor-mouse::before{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:4px !important;
  bottom:4px !important;
  width:1px !important;
  transform:translateX(-50%) !important;
  background:rgba(255,255,255,.32) !important;
}
#doctorPanel .home-doctor-wheel{
  position:absolute !important;
  left:50% !important;
  top:5px !important;
  width:6px !important;
  height:11px !important;
  border-radius:8px !important;
  transform:translateX(-50%) !important;
  background:linear-gradient(180deg,#ffe58a,#c9a7ff) !important;
  box-shadow:0 0 9px rgba(255,220,102,.45) !important;
  transition:transform .24s ease !important;
}
#doctorPanel .home-doctor-scroll-control.scrolling-up .home-doctor-wheel{transform:translate(-50%,-3px) !important;}
#doctorPanel .home-doctor-scroll-control.scrolling-down .home-doctor-wheel{transform:translate(-50%,3px) !important;}

@media (max-width:1180px){
  #doctorPanel .home-doctor-detail{padding:18px !important;grid-template-columns:36% minmax(0,1fr) !important;}
  #doctorPanel .doctor-detail-name{font-size:23px !important;}
  #doctorPanel .doctor-detail-specialty{font-size:15px !important;}
  #doctorPanel .doctor-row{grid-template-columns:58px minmax(0,1fr) !important;padding-right:62px !important;}
  #doctorPanel .doctor-row-photo{width:50px !important;height:50px !important;}
}
@media (max-width:980px){
  #doctorPanel.home-doctor-panel{height:auto !important;min-height:760px !important;}
  #doctorPanel .home-doctor-detail-shell{aspect-ratio:1 / 1 !important;}
  #doctorPanel .home-doctor-list-shell{flex:0 0 calc(var(--doctor-row-height) * 4 + var(--doctor-row-gap) * 3) !important;}
}

/* V33 — center articles panel mirrors the right doctors panel */
#articlePanel.home-article-panel{
  --article-row-height:88px;
  --article-row-gap:10px;
  display:flex !important;
  flex-direction:column !important;
  height:930px !important;
  min-height:930px !important;
  padding:18px !important;
  overflow:hidden !important;
}
#articlePanel .home-article-detail-shell{
  width:100% !important;
  aspect-ratio:1 / 1 !important;
  flex:0 0 auto !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 0 16px !important;
}
#articlePanel .home-article-detail{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  box-sizing:border-box !important;
  padding:24px 26px 22px !important;
  display:grid !important;
  grid-template-columns:38% minmax(0,1fr) !important;
  grid-template-rows:minmax(0,1fr) 50px !important;
  column-gap:24px !important;
  row-gap:16px !important;
  align-items:center !important;
  border-radius:28px !important;
  overflow:hidden !important;
}
#articlePanel .home-article-detail-photo-wrap{
  grid-column:1 !important;
  grid-row:1 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:86% !important;
  max-height:300px !important;
  padding:0 !important;
  margin:0 !important;
  align-self:center !important;
  border:0 !important;
  border-radius:20px !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:hidden !important;
}
#articlePanel .home-article-detail-photo{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
  border:0 !important;
  border-radius:20px !important;
  box-shadow:none !important;
  cursor:pointer !important;
}
#articlePanel .home-article-detail-content{
  grid-column:2 !important;
  grid-row:1 !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  text-align:left !important;
  gap:10px !important;
}
#articlePanel .home-article-detail-label{
  padding:6px 11px !important;
  border-radius:999px !important;
  color:#fff8cf !important;
  background:rgba(255,212,71,.14) !important;
  border:1px solid rgba(255,212,71,.55) !important;
  font-size:11px !important;
  font-weight:900 !important;
}
#articlePanel .home-article-detail-title{
  width:100% !important;
  margin:0 !important;
  color:#fff !important;
  font-size:25px !important;
  line-height:1.35 !important;
  font-weight:900 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:3 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}
#articlePanel .home-article-detail-excerpt{
  width:100% !important;
  margin:0 !important;
  color:rgba(247,241,255,.84) !important;
  font-size:12px !important;
  line-height:1.75 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:4 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}
#articlePanel .home-article-detail-date{
  color:#ffd447 !important;
  font-size:11px !important;
  font-weight:900 !important;
  direction:ltr !important;
}
#articlePanel .home-article-detail-actions{
  grid-column:1 / -1 !important;
  grid-row:2 !important;
  width:100% !important;
  max-width:360px !important;
  height:50px !important;
  margin:0 auto !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
  align-items:center !important;
  justify-content:center !important;
  align-self:end !important;
  direction:ltr !important;
}
#articlePanel .home-article-detail-button{
  width:100% !important;
  min-width:0 !important;
  height:42px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 10px !important;
  border:1px solid rgba(255,255,255,.42) !important;
  border-radius:13px !important;
  color:#fff !important;
  text-decoration:none !important;
  font:900 12px Tahoma,Arial,sans-serif !important;
  cursor:pointer !important;
  box-shadow:0 9px 20px rgba(9,3,30,.18),inset 0 1px 0 rgba(255,255,255,.35) !important;
}
#articlePanel .home-article-detail-button.primary{background:linear-gradient(135deg,#ffad2f,#f28420) !important;}
#articlePanel .home-article-detail-button.secondary{background:linear-gradient(135deg,#7647e8,#9a5eff) !important;}
#articlePanel .home-article-list-shell{
  position:relative !important;
  width:100% !important;
  flex:0 0 calc(var(--article-row-height) * 4 + var(--article-row-gap) * 3) !important;
  height:calc(var(--article-row-height) * 4 + var(--article-row-gap) * 3) !important;
  min-height:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  border-radius:24px !important;
  background:rgba(255,255,255,.018) !important;
}
#articlePanel .article-list-viewport{
  position:absolute !important;
  inset:0 !important;
  overflow:hidden !important;
  border-radius:22px !important;
}
#articlePanel .article-list-track{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:var(--article-row-gap) !important;
  will-change:transform !important;
}
#articlePanel .article-row{
  width:100% !important;
  height:var(--article-row-height) !important;
  min-height:var(--article-row-height) !important;
  display:grid !important;
  grid-template-columns:68px minmax(0,1fr) !important;
  gap:12px !important;
  padding:9px 70px 9px 14px !important;
  align-items:center !important;
  box-sizing:border-box !important;
  border:1px solid rgba(255,255,255,.22) !important;
  border-radius:20px !important;
  background:linear-gradient(145deg,rgba(255,255,255,.095),rgba(92,61,155,.055)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.19) !important;
  opacity:.88 !important;
  overflow:hidden !important;
  cursor:pointer !important;
  direction:ltr !important;
}
#articlePanel .article-row.is-selected{opacity:1 !important;filter:saturate(1.08) brightness(1.04) !important;}
#articlePanel .article-row-thumb{
  grid-column:1 !important;
  width:58px !important;
  height:58px !important;
  min-width:58px !important;
  border-radius:16px !important;
  object-fit:cover !important;
  border:1px solid rgba(255,255,255,.42) !important;
  box-shadow:0 7px 16px rgba(8,3,30,.20) !important;
}
#articlePanel .article-row-info{
  grid-column:2 !important;
  min-width:0 !important;
  height:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  text-align:left !important;
  gap:5px !important;
  direction:ltr !important;
}
#articlePanel .article-row-title{
  width:100% !important;
  max-width:100% !important;
  color:#fff !important;
  font-size:13px !important;
  line-height:1.35 !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
#articlePanel .article-row-snippet{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  color:rgba(244,238,255,.78) !important;
  font-size:10.5px !important;
  line-height:1.35 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
#articlePanel .article-row-date{
  margin:0 !important;
  color:#ffd447 !important;
  font-size:9.5px !important;
  font-weight:850 !important;
  direction:ltr !important;
}
#articlePanel .article-selection-frame{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:0 !important;
  height:var(--article-row-height) !important;
  z-index:6 !important;
  border:3px solid rgba(255,211,71,.98) !important;
  border-radius:20px !important;
  background:linear-gradient(105deg,rgba(255,212,71,.06),transparent) !important;
  box-shadow:0 0 22px rgba(255,212,71,.16),inset 0 1px 0 rgba(255,255,255,.22) !important;
  pointer-events:none !important;
}
#articlePanel .home-article-scroll-control{
  position:absolute !important;
  z-index:9 !important;
  top:6px !important;
  right:8px !important;
  width:48px !important;
  height:calc(var(--article-row-height) - 12px) !important;
  min-height:62px !important;
  display:grid !important;
  grid-template-rows:15px minmax(28px,1fr) 15px !important;
  align-items:center !important;
  justify-items:center !important;
  gap:1px !important;
  padding:2px 3px !important;
  border:1px solid rgba(255,255,255,.36) !important;
  border-radius:17px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(107,74,172,.13)) !important;
  box-shadow:0 8px 18px rgba(9,3,31,.20),inset 0 1px 0 rgba(255,255,255,.40) !important;
  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;
  cursor:ns-resize !important;
  transform:none !important;
}
#articlePanel .home-article-scroll-arrow{
  position:relative !important;
  width:28px !important;
  height:15px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
#articlePanel .home-article-scroll-arrow::before{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  width:8px !important;
  height:8px !important;
  border-right:2px solid rgba(255,255,255,.96) !important;
  border-bottom:2px solid rgba(255,255,255,.96) !important;
}
#articlePanel .home-article-scroll-arrow.up::before{transform:translate(-50%,-25%) rotate(225deg) !important;}
#articlePanel .home-article-scroll-arrow.down::before{transform:translate(-50%,-75%) rotate(45deg) !important;}
#articlePanel .home-article-mouse{
  position:relative !important;
  width:24px !important;
  height:100% !important;
  min-height:34px !important;
  max-height:46px !important;
  border:2px solid rgba(255,255,255,.92) !important;
  border-radius:13px !important;
  background:rgba(255,255,255,.05) !important;
}
#articlePanel .home-article-mouse::before{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:4px !important;
  bottom:4px !important;
  width:1px !important;
  transform:translateX(-50%) !important;
  background:rgba(255,255,255,.32) !important;
}
#articlePanel .home-article-wheel{
  position:absolute !important;
  left:50% !important;
  top:5px !important;
  width:6px !important;
  height:11px !important;
  border-radius:8px !important;
  transform:translateX(-50%) !important;
  background:linear-gradient(180deg,#ffe58a,#c9a7ff) !important;
  box-shadow:0 0 9px rgba(255,220,102,.45) !important;
  transition:transform .24s ease !important;
}
#articlePanel .home-article-scroll-control.scrolling-up .home-article-wheel{transform:translate(-50%,-3px) !important;}
#articlePanel .home-article-scroll-control.scrolling-down .home-article-wheel{transform:translate(-50%,3px) !important;}
html[dir="rtl"] #articlePanel .home-article-detail-content,
html[dir="rtl"] #articlePanel .article-row-info{text-align:right !important;align-items:flex-end !important;}
html[dir="rtl"] #articlePanel .home-article-detail-title,
html[dir="rtl"] #articlePanel .home-article-detail-excerpt,
html[dir="rtl"] #articlePanel .article-row-title,
html[dir="rtl"] #articlePanel .article-row-snippet{direction:rtl !important;unicode-bidi:plaintext !important;}
.article-modal-source{
  display:inline-flex !important;
  margin-top:16px !important;
  padding:9px 14px !important;
  border-radius:12px !important;
  color:#fff4b7 !important;
  background:rgba(255,212,71,.12) !important;
  border:1px solid rgba(255,212,71,.42) !important;
  text-decoration:none !important;
  font-weight:850 !important;
}
.article-modal-source[hidden]{display:none !important;}
@media (max-width:1180px){
  #articlePanel .home-article-detail{padding:18px !important;grid-template-columns:36% minmax(0,1fr) !important;}
  #articlePanel .home-article-detail-title{font-size:21px !important;}
  #articlePanel .article-row{grid-template-columns:58px minmax(0,1fr) !important;padding-right:62px !important;}
  #articlePanel .article-row-thumb{width:50px !important;height:50px !important;min-width:50px !important;}
}
@media (max-width:980px){
  #articlePanel.home-article-panel{height:auto !important;min-height:760px !important;}
  #articlePanel .home-article-detail-shell{aspect-ratio:1 / 1 !important;}
}


/* V34 — six real interactive glass puzzle buttons in the left homepage panel */
.puzzle-button-panel{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  padding:18px !important;
}
.puzzle-button-panel .six-puzzle-board{
  position:relative;
  width:100%;
  min-height:0;
  aspect-ratio:3 / 2;
  margin:auto;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:30px;
  overflow:visible;
  background:
    radial-gradient(circle at 50% 45%,rgba(255,255,255,.13),transparent 55%),
    linear-gradient(145deg,rgba(255,255,255,.095),rgba(96,68,170,.055));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -18px 40px rgba(50,22,105,.05),
    0 22px 45px rgba(7,3,28,.14);
}
.six-puzzle-svg{
  width:100%;
  height:auto;
  max-height:100%;
  overflow:visible;
  filter:drop-shadow(0 18px 26px rgba(8,3,30,.22));
}
.puzzle-action{
  cursor:pointer;
  outline:none;
  transform-box:fill-box;
  transform-origin:center;
  transition:transform .28s cubic-bezier(.2,.75,.25,1),filter .28s ease,opacity .28s ease;
}
.puzzle-action path{
  stroke:rgba(255,255,255,.42);
  stroke-width:3;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 8px 14px rgba(12,5,40,.16));
  transition:stroke .28s ease,stroke-width .28s ease,filter .28s ease,fill-opacity .28s ease;
}
.puzzle-action::selection{background:transparent;}
.puzzle-action:hover,
.puzzle-action:focus-visible{
  transform:translateY(-5px) scale(1.018);
  filter:saturate(1.12) brightness(1.07);
}
.puzzle-action:hover path,
.puzzle-action:focus-visible path{
  stroke:rgba(255,255,255,.92);
  stroke-width:4;
  filter:drop-shadow(0 0 15px rgba(255,255,255,.34)) drop-shadow(0 14px 22px rgba(10,4,34,.22));
}
.puzzle-action.is-active{
  transform:translateY(-4px) scale(1.02);
  filter:saturate(1.18) brightness(1.08);
}
.puzzle-action.is-active path{
  stroke:#ffd74f;
  stroke-width:5;
  filter:drop-shadow(0 0 11px rgba(255,215,79,.88)) drop-shadow(0 0 24px rgba(255,191,50,.48)) drop-shadow(0 15px 24px rgba(10,4,34,.24));
}
.puzzle-number,
.puzzle-caption{
  pointer-events:none;
  text-anchor:middle;
  fill:#fff;
  paint-order:stroke;
  stroke:rgba(31,13,74,.24);
  stroke-width:1.5px;
  font-family:Arial,Tahoma,sans-serif;
  font-weight:850;
  text-shadow:0 2px 9px rgba(23,8,63,.4);
}
.puzzle-number{font-size:42px;letter-spacing:.04em;}
.puzzle-caption{font-size:17px;letter-spacing:.15em;opacity:.82;}
.puzzle-selection-label{
  position:absolute;
  left:50%;
  bottom:-38px;
  transform:translateX(-50%);
  min-width:152px;
  height:29px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,215,79,.72);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(255,215,79,.18),rgba(255,255,255,.08));
  color:#fff8cf;
  font-size:11px;
  font-weight:800;
  letter-spacing:.03em;
  box-shadow:0 0 16px rgba(255,203,64,.18),inset 0 1px 0 rgba(255,255,255,.38);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  white-space:nowrap;
}
@media (max-width:1180px){
  .puzzle-button-panel{padding:14px !important;}
  .puzzle-button-panel .six-puzzle-board{padding:10px;border-radius:24px;}
  .puzzle-number{font-size:38px;}
  .puzzle-caption{font-size:15px;}
}
@media (max-width:820px){
  .puzzle-button-panel{min-height:460px !important;}
  .puzzle-button-panel .six-puzzle-board{max-width:650px;}
}
@media (max-width:590px){
  .puzzle-button-panel{min-height:360px !important;padding:10px !important;}
  .puzzle-button-panel .six-puzzle-board{padding:7px;border-radius:20px;}
  .puzzle-number{font-size:34px;}
  .puzzle-caption{font-size:13px;}
  .puzzle-selection-label{bottom:-32px;height:26px;font-size:9px;}
}


/* V35 — left gallery circle + scroll + animated puzzle gallery */
.home-gallery-puzzle-panel{
  display:flex !important;
  flex-direction:column !important;
  gap:16px !important;
  min-height:870px !important;
  padding:18px !important;
}
.home-gallery-hero-wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 56px;
  align-items:center;
  gap:14px;
  min-height:308px;
}
.home-gallery-circle{
  position:relative;
  width:min(100%,300px);
  aspect-ratio:1/1;
  margin-inline:auto 0;
  border-radius:50%;
  overflow:hidden;
  border:2px solid rgba(255,255,255,.56);
  box-shadow:0 16px 34px rgba(22,8,54,.34), inset 0 1px 0 rgba(255,255,255,.28);
  background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.18),rgba(114,82,188,.12) 48%,rgba(16,6,39,.55) 82%);
}
.home-gallery-circle::before{content:'';position:absolute;inset:12px;border-radius:50%;border:1px solid rgba(255,255,255,.28);pointer-events:none;z-index:2;}
.home-gallery-circle-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.home-gallery-circle-glow{position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(13,6,30,.04) 42%,rgba(15,6,34,.64) 86%);z-index:1;}
.home-gallery-circle-copy{position:absolute;left:24px;right:24px;bottom:22px;z-index:3;text-align:center;color:#fff;}
.home-gallery-circle-title{margin:0;font-size:22px;font-weight:900;line-height:1.3;text-shadow:0 3px 16px rgba(0,0,0,.45);}
.home-gallery-circle-description{margin:8px 0 0;font-size:12px;line-height:1.55;color:rgba(245,241,255,.92);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
.home-gallery-wheel{
  width:54px;
  height:182px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:8px 0;
  border-radius:30px;
  border:1px solid rgba(255,255,255,.38);
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(91,66,164,.16));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 12px 20px rgba(18,8,43,.24);
}
.home-gallery-wheel-arrow{width:100%;padding:0;border:0;background:none;color:#fff;font-size:18px;cursor:pointer;text-shadow:0 2px 10px rgba(0,0,0,.35);}
.home-gallery-wheel-track{position:relative;width:28px;height:92px;border-radius:999px;border:1.5px solid rgba(255,255,255,.7);background:rgba(19,9,43,.36);box-shadow:inset 0 2px 6px rgba(255,255,255,.08);overflow:hidden;}
.home-gallery-wheel-thumb{position:absolute;left:50%;top:14px;transform:translateX(-50%);width:10px;height:30px;border-radius:999px;background:linear-gradient(180deg,#efdcff,#b58cff);box-shadow:0 0 10px rgba(240,187,255,.6), inset 0 1px 0 rgba(255,255,255,.55);transition:transform .25s ease, top .25s ease;}
.home-gallery-wheel.is-down .home-gallery-wheel-thumb{top:48px;}
.home-gallery-wheel.is-up .home-gallery-wheel-thumb{top:8px;}

.home-gallery-puzzle-wrap{
  flex:1 1 auto;
  width:100%;
  padding:12px;
  border-radius:30px;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(62,39,120,.1));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
}
.home-gallery-puzzle-svg{width:100%;height:auto;display:block;overflow:visible;}
.home-gallery-puzzle-piece{cursor:pointer;transform-box:fill-box;transform-origin:center center;transition:transform .38s ease, filter .38s ease, opacity .28s ease;filter:drop-shadow(0 14px 18px rgba(8,3,24,.25));}
.home-gallery-puzzle-piece:hover,.home-gallery-puzzle-piece:focus-visible{transform:translateY(-3px) scale(1.02);filter:drop-shadow(0 16px 20px rgba(100,69,206,.36));outline:none;}
.home-gallery-puzzle-piece.is-active{transform:scale(1.065);filter:drop-shadow(0 16px 24px rgba(255,211,71,.28));}
.home-gallery-puzzle-piece.is-pulse{animation:homePuzzlePulse 1s ease;}
@keyframes homePuzzlePulse{0%{transform:scale(1)}35%{transform:scale(1.1)}100%{transform:scale(1.065)}}
.home-gallery-puzzle-piece .piece-overlay{fill:rgba(255,255,255,.10);pointer-events:none;}
.home-gallery-puzzle-piece .piece-outline{fill:none;stroke:rgba(255,255,255,.74);stroke-width:2.4;vector-effect:non-scaling-stroke;pointer-events:none;transition:stroke .28s ease, filter .28s ease;}
.home-gallery-puzzle-piece.is-active .piece-outline{stroke:#ffd54f;filter:drop-shadow(0 0 10px rgba(255,213,79,.52));}

@media (max-width: 1280px){
  .home-gallery-puzzle-panel{min-height:820px !important;}
  .home-gallery-circle{width:min(100%,278px);}
}
@media (max-width: 1024px){
  .home-gallery-puzzle-panel{min-height:760px !important;padding:14px !important;}
  .home-gallery-hero-wrap{grid-template-columns:minmax(0,1fr) 48px;min-height:278px;}
  .home-gallery-wheel{width:46px;height:170px;}
}
@media (max-width: 720px){
  .home-gallery-puzzle-panel{min-height:660px !important;}
  .home-gallery-circle{width:min(100%,240px);}
  .home-gallery-circle-title{font-size:18px;}
  .home-gallery-circle-description{font-size:11px;}
}


/* V36 — left puzzle gallery layout refinement */
.home-gallery-puzzle-panel{
  gap: 10px !important;
  min-height: 760px !important;
  padding: 16px 16px 12px !important;
  overflow: hidden !important;
}
.home-gallery-hero-wrap{
  grid-template-columns: minmax(0, 1fr) 42px !important;
  min-height: 268px !important;
  gap: 10px !important;
  align-items: center !important;
  justify-items: center !important;
}
.home-gallery-circle{
  width: min(100%, 286px) !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 auto !important;
}
.home-gallery-circle-copy{
  left: 18px !important;
  right: 18px !important;
  bottom: 16px !important;
}
.home-gallery-circle-title{
  font-size: 20px !important;
}
.home-gallery-circle-description{
  font-size: 11px !important;
  line-height: 1.48 !important;
  -webkit-line-clamp: 2 !important;
}
.home-gallery-wheel{
  width: 38px !important;
  height: 132px !important;
  gap: 6px !important;
  padding: 6px 0 !important;
  border-radius: 22px !important;
  justify-self: start !important;
}
.home-gallery-wheel-arrow{
  font-size: 14px !important;
  line-height: 1 !important;
}
.home-gallery-wheel-track{
  width: 20px !important;
  height: 68px !important;
}
.home-gallery-wheel-thumb{
  width: 8px !important;
  height: 24px !important;
  top: 10px !important;
}
.home-gallery-wheel.is-down .home-gallery-wheel-thumb{top: 35px !important;}
.home-gallery-wheel.is-up .home-gallery-wheel-thumb{top: 6px !important;}
.home-gallery-puzzle-wrap{
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 0 0 auto !important;
}
.home-gallery-puzzle-svg{
  width: 100% !important;
  height: auto !important;
}
.home-gallery-puzzle-piece.is-active{
  transform: scale(1.09) !important;
}
.home-gallery-puzzle-piece:hover,
.home-gallery-puzzle-piece:focus-visible{
  transform: translateY(-2px) scale(1.03) !important;
}
@media (max-width: 1280px){
  .home-gallery-puzzle-panel{min-height: 720px !important;}
  .home-gallery-circle{width: min(100%, 270px) !important;}
}
@media (max-width: 1024px){
  .home-gallery-puzzle-panel{min-height: 680px !important;}
  .home-gallery-hero-wrap{grid-template-columns: minmax(0,1fr) 38px !important; min-height: 240px !important;}
  .home-gallery-wheel{width: 34px !important; height: 120px !important;}
}


/* V37 — explicit left-top circle and smaller wheel */
.home-gallery-puzzle-panel{
  padding: 18px 18px 14px !important;
  min-height: 860px !important;
}
.home-gallery-hero-wrap{
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 310px !important;
  width: 100% !important;
  margin: 2px 0 18px 0 !important;
}
.home-gallery-circle{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 294px !important;
  height: 294px !important;
  flex: 0 0 294px !important;
  max-width: 294px !important;
  max-height: 294px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  position: relative !important;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.26), rgba(154,118,228,.16) 42%, rgba(20,8,48,.78) 82%) !important;
  border: 2px solid rgba(255,255,255,.55) !important;
  box-shadow: 0 18px 36px rgba(18,7,47,.32), inset 0 1px 0 rgba(255,255,255,.3) !important;
}
.home-gallery-circle::before{
  content:'' !important;
  position:absolute !important;
  inset: 12px !important;
  border-radius:50% !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  pointer-events:none !important;
  z-index:2 !important;
}
.home-gallery-circle-image{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}
.home-gallery-circle-glow{
  position:absolute !important;
  inset:0 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02) 40%, rgba(16,7,36,.62) 84%) !important;
  z-index:1 !important;
}
.home-gallery-circle-copy{
  position:absolute !important;
  left:18px !important;
  right:18px !important;
  bottom:18px !important;
  z-index:3 !important;
  text-align:center !important;
}
.home-gallery-circle-title{
  margin:0 !important;
  font-size:20px !important;
  font-weight:900 !important;
  line-height:1.28 !important;
}
.home-gallery-circle-description{
  margin:8px 0 0 !important;
  font-size:11px !important;
  line-height:1.45 !important;
  -webkit-line-clamp: 2 !important;
  display:-webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow:hidden !important;
}
.home-gallery-wheel{
  width: 34px !important;
  height: 118px !important;
  flex: 0 0 34px !important;
  gap: 5px !important;
  padding: 5px 0 !important;
  border-radius: 20px !important;
}
.home-gallery-wheel-arrow{
  font-size: 13px !important;
}
.home-gallery-wheel-track{
  width: 18px !important;
  height: 60px !important;
  border-width: 1.2px !important;
}
.home-gallery-wheel-thumb{
  width: 7px !important;
  height: 22px !important;
  top: 9px !important;
}
.home-gallery-wheel.is-up .home-gallery-wheel-thumb{ top: 5px !important; }
.home-gallery-wheel.is-down .home-gallery-wheel-thumb{ top: 31px !important; }
.home-gallery-puzzle-wrap{
  margin-top: 8px !important;
  padding-top: 6px !important;
}
@media (max-width: 1280px){
  .home-gallery-puzzle-panel{ min-height: 820px !important; }
  .home-gallery-circle{ width: 278px !important; height: 278px !important; flex-basis:278px !important; }
}
@media (max-width: 1024px){
  .home-gallery-hero-wrap{ min-height: 280px !important; gap: 10px !important; }
  .home-gallery-circle{ width: 250px !important; height: 250px !important; flex-basis:250px !important; }
  .home-gallery-wheel{ width: 30px !important; height: 108px !important; flex-basis:30px !important; }
}


/* V38 — larger left hero circle + wheel matched to middle panel */
.home-gallery-puzzle-panel{
  min-height: 900px !important;
  padding: 20px 18px 16px !important;
}
.home-gallery-hero-wrap{
  min-height: 360px !important;
  gap: 12px !important;
  margin: 4px 0 24px 0 !important;
}
.home-gallery-circle{
  width: 340px !important;
  height: 340px !important;
  flex: 0 0 340px !important;
  max-width: 340px !important;
  max-height: 340px !important;
}
.home-gallery-circle::before{
  inset: 14px !important;
}
.home-gallery-circle-copy{
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
}
.home-gallery-circle-title{
  font-size: 21px !important;
}
.home-gallery-circle-description{
  font-size: 11.5px !important;
  line-height: 1.5 !important;
}
/* Match the middle/article panel scroll style */
.home-gallery-wheel{
  width: 48px !important;
  height: 76px !important;
  min-height: 62px !important;
  flex: 0 0 48px !important;
  display: grid !important;
  grid-template-rows: 15px minmax(28px,1fr) 15px !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 1px !important;
  padding: 2px 3px !important;
  border: 1px solid rgba(255,255,255,.36) !important;
  border-radius: 17px !important;
  background: linear-gradient(180deg,rgba(255,255,255,.18),rgba(107,74,172,.13)) !important;
  box-shadow: 0 8px 18px rgba(9,3,31,.20), inset 0 1px 0 rgba(255,255,255,.40) !important;
}
.home-gallery-wheel-arrow{
  position: relative !important;
  width: 28px !important;
  height: 15px !important;
  font-size: 0 !important;
  text-shadow: none !important;
}
.home-gallery-wheel-arrow::before{
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid rgba(255,255,255,.96) !important;
  border-bottom: 2px solid rgba(255,255,255,.96) !important;
}
.home-gallery-wheel-arrow.up::before{transform:translate(-50%,-25%) rotate(225deg) !important;}
.home-gallery-wheel-arrow.down::before{transform:translate(-50%,-75%) rotate(45deg) !important;}
.home-gallery-wheel-track{
  position: relative !important;
  width: 24px !important;
  height: 100% !important;
  min-height: 34px !important;
  max-height: 46px !important;
  border: 2px solid rgba(255,255,255,.92) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.05) !important;
  box-shadow: none !important;
}
.home-gallery-wheel-track::before{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:4px !important;
  bottom:4px !important;
  width:1px !important;
  transform:translateX(-50%) !important;
  background:rgba(255,255,255,.32) !important;
}
.home-gallery-wheel-thumb{
  left:50% !important;
  top:5px !important;
  width:6px !important;
  height:11px !important;
  border-radius:8px !important;
  transform:translateX(-50%) !important;
  background:linear-gradient(180deg,#ffe58a,#c9a7ff) !important;
  box-shadow:0 0 9px rgba(255,220,102,.45) !important;
}
.home-gallery-wheel.is-up .home-gallery-wheel-thumb{transform:translate(-50%,-3px) !important; top:5px !important;}
.home-gallery-wheel.is-down .home-gallery-wheel-thumb{transform:translate(-50%,3px) !important; top:5px !important;}
.home-gallery-puzzle-wrap{
  margin-top: 16px !important;
}
@media (max-width: 1280px){
  .home-gallery-circle{width: 312px !important;height: 312px !important;flex-basis:312px !important;}
}
@media (max-width: 1024px){
  .home-gallery-hero-wrap{min-height: 320px !important;}
  .home-gallery-circle{width: 280px !important;height: 280px !important;flex-basis:280px !important;}
}


/* V39 — near-edge full-width circular gallery hero */
.home-gallery-puzzle-panel{
  min-height: 1080px !important;
  padding: 16px 14px 14px !important;
}
.home-gallery-hero-wrap{
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 48px !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 0 22px 0 !important;
}
.home-gallery-circle{
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  aspect-ratio: 1 / 1 !important;
  flex: none !important;
  margin: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}
.home-gallery-circle-image{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.home-gallery-wheel{
  justify-self: center !important;
  align-self: center !important;
  width: 48px !important;
  height: 76px !important;
  flex: none !important;
}
.home-gallery-puzzle-wrap{
  margin-top: 18px !important;
}
@media (max-width: 1280px){
  .home-gallery-puzzle-panel{min-height: 990px !important;}
  .home-gallery-circle{width:100% !important;height:auto !important;max-width:none !important;}
}
@media (max-width: 1024px){
  .home-gallery-puzzle-panel{min-height: 900px !important;}
  .home-gallery-hero-wrap{grid-template-columns:minmax(0,1fr) 44px !important;gap:6px !important;}
  .home-gallery-wheel{width:44px !important;}
}

/* V40 — left panel outer size exactly matches center and right panels */
.home-gallery-puzzle-panel{
  height:930px !important;
  min-height:930px !important;
  max-height:930px !important;
  box-sizing:border-box !important;
  padding:18px !important;
  overflow:hidden !important;
}
@media (max-width:1300px){
  .home-gallery-puzzle-panel{
    height:870px !important;
    min-height:870px !important;
    max-height:870px !important;
    padding:14px !important;
  }
}
@media (max-width:980px){
  .home-gallery-puzzle-panel{
    height:auto !important;
    min-height:760px !important;
    max-height:none !important;
  }
}


/* V41 — slightly smaller left circle with raised glass card */
.home-gallery-hero-wrap{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 48px !important;
  align-items:center !important;
  justify-items:center !important;
  gap:12px !important;
  width:100% !important;
  min-height:360px !important;
  margin:0 0 22px 0 !important;
  padding:18px 16px !important;
  border-radius:34px !important;
  border:1px solid rgba(255,255,255,.22) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(99,67,166,.10) 55%, rgba(35,17,72,.14)) !important;
  box-shadow:0 18px 36px rgba(14,6,38,.22), inset 0 1px 0 rgba(255,255,255,.22) !important;
  backdrop-filter: blur(6px) !important;
}
.home-gallery-circle{
  width:min(100%, 286px) !important;
  max-width:286px !important;
  height:auto !important;
  aspect-ratio:1/1 !important;
  justify-self:center !important;
  box-shadow:0 18px 32px rgba(12,5,32,.34), inset 0 1px 0 rgba(255,255,255,.28) !important;
  border:2px solid rgba(255,255,255,.52) !important;
}
.home-gallery-circle::before{
  inset:12px !important;
  border:1px solid rgba(255,255,255,.24) !important;
}
.home-gallery-wheel{
  justify-self:center !important;
  align-self:center !important;
}
.home-gallery-puzzle-wrap{
  margin-top:22px !important;
}
@media (max-width:1280px){
  .home-gallery-hero-wrap{min-height:332px !important; padding:16px 14px !important;}
  .home-gallery-circle{width:min(100%,272px) !important; max-width:272px !important;}
}
@media (max-width:1024px){
  .home-gallery-hero-wrap{min-height:300px !important; grid-template-columns:minmax(0,1fr) 44px !important; padding:14px 12px !important;}
  .home-gallery-circle{width:min(100%,246px) !important; max-width:246px !important;}
}


/* V42 — left panel rows like middle and right */
.home-gallery-puzzle-panel{
  --home-gallery-row-height: 96px;
  --home-gallery-row-gap: 10px;
}
.home-gallery-hero-wrap{
  margin: 0 0 16px 0 !important;
}
.home-gallery-list-shell{
  position: relative !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: calc(var(--home-gallery-row-height) * 4 + var(--home-gallery-row-gap) * 3 + 8px) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(84,59,140,.05)) !important;
}
.home-gallery-list-shell::before,
.home-gallery-list-shell::after{
  content: "";
  position: absolute;
  left: 0; right: 0; z-index: 5; pointer-events: none; height: 28px;
}
.home-gallery-list-shell::before{top:0;background:linear-gradient(to bottom, rgba(34,19,72,.25), transparent);}
.home-gallery-list-shell::after{bottom:0;background:linear-gradient(to top, rgba(34,19,72,.28), transparent);}
.home-gallery-list-viewport{
  position: relative;
  height: 100%;
  overflow: hidden;
}
.home-gallery-list-track{
  position: absolute;
  left: 0; right: 0; top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--home-gallery-row-gap);
  will-change: transform;
}
.home-gallery-row{
  position: relative;
  height: var(--home-gallery-row-height);
  min-height: var(--home-gallery-row-height);
  display: grid;
  grid-template-columns: 76px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(103,66,170,.08));
  box-shadow: 0 12px 24px rgba(9,4,30,.10), inset 0 1px 0 rgba(255,255,255,.34);
  overflow: hidden;
  opacity: .84;
  cursor: pointer;
}
.home-gallery-row.is-selected{opacity: 1; filter: saturate(1.08) brightness(1.04);}
.home-gallery-row-thumb{
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,.86);
  box-shadow: 0 10px 20px rgba(12,6,40,.22);
}
.home-gallery-row-info{
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  text-align: left;
  direction: ltr;
}
.home-gallery-row-title{
  display:block;
  width:100%;
  color:#fff;
  font-size:14px;
  font-weight:900;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.home-gallery-row-text{
  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow:hidden;
  width:100%;
  color:rgba(244,238,255,.82);
  font-size:11px;
  line-height:1.5;
  text-align:left;
}
.home-gallery-selection-frame{
  position:absolute;
  z-index:6;
  left:0; right:0; top:0;
  height: var(--home-gallery-row-height);
  border: 4px solid rgba(255,211,71,.98);
  border-radius: 22px;
  background: linear-gradient(105deg, rgba(255,209,48,.15), rgba(255,221,108,.04));
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 26px rgba(255,215,90,.20), inset 0 1px 0 rgba(255,255,255,.30);
  pointer-events:none;
}
@media (max-width: 980px){
  .home-gallery-list-shell{height: calc(var(--home-gallery-row-height) * 4 + var(--home-gallery-row-gap) * 3 + 8px) !important;}
  .home-gallery-row{grid-template-columns:68px minmax(0,1fr);}
  .home-gallery-row-thumb{width:68px;height:68px;}
}


/* V43 — unify top boxes, five rows for all three panels, back-to-top */
:root{
  --cm-unified-top-gap: 16px;
  --cm-unified-row-height: 82px;
  --cm-unified-row-gap: 10px;
}
#homeGalleryPanel.home-gallery-puzzle-panel,
#articlePanel.home-article-panel,
#doctorPanel.home-doctor-panel{
  min-height: 930px !important;
}
#doctorPanel.home-doctor-panel{
  --doctor-row-height: var(--cm-unified-row-height) !important;
  --doctor-row-gap: var(--cm-unified-row-gap) !important;
}
#articlePanel.home-article-panel{
  --article-row-height: var(--cm-unified-row-height) !important;
  --article-row-gap: var(--cm-unified-row-gap) !important;
}
#homeGalleryPanel.home-gallery-puzzle-panel{
  --home-gallery-row-height: var(--cm-unified-row-height) !important;
  --home-gallery-row-gap: var(--cm-unified-row-gap) !important;
}
#homeGalleryPanel .home-gallery-hero-wrap,
#articlePanel .home-article-detail-shell,
#doctorPanel .home-doctor-detail-shell{
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 var(--cm-unified-top-gap) 0 !important;
  box-sizing: border-box !important;
}
#homeGalleryPanel .home-gallery-hero-wrap{
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 48px !important;
  align-items: center !important;
  justify-items: center !important;
  padding: 18px 14px !important;
  border-radius: 30px !important;
}
#homeGalleryPanel .home-gallery-circle{
  width: min(100%, 272px) !important;
  max-width: 272px !important;
  aspect-ratio: 1 / 1 !important;
}
#homeGalleryPanel .home-gallery-list-shell,
#articlePanel .home-article-list-shell,
#doctorPanel .home-doctor-list-shell{
  height: calc(var(--cm-unified-row-height) * 5 + var(--cm-unified-row-gap) * 4 + 8px) !important;
  flex: 0 0 auto !important;
}
#doctorPanel .doctor-selection-frame,
#articlePanel .article-selection-frame,
#homeGalleryPanel .home-gallery-selection-frame{
  height: var(--cm-unified-row-height) !important;
}
#doctorPanel .doctor-row{
  height: var(--cm-unified-row-height) !important;
  min-height: var(--cm-unified-row-height) !important;
}
#articlePanel .article-row{
  height: var(--cm-unified-row-height) !important;
  min-height: var(--cm-unified-row-height) !important;
}
#homeGalleryPanel .home-gallery-row{
  height: var(--cm-unified-row-height) !important;
  min-height: var(--cm-unified-row-height) !important;
}
.back-to-top-btn{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(112,75,189,.20));
  box-shadow: 0 14px 28px rgba(12,5,34,.26), inset 0 1px 0 rgba(255,255,255,.28);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, filter .2s ease;
  z-index: 1200;
}
.back-to-top-btn.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top-btn:hover{
  filter: brightness(1.08);
}
@media (max-width: 1180px){
  #homeGalleryPanel.home-gallery-puzzle-panel,
  #articlePanel.home-article-panel,
  #doctorPanel.home-doctor-panel{
    min-height: 900px !important;
  }
  #homeGalleryPanel .home-gallery-circle{
    width: min(100%, 248px) !important;
    max-width: 248px !important;
  }
}
@media (max-width: 980px){
  #homeGalleryPanel .home-gallery-hero-wrap,
  #articlePanel .home-article-detail-shell,
  #doctorPanel .home-doctor-detail-shell{
    aspect-ratio: auto !important;
    min-height: 320px !important;
  }
  #homeGalleryPanel .home-gallery-list-shell,
  #articlePanel .home-article-list-shell,
  #doctorPanel .home-doctor-list-shell{
    height: calc(var(--cm-unified-row-height) * 5 + var(--cm-unified-row-gap) * 4 + 8px) !important;
  }
  .back-to-top-btn{
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}


/* V44 — left panel scroll control moved onto first row like center/right */
#homeGalleryPanel .home-gallery-hero-wrap{
  grid-template-columns: minmax(0,1fr) !important;
  justify-items: center !important;
}
#homeGalleryPanel .home-gallery-scroll-control{
  position:absolute !important;
  z-index:9 !important;
  top:6px !important;
  right:8px !important;
  width:48px !important;
  height:calc(var(--home-gallery-row-height) - 12px) !important;
  min-height:62px !important;
  display:grid !important;
  grid-template-rows:15px minmax(28px,1fr) 15px !important;
  align-items:center !important;
  justify-items:center !important;
  gap:1px !important;
  padding:2px 3px !important;
  border:1px solid rgba(255,255,255,.36) !important;
  border-radius:17px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(107,74,172,.13)) !important;
  box-shadow:0 8px 18px rgba(9,3,31,.20), inset 0 1px 0 rgba(255,255,255,.40) !important;
  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;
  cursor:ns-resize !important;
  transform:none !important;
}
#homeGalleryPanel .home-gallery-wheel-arrow{
  position:relative !important;
  width:28px !important;
  height:15px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  font-size:0 !important;
  color:transparent !important;
}
#homeGalleryPanel .home-gallery-wheel-arrow::before{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  width:8px !important;
  height:8px !important;
  border-right:2px solid rgba(255,255,255,.96) !important;
  border-bottom:2px solid rgba(255,255,255,.96) !important;
}
#homeGalleryPanel .home-gallery-wheel-arrow.up::before{transform:translate(-50%,-25%) rotate(225deg) !important;}
#homeGalleryPanel .home-gallery-wheel-arrow.down::before{transform:translate(-50%,-75%) rotate(45deg) !important;}
#homeGalleryPanel .home-gallery-wheel-track{
  position:relative !important;
  width:24px !important;
  height:100% !important;
  min-height:34px !important;
  max-height:46px !important;
  border:2px solid rgba(255,255,255,.92) !important;
  border-radius:13px !important;
  background:rgba(255,255,255,.05) !important;
  box-shadow:none !important;
}
#homeGalleryPanel .home-gallery-wheel-track::before{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:4px !important;
  bottom:4px !important;
  width:1px !important;
  transform:translateX(-50%) !important;
  background:rgba(255,255,255,.32) !important;
}
#homeGalleryPanel .home-gallery-wheel-thumb{
  position:absolute !important;
  left:50% !important;
  top:5px !important;
  width:6px !important;
  height:11px !important;
  border-radius:8px !important;
  transform:translateX(-50%) !important;
  background:linear-gradient(180deg,#ffe58a,#c9a7ff) !important;
  box-shadow:0 0 9px rgba(255,220,102,.45) !important;
  transition:transform .24s ease !important;
}
#homeGalleryPanel .home-gallery-scroll-control.is-up .home-gallery-wheel-thumb,
#homeGalleryPanel .home-gallery-scroll-control.scrolling-up .home-gallery-wheel-thumb{transform:translate(-50%,-3px) !important;}
#homeGalleryPanel .home-gallery-scroll-control.is-down .home-gallery-wheel-thumb,
#homeGalleryPanel .home-gallery-scroll-control.scrolling-down .home-gallery-wheel-thumb{transform:translate(-50%,3px) !important;}


/* V45 — location, center information and legal footer */
.site-footer-section{
  position:relative;
  width:min(96%,1640px);
  margin:72px auto 0;
  padding:0 0 34px;
  color:#f7f2ff;
  font-family:Tahoma,Arial,sans-serif;
}
.site-footer-inner{display:flex;flex-direction:column;gap:24px;}
.footer-top-cards{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.footer-glass-card{
  min-height:330px;
  padding:20px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:30px;
  background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(72,44,132,.14));
  box-shadow:0 22px 46px rgba(12,5,34,.22),inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter:blur(14px);
  overflow:hidden;
}
.footer-card-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.footer-card-heading h2{margin:0;font-size:20px;font-weight:900;color:#fff;}
.footer-card-icon{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:14px;background:rgba(255,255,255,.12);color:#ffe17a;font-size:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.25);}
.footer-map-frame{height:255px;border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.15);}
.footer-map-frame iframe{width:100%;height:100%;border:0;display:block;filter:saturate(.9) contrast(1.03);}
.footer-center-info{display:flex;flex-direction:column;justify-content:center;}
.footer-center-info>p{margin:0;color:rgba(247,242,255,.86);font-size:14px;line-height:2;}
.footer-info-contact{display:flex;flex-direction:column;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid rgba(255,255,255,.16);}
.footer-info-contact a{color:#ffe38b;text-decoration:none;font-weight:900;}
.footer-info-contact span{color:rgba(247,242,255,.78);line-height:1.7;}
.footer-main-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:24px;
  padding:26px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:30px;
  background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(54,31,108,.13));
  box-shadow:0 18px 40px rgba(11,4,31,.18),inset 0 1px 0 rgba(255,255,255,.18);
}
.footer-brand-column,.footer-links-column,.footer-contact-column{min-width:0;}
.footer-brand-logo{width:72px;height:72px;object-fit:contain;display:block;margin-bottom:12px;}
.footer-brand-name{display:block;font-size:21px;color:#fff;margin-bottom:10px;}
.footer-brand-note,.footer-contact-address{margin:0;color:rgba(247,242,255,.76);font-size:13px;line-height:1.8;}
.footer-links-column h3,.footer-contact-column h3{margin:0 0 16px;font-size:16px;color:#fff;}
.footer-quick-links{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;}
.footer-quick-links a{color:rgba(247,242,255,.82);text-decoration:none;font-size:13px;transition:color .2s ease,transform .2s ease;}
.footer-quick-links a:hover{color:#ffe17a;transform:translateX(2px);}
.footer-contact-column{display:flex;flex-direction:column;gap:12px;}
.footer-contact-phone{color:#ffe17a;text-decoration:none;font-weight:900;font-size:16px;}
.footer-legal-line{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.28);color:rgba(247,242,255,.66);font-size:12px;line-height:1.7;}
.footer-legal-line p{margin:0;}
.footer-legal-line span{white-space:nowrap;color:rgba(255,229,144,.88);}
html[dir="rtl"] .site-footer-section{text-align:right;}
html[dir="rtl"] .footer-quick-links a:hover{transform:translateX(-2px);}
@media(max-width:980px){
  .footer-top-cards{grid-template-columns:1fr;}
  .footer-main-grid{grid-template-columns:1fr 1fr;}
  .footer-brand-column{grid-column:1/-1;}
}
@media(max-width:640px){
  .site-footer-section{width:94%;margin-top:48px;}
  .footer-glass-card{min-height:0;padding:16px;border-radius:24px;}
  .footer-map-frame{height:230px;}
  .footer-main-grid{grid-template-columns:1fr;padding:20px;border-radius:24px;}
  .footer-brand-column{grid-column:auto;}
  .footer-quick-links{grid-template-columns:1fr;}
  .footer-legal-line{flex-direction:column;align-items:flex-start;}
}

/* V80 — database-driven main-menu image arrangement */
.menu-item.menu-icon-after{flex-direction:row-reverse}
.menu-item.menu-icon-above{flex-direction:column;gap:2px;padding-top:4px;padding-bottom:4px;line-height:1.05}
.menu-item.menu-icon-above .menu-item-image{margin:0}

/* V86 — database-driven statistical buttons on the right side of the hero */
.right-actions .action-stat-card{
  min-height:76px;
  height:auto!important;
  padding:8px 13px!important;
  justify-content:flex-start!important;
  gap:10px!important;
  cursor:pointer;
}
.right-actions div.action-stat-card{cursor:default}
.action-stat-copy{display:flex;min-width:0;flex:1;flex-direction:column;align-items:center;justify-content:center;line-height:1.12;text-align:center;position:relative;z-index:2}
.action-stat-value{display:block;font-weight:950;letter-spacing:.2px;text-shadow:0 3px 12px rgba(35,14,76,.28);white-space:nowrap}
.action-stat-title{display:block;margin-top:1px;font-weight:900;line-height:1.25}
.action-stat-secondary{display:block;margin-top:2px;padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.13);font-size:8px;font-weight:800;line-height:1.3;color:#fff;white-space:nowrap}
.action-stat-description{display:block;margin-top:3px;max-width:100%;font-weight:600;line-height:1.35;opacity:.9}
.right-actions .action-stat-card .action-item-image{position:relative;z-index:2;flex:none}
@media(max-width:1180px){.right-actions .action-stat-card{min-height:65px;padding:6px 9px!important}.action-stat-description{display:none}.action-stat-secondary{font-size:7px}}
@media(max-width:590px){.right-actions .action-stat-card{min-height:48px;padding:4px 6px!important}.action-stat-value{font-size:14px!important}.action-stat-title{font-size:7px!important}.action-stat-secondary,.action-stat-description{display:none}}

/* V88 — public account access below the site logo */
.member-access-nav{position:absolute;left:28px;top:88px;z-index:28;display:flex;align-items:center;gap:6px;pointer-events:auto;direction:ltr}
.member-access-link{min-height:30px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.58);border-radius:999px;background:linear-gradient(145deg,rgba(255,255,255,.48),rgba(174,140,239,.22));box-shadow:0 9px 22px rgba(39,18,87,.2),inset 0 1px 0 rgba(255,255,255,.8);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:#34206c;text-decoration:none;font-size:10px;font-weight:850;white-space:nowrap;transition:transform .22s ease,box-shadow .22s ease,background .22s ease}
.member-access-link:hover{transform:translateY(-2px);box-shadow:0 12px 27px rgba(39,18,87,.3),0 0 18px rgba(120,215,255,.22),inset 0 1px 0 #fff}
.member-access-link.register{background:linear-gradient(135deg,rgba(151,100,231,.9),rgba(64,194,219,.82));color:#fff;border-color:rgba(255,255,255,.5)}
.member-access-link.profile{max-width:230px;overflow:hidden;text-overflow:ellipsis;background:linear-gradient(135deg,rgba(151,100,231,.9),rgba(64,194,219,.82));color:#fff;border-color:rgba(255,255,255,.55)}
.member-access-link.profile::before{content:"◉";margin-right:7px;font-size:9px;color:#fff4bd}
.member-access-nav.is-fa{direction:rtl}.member-access-nav.is-fa .member-access-link.profile::before{margin-right:0;margin-left:7px}
@media(max-width:1500px){.member-access-nav{left:25px;top:82px}.member-access-link{min-height:28px;padding:0 10px;font-size:9px}}
@media(max-width:1180px){.topbar{height:164px}.member-access-nav{left:15px;top:66px}.menu-bar{top:108px}.member-access-link{min-height:27px;padding:0 9px;font-size:8.5px}}
@media(max-width:820px){.member-access-nav{left:12px;top:59px}.menu-bar{top:101px}.member-access-link{min-height:25px;padding:0 8px;font-size:8px}.member-access-link.profile{max-width:150px}}
@media(max-width:590px){.member-access-nav{left:9px;top:56px;gap:4px}.menu-bar{top:96px}.member-access-link{min-height:23px;padding:0 7px;font-size:7.4px}.member-access-link.profile{max-width:120px}}

/* V143 — database controlled logo dimensions and motion visibility */
.brand-link{width:clamp(90px,var(--brand-logo-width,250px),420px)!important;height:clamp(36px,var(--brand-logo-height,70px),140px)!important}.motion-layer[hidden],.slide-frame.motion-objects-disabled .motion-layer{display:none!important}
