.mg-mark{display:inline-block;vertical-align:middle;object-fit:contain;flex:none}
.brand .mg-mark{width:1.18em;height:1.18em}
#heroHeading .mg-mark{width:.82em;height:.82em}
.hero.route-section h2{line-height:1.44}
.hero.route-section .hero-copy>p{line-height:1.8;text-wrap:pretty}
.hero.route-section{grid-template-areas:"copy art";grid-template-columns:1.15fr 1fr;min-height:470px}
.hero.route-section .hero-art{grid-area:art;align-self:center;justify-self:center;position:relative;inset:auto;width:100%;opacity:1;transform:none}
.hero.route-section .hero-art img{width:min(100%,440px);height:auto}
#uploadBox.route-section{max-width:940px;margin:clamp(24px,6vw,70px) auto;width:min(92%,940px)}
.mg-upload-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;margin-bottom:20px}
.mg-upload-heading p{margin:6px 0 0;color:#d4c3ed}
#qualityPolicy{scroll-margin-top:110px}
#qualityPolicy .ht-trust-card{padding:20px;border-radius:20px;line-height:1.7}
#qualityPolicy .ht-trust-card .hi-icon{width:25px;height:25px;color:#c2a0ff}
#qualityPolicy .ht-trust-card h3{margin:5px 0 8px}
#qualityPolicy .ht-trust-card p{margin:0;color:#e0d6f1}
.mg-export-title{margin-top:32px}
.mg-export{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:940px;margin:16px auto}
.mg-export figure{padding:18px;margin:0;border-radius:20px;display:grid;grid-template-rows:auto 1fr;gap:14px}
.mg-export h3,.mg-export p{margin:0 0 8px}
.mg-export-image{display:grid;align-content:end;gap:8px;color:#e4d3ff;text-underline-offset:4px}
.mg-export-image img{display:block;width:100%;height:auto;border-radius:10px}
.mg-export-image span{text-decoration:underline;font-size:.86rem}
.mg-subscription{display:flex;gap:24px;flex-wrap:wrap;margin:20px 0 24px}
.mg-subscription dt{color:#d4c3ed;font-size:.9em}
.mg-subscription dd{margin:6px 0;font-weight:700}
#authModal:not([hidden]){animation:mg-auth-overlay .32s ease-out both}
.comparison-footer{justify-content:center}
@keyframes mg-slide{from{transform:translateY(12px) scale(.96);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
@keyframes mg-auth-overlay{
  from{opacity:0;backdrop-filter:blur(0)}
  to{opacity:1;backdrop-filter:blur(12px)}
}
@keyframes mg-backdrop{from{opacity:0}to{opacity:1}}
@keyframes mg-intro-exit{0%,62%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}
@media(max-width:750px){.hero.route-section{grid-template-areas:"copy" "art";grid-template-columns:1fr;min-height:auto;gap:12px}.hero.route-section .hero-art{display:block;max-width:295px}.mg-export{grid-template-columns:1fr}}

#subscriptionName[data-plan="free"],#accountBadge[data-plan="free"]{
  font-size:1rem;
  font-weight:600;
  line-height:1.5;
  letter-spacing:normal;
  background:#a676f126;
  color:#f0e4ff;
  border:1px solid #c8a5fb53;
  border-radius:7px;
  padding:2px 10px;
  width:fit-content;
}
#subscriptionName[data-plan="free"]{display:inline-block;margin-top:3px}

@font-face{
  font-family:"Noto Sans Arabic";
  src:url("/assets/fonts/NotoSansArabic.woff2") format("woff2");
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}
@font-face{
  font-family:"Inter";
  src:url("/assets/fonts/Inter.woff2") format("woff2");
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}
html body{font-family:"Noto Sans Arabic","Segoe UI",Tahoma,sans-serif}
html[lang="en"] body{font-family:"Inter","Segoe UI",Arial,sans-serif}
html[lang="ar"] .hero-copy>p{line-height:1.95}
body :is(button,input,select,textarea,a, .brand, .hero h1, .mini-logo){
  font-family:inherit;
}
body .brand,body .hero h1,body .mini-logo{font-style:normal}
body :is(.main-nav,.ht-nav,.dash-sidebar,.ht-device-tabs,.auth-tabs){
  font-weight:600;
  line-height:1.5;
}
body .main-nav a:not([hidden]),body .ht-nav a:not([hidden]){
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding-block:7px;
  line-height:1.5;
  white-space:nowrap;
  font-weight:600;
}
body .nav-signin,body .lang-shell{
  min-height:38px;
  line-height:1.5;
}
body .lang-shell select{line-height:1.5}
body .ht-tab{line-height:1.5;font-weight:600}
body .dash-sidebar a:not([hidden]){display:flex;align-items:center;min-height:38px;line-height:1.5}
body .auth-tabs button{min-height:40px;line-height:1.5;font-weight:600}
@media(max-width:850px){
  body .ht-nav{flex-wrap:wrap;row-gap:3px}
}
@media(max-width:780px){
  body .main-nav a:not([hidden]){padding-block:8px}
}

@media(min-width:781px) and (max-width:1150px){
  html[lang="en"] .main-nav{gap:9px;font-size:10.5px}
}
html[lang="en"] .main-nav a{text-align:start}
html[lang="en"] .upload-panel{text-align:start}

.mg-export figcaption p{width:fit-content;font-variant-numeric:tabular-nums}
.mg-export-note{max-width:900px;margin:16px auto;color:#e0d2eb;line-height:1.8}
.mg-notice-dialog{
  position:fixed;inset:0;box-sizing:border-box;width:min(calc(100% - 32px),500px);
  max-height:85vh;max-height:85dvh;overflow:auto;overflow-wrap:anywhere;margin:auto;padding:clamp(20px,5vw,32px);
  color:#fff4ff;background:linear-gradient(155deg,#34204f,#1f1035);
  border:1px solid #b486ee;border-radius:20px;box-shadow:0 18px 70px #12051dc7;
  font-family:inherit;text-align:start;
}
.mg-notice-dialog[open]{animation:mg-notice-enter .26s ease-out both}
.mg-notice-dialog::backdrop{background:#11051ec2;backdrop-filter:blur(5px)}
.mg-notice-dialog h2{margin:0 0 10px;font-size:clamp(1.2rem,4vw,1.55rem)}
.mg-notice-dialog p{margin:0 0 22px;color:#eee0fa;line-height:1.8}
.mg-notice-dialog form{display:flex;justify-content:flex-end}
@keyframes mg-notice-enter{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.price-card .mg-plan-icon{display:block;margin:0 auto 10px;object-fit:contain;animation:mg-plan-float 2.8s ease-in-out infinite}
.price-4k .mg-plan-icon{animation-name:mg-plan-crown;animation-duration:3.4s}
.price-free .mg-plan-icon{animation-name:mg-plan-gift;animation-duration:3.2s}
.price-card .mg-plan-name{display:inline-block;white-space:nowrap}
.price-card .mg-plan-initials{color:#ffd367;font-weight:800}
@keyframes mg-plan-float{50%{transform:translateY(-5px)}}
@keyframes mg-plan-crown{50%{transform:translateY(-5px) rotate(-5deg)}}
@keyframes mg-plan-gift{50%{transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){.price-card .mg-plan-icon,.mg-notice-dialog[open]{animation:none}}
#uploadBox .upload-tier-grid{grid-template-columns:minmax(0,1fr);gap:12px}
#uploadBox .tier-uploader{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px}
#uploadBox .tier-uploader-head{grid-column:1/-1;gap:2px;text-align:start}
#uploadBox .tier-uploader-head strong{font-size:1rem;text-align:inherit}
#uploadBox .upload-zone{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;
  min-width:0;min-height:78px;gap:10px;padding:10px;text-align:start;
}
#uploadBox .mg-upload-icon{
  width:42px;height:42px;object-fit:contain;
  animation:mg-plan-float 2.8s ease-in-out infinite;
}
#uploadBox #fourkCard .mg-upload-icon{animation-name:mg-plan-crown;animation-duration:3.4s}
@media(prefers-reduced-motion:reduce){#uploadBox .mg-upload-icon{animation:none}}
#uploadBox .mg-upload-file{min-width:0;max-width:100%;padding:0}
#uploadBox .mg-upload-file strong{
  display:block;min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal;
  white-space:normal;font-size:.93rem;line-height:1.45;unicode-bidi:plaintext;
}
#uploadBox .mg-upload-file span{display:block;margin-top:2px;font-size:.75rem;overflow-wrap:anywhere}
#uploadBox .upload-choose{white-space:normal;padding:7px 10px;font-size:.75rem}
#uploadBox .upload-process{align-self:center;min-height:40px;padding:8px 12px;font-size:.81rem}
@media(max-width:620px){
  #uploadBox .tier-uploader{grid-template-columns:minmax(0,1fr)}
  #uploadBox .upload-zone{grid-template-columns:auto minmax(0,1fr)}
  #uploadBox .upload-choose{grid-column:2;justify-self:start}
}

#uploadBox .tier-uploader-head{display:grid;justify-items:start;row-gap:5px}
#uploadBox .tier-uploader-head .mg-upload-plan{color:#f6f7ff;line-height:1.3;letter-spacing:.01em}
#uploadBox .mg-upload-plan .mg-plan-initials{color:#ffd367;font:inherit;font-weight:800}
#uploadBox .mg-upload-file{display:grid;row-gap:5px;align-content:center}
#uploadBox .mg-upload-file strong,#uploadBox .mg-upload-file span{margin:0}

::highlight(mgpro-brand){color:#ffd367;text-shadow:none}

.mg-upload-counter{display:inline-flex;align-items:center;gap:7px;font-variant-numeric:tabular-nums}
.mg-upload-gear{display:none;color:#ffd367;flex:none}
.is-processing .mg-upload-gear{display:block;animation:mg-upload-spin 1.4s linear infinite}
@keyframes mg-upload-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.is-processing .mg-upload-gear{animation:none}}

#pricing .pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
@media(max-width:650px){#pricing .pricing-grid{grid-template-columns:1fr}}

#uploadBox .mg-upload-rate-list{
  list-style:none;display:grid;gap:6px;margin:8px 0 0;padding:0;
  color:#e9ddf5;line-height:1.65;font-size:.85rem;text-align:start;
}
#uploadBox .mg-upload-rate-list li{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:baseline;gap:.55em;margin:0}
#uploadBox .mg-rate-number{direction:ltr;unicode-bidi:isolate;color:#d5adff;font-weight:700}
#uploadBox .mg-rate-tier{min-inline-size:1.7em;color:#f8efff;font-weight:700}
#uploadBox .mg-upload-rate-list bdi{white-space:nowrap}
#uploadBox .mg-upload-rate-help{margin-block-start:8px}
#uploadBox .mg-upload-rate-help a{text-decoration:underline;text-underline-offset:3px}

/* Keep a small, visible motion on desktop even when general motion is reduced. */
@media(prefers-reduced-motion:reduce) and (min-width:781px) and (pointer:fine){
  #uploadBox .mg-upload-icon,
  #pricing .mg-plan-icon{animation:mg-desktop-icon-float 3s ease-in-out infinite!important}
  #uploadBox #fourkCard .mg-upload-icon,
  #pricing .price-4k .mg-plan-icon{animation:mg-desktop-icon-crown 3.4s ease-in-out infinite!important}
}
@keyframes mg-desktop-icon-float{50%{transform:translateY(-3px)}}
@keyframes mg-desktop-icon-crown{50%{transform:translateY(-3px) rotate(-3deg)}}

/* Decorative motion on the illustration and standalone icons. */
@keyframes mg-hero-float{50%{translate:0 -12px}}
@keyframes mg-hero-orbit{50%{rotate:7deg;opacity:.64}}
@keyframes mg-icon-breathe{50%{translate:0 -3px}}
@keyframes mg-hero-soft-float{50%{translate:0 -7px}}
.hero.route-section .hero-art img{animation:mg-hero-float 5.2s ease-in-out infinite}
.hero.route-section .orbit{animation:mg-hero-orbit 7s ease-in-out infinite}
.hero.route-section .orbit-b{animation-direction:reverse;animation-duration:9s}
body :is(.mg-mark,.feature-icon,.metric-icon,.tiktok-note,.hi-icon,.comparison-grip,.mgpro-eye svg,.quality-policy-symbol img){
  animation:mg-icon-breathe 3.2s ease-in-out infinite;
}
body :is(.feature-icon,.metric-icon):nth-child(even),
.features .feature:nth-child(even) .feature-icon{animation-delay:-1.1s}
@media(prefers-reduced-motion:reduce) and (min-width:781px) and (pointer:fine){
  .hero.route-section .hero-art img{animation:mg-hero-soft-float 5.2s ease-in-out infinite!important}
  .hero.route-section .orbit{animation:mg-hero-orbit 8s ease-in-out infinite!important}
  .features .feature.icon-card .feature-icon,
  #qualityPolicy .quality-policy-symbol.caution-symbol img{
    animation:mg-icon-breathe 3.2s ease-in-out infinite!important;
  }
  body :is(.mg-mark,.feature-icon,.metric-icon,.tiktok-note,.hi-icon,.comparison-grip,.mgpro-eye svg,.quality-policy-symbol img){
    animation:mg-icon-breathe 3.2s ease-in-out infinite!important;
  }
}

@media(prefers-reduced-motion:reduce) and (min-width:781px) and (pointer:fine){
  #authModal:not([hidden]){animation:mg-auth-overlay .22s ease-out both!important}
}

.mg-auth-reveal{
  position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;
  gap:.025em;pointer-events:none;color:#ffd367;font-family:Inter,"Segoe UI",sans-serif;
  font-size:clamp(4.1rem,13vw,8.5rem);font-weight:800;line-height:1;
  text-shadow:0 0 36px #ac6bf69e;
}
.mg-auth-letter-m{--mg-auth-direction:-1}
.mg-auth-letter-g{--mg-auth-direction:1}
#authModal:not([hidden]) .mg-auth-reveal span,.mg-intro:not([hidden]) .mg-auth-reveal span{
  animation:mg-auth-split var(--mg-letter-duration) cubic-bezier(.23,.65,.27,1) both;
}
@keyframes mg-auth-split{
  0%{opacity:0;transform:scale(.88)}
  33%,48%{opacity:1;transform:translateX(0) scale(1)}
  100%{opacity:0;transform:translateX(calc(var(--mg-auth-direction) * var(--mg-letter-spread,min(26vw,220px)))) scale(.93)}
}
@media(prefers-reduced-motion:reduce){
  #authModal:not([hidden]) .mg-auth-reveal span,.mg-intro:not([hidden]) .mg-auth-reveal span{animation:mg-auth-split-soft var(--mg-letter-duration) ease-out both!important}
  .mg-intro:not([hidden]){animation:mg-intro-exit .8s both!important}
}
@keyframes mg-auth-split-soft{
  0%{opacity:0}
  35%,50%{opacity:1;transform:translateX(0)}
  100%{opacity:0;transform:translateX(calc(var(--mg-auth-direction) * min(7vw,48px)))}
}

:root{--mg-letter-duration:1.8s}
.mg-intro{
  position:fixed;inset:0;z-index:101;pointer-events:none;
  background:#140a27b8;backdrop-filter:blur(13px);
  animation:mg-intro-exit var(--mg-letter-duration) both;
}
.mg-intro[hidden]{display:none}

@media (max-width: 1000px) {
  .topbar {
    padding-top: env(safe-area-inset-top, 0px);
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  }
  html[dir="rtl"] .topbar {
    padding-inline: env(safe-area-inset-right, 0px) env(safe-area-inset-left, 0px);
  }
  .topbar .nav-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding-block: 9px;
  }
  .topbar .nav-wrap > .brand {
    font-size: clamp(17px, 4.6vw, 22px);
    white-space: nowrap;
  }
  .topbar .nav-wrap > .brand .mg-mark {
    width: 28px;
    height: 28px;
  }
  .topbar .nav-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
    margin: 0;
  }
  .topbar .nav-signin {
    font-size: 12px;
    padding-inline: 8px;
  }
  .topbar .main-nav {
    position: static;
    display: flex;
    flex-flow: row nowrap;
    grid-column: 1 / -1;
    min-width: 0;
    justify-content: center;
    align-items: stretch;
    gap: 4px;
    padding: 6px 0 0;
    background: transparent;
    border-top: 1px solid rgba(216, 153, 255, .15);
    box-shadow: none;
    font-size: 12px;
  }
  .topbar .main-nav a:not([hidden]) {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 4px 5px;
    white-space: nowrap;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    border-radius: 8px;
  }
  .topbar .main-nav a.current {
    background: rgba(202, 119, 255, .17);
  }
  .topbar .main-nav a.current::after {
    display: block;
    inset: auto 15% 1px;
    height: 2px;
  }
  #qualityPolicy, #qualityCompare, #help, .ht-guide-section {
    scroll-margin-top: calc(126px + env(safe-area-inset-top, 0px));
  }
}
.upload-help {
  margin-block-start: 24px;
  scroll-margin-top: 100px;
}
.upload-help .help-inner {
  padding: clamp(14px, 3vw, 24px);
}
@media (max-width: 1000px) and (min-height: 451px) {
  .upload-help {
    scroll-margin-top: calc(126px + env(safe-area-inset-top, 0px));
  }
}

.topbar .nav-label-short {
  display: none;
}
@media (max-width: 640px) {
  .topbar .nav-wrap {
    width: calc(100% - 16px);
  }
  .topbar .main-nav {
    gap: 2px;
    font-size: clamp(10px, 2.85vw, 12px);
  }
  .topbar .main-nav a:not([hidden]) {
    padding-inline: clamp(2px, .85vw, 5px);
  }
  .topbar .nav-label-full {
    display: none;
  }
  .topbar .nav-label-short {
    display: inline;
  }
}

/* Horizontal clipping without making body a scroll container for the header. */
body {
  overflow-x: clip;
}

.binding-panel:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 14px;
  padding: 14px 18px;
  border-radius: 14px;
}
.binding-panel p {
  margin: 4px 0 0;
}

#qualityPolicy .video-requirements {
  margin: 0;
  padding-inline-start: 1.55em;
}
#qualityPolicy .video-requirements li + li {
  margin-block-start: 10px;
}
#qualityPolicy .video-requirements li::marker {
  color: #d7b4ff;
  font-weight: 700;
}
#qualityPolicy .video-requirements strong {
  display: block;
}

#authModal .modal-close {
  left: auto;
  inset-inline-end: 8px;
  top: 8px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  line-height: 1;
}
#authModal .modal-close, #noticeCloseButton {
  touch-action: manipulation;
}
#noticeCloseButton {
  min-height: 44px;
}

#authModal .modal {
  padding: 0;
  overflow: visible;
  box-shadow: none;
}
#authModal .auth-sheet {
  position: relative;
  max-height: inherit;
  overflow-y: auto;
  border-radius: inherit;
  padding: clamp(20px, 5vw, 28px);
  box-shadow: 0 24px 80px #10032588;
}
#authModal:not([hidden]) .auth-sheet {
  animation: mg-auth-unfold 1.8s cubic-bezier(.22,.6,.3,1) both;
}
@keyframes mg-auth-unfold {
  0%, 44% { opacity: 0; clip-path: inset(48% 48% round 28px); }
  60% { opacity: .95; clip-path: inset(47% 24% round 28px); }
  100% { opacity: 1; clip-path: inset(0 round 28px); }
}
#authModal .mg-auth-reveal {
  font-size: clamp(4rem, 15vw, 6.5rem);
}
#authModal .mg-auth-reveal span {
  --mg-letter-spread: min(23vw, 116px);
}
@media (prefers-reduced-motion: reduce) {
  #authModal:not([hidden]) .auth-sheet { animation: mg-auth-soft-sheet .28s .27s both!important; }
  #authModal:not([hidden]) .mg-auth-reveal span { animation: mg-auth-soft-mark .46s both!important; }
}
@media (max-width: 780px), (pointer: coarse) {
  .comparison-before { filter: none; }
}

@keyframes mg-auth-soft-mark {
  0%, 55% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes mg-auth-soft-sheet {
  from { opacity: 0; }
  to { opacity: 1; }
}
.comparison-mobile-frame:not([hidden]) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.comparison-stage.is-combined .comparison-before-mask {
  display: none;
}
.visitor-stats{margin-block:18px}
.visitor-stats-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.visitor-stats-list{list-style:none;padding:0;margin:0;max-height:18rem;overflow:auto}
.visitor-stats-list li{display:flex;justify-content:space-between;gap:12px;padding:7px 4px;border-bottom:1px solid rgba(221,182,255,.15)}
.mg-admin-mail { margin-block: 1rem; }
.mg-admin-mail summary { cursor: pointer; font-size: 1.15rem; font-weight: 800; }
.mg-admin-mail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-block-start: 1rem; }
.mg-admin-mail-grid h3,.mg-admin-mail-grid p { margin-block: 0 .6rem; }
.mg-admin-mail-grid label:has(input[type="checkbox"]) { flex-direction: row; align-items: center; }
.mg-admin-mail-grid input[type="checkbox"], #accountMailConsent { width: 1.15rem; min-height: 0; height: 1.15rem; accent-color: #a351ec; vertical-align: middle; }
.mg-admin-mail-grid textarea { display: block; width: 100%; min-height: 6rem; resize: vertical; padding: .7rem; border: 1px solid #8251a4; border-radius: .6rem; background: #1f1233; color: #fff; font: inherit; }
#adminMailPreview { padding: 1rem; border: 1px solid #8251a4; border-radius: .6rem; }
#adminMailPreviewBody { white-space: pre-wrap; overflow-wrap: anywhere; }
#adminMailHistory { padding-inline-start: 1.25rem; overflow-wrap: anywhere; }
@media (max-width: 700px) { .mg-admin-mail-grid { grid-template-columns: 1fr; } }
