/* ARVIS command headers: Meta, Finans, Google Ads, Stayfit.com.tr, StayfitGo and ARVIS Çekirdeği.
   Visual-only, route-scoped; no worker, API, order or reporting logic changes. */
body:is(.premium-command-route,.stayfit-store-route) .page-heading{
  --command-accent:#245ff4;
  --command-border:#d9e5fc;
  --command-ring:rgba(53,110,235,.17);
  --command-ring-soft:rgba(72,136,245,.04);
  --command-glow:rgba(78,147,255,.16);
  --command-glow-soft:rgba(124,178,255,.12);
  --command-shadow:rgba(42,88,166,.075);
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;align-items:center;justify-content:space-between;gap:22px;
  min-height:154px;padding:26px 28px;margin-bottom:14px;
  border:1px solid var(--command-border);border-radius:26px;
  background:
    radial-gradient(circle at 77% 23%,var(--command-glow),transparent 28%),
    radial-gradient(circle at 96% 84%,var(--command-glow-soft),transparent 30%),
    linear-gradient(135deg,rgba(255,255,255,.99),rgba(249,251,255,.95));
  box-shadow:0 18px 48px var(--command-shadow);
  backdrop-filter:blur(14px);
}
body:is(.premium-command-route,.stayfit-store-route) .page-heading::after{
  content:"";pointer-events:none;position:absolute;z-index:0;
  top:-68px;right:12%;width:420px;height:245px;
  border:1px solid var(--command-ring);border-radius:50%;transform:rotate(-11deg);
  box-shadow:0 0 0 22px var(--command-ring-soft),0 0 0 44px var(--command-ring-soft);
}
body:is(.premium-command-route,.stayfit-store-route) .page-heading>div{
  position:relative;z-index:1;min-width:0;
}
body:is(.premium-command-route,.stayfit-store-route) .page-heading>div:first-child{flex:1}
body:is(.premium-command-route,.stayfit-store-route) .page-heading>div:first-child::before{
  display:block;margin-bottom:11px;
  color:var(--command-accent);font-size:11px;font-weight:900;letter-spacing:.15em;
}
body.meta-command-route .page-heading>div:first-child::before{content:"ARVIS META COMMAND"}
body.finance-command-route .page-heading>div:first-child::before{content:"ARVIS FINANCE COMMAND"}
body.google-command-route .page-heading>div:first-child::before{content:"ARVIS GROWTH COMMAND"}
body.stayfit-store-route .page-heading>div:first-child::before{content:"ARVIS STORE COMMAND"}
body:is(.premium-command-route,.stayfit-store-route) .page-heading .title-line{
  flex-wrap:wrap;column-gap:13px;row-gap:8px;margin:0 0 10px;
}
body:is(.premium-command-route,.stayfit-store-route) .page-heading h1{
  margin:0;color:#153058;font-size:clamp(29px,3vw,36px);
  font-weight:800;line-height:1.12;letter-spacing:-1.15px;
}
body:is(.premium-command-route,.stayfit-store-route) .page-heading #page-title{color:var(--command-accent)}
body:is(.premium-command-route,.stayfit-store-route) .page-heading p{
  max-width:700px;margin:0;color:#71819b;font-size:14px;line-height:1.55;
}
body:is(.premium-command-route,.stayfit-store-route) .page-heading .heading-actions{
  display:flex;align-items:center;justify-content:flex-end;flex:none;
}
body.meta-command-route .page-heading{
  --command-accent:#2464ee;--command-border:#dce7ff;
  --command-ring:rgba(39,111,245,.19);
  --command-glow:rgba(71,145,255,.17);
  --command-glow-soft:rgba(127,125,255,.13);
}
/* Stayfit.com.tr uses the very same command-card geometry on desktop and mobile.
   Suppress the old store-only decorations without changing any store widgets. */
body.stayfit-store-route .page-heading{
  --command-accent:#5868e9;--command-border:#dfe3fa;
  --command-ring:rgba(104,111,226,.20);--command-ring-soft:rgba(106,129,238,.037);
  --command-glow:rgba(134,132,255,.17);--command-glow-soft:rgba(102,175,255,.14);
  --command-shadow:rgba(59,87,167,.075);
}
body.stayfit-store-route .page-heading::before{display:none}
body.stayfit-store-route .page-heading::after{
  background:none;opacity:1;filter:none;
}
body.meta-command-route .page-heading .title-meta{width:34px;height:27px}
body.meta-command-route .page-heading .connection{
  border:1px solid #d6ebe6;background:rgba(237,252,247,.86);
  box-shadow:0 5px 18px rgba(20,113,83,.045);
}
body.meta-command-route .page-heading .heading-actions .primary{
  font-size:16px;min-width:170px;padding:12px 19px;
  border-radius:13px;
}
body.finance-command-route .page-heading{
  --command-accent:#7551b9;--command-border:#e8ddf6;
  --command-ring:rgba(150,91,216,.18);--command-ring-soft:rgba(151,93,214,.038);
  --command-glow:rgba(179,121,228,.17);--command-glow-soft:rgba(121,159,237,.12);
  --command-shadow:rgba(97,67,150,.075);
}
body.google-command-route .page-heading{
  --command-accent:#2673cb;--command-border:#d9e8f6;
  --command-ring:rgba(56,135,212,.2);--command-ring-soft:rgba(55,141,221,.035);
  --command-glow:rgba(90,164,238,.16);--command-glow-soft:rgba(252,196,74,.11);
  --command-shadow:rgba(50,111,161,.07);
}
body:is(.finance-command-route,.google-command-route,.stayfit-store-route) .page-heading .heading-actions::before{
  display:flex;align-items:center;justify-content:center;
  min-height:54px;max-width:100%;
  padding:11px 17px;border-radius:18px;
  background:rgba(255,255,255,.85);backdrop-filter:blur(11px);
  box-shadow:0 10px 30px var(--command-shadow);
  font-size:12px;font-weight:800;white-space:nowrap;
}
body.finance-command-route .page-heading .heading-actions::before{
  content:"▤  e-Arşiv  ·  Fatura Takibi";
  color:#6b4ca9;border:1px solid #e6d9f1;
}
body.stayfit-store-route .page-heading .heading-actions::before{
  content:"stayfit.com.tr  ·  Mağaza Yönetimi";
  color:#485bb4;border:1px solid #dfe6fb;
}
body.google-command-route .page-heading .heading-actions::before{
  content:"Google Ads  ·  Merchant Center";
  color:#295b91;border:1px solid #dfe9f4;
  padding-left:55px;
  background-image:url("assets/google.svg");background-size:28px 28px;
  background-position:16px center;background-repeat:no-repeat;
}
/* StayfitGo B2B shares the common premium command card dimensions.
   Header-only: does not touch orders, settlements, or external integrations. */
body.stayfitgo-command-route .page-heading{
  --command-accent:#138977;--command-border:#d4ebe5;
  --command-ring:rgba(30,157,139,.19);--command-ring-soft:rgba(61,171,148,.04);
  --command-glow:rgba(58,195,169,.15);--command-glow-soft:rgba(110,189,237,.12);
  --command-shadow:rgba(35,119,103,.075);
}
body.stayfitgo-command-route .page-heading>div:first-child::before{
  content:"ARVIS B2B COMMAND";
}
body.stayfitgo-command-route .page-heading .heading-actions::before{
  content:"▦  Bayi Yönetimi · Sipariş Merkezi";
  display:flex;align-items:center;justify-content:center;
  min-height:54px;max-width:100%;box-sizing:border-box;
  padding:11px 17px;border:1px solid #d4ebe5;border-radius:18px;
  background:rgba(255,255,255,.86);backdrop-filter:blur(11px);
  box-shadow:0 10px 30px var(--command-shadow);
  color:#237c70;font-size:12px;font-weight:800;white-space:nowrap;
}
/* Stok Merkezi uses the exact same premium command card dimensions as the other workers.
   Visual only: the stock counter, sale/return calculations and API calls are unchanged. */
body.stock-command-route .page-heading{
  --command-accent:#118c96;--command-border:#d1e9ee;
  --command-ring:rgba(30,153,177,.2);--command-ring-soft:rgba(59,174,187,.039);
  --command-glow:rgba(57,181,196,.16);--command-glow-soft:rgba(112,143,240,.12);
  --command-shadow:rgba(35,104,137,.075);
}
body.stock-command-route .page-heading>div:first-child::before{
  content:"ARVIS STOCK COMMAND";
}
body.stock-command-route .page-heading .heading-actions::before{
  content:"▦  Çoklu Kanal · Stok Takibi";
  display:flex;align-items:center;justify-content:center;
  min-height:54px;max-width:100%;box-sizing:border-box;
  padding:11px 17px;border:1px solid #d1e9ee;border-radius:18px;
  background:rgba(255,255,255,.86);backdrop-filter:blur(11px);
  box-shadow:0 10px 30px var(--command-shadow);
  color:#237b86;font-size:12px;font-weight:800;white-space:nowrap;
}
@media(max-width:820px){
  body.stock-command-route .page-heading .heading-actions::before{
    width:100%;min-height:46px;padding:10px 14px;
    font-size:11px;white-space:normal;text-align:center;
  }
}
/* ARVIS Çekirdeği shares the same command-card spacing, responsive shell,
   and actions geometry; the learning feature and voice API remain untouched. */
body.arvis-core-command-route .page-heading{
  --command-accent:#5e61d9;--command-border:#e0e2fa;
  --command-ring:rgba(116,105,220,.20);--command-ring-soft:rgba(116,130,238,.039);
  --command-glow:rgba(138,125,244,.17);--command-glow-soft:rgba(84,166,244,.13);
  --command-shadow:rgba(78,76,161,.085);
}
body.arvis-core-command-route .page-heading>div:first-child::before{
  content:"ARVIS CORE COMMAND";
}
/* Keep the title on one line so the core card uses the exact same height as other menus. */
body.arvis-core-command-route .page-heading h1{white-space:nowrap;}
body.arvis-core-command-route .page-heading .heading-actions::before{
  content:"✦  Sesli Asistan · Öğrenme Merkezi";
  display:flex;align-items:center;justify-content:center;
  min-height:54px;max-width:100%;box-sizing:border-box;
  padding:11px 17px;border:1px solid #e0e2f9;border-radius:18px;
  background:rgba(255,255,255,.86);backdrop-filter:blur(11px);
  box-shadow:0 10px 30px var(--command-shadow);
  color:#5156a9;font-size:12px;font-weight:800;white-space:nowrap;
}
@media(max-width:820px){
  body:is(.premium-command-route,.stayfit-store-route) .page-heading{
    flex-direction:column;align-items:stretch;
    min-height:0;padding:23px 21px!important;gap:15px!important;
    border-radius:20px!important;
  }
  body:is(.premium-command-route,.stayfit-store-route) .page-heading::after{
    top:-65px;right:-37%;width:355px;height:220px;
  }
  body:is(.premium-command-route,.stayfit-store-route) .page-heading h1{font-size:clamp(25px,6.8vw,32px)!important}
  body:is(.premium-command-route,.stayfit-store-route) .page-heading p{font-size:13px!important;line-height:1.6!important}
  body:is(.premium-command-route,.stayfit-store-route) .page-heading .heading-actions{
    margin:0!important;width:100%;align-items:stretch!important;
    justify-content:flex-start;
  }
  body.meta-command-route .page-heading .heading-actions .primary{width:100%;min-width:0}
  body:is(.finance-command-route,.google-command-route,.stayfit-store-route) .page-heading .heading-actions::before{
    font-size:11px;min-height:46px;
  }
}
@media(max-width:820px){
  body.arvis-core-command-route .page-heading .heading-actions::before{
    width:100%;min-height:46px;padding:10px 14px;
    font-size:11px;white-space:normal;text-align:center;
  }
}
@media(max-width:820px){
  body.stayfitgo-command-route .page-heading .heading-actions::before{
    width:100%;min-height:46px;padding:10px 14px;
    font-size:11px;white-space:normal;text-align:center;
  }
}
@media(max-width:380px){
  body:is(.premium-command-route,.stayfit-store-route) .page-heading{padding:20px 16px!important}
  body:is(.premium-command-route,.stayfit-store-route) .page-heading>div:first-child::before{font-size:10px}
  body:is(.premium-command-route,.stayfit-store-route) .page-heading h1{font-size:25px!important}
  body.meta-command-route .page-heading .connection{padding:9px 11px}
}
@media(prefers-reduced-motion:reduce){
  body:is(.premium-command-route,.stayfit-store-route) .page-heading *{animation:none!important;transition:none!important}
}
