
/* ============================================================
   SQUASHBERRYPAY — MONOCHROME UI SYSTEM
   Black / white / neutral only. No brand color leakage.
============================================================ */

:root{
  --ui-black:#050505;
  --ui-ink:#111111;
  --ui-text:#181818;
  --ui-muted:#707070;
  --ui-subtle:#969696;
  --ui-page:#f5f5f3;
  --ui-paper:#ffffff;
  --ui-soft:#f0f0ed;
  --ui-line:#deded9;
  --ui-line-strong:#c8c8c2;
  --ui-dark:#0b0b0b;
  --ui-radius:22px;
  --ui-radius-sm:14px;
  --ui-shadow:0 18px 55px rgba(0,0,0,.07);
  --ui-shadow-lg:0 30px 90px rgba(0,0,0,.12);
}

html{background:var(--ui-page)}
body{
  color:var(--ui-ink);
  background:
    radial-gradient(circle at 50% -15%,rgba(0,0,0,.055),transparent 34%),
    linear-gradient(180deg,#fafafa 0%,#f4f4f1 62%,#ededeb 100%);
}
body::before{
  background:
    linear-gradient(rgba(0,0,0,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,0,0,.018) 1px,transparent 1px);
  background-size:32px 32px;
  mask-image:linear-gradient(to bottom,#000,transparent 68%);
}

/* ---------- GLOBAL ---------- */

.site-header,
.merchant-header{
  width:min(1320px,calc(100% - 32px));
  min-height:72px;
  border-bottom:1px solid rgba(0,0,0,.09);
  background:#fff;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:0 8px 28px rgba(0,0,0,.035);
}
.brand{color:#111}
.brand-mark{
  width:38px;height:38px;border-radius:12px;
  background:#050505!important;color:#fff;
  box-shadow:0 9px 24px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.16);
}
.desktop-nav{color:#686868}
.desktop-nav a:hover,.nav-login:hover{color:#111}
.desktop-nav a::after{background:#111}

.button{
  min-height:52px;
  border-radius:15px;
  font-weight:800;
  box-shadow:none;
}
.button.primary{
  background:#0a0a0a!important;
  color:#fff!important;
  box-shadow:0 12px 26px rgba(0,0,0,.15),inset 0 1px 0 rgba(255,255,255,.12);
}
.button.primary:hover{background:#242424!important;box-shadow:0 17px 34px rgba(0,0,0,.19)}
.button.secondary{
  background:#fff!important;
  color:#111!important;
  border-color:#d1d1cc!important;
}
.button.secondary:hover{background:#f1f1ee!important;border-color:#aaa!important}
.button.danger{
  color:#111!important;
  border-color:#bdbdb8!important;
  background:#fff!important;
}
.button.danger:hover{background:#ededeb!important}
.eyebrow{color:#666!important;letter-spacing:.18em}
.text-button,.auth-link,.password-toggle,.forgot-row button{color:#111!important}

/* ---------- HOME ---------- */

.home-page{width:min(1260px,calc(100% - 38px))}
.home-page::before,.hero-visual::before{display:none}
.hero{
  min-height:650px;
  gap:68px;
}
.hero-copy h1{
  font-size:clamp(50px,6.8vw,88px);
  line-height:.91;
  letter-spacing:-.075em;
}
.hero-copy h1 span{
  color:#777!important;
  background:none!important;
}
.hero-copy p{color:#5d5d5a;max-width:610px}
.trust-row span{
  border:1px solid #ddd;
  background:#fff;
  color:#666;
  box-shadow:0 5px 18px rgba(0,0,0,.035);
}
.payment-preview{
  border:1px solid #292929;
  background:
    radial-gradient(circle at 85% 5%,rgba(255,255,255,.10),transparent 27%),
    linear-gradient(145deg,#181818,#050505);
  box-shadow:0 38px 100px rgba(0,0,0,.23);
  transform:rotate(1deg);
}
.payment-preview:hover{transform:translateY(-5px) rotate(0)}
.preview-business small{color:#aaa}
.preview-method{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.11)}
.preview-method i{
  background:#fff!important;color:#111!important;
  box-shadow:none!important;
}
.content-section{border-top-color:#ddd;padding:110px 0}
.section-intro h2,.split-section h2,.business-banner h2{letter-spacing:-.065em}
.feature-card{
  min-height:275px;
  border:1px solid #deded9;
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#f8f8f6);
  box-shadow:0 12px 32px rgba(0,0,0,.045);
}
.feature-card::before{background:#111}
.feature-card > span{color:#999}
.feature-card:hover{border-color:#bbb;box-shadow:0 24px 50px rgba(0,0,0,.09)}
.numbered-flow article > b{
  background:#111!important;color:#fff!important;border-color:#111!important;
}
.business-banner{
  border:1px solid #222;
  background:linear-gradient(145deg,#0a0a0a,#1b1b1b);
  box-shadow:0 30px 80px rgba(0,0,0,.17);
}
.business-banner::after{border-color:rgba(255,255,255,.1)}
.business-banner .eyebrow{color:#aaa!important}
.business-banner p{color:#c5c5c5}
.business-banner .button.primary{background:#fff!important;color:#111!important}
.business-banner .button.secondary{background:#171717!important;color:#fff!important;border-color:#3b3b3b!important}
.faq-list summary::after{color:#555;background:#fff}
.faq-list details[open] summary::after{background:#111;color:#fff;border-color:#111}
.site-footer{border-top-color:#ddd;color:#888}

/* ---------- AUTH / MULTI-STEP ---------- */

.auth-page,.signup-page{width:min(1100px,calc(100% - 28px))}
.auth-page::before,.signup-page::before{display:none}
.auth-intro h1{letter-spacing:-.075em}
.auth-intro p{color:#5e5e5a}
.auth-card,.signup-card{
  background:rgba(255,255,255,.92);
  border:1px solid #d9d9d4;
  border-radius:26px;
  box-shadow:var(--ui-shadow-lg);
}
.auth-card::before,.signup-card::before{background:#111}
.auth-step,.signup-step{animation:uiStepIn .38s cubic-bezier(.2,.8,.2,1) both}
@keyframes uiStepIn{
  from{opacity:0;transform:translateX(18px) translateY(4px)}
  to{opacity:1;transform:none}
}
.input-shell input,.auth-card input,.auth-card textarea,.auth-card select,
.signup-card input,.signup-card textarea,.signup-card select{
  border:1px solid #d4d4cf!important;
  background:#fafaf8!important;
  color:#111!important;
  border-radius:14px!important;
}
.input-shell input:focus,.auth-card input:focus,.auth-card textarea:focus,
.auth-card select:focus,.signup-card input:focus,.signup-card textarea:focus,.signup-card select:focus{
  border-color:#111!important;
  box-shadow:0 0 0 4px rgba(0,0,0,.055)!important;
  background:#fff!important;
}
.progress-line-fill{background:#111!important}
.progress-step.active > span{background:#111!important;border-color:#111!important;box-shadow:0 8px 20px rgba(0,0,0,.16)!important}
.progress-step.complete > span{background:#eee!important;border-color:#bbb!important;color:#111!important}
.auth-success-icon,.otp-success-animation .otp-check{background:#111!important;box-shadow:0 12px 30px rgba(0,0,0,.16)!important}
.otp-digit{border-color:#d2d2cd!important;background:#fafaf8!important}
.otp-digit:focus{border-color:#111!important;box-shadow:0 0 0 4px rgba(0,0,0,.05)!important}

/* Strong information-entry rhythm */
.form-field,.auth-card label,.signup-card label{position:relative}
.form-field input,.form-field select,.form-field textarea{transition:transform .18s,box-shadow .18s,border-color .18s}
.form-field:focus-within label{color:#111}
.signup-progress{margin-bottom:34px}
.progress-step{transition:transform .2s ease}
.progress-step.active{transform:translateY(-2px)}

/* ---------- MERCHANT ---------- */

.merchant-shell{width:min(1320px,calc(100% - 32px));grid-template-columns:235px minmax(0,1fr)}
.merchant-header{width:min(1320px,calc(100% - 32px))}
.merchant-sidebar{top:72px}
.side-link{color:#70706b}
.side-link:hover{color:#111;background:#f1f1ee;border-color:#ddd}
.side-link.active{
  color:#fff!important;
  background:#111!important;
  border-color:#111!important;
  box-shadow:0 12px 25px rgba(0,0,0,.12)!important;
}
.side-link.active::before{background:#111!important}
.merchant-main{padding-left:42px}
.dashboard-cards > div,.quick-grid button,.merchant-form,.app-card,.product-card,.method-card,.profile-card{
  border-color:#ddd!important;
  background:linear-gradient(180deg,#fff,#fafaf8)!important;
  box-shadow:0 12px 32px rgba(0,0,0,.045)!important;
}
.dashboard-cards > div::after{background:radial-gradient(circle,rgba(0,0,0,.07),transparent 65%)}
.quick-grid button:hover,.app-card:hover,.product-card:hover,.method-card:hover,.profile-card:hover{
  border-color:#bdbdb8!important;
  box-shadow:0 20px 42px rgba(0,0,0,.09)!important;
}
.merchant-form input,.merchant-form select,.merchant-form textarea{
  border-color:#d2d2cd!important;
  background:#fafaf8!important;
}
.merchant-form input:focus,.merchant-form select:focus,.merchant-form textarea:focus{
  border-color:#111!important;
  box-shadow:0 0 0 4px rgba(0,0,0,.05)!important;
}
.app-meta span{background:#eee!important;border-color:#ddd!important;color:#555!important}
.app-status.pending,.app-status.active{background:#eee!important;color:#333!important}
.code-guide{background:#0a0a0a;border-color:#222}
.guide-header{background:#111}
.merchant-notification{background:#111!important}
.donation-settings{border-color:#d7d7d2!important;background:#f3f3f0!important}

/* ---------- ADMIN ---------- */

.admin-login,.admin-panel{
  border-color:#ddd!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 18px 50px rgba(0,0,0,.055)!important;
}
.admin-nav button.active{background:#111!important;color:#fff!important;border-color:#111!important}
.admin-nav button:hover{color:#111;background:#eee}
.admin-input,.admin-login input,.admin-page input,.admin-page select,.admin-page textarea{
  border-color:#d2d2cd!important;
  background:#fafaf8!important;
}
.admin-input:focus,.admin-page input:focus,.admin-page select:focus,.admin-page textarea:focus{
  border-color:#111!important;
  box-shadow:0 0 0 4px rgba(0,0,0,.05)!important;
}
.table-wrap{border-color:#ddd!important}
table th{background:#f0f0ed!important;color:#555!important}
.application-card,.admin-card{border-color:#ddd!important;background:#fff!important}

/* ---------- CHECKOUT ---------- */

.checkout-method,.method-card,.details-card,.attempt-box,.waiting-box,.approved-message{
  border-color:#ddd!important;
  background:#fff!important;
}
.checkout-method:hover{border-color:#111!important;box-shadow:0 15px 35px rgba(0,0,0,.07)!important}
.method-icon{background:#111!important;color:#fff!important}
.progress-bar{background:#111!important}
.preset-button:hover,.preset-button[data-active="true"]{border-color:#111;background:#111;color:#fff}
.campaign-ended{background:#eee;color:#444}

/* ---------- RESPONSIVE ---------- */

@media (max-width:1050px){
  .hero{grid-template-columns:1fr;min-height:auto;padding:75px 0 100px}
  .hero-copy{max-width:780px}
  .hero-visual{margin-top:10px}
  .payment-preview{margin:auto}
  .auth-page{grid-template-columns:1fr;gap:30px}
  .auth-intro{padding-top:0}
}
@media (max-width:850px){
  .merchant-shell{grid-template-columns:1fr}
  .merchant-sidebar{
    position:relative;top:auto;height:auto;
    flex-direction:row;overflow-x:auto;
    padding:12px 0;border-bottom:1px solid #ddd;
  }
  .merchant-sidebar::after{display:none}
  .side-link{white-space:nowrap;flex:0 0 auto}
  .side-link.active::before{
    left:8px;right:8px;top:auto;bottom:3px;width:auto;height:2px;
  }
  .merchant-main{padding:30px 0 80px}
}
@media (max-width:620px){
  .site-header,.merchant-header{width:calc(100% - 18px);min-height:64px}
  .desktop-nav{display:none}
  .header-actions{gap:7px}
  .header-actions .button{min-height:40px;padding:0 13px}
  .home-page,.auth-page,.signup-page,.admin-page,.merchant-shell,.site-footer{width:calc(100% - 20px)}
  .hero{padding:58px 0 78px}
  .hero-copy h1{font-size:clamp(44px,13vw,65px)}
  .hero-copy p{font-size:15px}
  .hero-actions{display:grid;grid-template-columns:1fr}
  .hero-actions .button{width:100%}
  .payment-preview{padding:22px;border-radius:24px}
  .content-section{padding:78px 0}
  .feature-grid{grid-template-columns:1fr}
  .feature-card{min-height:220px}
  .feature-card h3{margin-top:52px}
  .business-banner{padding:28px 22px;border-radius:22px}
  .auth-card,.signup-card{padding:21px;border-radius:21px}
  .dashboard-cards,.quick-grid{grid-template-columns:1fr}
  .section-title-row{flex-direction:column}
  .app-card{grid-template-columns:1fr}
  .form-actions{display:grid;grid-template-columns:1fr}
  .form-actions .button{width:100%}
}

/* Safe reduced motion */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
}


/* ---------- AUTH PAGE STRUCTURE FIX ---------- */
/* Sign-in uses the shared auth-page shell; keep it aligned like signup. */
.auth-page{
  width:min(1100px,calc(100% - 28px));
  margin:0 auto;
  padding:72px 0 95px;
  display:grid;
  grid-template-columns:minmax(280px,.9fr) minmax(390px,1.1fr);
  gap:72px;
  align-items:start;
  min-height:calc(100vh - 150px);
}
.auth-page .auth-intro{
  padding-top:18px;
}
.auth-page .auth-card{
  width:100%;
  box-sizing:border-box;
  padding:30px;
  min-height:0;
}
.auth-page .auth-step{
  width:100%;
  box-sizing:border-box;
}
.auth-page .auth-step > h2{
  margin-top:14px;
}
.auth-page .auth-step form{
  display:grid;
  gap:18px;
}
.auth-page .forgot-row{
  margin-top:-7px;
}
.auth-page .auth-message{
  width:100%;
  box-sizing:border-box;
}
.auth-page + .site-footer,
.auth-page ~ .site-footer{
  margin-top:auto;
}

@media (max-width:1050px){
  .auth-page{
    grid-template-columns:1fr;
    gap:30px;
    padding:58px 0 80px;
    min-height:0;
  }
  .auth-page .auth-intro{
    padding-top:0;
    max-width:760px;
  }
  .auth-page .auth-card{
    max-width:620px;
  }
}

@media (max-width:620px){
  .auth-page{
    width:calc(100% - 20px);
    padding:42px 0 68px;
    gap:24px;
  }
  .auth-page .auth-card{
    max-width:none;
    padding:21px;
    border-radius:21px;
  }
  .auth-page .auth-intro h1{
    font-size:clamp(43px,12vw,58px);
  }
  .auth-page .auth-step form{
    gap:15px;
  }
}


/* ---------- AUTH CONTROL NORMALIZATION ---------- */
/* Covers simple sign-in/recovery fields that do not use signup's
   .form-field/.input-shell wrappers. */
.auth-card .auth-step > label{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:7px;
  margin:0;
  color:#555;
  font-size:12px;
  line-height:1.35;
  font-weight:750;
}
.auth-card .auth-step > label:focus-within{
  color:#111;
}
.auth-card .auth-step > label > input,
.auth-card .auth-step > label > textarea,
.auth-card .auth-step > label > select{
  display:block;
  width:100%;
  min-width:0;
  height:51px;
  box-sizing:border-box;
  padding:0 14px;
  border:1px solid #d4d4cf!important;
  border-radius:14px!important;
  background:#fafaf8!important;
  color:#111!important;
  outline:none;
  font:inherit;
  font-size:14px;
  line-height:1.2;
  box-shadow:none;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease,transform .18s ease;
}
.auth-card .auth-step > label > textarea{
  min-height:110px;
  height:auto;
  padding:12px 14px;
  resize:vertical;
}
.auth-card .auth-step > label > input::placeholder,
.auth-card .auth-step > label > textarea::placeholder{
  color:#aaa;
}
.auth-card .auth-step > label > input:focus,
.auth-card .auth-step > label > textarea:focus,
.auth-card .auth-step > label > select:focus{
  border-color:#111!important;
  background:#fff!important;
  box-shadow:0 0 0 4px rgba(0,0,0,.055)!important;
  transform:translateY(-1px);
}
.auth-card .auth-step > label > input:disabled,
.auth-card .auth-step > label > textarea:disabled,
.auth-card .auth-step > label > select:disabled{
  opacity:.58;
  cursor:not-allowed;
  background:#eee!important;
}
.auth-card .auth-step > .button.full{
  width:100%;
  margin-top:2px;
}
.auth-card .auth-step > h2 + form{
  margin-top:20px;
}


/* ---------- SIGN-IN TWO-STATE UI ---------- */

.auth-page .auth-card{
  overflow:hidden;
}

.auth-page .signin-state{
  animation:signinStateIn .28s cubic-bezier(.2,.8,.2,1);
}

.auth-page .signin-state h2{
  margin-bottom:8px;
}

.auth-page .auth-step-copy{
  margin:0 0 22px;
  color:#6b6b66;
  font-size:14px;
  line-height:1.6;
}

.auth-page .auth-step-copy strong{
  display:block;
  margin-top:5px;
  color:#111;
  font-weight:750;
  overflow-wrap:anywhere;
}

.auth-page .signin-state-form{
  display:grid;
  gap:18px;
}

.auth-page .signin-state-form label{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#4d4d48;
  font-size:12px;
  line-height:1.35;
  font-weight:750;
}

.auth-page .signin-state-form input{
  width:100%;
  height:54px;
  box-sizing:border-box;
  border:1px solid #cfcfca!important;
  border-radius:15px!important;
  padding:0 15px;
  background:#fafaf8!important;
  color:#111!important;
  font-size:15px;
  font-weight:500;
  outline:none;
  box-shadow:inset 0 0 0 1px transparent;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease,transform .18s ease;
}

.auth-page .signin-state-form input:hover{
  border-color:#aaa!important;
}

.auth-page .signin-state-form input:focus{
  border-color:#111!important;
  background:#fff!important;
  box-shadow:0 0 0 4px rgba(0,0,0,.06)!important;
  transform:translateY(-1px);
}

.auth-page .signin-state-form input.is-invalid{
  border-color:#111!important;
  box-shadow:0 0 0 4px rgba(0,0,0,.08)!important;
}

.auth-page .signin-forgot-email,
.auth-page .signin-forgot-password{
  display:block;
  margin:17px auto 0;
}

.auth-page #signinContinueButton,
.auth-page #signinButton{
  min-height:52px;
  border-radius:15px;
}

@keyframes signinStateIn{
  from{
    opacity:0;
    transform:translateX(10px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}

@media (max-width:620px){
  .auth-page .auth-card{
    padding:22px 18px;
  }

  .auth-page .signin-state-form{
    gap:15px;
  }

  .auth-page .signin-state-form input{
    height:53px;
    border-radius:14px!important;
  }

  .auth-page .auth-step-copy{
    margin-bottom:19px;
  }
}



/* ---------- AUTH INTERACTION STATES ---------- */

.auth-page .auth-step[hidden],
.auth-page .auth-success[hidden],
.auth-page #signinEmailStep[hidden],
.auth-page #signinPasswordStep[hidden]{
  display:none!important;
}

.auth-page .auth-link{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-height:38px;
  margin:16px auto 0;
  padding:7px 10px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#111!important;
  font:inherit;
  font-size:12px;
  line-height:1;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}

.auth-page .auth-link:hover{
  background:#f0f0ed;
  transform:translateY(-1px);
}

.auth-page .auth-link:active{
  transform:translateY(0) scale(.98);
}

.auth-page .auth-link:focus-visible{
  outline:2px solid #111;
  outline-offset:2px;
}

.auth-page .auth-back{
  appearance:none;
  border:0;
  background:transparent;
  color:#666!important;
  font:inherit;
  font-size:12px;
  line-height:1.2;
  font-weight:800;
  cursor:pointer;
}

.auth-page .auth-back:hover{
  color:#111!important;
}

.auth-page .auth-message{
  margin-bottom:18px;
  min-height:0;
}

.auth-page .auth-message.error{
  border-color:#d9b6b6;
  background:#fffafa;
  color:#7b1f1f;
}

.auth-page .auth-message.success{
  border-color:#c8d9cc;
  background:#f8fbf9;
  color:#176b3a;
}

.auth-page .signin-state-form input.is-invalid,
.auth-page .auth-step > label > input.is-invalid{
  border-color:#9d3737!important;
  background:#fffafa!important;
  box-shadow:0 0 0 4px rgba(157,55,55,.08)!important;
}

.auth-page .signin-state-form input.is-valid,
.auth-page .auth-step > label > input.is-valid{
  border-color:#4f7d5b!important;
  background:#fbfffc!important;
}

.auth-page .button.is-loading{
  cursor:wait;
}

.auth-page .button:disabled{
  cursor:not-allowed;
}

.auth-page .auth-step.state-enter,
.auth-page .auth-success.state-enter{
  animation:uiStepIn .32s cubic-bezier(.2,.8,.2,1) both;
}

.auth-page #resetOtpContainer.error-shake{
  animation:authErrorShake .42s ease;
}

@keyframes authErrorShake{
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-7px)}
  40%{transform:translateX(6px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(3px)}
}

@media (max-width:620px){
  .auth-page .auth-link{
    min-height:40px;
    padding:8px 12px;
  }
}


/* ============================================================
   FINAL DASHBOARD / MOBILE POLISH
   Keep the existing black-and-white SquashberryPay language,
   but normalize section rhythm, cards, tabs and touch targets.
============================================================ */
.merchant-page{
  overflow-x:hidden;
  background:#f5f5f3!important;
}
.merchant-main{
  min-width:0;
}
.merchant-section:not([hidden]){
  animation:sbpSectionMorph .36s cubic-bezier(.22,.8,.24,1) both;
}
@keyframes sbpSectionMorph{
  from{opacity:0;transform:translateY(10px) scale(.995);filter:blur(1px)}
  to{opacity:1;transform:none;filter:none}
}

.section-title-row{
  align-items:center!important;
  margin-bottom:24px!important;
}
.section-title-row>div{
  min-width:0;
}
.section-title-row>.button{
  align-self:center;
  min-height:42px;
  padding-inline:15px;
}
.section-title-row h2{
  font-size:clamp(30px,3.2vw,43px)!important;
  line-height:1.02!important;
  letter-spacing:-.055em!important;
  margin:8px 0 8px!important;
}
.section-title-row p{
  max-width:720px!important;
  font-size:13px!important;
  color:#747470!important;
}

.workspace-tabs{
  display:flex!important;
  align-items:stretch;
  gap:4px!important;
  padding:4px!important;
  margin:0 0 20px!important;
  border:1px solid #dfdfda!important;
  border-radius:16px!important;
  background:#ecece8!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.workspace-tab{
  flex:1 1 0;
  min-height:42px;
  border:0!important;
  border-radius:12px!important;
  padding:9px 13px!important;
  color:#777!important;
  background:transparent!important;
  font-size:11px;
  font-weight:800!important;
  white-space:nowrap;
  transition:background .24s cubic-bezier(.22,.8,.24,1),color .2s ease,box-shadow .24s ease,transform .24s ease;
}
.workspace-tab:hover{
  color:#111!important;
  transform:translateY(-1px);
}
.workspace-tab.active{
  color:#111!important;
  background:#fff!important;
  box-shadow:0 5px 16px rgba(0,0,0,.07),inset 0 0 0 1px rgba(0,0,0,.03)!important;
  transform:none;
}

.workspace-panel{
  min-width:0;
  animation:sbpPanelIn .32s cubic-bezier(.22,.8,.24,1) both;
}
.workspace-panel[hidden]{display:none!important}
@keyframes sbpPanelIn{
  from{opacity:0;transform:translateY(7px)}
  to{opacity:1;transform:none}
}

.workspace-content-head{
  margin:0 0 14px!important;
  padding:18px 18px 16px;
  border:1px solid #e1e1dc;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.035);
}
.workspace-content-head>div{
  min-width:0;
}
.workspace-content-head h3{
  font-size:18px!important;
  line-height:1.18;
  letter-spacing:-.025em;
}
.workspace-content-head p{
  font-size:12px!important;
  line-height:1.55;
}
.destination-add-button{
  min-width:150px;
}

.donation-destination-intro{
  display:flex;
  align-items:flex-start;
  gap:15px;
  margin:0 0 14px!important;
  padding:16px 18px!important;
  border-radius:18px!important;
}
.donation-destination-intro h3{
  margin:0 0 5px!important;
  font-size:18px;
  letter-spacing:-.025em;
}
.donation-destination-intro p{
  margin:0!important;
  color:#777!important;
  line-height:1.55;
  font-size:12px!important;
}

.method-list{
  display:grid!important;
  gap:10px!important;
}
.method-card{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  min-width:0;
  min-height:96px;
  padding:15px 16px!important;
  border:1px solid #deded9!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fff,#fbfbf8)!important;
  box-shadow:0 9px 24px rgba(0,0,0,.035)!important;
  overflow:hidden;
}
.method-card:hover{
  transform:translateY(-2px);
  border-color:#c7c7c2!important;
  box-shadow:0 18px 42px rgba(0,0,0,.08)!important;
}
.method-icon{
  width:48px!important;
  height:48px!important;
  flex:0 0 48px;
  border-radius:15px!important;
  display:grid!important;
  place-items:center!important;
  background:#111!important;
  color:#fff!important;
  border:1px solid #111;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 8px 18px rgba(0,0,0,.08);
  font-size:13px!important;
  font-weight:900!important;
}
.method-card-main{
  min-width:0;
}
.method-card-title{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex-wrap:wrap;
}
.method-card-title h3{
  margin:0!important;
  font-size:15px!important;
  letter-spacing:-.02em;
}
.method-card-main p{
  margin:5px 0 3px!important;
  color:#666!important;
  font-size:11px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere;
}
.method-card-main small{
  display:block;
  color:#999!important;
  font-size:10px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere;
}
.method-card-actions{
  justify-content:flex-end;
  margin:0!important;
}
.method-card-actions .small-action{
  min-height:36px;
  padding:0 11px!important;
  border-radius:10px!important;
}
.status-badge{
  white-space:nowrap;
}

.link-card,.product-card,.donation-card,.subscription-card,.app-card,.customer-card{
  border-radius:18px!important;
  overflow:hidden;
}
.link-card .link-url,.donation-card .link-url{
  border:1px solid #ecece7;
  background:#f8f8f5!important;
  padding:9px 10px!important;
}
.card-actions{
  min-width:0;
}
.small-action{
  min-height:36px;
  padding:0 11px!important;
  border-radius:10px!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.merchant-form{
  border-radius:18px!important;
  box-shadow:0 14px 38px rgba(0,0,0,.045);
}
.merchant-form input,.merchant-form select,.merchant-form textarea{
  min-width:0;
}

@media (max-width:900px){
  .merchant-layout{
    grid-template-columns:1fr!important;
  }
  .merchant-main{
    padding:30px 28px 100px!important;
  }
  .method-card{
    grid-template-columns:46px minmax(0,1fr)!important;
  }
  .method-card-actions{
    grid-column:2;
    justify-content:flex-start;
    padding-top:2px;
  }
}

@media (max-width:760px){
  .merchant-sidebar{
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    width:min(320px,86vw)!important;
    height:100dvh!important;
    max-height:100dvh!important;
    z-index:6000!important;
    display:flex!important;
    flex-direction:column!important;
    padding:20px 14px calc(20px + env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    transform:translateX(-105%)!important;
    transition:transform .34s cubic-bezier(.22,.8,.24,1)!important;
    background:rgba(250,250,248,.98)!important;
    box-shadow:24px 0 70px rgba(0,0,0,.18)!important;
  }
  .merchant-sidebar.mobile-open{
    transform:translateX(0)!important;
  }
  .mobile-nav-scrim{
    display:block!important;
    position:fixed!important;
    inset:0!important;
    z-index:5900!important;
    background:transparent!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    pointer-events:auto;
  }
  .mobile-nav-scrim[hidden]{
    display:none!important;
  }
  .mobile-menu{
    display:inline-grid!important;
  }
  .merchant-header{
    position:sticky!important;
    top:0!important;
    min-height:64px!important;
    height:64px!important;
    padding:0 12px!important;
    z-index:5000!important;
  }
  .merchant-header-right{
    gap:7px!important;
  }
  .merchant-header-right #signOut{
    min-height:40px;
    padding-inline:11px!important;
  }
  .merchant-header-right #merchantName{
    max-width:140px!important;
    min-height:40px;
  }
  .merchant-main{
    padding:24px 14px calc(110px + env(safe-area-inset-bottom))!important;
  }
  .section-title-row{
    align-items:stretch!important;
    gap:14px!important;
    margin-bottom:18px!important;
  }
  .section-title-row>.button{
    width:100%!important;
    align-self:stretch;
  }
  .section-title-row h2{
    font-size:clamp(31px,9vw,39px)!important;
  }
  .section-title-row p{
    font-size:12px!important;
    line-height:1.55!important;
  }
  .workspace-tabs{
    overflow-x:auto;
    scrollbar-width:none;
    scroll-snap-type:x proximity;
  }
  .workspace-tabs::-webkit-scrollbar{display:none}
  .workspace-tab{
    flex:0 0 auto;
    min-width:132px;
    scroll-snap-align:start;
  }
  .workspace-content-head{
    align-items:stretch!important;
    gap:13px!important;
    padding:16px!important;
  }
  .destination-add-button{
    width:100%;
  }
  .method-card{
    grid-template-columns:44px minmax(0,1fr)!important;
    gap:12px!important;
    padding:14px!important;
    min-height:0;
  }
  .method-icon{
    width:44px!important;
    height:44px!important;
    border-radius:14px!important;
  }
  .method-card-title h3{
    font-size:15px!important;
  }
  .method-card-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px!important;
    width:100%;
  }
  .method-card-actions .small-action{
    width:100%;
    min-width:0!important;
  }
  .merchant-form{
    padding:16px!important;
    border-radius:17px!important;
  }
  .merchant-form .form-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%;
  }
  .merchant-form .form-actions .button{
    width:100%!important;
  }
  .link-card .card-actions,.product-card .card-actions,.donation-card .card-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .link-card .card-actions .small-action,.product-card .card-actions .small-action,.donation-card .card-actions .small-action{
    width:100%;
    min-width:0!important;
  }
  .link-analytics-panel{
    margin-top:18px!important;
    border-radius:18px!important;
  }
}

@media (max-width:430px){
  .merchant-main{
    padding-inline:11px!important;
  }
  .merchant-header-right #merchantName{
    max-width:112px!important;
  }
  .workspace-tab{
    min-width:116px;
    padding-inline:10px!important;
  }
  .method-card-actions{
    grid-template-columns:1fr 1fr;
  }
}

@media(prefers-reduced-motion:reduce){
  .merchant-section:not([hidden]),.workspace-panel,.method-card,.workspace-tab{
    animation:none!important;
    transition:none!important;
  }
}


/* ---------- MOBILE AUTH HEADER VISIBILITY ---------- */
@media (max-width:620px){
  .site-header .brand{
    min-width:0;
    flex:1 1 auto;
  }
  .site-header .brand > span:last-child{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .site-header .header-actions{
    flex:0 0 auto!important;
    min-width:max-content;
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    position:relative;
    z-index:2;
  }
  .site-header .header-actions .nav-login{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
  }
}
