/* =====================================================================
   MivoPay - Professional button system (v5.5+)
   Flat, solid, accessible. Loaded after premium.css so it replaces the
   old 3D / shimmer buttons everywhere (dashboard, auth, admin, public).
   ===================================================================== */
:root{
  --pb-radius:10px;
  --pb-ink:#0F1B2D;
  --pb-line:#D3DCEA;
  --pb-line-hover:#AEBDD3;
  --pb-bg-hover:#F5F8FD;
  --pb-bg-active:#EBF1FA;
  --pb-blue:#0A5CF0;
  --pb-blue-hover:#074BC8;
  --pb-blue-active:#053B9E;
  --pb-yellow:#FACC15;
  --pb-yellow-hover:#EAB308;
  --pb-yellow-active:#CA9A04;
  --pb-yellow-ink:#3B2A02;
  --pb-ring:0 0 0 3px rgba(10,92,240,.28);
}

html body .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:9px 16px;min-height:38px;
  font-family:var(--font);font-size:14px;font-weight:600;letter-spacing:0;line-height:1.2;
  color:var(--pb-ink);background:#fff;
  border:1px solid var(--pb-line);border-radius:var(--pb-radius);
  box-shadow:0 1px 2px rgba(15,27,45,.06);
  text-shadow:none;transform:none;filter:none;overflow:visible;isolation:auto;
  transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease;
}
html body .btn:hover{background:var(--pb-bg-hover);border-color:var(--pb-line-hover);color:var(--pb-ink);transform:none;box-shadow:0 1px 3px rgba(15,27,45,.10)}
html body .btn:active{background:var(--pb-bg-active);transform:none;box-shadow:none}
html body .btn:focus-visible{outline:none;box-shadow:var(--pb-ring);border-color:var(--pb-blue)}
html body .btn:after,html body .btn:before{content:none!important;display:none!important}

/* sizes */
html body .btn-sm{padding:6px 12px;min-height:32px;font-size:13px;border-radius:8px}
html body .btn-lg{padding:12px 24px;min-height:48px;font-size:15.5px;border-radius:12px}
html body .btn-block{width:100%}

/* primary */
html body .btn-primary{background:var(--pb-blue);border-color:var(--pb-blue);color:#fff;box-shadow:0 1px 2px rgba(7,75,200,.35)}
html body .btn-primary:hover{background:var(--pb-blue-hover);border-color:var(--pb-blue-hover);color:#fff;box-shadow:0 2px 6px rgba(7,75,200,.30)}
html body .btn-primary:active{background:var(--pb-blue-active);border-color:var(--pb-blue-active);box-shadow:none}
html body .btn-primary:focus-visible{box-shadow:var(--pb-ring);border-color:var(--pb-blue-hover)}

/* secondary accent (was cyan) */
html body .btn-cyan{background:#0E7490;border-color:#0E7490;color:#fff;box-shadow:0 1px 2px rgba(14,116,144,.35)}
html body .btn-cyan:hover{background:#0B5F76;border-color:#0B5F76;color:#fff}

/* soft */
html body .btn-soft{background:#EEF4FF;border-color:#D6E4FF;color:var(--pb-blue);box-shadow:none}
html body .btn-soft:hover{background:#E1ECFF;border-color:#BFD3FF;color:var(--pb-blue-hover)}

/* danger */
html body .btn-danger{background:#fff;border-color:#F4C7C7;color:#C62828;box-shadow:none}
html body .btn-danger:hover{background:#FDECEC;border-color:#E99A9A;color:#B71C1C}

/* yellow: "Integrate Now" and other attention actions */
html body .btn-yellow,html body .btn-integrate{
  background:var(--pb-yellow);border-color:var(--pb-yellow-hover);color:var(--pb-yellow-ink);
  font-weight:700;box-shadow:0 1px 2px rgba(161,118,0,.30);
}
html body .btn-yellow:hover,html body .btn-integrate:hover{background:var(--pb-yellow-hover);border-color:var(--pb-yellow-active);color:var(--pb-yellow-ink);box-shadow:0 2px 6px rgba(161,118,0,.30)}
html body .btn-yellow:active,html body .btn-integrate:active{background:var(--pb-yellow-active);box-shadow:none}
html body .btn-yellow:focus-visible,html body .btn-integrate:focus-visible{box-shadow:0 0 0 3px rgba(250,204,21,.45);border-color:var(--pb-yellow-active)}

/* disabled */
html body .btn:disabled,html body .btn[disabled],html body .btn.is-disabled{
  opacity:.55;cursor:not-allowed;background:#F1F5F9;border-color:var(--pb-line);color:#64748B;box-shadow:none;
}
html body .btn-primary:disabled,html body .btn-primary[disabled]{background:var(--pb-blue);border-color:var(--pb-blue);color:#fff}

/* icon-only buttons follow the same language */
html body .icon-btn{border-radius:var(--pb-radius);border:1px solid var(--pb-line);background:#fff;box-shadow:0 1px 2px rgba(15,27,45,.05);transition:background-color .15s,border-color .15s,color .15s}
html body .icon-btn:hover{background:var(--pb-bg-hover);border-color:var(--pb-line-hover);color:var(--pb-blue)}
html body .icon-btn:focus-visible{outline:none;box-shadow:var(--pb-ring)}

/* chips that act as buttons (dashboard status row) */
html body button.chip{cursor:pointer;font-family:var(--font)}
html body button.chip:hover{background:var(--pb-bg-hover)}
/* "Not configured" state of the dashboard status chip: same shape as the connected chip, only yellow */
html body .chip.need{background:#FFF6D6;border:1px solid #F3D675;color:#8A5A00;box-shadow:none}
html body .chip.need:hover{background:#FFEFB8;color:#8A5A00}
html body .chip.need i{background:#D99A00}

/* Setup / integration pending banner (dashboard) */
.int-banner{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  margin-bottom:20px;padding:16px 20px;border-radius:14px;
  background:#FFFBEB;border:1px solid #FCE58A;
}
.int-banner .ib-l{display:flex;align-items:flex-start;gap:14px;flex:1;min-width:220px}
.int-banner .ib-ic{flex:none;width:40px;height:40px;border-radius:10px;background:var(--pb-yellow);color:var(--pb-yellow-ink);display:grid;place-items:center}
.int-banner .ib-ic svg{width:20px;height:20px}
.int-banner b{display:block;font-size:.95rem;color:#5B3A00}
.int-banner p{margin:2px 0 0;font-size:.86rem;line-height:1.5;color:#7A5200}

/* Integration page: tiles that are not integrated yet */
html body .ig-tile:not(.done) small{color:#8A6100;font-weight:700}
html body .ig-tile:not(.done) small.int-now{
  display:inline-block;margin-top:3px;padding:2px 8px;border-radius:6px;
  background:var(--pb-yellow);color:var(--pb-yellow-ink);font-weight:700;font-size:11.5px;
}


/* Locked state while no payment method is connected */
html body .btn.is-disabled,html body .btn:disabled,html body .btn[disabled]{opacity:.5;cursor:not-allowed;pointer-events:none;box-shadow:none}
html body .is-locked .input{background:#F4F6FA;pointer-events:none;color:#94A3B8}
html body .is-locked .chip{pointer-events:none;opacity:.55}
html body .lock-note{margin:12px 0 0;font-size:.84rem;color:#8A5A00;text-align:center}
html body .lock-note a{color:#8A5A00;font-weight:700;text-decoration:underline}

/* ---- Green "NEW" tag (Soundbox) ---- */
.nav-new,.new-tag{display:inline-flex;align-items:center;gap:4px;margin-left:auto;font-size:.62rem;font-weight:800;letter-spacing:.08em;line-height:1;text-transform:uppercase;padding:4px 8px 4px 7px;border-radius:99px;color:#fff;background:linear-gradient(135deg,#22C55E 0%,#16A34A 55%,#15803D 100%);border:1px solid #86EFAC;box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 4px 10px -3px rgba(22,163,74,.55);text-shadow:0 1px 1px rgba(0,60,20,.35);position:relative;overflow:hidden;white-space:nowrap;flex:none}
.nav-new:before,.new-tag:before{content:"";width:5px;height:5px;border-radius:50%;background:#DCFCE7;box-shadow:0 0 0 0 rgba(220,252,231,.8);animation:newDot 1.8s ease-out infinite}
.nav-new:after,.new-tag:after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);animation:newShine 3.2s ease-in-out infinite}
.new-tag{margin-left:10px;vertical-align:middle;font-size:.68rem;padding:5px 10px 5px 8px;position:relative;top:-3px}
@keyframes newDot{0%{box-shadow:0 0 0 0 rgba(220,252,231,.85)}70%{box-shadow:0 0 0 6px rgba(220,252,231,0)}100%{box-shadow:0 0 0 0 rgba(220,252,231,0)}}
@keyframes newShine{0%,55%{left:-60%}100%{left:130%}}
@media(prefers-reduced-motion:reduce){.nav-new:before,.nav-new:after,.new-tag:before,.new-tag:after{animation:none}}
