
:root {
  --pw-header-h: 64px;
  --pw-footer-h: 56px;
}

body {
  background: #fafafa;
  padding-top: var(--pw-header-h);
  padding-bottom: var(--pw-footer-h);
}

.pw-header,
.pw-footer {
  z-index: 1030; 
}

.pw-header {
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}



/* Header: clean (neon purple chart removed) */
.pw-footer {
  box-shadow: 0 -6px 18px rgba(0,0,0,0.04);
}




.pw-footer-line{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  white-space: nowrap;
}

.pw-footer-line a{
  color: inherit;
  text-decoration: none;
}

.pw-footer-line a:hover{
  text-decoration: underline;
}

.pw-footer-mid{
  opacity: 0.75;
}


.pw-footer-auth{
  display: none;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}

.pw-footer-auth .pw-auth-btn{
  flex: 1 1 0;
  max-width: 180px;
}

@media (max-width: 991.98px){
  .pw-header.navbar,
  .pw-header .container{
    flex-wrap: nowrap;
  }

  .pw-header-actions{
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    align-self: center;
    margin-top: 0;
    margin-left: auto;
  }

  .pw-footer{
    padding-top: 0.75rem !important;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)) !important;
  }

  .pw-header{
    --bs-navbar-brand-margin-end: 0.5rem;
    --bs-navbar-padding-y: 0.5rem;
  }

  .pw-header .container{
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
  }

  .pw-header .navbar-brand,
  .pw-header .pw-brand{
    flex: 0 0 auto;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    gap: 0.2rem !important;
    line-height: 1;
  }

  .pw-header-auth--mobile{
    flex: 0 0 auto;
    justify-content: flex-end;
    min-width: auto;
    align-self: center;
    margin-top: 0;
  }

  .pw-header-auth--mobile .pw-auth-btn{
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 420px){
  .pw-footer-auth{
    gap: 8px;
  }

  .pw-footer-auth .pw-auth-btn{
    max-width: none;
  }
}

@media (max-width: 420px){
  .pw-footer-line{ gap: 10px; }
}
.pw-main {
  /* On mobile browsers 100vh can change while scrolling (address bar show/hide) → visible jitter.
     100svh is stable and prevents layout jumping. */
  min-height: calc(100vh - var(--pw-header-h) - var(--pw-footer-h));
  min-height: calc(100svh - var(--pw-header-h) - var(--pw-footer-h));
}

.feature-box {
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
}

.feature-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-text {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Home */
.pw-hero {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
}

.pw-kpi {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
}

.pw-section-title {
  letter-spacing: -0.02em;
}

.pw-badges .badge {
  font-weight: 500;
}

/* Role / plan badge */
.pw-role-badge{
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(124,58,237,0.35);
  color: #111827;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.2px;
}



/* Footer links */
.pw-footer-links a{
  color: #6c757d;
  text-decoration: none;
}

.pw-footer-links a:hover{
  text-decoration: underline;
}

.pw-dot{
  margin: 0 8px;
  color: #c0c4c7;
}



.pw-linear{
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 20px;
}

.pw-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.pw-subtitle{
  color: #6c757d;
  margin-bottom: 18px;
}

.pw-linear h2{
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
  margin-top: 18px;
  margin-bottom: 8px;
}

.pw-line{
  line-height: 1.6;
  margin-bottom: 6px;
}

.pw-important{
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff3cd;
  border: 1px solid rgba(0,0,0,0.08);
}

.pw-endnote{
  margin-top: 12px;
}



.pw-landing{
  max-width: 920px;
  margin: 0 auto;
}

.pw-block{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.04);
}

.pw-block--hero{
  padding: 22px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
}

.pw-block--important{
  background: #fff3cd;
  border-color: rgba(0,0,0,0.08);
}

.pw-h2{
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
  margin: 0 0 10px 0;
}

.pw-quick{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.pw-step{
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.pw-step:before{
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: #6c757d;
}

.pw-chip{
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  font-weight: 700;
}

.pw-list{
  margin: 8px 0 0 0;
  padding-left: 18px;
}

.pw-list li{
  margin-bottom: 6px;
  line-height: 1.6;
}

/* =====================================================================
   HOME (2026) — cinematic landing with animations (scoped to .pw-home)
   ===================================================================== */

.pw-home{
  position: relative;
  z-index: 0;
  --pw-radius: 18px;
  --pw-shadow: 0 16px 42px rgba(0,0,0,0.10);
  --pw-shadow-lg: 0 30px 80px rgba(0,0,0,0.22);

  --pw-ink: #0b1220;
  --pw-muted: rgba(15, 23, 42, 0.72);

  --pw-hero-ink: rgba(238, 242, 255, 0.92);
  --pw-hero-muted: rgba(238, 242, 255, 0.70);

  --pw-ac1: #0ea5e9;
  --pw-ac2: #3b82f6;
  --pw-ac3: #a855f7;
  --pw-ac4: #ec4899;

  color: var(--pw-ink);
}

.pw-home a{ color: inherit; }
.pw-home a:hover{ color: inherit; }


/* ANIMATED WALLPAPER (global background) */
.pw-wallpaper{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  /* Prevent subpixel jitter on some browsers while scrolling */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  background:
    radial-gradient(900px 520px at 18% 16%, rgba(140,210,255,0.10), transparent 62%),
    radial-gradient(780px 540px at 84% 20%, rgba(210,150,255,0.08), transparent 62%),
    radial-gradient(980px 620px at 52% 92%, rgba(255,255,255,0.035), transparent 60%),
    radial-gradient(980px 680px at 64% 62%, rgba(0,0,0,0.20), transparent 66%),
    linear-gradient(180deg, #0c2a57 0%, #081a3a 52%, #040814 100%);
}

.pw-wallpaper::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 760px at 48% 28%, rgba(255,255,255,0.06), transparent 58%),
    radial-gradient(980px 640px at 62% 44%, rgba(160,220,255,0.06), transparent 62%),
    radial-gradient(920px 620px at 40% 58%, rgba(205,150,255,0.05), transparent 64%),
    radial-gradient(1200px 720px at 45% 30%, transparent 55%, rgba(0,0,0,0.42) 100%),
    linear-gradient(180deg, rgba(200,230,255,0.07), transparent 24%, rgba(0,0,0,0.30));
}

.pw-wallpaper-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity: 0.98;
  filter: blur(0px);
}

.pw-wallpaper-orb{
  position:absolute;
  width: 720px;
  height: 720px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.65;
  transform: translateZ(0);
  animation: pw-orb-float 18s ease-in-out infinite;
  mix-blend-mode: screen;
}

.pw-wallpaper-orb--1{
  left: -320px;
  top: -260px;
  background: radial-gradient(circle at 30% 30%, rgba(170,220,255,0.10), rgba(255,255,255,0.00) 70%);
  animation-duration: 16s;
}

.pw-wallpaper-orb--2{
  right: -360px;
  top: -240px;
  background: radial-gradient(circle at 40% 40%, rgba(210,170,255,0.09), rgba(255,255,255,0.00) 70%);
  animation-duration: 20s;
}

.pw-wallpaper-orb--3{
  left: 22%;
  bottom: -420px;
  background: radial-gradient(circle at 40% 40%, rgba(200,230,255,0.07), rgba(255,255,255,0.00) 72%);
  animation-duration: 22s;
}

.pw-wallpaper-grid{
  
  display: none;
}

@keyframes pw-orb-float{
  0%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(20px, -18px, 0) scale(1.03); }
  100%{ transform: translate3d(0,0,0) scale(1); }
}

/* HERO */
.pw-home-hero{
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--pw-shadow-lg);
  border: 1px solid rgba(0,0,0,0.10);
  background:
    radial-gradient(900px 480px at 14% 18%, rgba(14,165,233,0.25), transparent 62%),
    radial-gradient(700px 420px at 86% 22%, rgba(59,130,246,0.28), transparent 60%),
    radial-gradient(900px 540px at 52% 92%, rgba(168,85,247,0.22), transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #0c1328 54%, #070a13 100%);
  color: var(--pw-hero-ink);
}

.pw-home-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 40% 40%, transparent 55%, rgba(0,0,0,0.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 2;
  pointer-events: none;
}

.pw-hero-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

.pw-hero-orb{
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
  animation: pw-orb-float 10s ease-in-out infinite;
}

.pw-hero-orb--1{
  left: -240px;
  top: -220px;
  background: radial-gradient(circle at 30% 30%, rgba(14,165,233,0.90), rgba(14,165,233,0.00) 68%);
  animation-duration: 12s;
}

.pw-hero-orb--2{
  right: -260px;
  top: -180px;
  background: radial-gradient(circle at 40% 40%, rgba(59,130,246,0.95), rgba(59,130,246,0.00) 70%);
  animation-duration: 14s;
}

.pw-hero-orb--3{
  left: 20%;
  bottom: -320px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle at 50% 50%, rgba(168,85,247,0.85), rgba(168,85,247,0.00) 70%);
  animation-duration: 16s;
}

@keyframes pw-orb-float{
  0%, 100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,-18px,0) scale(1.04); }
}

.pw-hero-inner{
  position: relative;
  z-index: 3;
  padding: 34px 22px;
}

@media (min-width: 992px){
  .pw-hero-inner{ padding: 56px 34px; }
}

.pw-hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 991.98px){
  .pw-hero-grid{ grid-template-columns: 1fr; }
}

.pw-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(170,220,255,0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
  color: rgba(238,242,255,0.92);
  font-weight: 700;
  letter-spacing: -0.01em;
  width: fit-content;
}

.pw-kicker-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14,165,233,1), rgba(59,130,246,1));
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}

.pw-kicker-tag{
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--pw-hero-muted);
}

.pw-hero-title{
  margin: 16px 0 10px 0;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: 2rem;
}

@media (min-width: 992px){
  .pw-hero-title{ font-size: 2.35rem; }
}

.pw-hero-title-accent{
  display: inline-block;
  background: linear-gradient(90deg, rgba(14,165,233,1), rgba(59,130,246,1), rgba(168,85,247,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pw-hero-subtitle{
  margin: 0 0 18px 0;
  color: var(--pw-hero-muted);
  line-height: 1.55;
  max-width: 68ch;
}

.pw-hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.pw-btn{
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  user-select: none;
}

.pw-btn:active{ transform: translateY(1px); }

.pw-btn--primary{
  color: #06111b;
  background: linear-gradient(90deg, rgba(14,165,233,1), rgba(59,130,246,1), rgba(168,85,247,1));
  box-shadow: 0 18px 46px rgba(0,0,0,0.36);
}

.pw-btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.42);
}

.pw-btn--ghost{
  color: rgba(238,242,255,0.92);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.20);
}

.pw-btn--ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
}

.pw-btn--link{
  padding: 8px 6px;
  background: transparent;
  border-color: transparent;
  color: rgba(238,242,255,0.86);
  font-weight: 700;
}

.pw-btn--link:hover{
  color: rgba(238,242,255,1);
  text-decoration: underline;
}

.pw-btn-glow{
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(240px 120px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.65), rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.pw-btn--primary:hover .pw-btn-glow{ opacity: 0.45; }

.pw-arrow{ display:inline-block; transform: translateY(1px); }

.pw-hero-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px 0;
}

.pw-badge{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(238,242,255,0.82);
  font-weight: 700;
  font-size: 0.9rem;
}

.pw-hero-steps{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

@media (min-width: 768px){
  .pw-hero-steps{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pw-step-card{
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 30px rgba(0,0,0,0.26);
  min-height: 86px;
  display: grid;
  gap: 6px;
}

.pw-step-n{
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: rgba(238,242,255,0.62);
}

.pw-step-t{
  font-weight: 700;
  line-height: 1.35;
  color: rgba(238,242,255,0.88);
}

/* Dashboard mock */
.pw-hero-showcase{
  display: grid;
  gap: 12px;
}

.pw-dash{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(200,230,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 22px 54px rgba(0,0,0,0.34);
  padding: 14px;
  transform-style: preserve-3d;
}

.pw-dash::before{
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg, rgba(14,165,233,0.75), rgba(59,130,246,0.75), rgba(168,85,247,0.75), rgba(236,72,153,0.70), rgba(14,165,233,0.75));
  opacity: 0.55;
  animation: pw-border-spin 16s linear infinite;
  z-index: 0;
}

.pw-dash::after{
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background: rgba(10, 14, 28, 0.80);
  z-index: 1;
}

.pw-dash > *{ position: relative; z-index: 2; }

.pw-dash-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(210,170,255,0.09);
}

.pw-dash-title{
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(238,242,255,0.90);
}

.pw-dash-lights{ display: inline-flex; gap: 6px; }
.pw-dash-lights span{
  width: 9px; height: 9px; border-radius: 99px;
  background: rgba(255,255,255,0.20);
}

.pw-dash-kpis{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

@media (max-width: 575.98px){
  .pw-dash-kpis{ grid-template-columns: 1fr; }
}

.pw-dash-kpi{
  border-radius: 14px;
  padding: 10px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(170,220,255,0.10);
}

.pw-dash-k{
  font-weight: 800;
  font-size: 0.78rem;
  color: rgba(238,242,255,0.62);
  margin-bottom: 4px;
}

.pw-dash-v{
  font-weight: 900;
  color: rgba(238,242,255,0.90);
  letter-spacing: -0.02em;
}

.pw-grad{
  /* Fallback color if gradient text clipping is not supported (some mobile browsers) */
  color: rgba(59,130,246,1);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .pw-grad{
    background: linear-gradient(90deg, rgba(14,165,233,1), rgba(59,130,246,1), rgba(168,85,247,1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.pw-dash-chart{
  position: relative;
  height: 124px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(210,170,255,0.09);
  margin-bottom: 12px;
}

.pw-dash-gridlines{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(210,170,255,0.09), rgba(210,170,255,0.09)) 0 25%/100% 1px,
    linear-gradient(to bottom, rgba(210,170,255,0.09), rgba(210,170,255,0.09)) 0 50%/100% 1px,
    linear-gradient(to bottom, rgba(210,170,255,0.09), rgba(210,170,255,0.09)) 0 75%/100% 1px;
  opacity: 0.25;
}

.pw-bars{
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  padding: 14px;
}

.pw-bars span{
  display: block;
  border-radius: 10px;
  height: 0;
  background: linear-gradient(180deg, rgba(14,165,233,0.95), rgba(59,130,246,0.95), rgba(168,85,247,0.92));
  box-shadow: 0 16px 28px rgba(0,0,0,0.35);
  animation: pw-bar-rise 1200ms cubic-bezier(.2,.9,.2,1) forwards;
  animation-delay: calc(160ms + (var(--i) * 90ms));
}

@keyframes pw-bar-rise{
  from{ height: 0; }
  to{ height: var(--h); }
}

.pw-dash-foot{
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(210,170,255,0.09);
}

.pw-mini{
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: rgba(238,242,255,0.72);
  font-weight: 700;
}

.pw-code{
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(200,230,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(238,242,255,0.92);
  font-weight: 900;
}

.pw-faux-link{
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(238,242,255,0.78);
  font-weight: 800;
}

.pw-hero-hint{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(170,220,255,0.10);
  color: rgba(238,242,255,0.80);
  box-shadow: 0 20px 40px rgba(0,0,0,0.30);
}

.pw-hint-dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(59,130,246,1);
  box-shadow: 0 0 0 5px rgba(59,130,246,0.20);
}

@keyframes pw-border-spin{ to { transform: rotate(360deg); } }

/* BODY GRID */
.pw-home-body{
  margin-top: 14px;
  padding-bottom: 18px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 991.98px){
  .pw-home-body{ grid-template-columns: 1fr; }
}

/* Single-column variant (when TOC is removed) */
.pw-home-body--solo{
  grid-template-columns: 1fr;
}
.pw-home-body--solo .pw-home-content{
  grid-column: auto;
}


.pw-home-content{ grid-column: 2; }
.pw-home-aside{ grid-column: 1; }
@media (max-width: 991.98px){
  .pw-home-content{ grid-column: auto; }
  .pw-home-aside{ grid-column: auto; }
}

.pw-home-aside{
  position: relative;
}

.pw-aside-card{
  position: sticky;
  top: calc(var(--pw-header-h) + 16px);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 16px 34px rgba(0,0,0,0.08);
  padding: 14px 14px;
}

@media (max-width: 991.98px){
  .pw-aside-card{
    position: relative;
    top: auto;
  }
}

.pw-progress{
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 12px;
}

.pw-progress-bar{
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14,165,233,1), rgba(59,130,246,1), rgba(168,85,247,1));
  box-shadow: 0 10px 20px rgba(0,0,0,0.10);
}

.pw-aside-title{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.pw-toc{
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.pw-toc a{
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.80);
  border: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.pw-toc a:hover{
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.06);
  transform: translateX(1px);
}

.pw-toc a.is-active{
  background: rgba(14,165,233,0.10);
  border-color: rgba(14,165,233,0.25);
  color: rgba(15, 23, 42, 0.95);
}

.pw-aside-note{
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.9rem;
  line-height: 1.35;
}

.pw-aside-note-ic{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.06);
  color: rgba(15, 23, 42, 0.68);
  font-weight: 900;
}

/* SECTION CARDS */
.pw-home-content{ display: grid; gap: 14px; }

.pw-home-lead{
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.55;
  font-size: 1.02rem;
}

.pw-home-lead--hero{
  color: var(--pw-hero-ink);
  padding: 0 18px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Hero lead split lines */
.pw-home-lead__title{
  font-size: clamp(1.18rem, 2.1vw, 1.55rem);
  line-height: 1.25;
}

.pw-home-lead__sub{
  margin-top: 6px;
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  font-weight: 700;
  opacity: 0.92;
  line-height: 1.35;
}

.pw-card{
  position: relative;
  border-radius: var(--pw-radius);
  overflow: hidden;
  box-shadow: var(--pw-shadow);
}

.pw-card::before{
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg, rgba(14,165,233,0.80), rgba(59,130,246,0.80), rgba(168,85,247,0.80), rgba(236,72,153,0.74), rgba(14,165,233,0.80));
  opacity: 0.55;
  animation: pw-border-spin 18s linear infinite;
  z-index: 0;
}

.pw-card::after{
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--pw-radius) - 1px);
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.pw-card > *{ position: relative; z-index: 2; }

.pw-card--section{
  padding: 18px 18px;
}

@media (min-width: 992px){
  .pw-card--section{ padding: 20px 22px; }
}

.pw-card-head{ margin-bottom: 14px; }

.pw-card-title{
  margin: 0 0 6px 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
}

.pw-card-sub{
  color: var(--pw-muted);
  line-height: 1.5;
}

.pw-card:hover::before{ opacity: 0.85; }

/* Flow */
.pw-flow{ display: grid; gap: 10px; }

.pw-flow-item{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}

.pw-flow-ic{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.20);
  font-weight: 900;
  color: rgba(15, 23, 42, 0.82);
}

.pw-flow-t{ line-height: 1.55; font-weight: 700; color: rgba(15, 23, 42, 0.88); }



/* Home intro (logo on the left, "How it works" on the right) */
.pw-home-intro-split{
  display: grid;
  grid-template-columns: min(340px, 36%) 1fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 991.98px){
  .pw-home-intro-split{ grid-template-columns: 1fr; align-items: start; }
}

.pw-home-intro-left{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 8px 6px;
}

.pw-home-logo-big{
  width: min(260px, 72%);
  height: auto;
  object-fit: contain;
}

.pw-home-intro-title{
  font-weight: 1000;
  letter-spacing: -0.03em;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.12;
}

.pw-home-intro-sub{
  color: var(--pw-muted);
  font-weight: 800;
  line-height: 1.35;
}

/* Income */
.pw-split{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: center;
}

@media (max-width: 767.98px){
  .pw-split{ grid-template-columns: 1fr; }
}

.pw-highlight{
  border-radius: 18px;
  padding: 14px;
  background: radial-gradient(260px 120px at 30% 20%, rgba(14,165,233,0.22), transparent 70%),
              radial-gradient(260px 120px at 70% 80%, rgba(59,130,246,0.22), transparent 70%),
              rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

.pw-highlight-big{
  font-weight: 1000;
  letter-spacing: -0.03em;
  font-size: 2rem;
  line-height: 1.05;
}

/* Reliable gradient for the big percent (SVG, works across browsers) */
.pw-grad-svg{
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 767.98px){
  .pw-grad-svg{ width: 260px; }
}

.pw-highlight-small{
  margin-top: 4px;
  color: var(--pw-muted);
  font-weight: 800;
}

.pw-text{
  line-height: 1.65;
  color: rgba(15, 23, 42, 0.86);
  font-weight: 700;
  
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Note inside .pw-text (e.g., "(*если клиент ...)") */
.pw-note{
  font-weight: 650;
  font-size: 0.95em;
}

@media (max-width: 767.98px){
  .pw-note{
    font-weight: 500;
    font-size: 0.9em;
  }
}

/* Levels */
.pw-levels{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 767.98px){
  .pw-levels{ grid-template-columns: 1fr; }
}

.pw-level{
  border-radius: 18px;
  padding: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 16px 32px rgba(0,0,0,0.06);
  transform-style: preserve-3d;
}

.pw-level-top{ display:flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.pw-level-name{ font-weight: 900; letter-spacing: -0.02em; }

.pw-level-chip{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14,165,233,0.14);
  border: 1px solid rgba(14,165,233,0.26);
  font-weight: 900;
}

.pw-level-chip--pro{
  background: rgba(59,130,246,0.14);
  border-color: rgba(59,130,246,0.26);
}

.pw-level-text{ color: var(--pw-muted); line-height: 1.55; font-weight: 700; }

/* Placement */
.pw-grid2{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 991.98px){
  .pw-grid2{ grid-template-columns: 1fr; }
}

.pw-callout{
  border-radius: 18px;
  padding: 12px 12px;
  background: radial-gradient(240px 120px at 30% 30%, rgba(168,85,247,0.22), transparent 70%),
              rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  color: rgba(15, 23, 42, 0.84);
  font-weight: 800;
  line-height: 1.5;
}

.pw-platforms{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pw-platform{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  font-weight: 900;
  color: rgba(15, 23, 42, 0.84);
}

/* Placement copy (left column) */
.pw-placement-copy{
  margin-top: 12px;
  display: grid;
  gap: 8px;
  font-size: 15px;
  
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}

.pw-placement-q{
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(15, 23, 42, 0.90);
}

.pw-placement-ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.84);
  line-height: 1.42;
  font-weight: 700;
}

.pw-placement-ul li{
  margin: 4px 0;
}

.pw-placement-ul strong{
  font-weight: 900;
}

/* Listbox */
.pw-listbox{ display: grid; gap: 10px; }

.pw-list-item{
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}

.pw-li-ic{
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(14,165,233,0.14);
  border: 1px solid rgba(14,165,233,0.22);
  font-weight: 1000;
}

.pw-li-t{ line-height: 1.6; font-weight: 700; color: rgba(15, 23, 42, 0.88); }

.pw-mobile-subline{ display: inline; }

@media (max-width: 575.98px){
  .pw-mobile-subline{ display: block; }
}

/* Payout */
.pw-payout{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 767.98px){
  .pw-payout{ grid-template-columns: 1fr; }
}

.pw-payout-item{
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  transform-style: preserve-3d;
}

.pw-payout-ic{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,0.14);
  border: 1px solid rgba(59,130,246,0.22);
  font-size: 1.1rem;
}

.pw-payout-t{ font-weight: 900; letter-spacing: -0.01em; }

/* Benefits */
.pw-benefits{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 991.98px){
  .pw-benefits{ grid-template-columns: 1fr; }
}

.pw-benefit{
  border-radius: 18px;
  padding: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.pw-benefit-ic{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(14,165,233,0.14);
  border: 1px solid rgba(14,165,233,0.22);
  font-size: 1.05rem;
}

.pw-benefit-t{ line-height: 1.55; font-weight: 800; color: rgba(15, 23, 42, 0.86); }

.pw-security{
  border-radius: 18px;
  padding: 14px;
  background: radial-gradient(300px 160px at 20% 20%, rgba(59,130,246,0.22), transparent 70%),
              rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  transform-style: preserve-3d;
}

.pw-security-ic{
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,0.14);
  border: 1px solid rgba(59,130,246,0.22);
  font-size: 1.1rem;
}

.pw-security-t{ font-weight: 900; letter-spacing: -0.01em; }
.pw-security-s{ margin-top: 4px; color: var(--pw-muted); font-weight: 700; line-height: 1.5; }



/* Reviews */
.pw-reviews{
  position: relative;
}

.pw-reviews-track{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.pw-reviews-track:focus{ outline: none; }

.pw-reviews-track:focus-visible{
  outline: 2px solid rgba(59,130,246,0.28);
  outline-offset: 6px;
  border-radius: 18px;
}

/* scrollbar (subtle, keep visible for usability) */
.pw-reviews-track::-webkit-scrollbar{ height: 10px; }
.pw-reviews-track::-webkit-scrollbar-track{ background: rgba(0,0,0,0.06); border-radius: 999px; }
.pw-reviews-track::-webkit-scrollbar-thumb{ background: rgba(0,0,0,0.18); border-radius: 999px; }

.pw-review-card{
  flex: 0 0 340px;
  max-width: 92%;
  scroll-snap-align: start;
  border-radius: 18px;
  padding: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}

@media (max-width: 575.98px){
  .pw-review-card{ flex-basis: 86%; }
}

.pw-review-head{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.pw-review-avatar{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.pw-review-name{
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.pw-review-rating{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.pw-review-score{
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.22);
}

.pw-review-score--49{
  background: rgba(14,165,233,0.14);
  border-color: rgba(14,165,233,0.22);
}

.pw-review-stars{
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0.72;
  user-select: none;
}

.pw-review-text{
  color: rgba(15, 23, 42, 0.84);
  line-height: 1.6;
  font-weight: 750;
}

.pw-reviews-hint{
  margin-top: 10px;
  color: var(--pw-muted);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

/* Important */
.pw-important-box{
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.18);
  display: block;
}

.pw-important-ic{
  display: none;
}

.pw-important-text{
  line-height: 1.55;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.88);
}

/* Ending CTA */
.pw-home-end{
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 10px 0 0 0;
}

.pw-home-end-sub{ color: rgba(15, 23, 42, 0.70); font-weight: 700; }

/* Reveal animations (only when JS is enabled for this page) */
html.pw-home-js .pw-home .pw-reveal{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1), filter 700ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0ms);
}

html.pw-home-js .pw-home .pw-reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pw-hero-orb,
  .pw-wallpaper-orb,
  .pw-dash::before,
  .pw-card::before,
  .pw-bars span{
    animation: none !important;
  }

  html.pw-home-js .pw-home .pw-reveal{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .pw-btn{ transition: none !important; }
}
/* Image inside the promo placement callout */
.pw-callout-img{
  width: 100%;
  display: block;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}
/* Placement section: split into 2 columns (text left, callout/image right) */
.pw-placement-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  align-items: start;
}

.pw-placement-left{ min-width: 0; }
.pw-placement-right{ min-width: 0; }

@media (max-width: 991.98px){
  .pw-placement-grid{ grid-template-columns: 1fr; }
}



/* =====================================================================
   THEME — Paper + Greenish Aluminum (PandaWork.pro)
   Goal: dark "cabinet" grid background, but content sits on light paper cards
   with dark ink text (maximum readability). Accent uses a metallic, greenish
   aluminum gradient (subtle sheen), like anodized laptop корпуса.
   Also: keep the Home calmer (no extra animations).
   ===================================================================== */

:root{
  /* Base */
  --pw-navy-1: #0B3A34;  /* deep background */
  --pw-navy-2: #0D463F;  /* header/footer */

  /* Paper + ink */
  --pw-paper: #E3ECE8;   /* off-white with a hint of mint */
  --pw-ink:   #06202B;   /* deep navy ink */
  --pw-ink-muted: rgba(6,32,43,0.72);

  /* Borders / surfaces */
  --pw-paper-border: rgba(6,32,43,0.16);
  --pw-paper-2: rgba(227,236,232,0.82);
  --pw-paper-3: rgba(227,236,232,0.72);

  /* Metallic green (anodized aluminum vibe) */
  /* Dark, дорогой «зеленый алюминий» (как на рефе — глубокий teal, без мятной "пастели") */
  --pw-metal-1: #1F6B62; /* highlight */
  --pw-metal-2: #0F544C; /* light */
  --pw-metal-3: #0B3F39; /* mid */
  --pw-metal-4: #062723; /* deep */

  /* Premium anodized: dark edges + soft center highlight */
  --pw-metal-grad: linear-gradient(135deg,
    var(--pw-metal-4) 0%,
    var(--pw-metal-3) 24%,
    var(--pw-metal-1) 50%,
    var(--pw-metal-3) 76%,
    var(--pw-metal-4) 100%
  );
  /* Subtle brushed sheen (keep it restrained so it reads like metal, not plastic) */
  --pw-metal-sheen: linear-gradient(90deg,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.03) 34%,
    rgba(0,0,0,0.26) 68%,
    rgba(255,255,255,0.04) 100%
  );
  /* For text/icons on paper: slightly brighter metal for visibility */
  --pw-metal-text: linear-gradient(90deg, var(--pw-metal-3), var(--pw-metal-1), var(--pw-metal-2));

  /* App tokens */
  --bg: var(--pw-navy-1);
  --text-on-dark: var(--pw-paper);
  --muted-on-dark: rgba(227,236,232,0.74);

  --surface: linear-gradient(180deg, rgba(240,247,244,0.86) 0%, rgba(227,236,232,0.82) 45%, rgba(210,221,216,0.78) 100%);
  --surface-2: linear-gradient(180deg, rgba(236,244,241,0.86) 0%, rgba(219,229,225,0.80) 100%);
  --surface-border: var(--pw-paper-border);

  --ink: var(--pw-ink);
  --muted: var(--pw-ink-muted);

  --primary: var(--pw-metal-4);

  --link-on-dark: #BFE9DD;
  --link-on-paper: #1D6F5F;

  --shadow: 0 18px 46px rgba(0,0,0,0.28);

  /* Shared wallpaper (grid + soft orbs) so header/footer match body */
  --pw-wallpaper:
    radial-gradient(900px 520px at 18% 16%, rgba(104,190,168,0.14), transparent 62%),
    radial-gradient(760px 520px at 84% 20%, rgba(46,143,121,0.16), transparent 62%),
    linear-gradient(to right, rgba(191,233,221,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(191,233,221,0.06) 1px, transparent 1px);
  --pw-wallpaper-size: auto, auto, 32px 32px, 32px 32px;
  --pw-wallpaper-attach: fixed, fixed, fixed, fixed;
}


/* Base: dark + subtle grid ("в клетку") */
.pw-body{
  background-color: var(--bg) !important;
  background-image: var(--pw-wallpaper);
  background-size: var(--pw-wallpaper-size);
  background-attachment: var(--pw-wallpaper-attach);

  color: var(--text-on-dark);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Header / Footer — same "paper" surface as the main content (readable + premium) */
.pw-header, .pw-footer{
  background: var(--surface) !important;
  border-color: var(--surface-border) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.14);
}
.pw-header{ border-bottom: 1px solid var(--surface-border) !important; }
.pw-footer{ border-top: 1px solid var(--surface-border) !important; }

.pw-header.navbar,
.pw-header .navbar-brand,
.pw-header .nav-link,
.pw-header .navbar-text{
  color: var(--ink) !important;
}
.pw-header .nav-link{ opacity: 0.94; }
.pw-header .nav-link:hover{ opacity: 1; }


.pw-header .pw-brand-text{ font-size: 0.95rem; letter-spacing: -0.01em; color: #000 !important; }

.pw-header-account{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin-left: 24px;
  margin-right: auto;
  color: var(--ink);
}

.pw-header-account__line{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.2;
}

.pw-header-account__label{
  flex: 0 0 auto;
  font-weight: 800;
}

.pw-header-account__value{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.pw-header .pw-user-email{ line-height: 1.1; }

@media (min-width: 992px){
  .pw-header-account{
    align-self: flex-end;
    padding-bottom: 2px;
  }
}

/* Muted text on paper chrome (header/footer) */
.pw-body .pw-header .text-muted,
.pw-body .pw-footer .text-muted{ color: var(--muted) !important; }

/* Links inside header/footer should follow paper palette (override global dark-link rule) */
.pw-header a,
.pw-footer a{
  color: var(--link-on-paper) !important;
}

/* Auth buttons in header (calm) */
.pw-header .pw-auth-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.pw-header .pw-auth-btn:active{ transform: translateY(1px); }

.pw-header .pw-auth-btn--login,
.pw-header .pw-auth-btn--register{
  color: var(--ink) !important;
  background: rgba(6,32,43,0.04);
  border-color: rgba(6,32,43,0.16);
}
.pw-header .pw-auth-btn--login:hover,
.pw-header .pw-auth-btn--register:hover{
  color: var(--ink) !important;
  background: rgba(6,32,43,0.06);
  border-color: rgba(6,32,43,0.22);
}

/* Footer links (on paper) */
.pw-body .pw-footer-links a,
.pw-body .pw-footer-line,
.pw-body footer .text-muted{ color: var(--muted) !important; }

/* Global links (dark background) */
.pw-body a,
.pw-body a:visited{ color: var(--link-on-dark) !important; }
.pw-body a:hover{ filter: brightness(0.98); }

/* Paper surfaces (cards/blocks) — readable dark ink */
.pw-body .card,
.pw-body .feature-box,
.pw-body .pw-hero,
.pw-body .pw-kpi,
.pw-body .pw-linear,
.pw-body .pw-block{
  background: var(--surface) !important;
  border-color: var(--surface-border) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow);
}

/* Subtle hero/important variants */
.pw-body .pw-block--hero{
  background:
    radial-gradient(520px 280px at 10% 18%, rgba(104,190,168,0.18), transparent 60%),
    radial-gradient(460px 260px at 90% 22%, rgba(191,233,221,0.16), transparent 60%),
    var(--surface) !important;
}
.pw-body .pw-block--important{
  background: rgba(245,158,11,0.12) !important;
  border-color: rgba(245,158,11,0.26) !important;
  color: rgba(6,32,43,0.92) !important;
  box-shadow: var(--shadow);
}

/* Muted text inside paper surfaces */
.pw-body .card .text-muted,
.pw-body .feature-box .text-muted,
.pw-body .pw-hero .text-muted,
.pw-body .pw-kpi .text-muted,
.pw-body .pw-linear .text-muted,
.pw-body .pw-block .text-muted,
.pw-body .pw-block .pw-subtitle,
.pw-body .pw-block .pw-card-sub,
.pw-body .pw-block .feature-text{
  color: var(--muted) !important;
}

/* Forms on paper */
.pw-body .form-control,
.pw-body .form-select{
  background-color: rgba(255,255,255,0.82) !important;
  color: var(--ink) !important;
  border-color: rgba(6,32,43,0.16) !important;
}
.pw-body .form-control::placeholder{ color: rgba(6,32,43,0.45) !important; }
.pw-body .form-control:focus,
.pw-body .form-select:focus{
  border-color: rgba(46,143,121,0.35) !important;
  box-shadow: 0 0 0 .25rem rgba(104,190,168,0.18) !important;
}

/* Links inside paper surfaces */
.pw-body .card a,
.pw-body .feature-box a,
.pw-body .pw-hero a,
.pw-body .pw-kpi a,
.pw-body .pw-linear a,
.pw-body .pw-block a{
  color: var(--link-on-paper) !important;
}

/* Buttons (metallic green aluminum) */
.pw-body .btn-primary,
.pw-body .btn-dark,
.pw-body .pw-btn--primary{
  color: rgba(243,251,248,0.98) !important;
  background-image: var(--pw-metal-sheen), var(--pw-metal-grad) !important;
  background-color: transparent !important;
  border-color: rgba(7,43,39,0.35) !important;
  box-shadow:
    0 18px 46px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.32);
}
.pw-body .btn-primary:hover,
.pw-body .btn-dark:hover,
.pw-body .pw-btn--primary:hover{
  filter: brightness(0.98) contrast(1.02);
  transform: none !important;
}

/* Outline buttons (paper UI) */
.pw-body .btn-outline-dark{
  color: var(--ink) !important;
  border-color: rgba(6,32,43,0.22) !important;
}
.pw-body .btn-outline-dark:hover{
  background: rgba(6,32,43,0.06) !important;
  border-color: rgba(6,32,43,0.28) !important;
  color: rgba(6,32,43,0.98) !important;
}

/* Tables inside paper surfaces */
.pw-body .table{ color: var(--ink) !important; }
.pw-body .table > :not(caption) > * > *{ border-color: rgba(6,32,43,0.10) !important; }
.pw-body .table-striped > tbody > tr:nth-of-type(odd) > *{
  background-color: rgba(104,190,168,0.06) !important;
  color: var(--ink) !important;
}

/* Alerts — keep readable */
.pw-body .alert{
  border-color: rgba(6,32,43,0.12) !important;
  background: rgba(243,251,248,0.92) !important;
  color: rgba(6,32,43,0.92) !important;
  box-shadow: var(--shadow);
}
.pw-body .alert-warning{
  border-color: rgba(245,158,11,0.36) !important;
  background: rgba(245,158,11,0.10) !important;
}
.pw-body .alert-danger{
  border-color: rgba(239,68,68,0.36) !important;
  background: rgba(239,68,68,0.10) !important;
}
.pw-body .alert-info{
  border-color: rgba(46,143,121,0.26) !important;
  background: rgba(104,190,168,0.10) !important;
}

/* Accent elements that were hardcoded to blue/purple — switch to metallic green */
.pw-body .pw-hero-title-accent{
  background: var(--pw-metal-text) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.pw-body .pw-kicker-dot{
  background: radial-gradient(circle at 30% 30%, var(--pw-metal-1), var(--pw-metal-4)) !important;
}

/* ---------------------------------------------------------------------
   HOME — keep structure but calm + on-brand
   --------------------------------------------------------------------- */

.pw-home{
  --pw-ink: var(--ink);
  --pw-muted: var(--muted);

  --pw-hero-ink: rgba(243,251,248,0.96);
  --pw-hero-muted: rgba(243,251,248,0.72);

  --pw-ac1: var(--pw-metal-4);
  --pw-ac2: var(--pw-metal-3);
  --pw-ac3: var(--pw-metal-2);
  --pw-ac4: var(--pw-metal-4);
}

/* Home gradient text (metal)
   IMPORTANT: some mobile browsers can show a solid rectangle (instead of
   clipped glyphs) unless the element is inline-block and
   -webkit-text-fill-color is set. Provide a visible fallback first.
*/
.pw-body .pw-grad{
  /* fallback so numbers are ALWAYS visible */
  color: rgba(15, 23, 42, 0.92) !important;
  display: inline-block;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .pw-body .pw-grad{
    background: var(--pw-metal-text) !important;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
  }
}

/* Some mobile browsers (notably iOS/Safari in certain contexts) can report
   support for background-clip:text but still render a solid rectangle.
   On small screens, prefer a reliable solid color so the numbers are readable. */
@media (max-width: 767.98px){
  .pw-body .pw-grad{
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    color: rgba(15, 23, 42, 0.92) !important;
  }
}

/* Home cards: remove spinning border + keep a subtle metallic frame */
.pw-body .pw-card{
  box-shadow: var(--shadow) !important;
}

/* FIX: prevent gradient-text rectangle bug in Chrome/Safari (some environments fail to clip text).
   For the big income percentage, always render as solid text for readability. */
.pw-highlight-big .pw-grad{
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: rgba(15, 23, 42, 0.92) !important;
}

.pw-body .pw-card::before{
  animation: none !important;
  opacity: 0.45 !important;
  background: var(--pw-metal-grad) !important;
}
.pw-body .pw-card:hover::before{ opacity: 0.55 !important; }

.pw-body .pw-card::after{
  background: var(--surface) !important;
  border: 1px solid var(--surface-border) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Inner blocks inside Home cards (paper-lite) */
.pw-body .pw-home .pw-flow-item,
.pw-body .pw-home .pw-level,
.pw-body .pw-home .pw-platform,
.pw-body .pw-home .pw-list-item,
.pw-body .pw-home .pw-payout-item,
.pw-body .pw-home .pw-review-card,
.pw-body .pw-home .pw-benefit,
.pw-body .pw-home .pw-security,
.pw-body .pw-home .pw-highlight,
.pw-body .pw-home .pw-callout,
.pw-body .pw-home .pw-text{
  background: var(--surface-2) !important;
  border-color: rgba(6,32,43,0.12) !important;
  color: var(--ink) !important;
}

.pw-body .pw-home .pw-important-box{
  background: rgba(239,68,68,0.08) !important;
  border-color: rgba(239,68,68,0.18) !important;
  color: var(--ink) !important;
}

/* Text inside Home inner blocks */
.pw-body .pw-home .pw-flow-t,
.pw-body .pw-home .pw-li-t,
.pw-body .pw-home .pw-review-text,
.pw-body .pw-home .pw-benefit-t,
.pw-body .pw-home .pw-important-text,
.pw-body .pw-home .pw-text{
  color: rgba(6,32,43,0.92) !important;
}



/* Reviews (Home theme) */
.pw-body .pw-home .pw-review-stars{
  color: rgba(6,32,43,0.74) !important;
}
/* Styled arrows (metallic) inside compact flow text */
.pw-body .pw-flow-t--compact{
  font-weight: 850;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
/* Inline flow steps (avoid .pw-step bullets/pseudo arrows) */
.pw-body .pw-flow-step{
  font-weight: 850;
  color: rgba(6,32,43,0.92);
  padding: 0;
}

/* Keep arrows perfectly aligned and never "orphaned" on a new line:
   render the arrow as part of the предыдущего шага (pseudo-element). */
.pw-body .pw-flow-t--compact .pw-flow-step:not(:last-of-type)::after{
  content: "";
  display: inline-block;
  width: 16px;
  height: 12px;
  margin: 0 .55rem;
  vertical-align: -0.08em;
  background: var(--pw-metal-text);
  clip-path: polygon(0 20%, 62% 20%, 62% 0, 100% 50%, 62% 100%, 62% 80%, 0 80%);
  border-radius: 3px;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.18));
}

/* Safety: if any legacy .pw-step remains inside compact flow text, don't render bullet arrows */
.pw-body .pw-flow-t--compact .pw-step:before{ content: none !important; }
.pw-body .pw-flow-t--compact .pw-step{ padding-left: 0 !important; }

.pw-body .pw-arrow{
  transform: none;
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
  margin: 0 .55rem;
  vertical-align: -0.08em;
  color: transparent;      /* keep text for a11y, hide visually */
  font-size: 0;
  line-height: 0;
}
.pw-body .pw-arrow::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pw-metal-text);
  clip-path: polygon(0 20%, 62% 20%, 62% 0, 100% 50%, 62% 100%, 62% 80%, 0 80%);
  border-radius: 3px;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.18));
}
/* Muted bits inside Home inner blocks */
.pw-body .pw-home .pw-home-end-sub,
.pw-body .pw-home .pw-card-sub{
  color: var(--muted) !important;
}

/* Icon chips — subtle metal */
.pw-body .pw-home .pw-flow-ic,
.pw-body .pw-home .pw-li-ic,
.pw-body .pw-home .pw-benefit-ic,
.pw-body .pw-home .pw-security-ic,
.pw-body .pw-home .pw-payout-ic{
  background: rgba(104,190,168,0.14) !important;
  border-color: rgba(46,143,121,0.20) !important;
  color: rgba(6,32,43,0.86) !important;
}

/* Level chip */
.pw-body .pw-home .pw-level-chip,
.pw-body .pw-home .pw-level-chip--pro{
  background: rgba(104,190,168,0.16) !important;
  border-color: rgba(46,143,121,0.22) !important;
  color: rgba(6,32,43,0.92) !important;
}

/* Primary CTA (metal) */
.pw-body .pw-btn--primary{
  background-image: var(--pw-metal-sheen), var(--pw-metal-grad) !important;
}
.pw-body .pw-btn-glow{ display: none !important; }
.pw-body .pw-btn--ghost:hover{ transform: none !important; }

/* Disable Home reveal animations (keep content simply visible) */
html.pw-home-js .pw-home .pw-reveal{
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

/* Disable header "pulse" animation */
.pw-pulse-btn,
.pw-pulse-btn::after{
  animation: none !important;
}


:root {
  --pw-dashboard-float-widget-h: 0px;
}

.pw-dashboard-float-widget{
  position: fixed;
  top: calc(var(--pw-header-h) + 14px);
  z-index: 1025;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(calc(100vw - 24px), 420px);
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--paper-bg);
  border: 1px solid rgba(6,32,43,0.16);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  color: var(--ink);
}

.pw-dashboard-float-widget--left{
  left: max(12px, calc((100vw - 1320px) / 2 + 12px));
}

.pw-dashboard-float-widget--right{
  right: max(12px, calc((100vw - 1320px) / 2 + 12px));
}

.pw-dashboard-float-widget--right{
  justify-content: flex-end;
  text-align: right;
}

.pw-dashboard-float-widget#pwDashboardStatusWidget{
  min-width: max-content;
}

.pw-dashboard-float-widget__button{
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.pw-dashboard-float-widget__button:hover{
  opacity: 0.86;
}

.pw-dashboard-float-widget__label{
  flex: 0 0 auto;
  font-weight: 800;
  opacity: 0.86;
  position: relative;
  top: -1px;
}

.pw-dashboard-float-widget__value{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pw-main--dashboard{
  padding-top: calc(1.5rem + var(--pw-dashboard-float-widget-h) + 8px) !important;
}

@media (max-width: 991.98px){
  .pw-dashboard-float-widget{
    top: calc(var(--pw-header-h) + 10px);
    max-width: none;
  }

  .pw-dashboard-float-widget--left{
    left: 12px;
    right: auto;
  }

  .pw-dashboard-float-widget--right{
    right: 12px;
    left: auto;
    justify-content: flex-end;
    max-width: calc(100vw - 24px);
  }

  .pw-main--dashboard{
    padding-top: calc(1.5rem + var(--pw-dashboard-float-widget-h) + 6px) !important;
  }
}


/* === Green button theme override === */
:root{
  --pw-accent-green: #198754;
  --pw-accent-green-hover: #157347;
  --pw-accent-green-border: #146c43;
}

.pw-body .btn,
.pw-header .pw-auth-btn,
.pw-dashboard-float-widget__button{
  border-radius: 14px !important;
}

.pw-body .btn-primary,
.pw-body .btn-dark,
.pw-body .btn-outline-dark,
.pw-body .btn-outline-secondary,
.pw-body .btn-success,
.pw-body .pw-btn--primary,
.pw-header .pw-auth-btn--login,
.pw-header .pw-auth-btn--register{
  color: #ffffff !important;
  background: var(--pw-accent-green) !important;
  background-image: none !important;
  border-color: var(--pw-accent-green-border) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.pw-body .btn-primary:hover,
.pw-body .btn-dark:hover,
.pw-body .btn-outline-dark:hover,
.pw-body .btn-outline-secondary:hover,
.pw-body .btn-success:hover,
.pw-body .pw-btn--primary:hover,
.pw-header .pw-auth-btn--login:hover,
.pw-header .pw-auth-btn--register:hover{
  color: #ffffff !important;
  background: var(--pw-accent-green-hover) !important;
  border-color: var(--pw-accent-green-border) !important;
  filter: none !important;
}

.pw-body .btn-outline-dark:focus,
.pw-body .btn-outline-secondary:focus,
.pw-body .btn-primary:focus,
.pw-body .btn-dark:focus,
.pw-header .pw-auth-btn:focus{
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

.pw-dashboard-float-widget{
  background: var(--pw-accent-green) !important;
  border-color: var(--pw-accent-green-border) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(25, 135, 84, 0.22) !important;
}

.pw-dashboard-float-widget__button,
.pw-dashboard-float-widget__label,
.pw-dashboard-float-widget__value{
  color: #ffffff !important;
}


/* === Unified button system v3 === */
:root{
  --pw-btn-radius: 999px;
  --pw-btn-font-size: 0.9rem;
  --pw-btn-font-weight: 800;
  --pw-btn-line-height: 1.05;
  --pw-btn-min-height: 36px;
  --pw-btn-padding-x: 13px;
  --pw-btn-padding-y: 6px;
  --pw-btn-border-w: 1px;
}

.pw-body .btn,
.pw-body .pw-btn,
.pw-header .pw-auth-btn,
.pw-dashboard-float-widget__button{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: var(--pw-btn-min-height);
  padding: var(--pw-btn-padding-y) var(--pw-btn-padding-x) !important;
  border-radius: var(--pw-btn-radius) !important;
  border-width: var(--pw-btn-border-w) !important;
  font-size: var(--pw-btn-font-size) !important;
  font-weight: var(--pw-btn-font-weight) !important;
  line-height: var(--pw-btn-line-height) !important;
  letter-spacing: -0.02em !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.pw-body .btn-sm{
  min-height: 31px;
  padding: 5px 12px !important;
  font-size: 0.82rem !important;
}

.pw-body .btn.w-100,
.pw-body .btn[class*=" w-100"],
.pw-body .w-100.btn{
  width: 100%;
}

.pw-body .pw-btn--primary{
  min-height: 38px;
  padding: 7px 16px !important;
  border-radius: var(--pw-btn-radius) !important;
  font-size: 0.9rem !important;
}

.pw-dashboard-float-widget{
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pw-dashboard-float-widget__button{
  appearance: none;
  border-style: solid;
  color: #ffffff !important;
  background: var(--pw-accent-green) !important;
  border-color: var(--pw-accent-green-border) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.pw-dashboard-float-widget__button:hover{
  background: var(--pw-accent-green-hover) !important;
  border-color: var(--pw-accent-green-border) !important;
}

.pw-body .btn-outline-primary,
.pw-body .btn-outline-danger{
  color: #ffffff !important;
  background: var(--pw-accent-green) !important;
  border-color: var(--pw-accent-green-border) !important;
}

.pw-body .btn-outline-primary:hover,
.pw-body .btn-outline-danger:hover{
  color: #ffffff !important;
  background: var(--pw-accent-green-hover) !important;
  border-color: var(--pw-accent-green-border) !important;
}

.pw-header-actions,
.pw-header-actions .pw-creator-actions,
.pw-header-actions .pw-creator-actions form{
  display: flex;
  align-items: center;
}

.pw-header-actions .pw-creator-actions{
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pw-header-actions .pw-creator-actions .btn,
.pw-header-actions .pw-creator-actions form{
  margin: 0 !important;
}

@media (max-width: 991.98px){
  .pw-header-actions .pw-creator-actions{
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
}

@media (max-width: 767.98px){
  :root{
    --pw-btn-font-size: 0.86rem;
    --pw-btn-min-height: 34px;
    --pw-btn-padding-x: 12px;
    --pw-btn-padding-y: 6px;
  }

  .pw-body .btn-sm{
    min-height: 30px;
    padding: 5px 10px !important;
    font-size: 0.79rem !important;
  }
}


.pw-copy-group{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.pw-link-card,
.pw-copy-group,
.pw-copy-group > .form-control,
.pw-link-card__row,
.pw-link-card__value{
  max-width: 100%;
  min-width: 0;
}

.pw-link-card{
  overflow: hidden;
}

.pw-copy-group > .form-control,
.pw-copy-group__actions > .btn,
.pw-copy-group > .btn{
  min-height: 42px !important;
  height: 42px !important;
}

.pw-copy-group > .form-control{
  padding: 8px 14px !important;
  font-size: 0.94rem !important;
  font-weight: 700;
}

.pw-copy-group__actions > .btn,
.pw-copy-group > .btn,
.input-group .pw-copy{
  flex: 0 0 auto;
  padding: 6px 14px !important;
  font-size: 0.88rem !important;
  line-height: 1 !important;
}

.pw-dashboard-float-widget__label{
  position: relative;
  top: -5px;
}

.pw-dashboard-float-widget__value{
  position: relative;
  top: -2px;
}


/* === Unified button hotfix v8 === */
:root{
  --pw-btn-font-size: 0.88rem;
  --pw-btn-min-height: 34px;
  --pw-btn-padding-x: 12px;
  --pw-btn-padding-y: 5px;
}

.pw-body .btn-sm,
.pw-header-actions .btn,
.pw-dashboard-float-widget__button,
.pw-copy-group__actions > .btn,
.pw-copy-group > .btn,
.input-group .pw-copy{
  min-height: 34px !important;
  height: 34px !important;
  padding: 5px 12px !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.pw-dashboard-float-widget__button{
  min-height: 34px !important;
}

.pw-copy-group > .form-control{
  min-height: 34px !important;
  height: 34px !important;
  padding: 6px 14px !important;
  font-size: 0.88rem !important;
  line-height: 1.1 !important;
}

.pw-dashboard-float-widget--right{
  gap: 8px !important;
  align-items: baseline !important;
}

.pw-dashboard-float-widget__label,
.pw-dashboard-float-widget__value{
  position: static !important;
  top: auto !important;
  line-height: 1 !important;
  display: inline-block;
  vertical-align: baseline;
}

.pw-dashboard-float-widget__label{
  opacity: 1 !important;
}

@media (max-width: 767.98px){
  :root{
    --pw-btn-font-size: 0.84rem;
    --pw-btn-min-height: 32px;
    --pw-btn-padding-x: 10px;
    --pw-btn-padding-y: 4px;
  }

  .pw-body .btn-sm,
  .pw-header-actions .btn,
  .pw-dashboard-float-widget__button,
  .pw-copy-group__actions > .btn,
  .pw-copy-group > .btn,
  .input-group .pw-copy,
  .pw-copy-group > .form-control{
    min-height: 32px !important;
    height: 32px !important;
    font-size: 0.84rem !important;
  }
}

@media (max-width: 420px){
  .pw-header-auth--mobile{
    gap: 0.35rem !important;
  }

  .pw-header-auth--mobile .pw-auth-btn{
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    font-size: 0.92rem;
  }

  .pw-brand-text{
    font-size: 0.9rem;
  }
}


.pw-ringing-btn{
  position: relative;
  transform-origin: 50% 12%;
  animation: pwRingBell 3.4s ease-in-out infinite;
  will-change: transform;
}

.pw-body .btn-outline-dark.pw-ringing-btn,
.pw-body .btn-outline-dark.pw-ringing-btn:visited,
.pw-body .btn-outline-dark.pw-ringing-btn:hover,
.pw-body .btn-outline-dark.pw-ringing-btn:focus,
.pw-body .btn-outline-dark.pw-ringing-btn:focus-visible{
  color: #ffffff !important;
  background: var(--pw-accent-green) !important;
  border-color: var(--pw-accent-green-border) !important;
  filter: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

@keyframes pwRingBell{
  0%, 100%{ transform: rotate(0deg); }
  4%{ transform: rotate(1.6deg); }
  8%{ transform: rotate(-1.6deg); }
  12%{ transform: rotate(1.3deg); }
  16%{ transform: rotate(-1.3deg); }
  20%{ transform: rotate(0.9deg); }
  24%{ transform: rotate(-0.9deg); }
  28%{ transform: rotate(0.5deg); }
  32%{ transform: rotate(-0.5deg); }
  36%, 88%{ transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce){
  .pw-ringing-btn{
    animation: none !important;
  }
}

.pw-dashboard-shell,
.pw-product-shell{
  max-width: 1100px;
  margin: 0 auto;
}

.pw-dashboard-alert{
  border-radius: 18px;
}

.pw-dashboard-hero{
  border-radius: 24px;
  overflow: hidden;
}

.pw-summary-card{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,244,.98));
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-height: 100%;
}

.pw-summary-card__label{
  font-size: .82rem;
  color: #6c757d;
  margin-bottom: 0;
  text-align: center;
}

.pw-summary-card__value{
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
  color: #111827;
  opacity: 1;
  filter: none;
  text-shadow: none;
  text-align: center;
}

.pw-summary-card__hint{
  margin-top: 0;
  font-size: .76rem;
  color: #6c757d;
  text-align: center;
}

.pw-explainer-note{
  margin-top: 12px;
  margin-bottom: 0;
  font-size: .92rem;
  line-height: 1.5;
  color: #556270;
}

.pw-chart-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pw-chart-legend__item{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: #6c757d;
}

.pw-chart-legend__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.pw-chart-legend__dot--views,
.pw-mini-chart__bar--views{
  background: linear-gradient(180deg, #fb7185, #ef4444);
}

.pw-chart-legend__dot--buyers,
.pw-mini-chart__bar--buyers{
  background: linear-gradient(180deg, #4ade80, #16a34a);
}

.pw-mini-chart{
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 190px;
}

.pw-mini-chart__col{
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.pw-mini-chart__bars{
  width: 100%;
  height: 146px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 8px 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(241,245,249,.7));
}

.pw-mini-chart__bar{
  width: 42%;
  min-height: 2px;
  border-radius: 999px 999px 8px 8px;
  box-shadow: 0 8px 16px rgba(15,23,42,.08);
}

.pw-mini-chart__label{
  margin-top: 8px;
  font-size: .67rem;
  color: #6c757d;
  white-space: nowrap;
}

.pw-products-grid{
  display: grid;
  gap: 12px;
  margin-top: 1rem;
}

.pw-product-card{
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(250,251,252,.98));
}

.pw-product-card__meta{
  display: grid;
  gap: 10px;
}

.pw-product-card__meta-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pw-link-card{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
}

.pw-link-card__label{
  font-size: .8rem;
  color: #6c757d;
}

.pw-link-card__label--badge{
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 0;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  box-shadow: none;
}

.pw-link-card__label--promo{
  background: #cf624d;
}

.pw-link-card__label--ref{
  background: #9a4dcb;
}

.pw-link-card__label--telegram{
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  box-shadow: none;
}

.pw-link-card__note{
  margin-top: 4px;
  font-size: .84rem;
  line-height: 1.35;
  color: #6c757d;
}

.pw-badge-blink-danger{
  background: linear-gradient(135deg, #ff5a5f 0%, #dc3545 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 0 rgba(220,53,69,.45);
  animation: pwBadgeBlinkDanger 1s ease-in-out infinite;
}

.pw-tg-auth-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding-inline: 14px;
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(34, 158, 217, .24);
}

.pw-body .pw-tg-auth-btn,
.pw-body .pw-tg-auth-btn:visited,
.pw-body .pw-tg-auth-btn:hover,
.pw-body .pw-tg-auth-btn:focus,
.pw-body .pw-tg-auth-btn:focus-visible{
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  border-color: transparent;
}

.pw-body .pw-tg-auth-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(34, 158, 217, .28);
}

.pw-body .pw-tg-auth-btn,
.pw-body .pw-tg-auth-btn span,
.pw-body .pw-tg-auth-btn strong,
.pw-body .pw-tg-auth-btn b,
.pw-body .pw-tg-auth-btn small{
  color: #ffffff !important;
  fill: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}

.pw-tg-auth-btn__icon{
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}


.pw-telegram-modal{
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pw-telegram-modal-card{
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.pw-telegram-modal-card__close{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.pw-telegram-modal-card__head{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.pw-telegram-modal-card__icon-wrap{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(42, 171, 238, 0.12);
}

.pw-telegram-modal-card__title{
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.pw-telegram-modal-card__text{
  color: #475569;
  line-height: 1.55;
  text-align: center;
  max-width: 560px;
}

.pw-telegram-modal-card__text--danger{
  color: #b42318;
}

.pw-telegram-modal-card__text--centered{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pw-telegram-widget-slot{
  position: relative;
  min-height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.pw-telegram-widget-loader{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.pw-telegram-widget-loader__inner{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #64748b;
  text-align: center;
}

.pw-telegram-widget-loader__icon{
  width: 22px;
  height: 22px;
  display: block;
  animation: pwTelegramWidgetFloat 1.8s ease-in-out infinite;
}

.pw-telegram-widget-loader__text{
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.pw-telegram-widget-loader__timer{
  font-size: 12px;
  line-height: 1.2;
  color: #94a3b8;
}

@keyframes pwTelegramWidgetFloat{
  0%,
  100%{ transform: translateY(0); }
  50%{ transform: translateY(-4px); }
}


.pw-telegram-step--center{
  text-align: center;
}

.pw-telegram-step--center .pw-telegram-step__title-text{
  text-align: left;
}

.pw-telegram-step__actions{
  display: flex;
  justify-content: center;
  align-items: center;
}

.pw-telegram-step__hint,
.pw-telegram-step__status{
  text-align: center;
}

.pw-telegram-step__title{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}

.pw-telegram-step__title-num{
  flex: 0 0 auto;
  white-space: nowrap;
}

.pw-telegram-step__title-text{
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 575.98px){
  .pw-telegram-step__title{
    text-align: left;
    gap: 6px;
  }
}

.pw-telegram-action-btn{
  width: auto !important;
  min-width: 144px !important;
  max-width: 100% !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 5px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #54a9eb !important;
  border-radius: 4px !important;
  background: #54a9eb !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease !important;
}

.pw-telegram-action-btn:hover,
.pw-telegram-action-btn:focus,
.pw-telegram-action-btn:visited{
  background: #4a9ad8 !important;
  border-color: #4a9ad8 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.pw-telegram-action-btn:active{
  background: #4391cd !important;
  border-color: #4391cd !important;
  color: #ffffff !important;
  transform: none !important;
}

.pw-telegram-action-btn.is-disabled,
.pw-telegram-action-btn:disabled,
.pw-telegram-action-btn[aria-disabled="true"]{
  background: #dfe6ee !important;
  border-color: #dfe6ee !important;
  color: #7c8b9a !important;
  -webkit-text-fill-color: #7c8b9a !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.pw-telegram-action-btn.is-locked{
  background: #dfe6ee !important;
  border-color: #dfe6ee !important;
  color: #7c8b9a !important;
  -webkit-text-fill-color: #7c8b9a !important;
  cursor: not-allowed !important;
}

.pw-telegram-action-btn.is-locked:hover,
.pw-telegram-action-btn.is-locked:focus,
.pw-telegram-action-btn.is-locked:visited,
.pw-telegram-action-btn.is-locked:active{
  background: #dfe6ee !important;
  border-color: #dfe6ee !important;
  color: #7c8b9a !important;
  -webkit-text-fill-color: #7c8b9a !important;
  transform: none !important;
}

@media (max-width: 575.98px){
  .pw-telegram-action-btn{
    min-width: 136px !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
  }
}



@keyframes pwBadgeBlinkDanger{
  0%, 100%{
    opacity: 1;
    box-shadow: 0 0 0 rgba(220,53,69,.18);
  }
  50%{
    opacity: .45;
    box-shadow: 0 0 0 8px rgba(220,53,69,0);
  }
}

@media (prefers-reduced-motion: reduce){
  .pw-badge-blink-danger{
    animation: none;
  }

  .pw-body .pw-tg-auth-btn:hover{
    transform: none;
  }
}

.pw-link-card__row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
}

.pw-link-card__actions,
.pw-copy-group__actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.pw-link-card__actions > .btn,
.pw-copy-group__actions > .btn{
  flex: 0 0 auto;
  white-space: nowrap;
}

.pw-link-card__value{
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.08);
  font-size: .82rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-link-card__value--placeholder{
  color: #6c757d;
}

.pw-custom-promo-form{
  display: grid;
  gap: 10px;
}

.pw-custom-promo-form__row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.pw-custom-promo-form__row--button-left{
  grid-template-columns: auto minmax(0, 1fr);
}

.pw-promo-status{
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.08);
  color: #475569;
  font-size: .84rem;
  line-height: 1.4;
}

@media (max-width: 575.98px){
  .pw-custom-promo-form__row{
    grid-template-columns: 1fr;
  }
}


.pw-toggle-head{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
}

.pw-toggle-head__copy{
  min-width: 0;
  flex: 1 1 260px;
}

.pw-toggle-head__eyebrow{
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6c757d;
}

.pw-toggle-head__title{
  margin-top: 2px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

.pw-toggle-head__title--page{
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.2;
}

.pw-toggle-head__title--page-soft{
  font-size: clamp(1.1rem, 2.15vw, 1.42rem);
}

.pw-toggle-head__note{
  margin-top: 4px;
  font-size: .84rem;
  line-height: 1.35;
  color: #6c757d;
}

.pw-toggle-head__title--with-icon{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pw-inline-bot-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.pw-toggle-head__title-icon{
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
}

.pw-subsection-title{
  margin-bottom: 12px;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

.pw-subsection-title--with-icon{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pw-subsection-title__icon{
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
}

.pw-subsection-title--status{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pw-subsection-title__main{
  min-width: 0;
}

.pw-subsection-title__badge{
  margin-left: auto;
  flex: 0 0 auto;
}

.pw-toggle-head__actions{
  display: flex;
  flex: 1 1 100%;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.pw-toggle-head__btn{
  white-space: nowrap;
}

.pw-soft-panel{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.pw-btn-report-wrap{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100%;
  text-align: center !important;
}

.pw-btn-report{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100%;
  flex: 0 0 auto;
  margin: 0 auto !important;
  padding: .58rem 1.15rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--pw-accent-green) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-align: center !important;
  white-space: nowrap;
}

.pw-btn-report__text{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  fill: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700;
  line-height: 1.1;
  text-align: center !important;
  white-space: nowrap;
}

.pw-btn-report,
.pw-btn-report .pw-btn-report__text,
.pw-btn-report span,
.pw-body a.pw-btn-report,
.pw-body a.pw-btn-report:hover,
.pw-body a.pw-btn-report:focus,
.pw-body a.pw-btn-report:visited,
.pw-body a.pw-btn-report:active,
.pw-body a.pw-btn-report .pw-btn-report__text{
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
}

.pw-btn-report:hover,
.pw-btn-report:focus{
  background: var(--pw-accent-green-hover) !important;
}

.pw-kpi-tile{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.98));
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 4px;
}

.pw-report-footnote{
  max-width: 820px;
}

.pw-kpi-tile__label{
  font-size: .8rem;
  color: #6c757d;
  margin-bottom: 0;
  text-align: center;
}

.pw-kpi-tile__value{
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  opacity: 1;
  filter: none;
  text-shadow: none;
  text-align: center;
}

.pw-kpi-tile__hint{
  font-size: .76rem;
  color: #6c757d;
  text-align: center;
}

.pw-detail-stack{
  display: grid;
  gap: 16px;
}

.pw-telegram-detail-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pw-kpi-tile--compact{
  height: auto;
  min-height: 96px;
}

.pw-kpi-tile__value--compact{
  font-size: 1rem;
  line-height: 1.35;
  word-break: break-word;
}

.pw-telegram-status,
.pw-manual-telegram-box{
  border-radius: 18px;
  padding: 14px;
}

.pw-telegram-status--connected{
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(22,163,74,.18);
}

.pw-telegram-status--pending,
.pw-manual-telegram-box{
  background: rgba(248,250,252,.92);
  border: 1px solid rgba(15,23,42,.08);
}

.pw-telegram-connect-panel{
  display: grid;
  gap: 12px;
}

.pw-telegram-connect-option{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 12px;
  background: rgba(248,250,252,.92);
}

.pw-telegram-connect-form .btn{
  width: 100%;
}

.pw-conversions-list{
  display: grid;
  gap: 10px;
}

.pw-conversions-list__item{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

@media (max-width: 767.98px){
  .pw-mini-chart{
    gap: 4px;
    min-height: 170px;
  }

  .pw-mini-chart__bars{
    height: 126px;
    gap: 2px;
  }

  .pw-mini-chart__label{
    font-size: .58rem;
  }

  .pw-product-card__meta-row{
    flex-direction: column;
    gap: 6px;
  }

  .pw-toggle-head__actions{
    width: 100%;
    justify-content: flex-end;
  }

  .pw-link-card__row{
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .pw-link-card__actions,
  .pw-copy-group,
  .pw-copy-group__actions{
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .pw-link-card__actions > .btn,
  .pw-copy-group__actions > .btn{
    flex: 1 1 auto;
    width: 100%;
  }

  .pw-summary-card{
    padding: 12px;
    border-radius: 18px;
  }

  .pw-summary-card__value{
    font-size: 1.02rem;
  }

  .pw-conversions-list__item{
    align-items: flex-start;
    flex-direction: column;
  }

  .pw-telegram-detail-grid{
    grid-template-columns: 1fr;
  }
}


/* Dashboard account widget: stacked user + status */
.pw-dashboard-float-widget__stack{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pw-dashboard-float-widget__line{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pw-dashboard-float-widget__line .pw-dashboard-float-widget__value{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767.98px){
  .pw-dashboard-float-widget__line{
    gap: 6px;
  }
}

/* =====================================================================
   HOME — white mini containers like promo card
   ===================================================================== */
.pw-body .pw-home .pw-flow-item,
.pw-body .pw-home .pw-highlight,
.pw-body .pw-home .pw-text,
.pw-body .pw-home .pw-level,
.pw-body .pw-home .pw-callout,
.pw-body .pw-home .pw-platform,
.pw-body .pw-home .pw-placement-copy,
.pw-body .pw-home .pw-list-item,
.pw-body .pw-home .pw-payout-item,
.pw-body .pw-home .pw-benefit,
.pw-body .pw-home .pw-security,
.pw-body .pw-home .pw-review-card,
.pw-body .pw-home .pw-important-box{
  background: linear-gradient(180deg, rgba(255,255,255,.995), rgba(249,250,252,.985)) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: 0 10px 24px rgba(15,23,42,.04), inset 0 1px 0 rgba(255,255,255,.78) !important;
}

.pw-body .pw-home .pw-level,
.pw-body .pw-home .pw-payout-item,
.pw-body .pw-home .pw-security,
.pw-body .pw-home .pw-review-card{
  box-shadow: 0 12px 28px rgba(15,23,42,.05), inset 0 1px 0 rgba(255,255,255,.78) !important;
}


#offerModal .modal-content{
  background: #ffffff;
}

#offerModal .modal-header{
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

#offerModal .offer-modal-title{
  color: #111827 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#offerModal .modal-body{
  min-height: 0;
}

#offerModal .offer-list-scroll{
  max-height: min(60vh, 520px);
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#offerModal .offer-list-scroll::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}


.pw-download-logo-wrap{
  display: flex;
  justify-content: flex-start;
  margin-top: .62rem;
}

.pw-download-logo-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .32rem;
  min-height: 32px;
  padding: .38rem .82rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, #0a2f9f 0%, #146fe2 55%, #35dff3 100%) !important;
  color: #ffffff !important;
  fill: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none !important;
  box-shadow: none !important;
  text-align: center !important;
  white-space: nowrap;
}

.pw-body a.pw-download-logo-btn,
.pw-body a.pw-download-logo-btn:hover,
.pw-body a.pw-download-logo-btn:focus,
.pw-body a.pw-download-logo-btn:visited,
.pw-body a.pw-download-logo-btn:active{
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  filter: none !important;
}

.pw-download-logo-btn:hover,
.pw-download-logo-btn:focus{
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  filter: brightness(1.03) !important;
}


.pw-telegram-login-btn,
.pw-telegram-switch-btn{
  width: auto !important;
  min-width: 170px !important;
  max-width: 100% !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 5px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.pw-telegram-login-btn{
  border: 1px solid #d6dbe1 !important;
  background: #eef1f4 !important;
  color: #7b8794 !important;
}

.pw-telegram-switch-btn{
  border: 1px solid #3390ec !important;
  background: #ffffff !important;
  color: #3390ec !important;
}

.pw-telegram-switch-btn:hover,
.pw-telegram-switch-btn:focus,
.pw-telegram-switch-btn:visited{
  border-color: #3390ec !important;
  background: #f4f9fe !important;
  color: #3390ec !important;
  text-decoration: none !important;
  box-shadow: none !important;
}


/* =====================================================================
   HOME — dashboard showcase on the main page
   ===================================================================== */
.pw-showcase-shell{
  position: relative;
}

.pw-showcase-viewport{
  position: relative;
  overflow: hidden;
  padding: 8px 0 10px;
}

.pw-showcase-track{
  display: flex;
  gap: 18px;
  align-items: stretch;
  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}

.pw-showcase-slide{
  display: flex;
  align-items: stretch;
  flex: 0 0 min(760px, calc(100vw - 120px));
  width: min(760px, calc(100vw - 120px));
  opacity: .94;
  transition: opacity 320ms ease;
  backface-visibility: hidden;
}

.pw-showcase-slide.is-active{
  opacity: 1;
}

.pw-showcase-card{
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 430px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(220px 110px at 12% 12%, rgba(255,255,255,.66), transparent 72%),
    radial-gradient(260px 130px at 90% 8%, rgba(255,255,255,.42), transparent 74%),
    linear-gradient(180deg, rgba(223,232,229,.98), rgba(212,223,220,.98));
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 16px 36px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.72);
  overflow: hidden;
}

.pw-showcase-card--chart{
  grid-template-rows: auto 1fr;
}

.pw-showcase-card::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,0));
  pointer-events: none;
}

.pw-showcase-card > *{
  position: relative;
  z-index: 1;
}

.pw-showcase-card__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pw-showcase-slide--summary .pw-showcase-card__head{
  position: relative;
  padding-right: 112px;
}

.pw-showcase-slide--summary .pw-showcase-badge{
  position: absolute;
  top: 0;
  right: 0;
}

.pw-showcase-card__head--chart{
  align-items: flex-start;
}

.pw-showcase-card__kicker{
  font-size: .98rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(6,32,43,.50);
}

.pw-showcase-card__title{
  margin-top: 4px;
  font-size: clamp(1.6rem, 2.3vw, 2.35rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #0f172a;
}

.pw-showcase-card__eyebrow{
  margin-top: 10px;
  max-width: 560px;
  font-size: .96rem;
  line-height: 1.55;
  color: rgba(6,32,43,.60);
  font-weight: 700;
}

.pw-showcase-badge{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(16,185,129,.18);
  color: rgba(6,32,43,.82);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pw-showcase-badge::before{
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #34d399, #16a34a);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.pw-showcase-metrics,
.pw-showcase-forecast-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  align-content: stretch;
}

.pw-showcase-tile{
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 148px;
  gap: 10px;
  padding: 18px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(246,248,250,.96));
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 10px 24px rgba(15,23,42,.05), inset 0 1px 0 rgba(255,255,255,.86);
  text-align: center;
}

.pw-showcase-tile--accent{
  background: linear-gradient(180deg, rgba(255,255,255,.995), rgba(239,255,247,.96));
  border-color: rgba(22,163,74,.18);
  box-shadow: 0 14px 28px rgba(22,163,74,.09), inset 0 1px 0 rgba(255,255,255,.88);
}

.pw-showcase-tile--compact{
  min-height: 132px;
}

.pw-showcase-tile--wide{
  grid-column: 1 / -1;
}

.pw-showcase-tile__label{
  width: 100%;
  font-size: .92rem;
  line-height: 1.35;
  color: rgba(6,32,43,.58);
  font-weight: 700;
  text-align: center;
}

.pw-showcase-tile__value{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: clamp(1.55rem, 2.45vw, 2.25rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #0f172a;
  text-align: center;
}

.pw-showcase-tile__value .pw-demo-counter{
  display: block;
  width: 100%;
  text-align: center;
}

.pw-showcase-legend{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(6,32,43,.56);
  font-weight: 800;
}

.pw-showcase-legend__item{
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.pw-showcase-legend__dot{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-block;
}

.pw-showcase-legend__dot--responses{
  background: linear-gradient(180deg, #fb7185, #ef4444);
}

.pw-showcase-legend__dot--buyers{
  background: linear-gradient(180deg, #4ade80, #22c55e);
}

.pw-showcase-chart-totals{
  display: none;
}

.pw-showcase-total{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74);
}

.pw-showcase-total::before{
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239,68,68,.10);
}

.pw-showcase-total--buyers::before{
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34,197,94,.10);
}

.pw-showcase-total__label{
  color: rgba(6,32,43,.60);
  font-weight: 800;
}

.pw-showcase-total__value{
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 900;
  color: #0f172a;
}

.pw-showcase-plot{
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 288px;
  margin-top: auto;
  padding: 18px 16px 12px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(223,232,229,.74), rgba(214,224,221,.84));
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42);
}

.pw-showcase-plot__grid{
  position: absolute;
  inset: 18px 16px 38px;
  border-radius: 24px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.24) 0 1px, transparent 1px 100%) 0 33.333% / 100% 33.333%,
    linear-gradient(to right, rgba(255,255,255,.12) 0 1px, transparent 1px 100%) 0 0 / calc(100% / 14) 100%;
  opacity: .62;
  pointer-events: none;
}

.pw-showcase-plot__day{
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  height: 100%;
}

.pw-showcase-plot__well{
  position: relative;
  width: 100%;
  height: 236px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(248,250,251,.94), rgba(238,242,244,.96));
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
  overflow: hidden;
}

.pw-showcase-plot__bar{
  width: 22px;
  max-width: calc(50% - 3px);
  height: calc(100% - 16px);
  min-height: 18px;
  align-self: flex-end;
  border-radius: 999px 999px 8px 8px;
  transform-origin: bottom center;
  transform: scaleY(.02);
  will-change: transform;
  backface-visibility: hidden;
  box-shadow: 0 10px 18px rgba(15,23,42,.08);
}

.pw-showcase-plot__well::after{
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(15,23,42,.05);
}

.pw-showcase-plot__bar--responses{
  background: linear-gradient(180deg, #fb7185, #ef4444);
}

.pw-showcase-plot__bar--buyers{
  background: linear-gradient(180deg, #4ade80, #22c55e);
}

.pw-showcase-plot__label{
  font-size: .9rem;
  color: rgba(6,32,43,.62);
  font-weight: 800;
  line-height: 1;
}

.pw-showcase-plot__day--accent .pw-showcase-plot__well{
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 10px 20px rgba(15,23,42,.04);
}

.pw-showcase-plot__day--accent .pw-showcase-plot__label{
  color: rgba(6,32,43,.74);
}

html.pw-home-js .pw-home.pw-showcase-ready [data-showcase-slide] .pw-showcase-plot__bar{
  transform: scaleY(.02);
  transition: transform 1120ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--bar-delay, 0ms);
}

html.pw-home-js .pw-home.pw-showcase-ready [data-showcase-slide].is-active .pw-showcase-plot__bar{
  transform: scaleY(var(--bar-scale, .08));
}

@media (max-width: 991.98px){
  .pw-showcase-slide{
    flex-basis: min(700px, calc(100vw - 72px));
    width: min(700px, calc(100vw - 72px));
  }

  .pw-showcase-card{
    min-height: 410px;
  }
}

@media (max-width: 767.98px){
  .pw-showcase-track{
    gap: 12px;
    align-items: stretch;
  }

  .pw-showcase-slide{
    display: flex;
    align-items: stretch;
    flex: 0 0 92%;
    max-width: 92%;
    width: 92%;
  }

  .pw-showcase-card{
    --pw-showcase-mobile-card-height: clamp(316px, 82vw, 364px);
    width: 100%;
    height: var(--pw-showcase-mobile-card-height);
    min-height: var(--pw-showcase-mobile-card-height);
    grid-template-rows: auto 1fr;
    gap: 10px;
    padding: 15px;
    border-radius: 24px;
  }

  .pw-showcase-card__head,
  .pw-showcase-card__head--chart{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .pw-showcase-slide--summary .pw-showcase-card__head{
    padding-right: 40px;
  }

  .pw-showcase-card__title{
    font-size: 1.25rem;
    line-height: 1.08;
  }

  .pw-showcase-card__eyebrow{
    margin-top: 8px;
    font-size: .88rem;
    line-height: 1.45;
  }

  .pw-showcase-badge{
    align-self: flex-start;
    padding: 7px 11px;
  }

  .pw-showcase-metrics,
  .pw-showcase-forecast-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    height: 100%;
    gap: 10px;
    align-content: stretch;
  }

  .pw-showcase-tile,
  .pw-showcase-tile--compact,
  .pw-showcase-tile--wide{
    min-height: 0;
    height: 100%;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 20px;
  }

  .pw-showcase-tile__label{
    font-size: .82rem;
    line-height: 1.26;
  }

  .pw-showcase-tile__value{
    font-size: clamp(1rem, 4.6vw, 1.38rem);
    line-height: 1.02;
  }

  .pw-showcase-chart-totals{
    gap: 10px;
  }

  .pw-showcase-total{
    width: 100%;
    justify-content: space-between;
  }

  .pw-showcase-plot{
    align-self: stretch;
    gap: 6px;
    min-height: 0;
    height: 100%;
    margin-top: 0;
    padding: 16px 10px 12px;
    border-radius: 28px;
  }

  .pw-showcase-plot__grid{
    inset: 16px 10px 34px;
    background:
      linear-gradient(to bottom, rgba(255,255,255,.22) 0 1px, transparent 1px 100%) 0 33.333% / 100% 33.333%,
      linear-gradient(to right, rgba(255,255,255,.10) 0 1px, transparent 1px 100%) 0 0 / calc(100% / 14) 100%;
  }

  .pw-showcase-plot__day{
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
  }

  .pw-showcase-plot__well{
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 14px 2px 0;
    gap: 2px;
    border-radius: 24px;
  }

  .pw-showcase-plot__bar{
    width: calc(50% - 1px);
    max-width: none;
    min-width: 2px;
    min-height: 14px;
  }

  .pw-showcase-plot__label{
    font-size: .82rem;
  }

}

@media (max-width: 575.98px){
  .pw-showcase-slide{
    flex-basis: 86%;
    max-width: 86%;
    width: 86%;
  }
}

@media (max-width: 420px){
  .pw-showcase-card{
    --pw-showcase-mobile-card-height: clamp(300px, 84vw, 334px);
    padding: 13px;
  }

  .pw-showcase-plot{
    gap: 5px;
    padding: 14px 8px 10px;
    border-radius: 24px;
  }

  .pw-showcase-plot__grid{
    inset: 14px 8px 30px;
  }

  .pw-showcase-plot__well{
    padding: 12px 2px 0;
    gap: 1px;
    border-radius: 20px;
  }

  .pw-showcase-plot__bar{
    width: calc(50% - .5px);
    min-width: 2px;
  }

  .pw-showcase-card__kicker{
    font-size: .8rem;
  }

  .pw-showcase-card__title{
    font-size: 1.06rem;
  }

  .pw-showcase-slide--summary .pw-showcase-card__head{
    padding-right: 32px;
  }

  .pw-showcase-card__eyebrow{
    font-size: .8rem;
  }

  .pw-showcase-metrics,
  .pw-showcase-forecast-grid{
    gap: 8px;
  }

  .pw-showcase-tile,
  .pw-showcase-tile--compact,
  .pw-showcase-tile--wide{
    min-height: 78px;
    padding: 10px 11px;
    border-radius: 18px;
  }

  .pw-showcase-tile__label{
    font-size: .74rem;
    line-height: 1.22;
  }

  .pw-showcase-tile__value{
    font-size: clamp(.9rem, 4.2vw, 1.12rem);
    line-height: 1;
  }

  .pw-showcase-badge{
    font-size: .68rem;
    letter-spacing: .06em;
  }
}

@media (prefers-reduced-motion: reduce){
  .pw-showcase-track,
  .pw-showcase-slide,
  .pw-showcase-plot__bar{
    transition: none !important;
  }
}



.pw-header .pw-auth-btn--cabinet,
.pw-header .pw-auth-btn--cabinet:visited,
.pw-header .pw-auth-btn--cabinet:hover,
.pw-header .pw-auth-btn--cabinet:focus{
  color: #ffffff !important;
}

/* === Soft rectangular volumetric button override === */
:root{
  --pw-btn-radius: 12px;
  --pw-btn-depth-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 0 rgba(15,23,42,.14), 0 8px 16px rgba(15,23,42,.10);
  --pw-btn-depth-shadow-hover: inset 0 1px 0 rgba(255,255,255,.26), 0 4px 0 rgba(15,23,42,.16), 0 12px 22px rgba(15,23,42,.12);
  --pw-btn-depth-shadow-active: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 0 rgba(15,23,42,.14), 0 5px 10px rgba(15,23,42,.08);
}

.pw-body .btn,
.pw-body .pw-btn,
.pw-header .pw-auth-btn,
.pw-dashboard-float-widget__button,
.pw-body .pw-tg-auth-btn,
.pw-body .pw-download-logo-btn,
.pw-telegram-action-btn,
.pw-telegram-login-btn,
.pw-telegram-switch-btn,
.pw-btn-report{
  border-radius: var(--pw-btn-radius) !important;
  box-shadow: var(--pw-btn-depth-shadow) !important;
  transform: translateY(0);
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease,
    background-color .15s ease,
    border-color .15s ease !important;
}

.pw-body .btn:hover,
.pw-body .pw-btn:hover,
.pw-header .pw-auth-btn:hover,
.pw-dashboard-float-widget__button:hover,
.pw-body .pw-tg-auth-btn:hover,
.pw-body .pw-download-logo-btn:hover,
.pw-telegram-action-btn:hover,
.pw-telegram-login-btn:hover,
.pw-telegram-switch-btn:hover,
.pw-btn-report:hover,
.pw-body .btn:focus-visible,
.pw-body .pw-btn:focus-visible,
.pw-header .pw-auth-btn:focus-visible,
.pw-dashboard-float-widget__button:focus-visible,
.pw-body .pw-tg-auth-btn:focus-visible,
.pw-body .pw-download-logo-btn:focus-visible,
.pw-telegram-action-btn:focus-visible,
.pw-telegram-login-btn:focus-visible,
.pw-telegram-switch-btn:focus-visible,
.pw-btn-report:focus-visible{
  transform: translateY(-1px);
  box-shadow: var(--pw-btn-depth-shadow-hover) !important;
}

.pw-body .btn:active,
.pw-body .pw-btn:active,
.pw-header .pw-auth-btn:active,
.pw-dashboard-float-widget__button:active,
.pw-body .pw-tg-auth-btn:active,
.pw-body .pw-download-logo-btn:active,
.pw-telegram-action-btn:active,
.pw-telegram-login-btn:active,
.pw-telegram-switch-btn:active,
.pw-btn-report:active{
  transform: translateY(1px) !important;
  box-shadow: var(--pw-btn-depth-shadow-active) !important;
}

.pw-body .btn:disabled,
.pw-body .btn.disabled,
.pw-body .pw-btn:disabled,
.pw-body .pw-btn.disabled,
.pw-header .pw-auth-btn[aria-disabled="true"],
.pw-dashboard-float-widget__button:disabled,
.pw-body .pw-tg-auth-btn:disabled,
.pw-telegram-action-btn:disabled,
.pw-telegram-action-btn.is-disabled,
.pw-telegram-action-btn[aria-disabled="true"],
.pw-telegram-login-btn:disabled,
.pw-telegram-login-btn.is-disabled,
.pw-telegram-switch-btn:disabled,
.pw-telegram-switch-btn.is-disabled{
  transform: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 6px rgba(15,23,42,.08) !important;
}


/* wallet page */
.pw-wallet-hero{
  overflow: hidden;
}
.pw-wallet-subtitle{
  max-width: 720px;
  color: rgba(17, 24, 39, 0.72);
}
.pw-summary-card--wallet-main{
  background: linear-gradient(135deg, rgba(17,24,39,0.98), rgba(31,41,55,0.94));
  color: #fff;
}
.pw-summary-card--wallet-main .pw-summary-card__label,
.pw-summary-card--wallet-main .pw-summary-card__hint,
.pw-summary-card--wallet-main .pw-summary-card__value{
  color: inherit;
}
.pw-wallet-formula{
  border: 1px dashed rgba(17,24,39,0.18);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.72);
}
.pw-wallet-formula__label{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17,24,39,0.56);
  margin-bottom: 6px;
}
.pw-wallet-formula__value{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.pw-wallet-payout-note{
  margin-bottom: 1rem;
}
.pw-wallet-empty{
  padding: 28px 16px;
  border: 1px dashed rgba(17,24,39,0.16);
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
}
.pw-wallet-empty__icon{
  font-size: 34px;
  margin-bottom: 10px;
}
.pw-wallet-empty__title{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 6px;
}
.pw-wallet-table thead th{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17,24,39,0.56);
  border-bottom-width: 1px;
}
.pw-wallet-table tbody td{
  vertical-align: top;
}
@media (max-width: 767.98px){
  .pw-wallet-formula__value{
    font-size: 16px;
  }
}

/* Wallet payouts form */
.pw-wallet-request-form .form-control,
.pw-wallet-request-form .form-select{
  min-height: 48px;
  border-radius: 14px;
}

.pw-wallet-active-request{
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15, 84, 76, 0.08);
  border: 1px solid rgba(15, 84, 76, 0.14);
}

.pw-wallet-active-request__label{
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(6, 32, 43, .64);
}

.pw-wallet-active-request__amount{
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(6, 32, 43, .92);
}

.pw-wallet-steps{
  display: grid;
  gap: 12px;
}

.pw-wallet-step{
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}

.pw-wallet-step__num{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, rgba(15,84,76,0.96), rgba(31,107,98,0.96));
}

.pw-wallet-last-request{
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}

.pw-wallet-last-request__label{
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(6, 32, 43, .64);
}

.pw-wallet-last-request__amount{
  margin-top: 6px;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 900;
  color: rgba(6, 32, 43, .94);
}


/* Admin payout panel */
.admin-payout-grid code {
  white-space: pre-wrap;
  word-break: break-all;
}

.admin-payout-grid__code {
  display: inline-block;
  max-width: 100%;
}

.admin-payout-grid__code--wrap {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.pw-copy-btn {
  white-space: nowrap;
}



/* Cabinet / wallet alerts: readable white-beige backing */
.pw-main--dashboard > .alert,
.pw-dashboard-shell .alert,
.pw-product-shell .alert{
  background: linear-gradient(180deg, rgba(255,251,244,0.98), rgba(246,239,228,0.96)) !important;
  border: 1px solid rgba(191,177,151,0.45) !important;
  color: #3f382f !important;
  box-shadow: 0 8px 20px rgba(15,23,42,0.08);
}

.pw-main--dashboard > .alert-warning,
.pw-dashboard-shell .alert-warning,
.pw-product-shell .alert-warning{
  border-left: 4px solid rgba(245,158,11,0.78) !important;
}

.pw-main--dashboard > .alert-success,
.pw-dashboard-shell .alert-success,
.pw-product-shell .alert-success{
  border-left: 4px solid rgba(34,197,94,0.72) !important;
}

.pw-main--dashboard > .alert-danger,
.pw-dashboard-shell .alert-danger,
.pw-product-shell .alert-danger{
  border-left: 4px solid rgba(239,68,68,0.72) !important;
}

.pw-main--dashboard > .alert-info,
.pw-main--dashboard > .alert-secondary,
.pw-main--dashboard > .alert-light,
.pw-dashboard-shell .alert-info,
.pw-dashboard-shell .alert-secondary,
.pw-dashboard-shell .alert-light,
.pw-product-shell .alert-info,
.pw-product-shell .alert-secondary,
.pw-product-shell .alert-light{
  border-left: 4px solid rgba(100,116,139,0.62) !important;
}

/* Share-safe hardening helpers */
.pw-inline-center{
  text-align: center;
}

/* Telegram modal notifications: light white-beige backing for readability */
.pw-telegram-modal-card .alert,
.pw-telegram-widget-loader__inner{
  background: linear-gradient(180deg, rgba(255,251,244,0.98), rgba(246,239,228,0.96)) !important;
  border: 1px solid rgba(191,177,151,0.45) !important;
  box-shadow: 0 8px 20px rgba(15,23,42,0.08);
}

.pw-telegram-modal-card .alert{
  color: #3f382f !important;
}

.pw-telegram-modal-card .alert-warning{
  border-left: 4px solid rgba(245,158,11,0.78) !important;
}

.pw-telegram-modal-card .alert-success{
  border-left: 4px solid rgba(34,197,94,0.72) !important;
}

.pw-telegram-modal-card .alert-danger{
  border-left: 4px solid rgba(239,68,68,0.72) !important;
}

.pw-telegram-modal-card .alert-secondary{
  border-left: 4px solid rgba(100,116,139,0.62) !important;
}

.pw-telegram-widget-loader__inner{
  padding: 10px 14px;
  border-radius: 16px;
}

.pw-telegram-widget-loader__text,
.pw-telegram-widget-loader__timer{
  color: #5b5245;
}


.pw-support-contact{
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}

.pw-support-contact--align-end{
  align-items: flex-end;
}

.pw-support-contact__note{
  font-size: 14px;
  line-height: 1.45;
  color: rgba(47, 38, 29, 0.82);
  max-width: 360px;
}

.pw-support-contact__note a{
  color: var(--link-on-paper);
  font-weight: 700;
  text-decoration: none;
}

.pw-support-contact__note a:hover,
.pw-support-contact__note a:focus,
.pw-support-contact__note a:focus-visible{
  text-decoration: underline;
}

.pw-support-btn{
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  border-radius: 20px;
  border: 1px solid rgba(6,32,43,0.14);
  background: linear-gradient(180deg, rgba(244,249,247,0.98) 0%, rgba(228,236,232,0.96) 100%);
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    0 10px 24px rgba(6,32,43,0.10),
    inset 0 1px 0 rgba(255,255,255,0.72);
  max-width: 100%;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.pw-support-btn:hover,
.pw-support-btn:focus,
.pw-support-btn:focus-visible,
.pw-support-btn:visited{
  color: var(--ink);
  text-decoration: none;
}

.pw-support-btn:hover,
.pw-support-btn:focus,
.pw-support-btn:focus-visible{
  transform: translateY(-1px);
  border-color: rgba(31,107,98,0.22);
  background: linear-gradient(180deg, rgba(247,251,249,0.99) 0%, rgba(231,239,235,0.97) 100%);
  box-shadow:
    0 14px 28px rgba(6,32,43,0.12),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.pw-support-btn__icon-wrap{
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: 1px solid rgba(29,111,95,0.12);
  background: rgba(29,111,95,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.58);
}

.pw-support-btn__icon{
  width: 22px;
  height: 22px;
  display: block;
}

.pw-support-btn__text{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pw-support-btn__title{
  font-size: 16px;
  font-weight: 900;
  line-height: 1.12;
  color: var(--ink);
}

.pw-support-btn__handle{
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--link-on-paper);
  word-break: break-word;
}

@media (max-width: 575.98px){
  .pw-support-contact--align-end{
    align-items: stretch;
  }

  .pw-support-contact__note{
    max-width: 100%;
  }

  .pw-support-btn{
    width: 100%;
    justify-content: flex-start;
  }
}

/* Admin top messages and intro on dark background */
.pw-main > .alert{
  background-color: rgba(255, 251, 244, 0.98) !important;
  background-image: none !important;
  color: #2f261d !important;
  border: 1px solid rgba(191, 177, 151, 0.52) !important;
  box-shadow: 0 8px 20px rgba(15,23,42,0.10);
}

.pw-main > .alert *{
  color: inherit !important;
}

.pw-main > .alert-warning{
  border-left: 4px solid rgba(245,158,11,0.78) !important;
}

.pw-main > .alert-success{
  border-left: 4px solid rgba(34,197,94,0.72) !important;
}

.pw-main > .alert-danger{
  border-left: 4px solid rgba(239,68,68,0.72) !important;
}

.pw-main > .alert-info,
.pw-main > .alert-secondary,
.pw-main > .alert-light{
  border-left: 4px solid rgba(100,116,139,0.62) !important;
}

.admin-page-subtitle{
  color: rgba(233, 241, 238, 0.88) !important;
}

