/* MADARIK 03 | smooth wave, device and live editor */
:root{--display-font:'Palestine Local','Noto Naskh Arabic',Tajawal,serif}
.hero{isolation:isolate}.hero::after{display:none}.hero::before{opacity:.85}
.wave-field{position:absolute;inset:0;overflow:hidden;z-index:-1;pointer-events:none;isolation:isolate;opacity:.78}
.wave-scroll{position:absolute;inset:-12% -15%;will-change:transform}
.wave-orbit{position:absolute;width:102%;height:115%;left:-12%;top:-8%;transform-origin:40% 50%;animation:orbit-sway 28s ease-in-out infinite alternate;will-change:transform}
.wave-orbit path{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round}
.wave-orbit.secondary{animation:orbit-sway-secondary 36s ease-in-out infinite alternate;opacity:.58;left:-5%;top:3%}
@keyframes orbit-sway{0%{transform:translate3d(-1.5%,1%,0) rotate(-3deg) scale(1.01)}50%{transform:translate3d(1.8%,-1.6%,0) rotate(1.8deg) scale(1.035)}100%{transform:translate3d(-.6%,2.3%,0) rotate(-1deg) scale(1.015)}}
@keyframes orbit-sway-secondary{0%{transform:translate3d(1%,2%,0) rotate(1deg)}100%{transform:translate3d(-2%,-1.5%,0) rotate(-3deg) scale(1.045)}}
.hero h1,.section-head h2,.last-cta h2{font-family:var(--display-font);font-weight:400;letter-spacing:0;line-height:1.3}
.hero h1{font-size:clamp(58px,7vw,104px)}.hero h1 span{display:inline-block}.section-head h2{font-size:clamp(38px,4.6vw,65px)}.last-cta h2{font-size:clamp(30px,4vw,48px)}
.hero-art{--device-zoom:.64;perspective:1300px;gap:14px;padding:18px 22px}
.phone.device-wrap{width:fit-content!important;max-width:100%;height:auto!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important;max-height:none!important;border-radius:0!important;position:relative;flex-shrink:0;transform-origin:center;transition:transform .45s var(--ease)}
.phone.device-wrap::before{display:none!important}
.device-wrap .device{zoom:var(--device-zoom,.69);filter:drop-shadow(0 18px 25px #0006);direction:ltr}
.device-wrap .device-frame{position:relative;box-shadow:inset 0 0 3px 2px #a9a3b3,inset 0 0 0 6px #3c3942;background:#08080a}
.device-wrap .device-header,.device-wrap .device-sensors,.device-wrap .device-stripe,.device-wrap .device-btns,.device-wrap .device-power,.device-wrap .device-home{pointer-events:none;z-index:3}
.device-wrap .device-screen{overflow-y:auto;overflow-x:hidden;scrollbar-width:none;direction:rtl;isolation:isolate}
.device-wrap .device-screen::-webkit-scrollbar{display:none}
.device-wrap .device-screen>.profile{border-radius:0!important;width:100%;min-height:830px!important;padding:87px 25px 24px!important;box-shadow:none;border:0}
.device-wrap .device-screen .profile .avatar{width:var(--av,90px);height:var(--av,90px);margin-bottom:13px}
.device-wrap .device-screen .profile h2{font-size:29px;line-height:1.4}
.device-wrap .device-screen .profile p{font-size:15px;margin:8px 0 24px}
.device-wrap .device-screen .plink-list{gap:var(--gap,12px)}
.device-wrap .device-screen .plink{min-height:var(--ph,54px);font-size:16px;grid-template-columns:34px minmax(0,1fr) 17px;padding:10px 13px;gap:8px}
.device-wrap .device-screen .plink-list.grid .plink{grid-template-columns:24px minmax(0,1fr);font-size:14px;padding:10px;gap:6px}
.device-wrap .device-screen .plink-list.compact .plink{display:flex;flex-direction:column;min-height:54px;padding:10px 6px;font-size:12px}
.device-wrap .device-screen .plink .platform{width:32px;height:32px}
.device-wrap .device-screen .profile .powered{font-size:12px;padding-top:22px}
.device-wrap .device-screen .profile .powered img{width:21px}
.preview{--device-zoom:.68;top:96px}
.preview .device-wrap{max-height:none!important}
.preview .device-screen .plink,.mini-profile .plink{animation:none!important}
.music-card{width:100%;min-width:0;display:grid;gap:7px;padding:10px 0;margin:0 0 13px}
.music-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;color:inherit}
.music-heading .muted{font-size:11px;color:inherit;opacity:.55}
.music-brand{font-weight:700;direction:ltr}
.music-embed{border:0;border-radius:12px;width:100%;min-width:0;display:block;background:#121212}
.music-embed.youtube{min-height:200px}
.music-open{align-self:start;justify-self:start;font-size:11px;color:inherit;opacity:.75;padding:3px 0}
.music-open:hover{opacity:1;text-decoration:underline}
.music-input small{font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.mobile-live{display:none}
@media(max-width:1120px) and (min-width:761px){.preview{--device-zoom:.60}.hero-art{--device-zoom:.59}}
@media(max-width:760px){.wave-scroll{inset:-10% -45%;}.wave-orbit{left:-15%;width:125%;height:100%}.wave-orbit.secondary{left:-8%}.hero h1{font-size:clamp(48px,12.5vw,74px);margin-top:14px;line-height:1.26}.section-head h2{font-size:43px}.last-cta h2{font-size:36px}.hero-art{--device-zoom:.65;padding:15px 12px}.hero-art .device-wrap{transform:none!important}.preview{--device-zoom:.69}.mobile-live{display:block;margin:12px 16px 0;border:1px solid #ffffff18;border-radius:13px;background:#16151c;overflow:hidden;position:relative}.live-head{display:flex;align-items:center;justify-content:space-between;padding:7px 10px;font-size:12px;color:#d7d0df;min-height:36px}.live-head>span{display:flex;align-items:center;gap:6px}.live-head i{width:6px;height:6px;background:#9bc5ab;border-radius:50%}.live-head button{font-size:11px;min-height:28px;padding:4px 8px}.mobile-live.collapsed #live-mini{display:none}.preview-mode .mobile-live{display:none}.mini-profile{min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);align-items:center;gap:12px;padding:13px!important;border-radius:0!important;max-height:155px;overflow:hidden}.mini-profile .profile-head{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;gap:4px 8px;text-align:right;align-items:center}.mini-profile .profile-head .avatar{width:34px;height:34px;grid-row:1/3;font-size:14px;margin:0!important}.mini-profile .profile-head h2{font-size:14px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}.mini-profile .profile-head p{font-size:10px!important;line-height:1.35;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:100%}.mini-profile .plink-list{display:grid!important;grid-template-columns:1fr!important;gap:0!important}.mini-profile .plink{min-height:38px;display:grid!important;grid-template-columns:19px minmax(0,1fr)!important;font-size:10px!important;max-height:76px;gap:4px;padding:6px 8px!important;white-space:normal}.mini-profile .plink .platform{width:18px;height:18px}.mini-profile .plink .platform img,.mini-profile .plink .platform svg{width:12px;height:12px}.mini-profile .plink>svg,.mini-profile .powered{display:none!important}.mini-profile .plink .link-label{overflow-wrap:anywhere}.mini-profile .plink-list:empty:after{content:"أضف رابطك الأول";font-size:10px;opacity:.6;text-align:center;padding:10px 0}.public-page .music-card{margin-bottom:17px}}
@media(max-width:350px){.hero-art{--device-zoom:.57}.preview{--device-zoom:.60}.mobile-live{margin-inline:10px}.mini-profile{gap:6px;padding:10px!important}}
@media(prefers-reduced-motion:reduce){.wave-orbit{animation:none!important}.wave-scroll{transform:none!important}.device-wrap{transform:none!important}}
.hero h1{line-height:1.42;margin-bottom:34px}.section-head h2,.last-cta h2{line-height:1.5;padding-bottom:10px}@media(max-width:760px){.hero h1{line-height:1.4;margin-bottom:25px}}

/* Fixed editorial artwork; browser font independent */
.hero-title-art{display:flex;flex-direction:column;align-items:flex-start;gap:.18em;margin:24px 0 34px!important;line-height:normal!important}.title-art{display:block;width:min(100%,var(--title-width));height:auto;max-width:100%;object-fit:contain;object-position:right center;user-select:none}.heading-art{display:block;line-height:normal!important}.heading-art .title-art{margin:0}.section-head .heading-art{margin:10px 0 6px}.last-cta .heading-art{margin:9px 0 0;padding-bottom:0!important}.auth-title .title-art{margin-inline:auto}.hero-copy .hero-title-art{max-width:100%}@media(max-width:760px){.hero-title-art{gap:.13em;margin:17px 0 24px!important}.hero h1.hero-title-art{font-size:clamp(52px,13vw,74px)}.last-cta .heading-art{font-size:32px}.section-head .heading-art{font-size:39px}}
.section-head,.last-cta{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:center;gap:24px}.section-head>div,.last-cta>div{min-width:0}.section-head>p{width:100%;max-width:360px;min-width:0;justify-self:end;overflow-wrap:normal}.last-cta>.btn{justify-self:end;width:max-content;max-width:100%;white-space:normal;min-width:0;padding-inline:16px}.heading-art{min-width:0;max-width:100%}.heading-art .title-art{width:min(100%,var(--title-width));max-width:100%}@media(max-width:760px){.section-head,.last-cta{grid-template-columns:minmax(0,1fr);gap:14px}.section-head>p,.last-cta>.btn{justify-self:start}.section-head>p{max-width:100%}}
