/* surveyhub-admin-finance-ui-v1 | Scoped to Admin > Users finance controls */
/* Cards remain separate forms to preserve CSRF, server validation and all existing actions. */
.shaf-panel{
  --shaf-gold:#dfb96c; --shaf-muted:#b5c3bb; --shaf-text:#f4f3e9;
  position:relative;box-sizing:border-box;margin:20px 0!important;
  padding:clamp(18px,2.5vw,30px)!important;
  border-radius:20px!important;border:1px solid rgba(205,174,103,.32)!important;
  background:linear-gradient(145deg,#202b27 0%,#161d1b 70%,#1a1b18 100%)!important;
  color:var(--shaf-text)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.035);
  overflow:hidden;
}
.shaf-panel::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;
  background:linear-gradient(180deg,#f2d48d,#a77939);pointer-events:none;
}
.shaf-panel *{box-sizing:border-box}
.shaf-panel h2{
  display:flex;align-items:center;gap:10px;margin:0 0 19px!important;
  padding:0 0 17px;border-bottom:1px solid rgba(219,187,115,.17);
  color:#f0d393!important;font-size:clamp(17px,2.2vw,22px)!important;
  font-weight:800!important;line-height:1.35;letter-spacing:-.025em;
}
.shaf-panel h2::before{
  display:grid;place-items:center;flex:none;
  width:37px;height:37px;border-radius:11px;
  background:rgba(218,178,93,.14);border:1px solid rgba(219,183,109,.27);
  color:#ebc67c;font-size:19px;font-weight:700;
}
.shaf-profile h2::before{content:"✎"}
.shaf-wallet h2::before{content:"$"}
.shaf-archive h2::before{content:"!"}
.shaf-panel>p{color:var(--shaf-muted)!important;line-height:1.65;margin:0 0 20px!important;font-size:13px}
.shaf-panel form{margin:0!important;display:grid;gap:16px}
.shaf-profile form{grid-template-columns:repeat(3,minmax(0,1fr))}
.shaf-wallet form{grid-template-columns:repeat(3,minmax(0,1fr))}
.shaf-archive form{grid-template-columns:repeat(2,minmax(0,1fr))}
.shaf-panel form>input[type=hidden]{display:none}
.shaf-panel form>label{
  display:flex!important;flex-direction:column;align-items:stretch;gap:8px;
  min-width:0;margin:0!important;color:#e5e9e0!important;
  font-size:12px!important;font-weight:750!important;letter-spacing:.015em;
}
.shaf-panel label>input:not([type=checkbox]):not([type=radio]),
.shaf-panel label>select,.shaf-panel label>textarea{
  display:block;width:100%!important;min-width:0;margin:0!important;
  min-height:47px;padding:12px 13px!important;
  border:1px solid #465b50!important;border-radius:11px!important;
  background:#111a17!important;color:#f8f6e9!important;
  font:inherit;font-size:14px!important;font-weight:500!important;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.14);
  transition:border-color .16s,box-shadow .16s;
}
.shaf-panel label>input::placeholder,.shaf-panel label>textarea::placeholder{color:#83998e}
.shaf-panel label>textarea{resize:vertical;min-height:92px!important;line-height:1.5}
.shaf-panel label>input:focus,.shaf-panel label>select:focus,.shaf-panel label>textarea:focus{
  outline:2px solid transparent!important;border-color:#e0b86b!important;
  box-shadow:0 0 0 3px rgba(215,172,90,.2)!important;
}
.shaf-panel label>input:-webkit-autofill{-webkit-text-fill-color:#f8f6e9!important;-webkit-box-shadow:0 0 0 1000px #111a17 inset!important}
.shaf-panel button[type=submit]{
  display:inline-flex!important;justify-content:center;align-items:center;gap:9px;
  width:auto;max-width:100%;min-height:47px;margin:3px 0 0!important;
  padding:12px 22px!important;border:1px solid #f3d89c!important;
  border-radius:11px!important;background:linear-gradient(120deg,#e9c780,#c6984a)!important;
  color:#1b1b13!important;font-size:13px!important;font-weight:850!important;
  line-height:1.25;cursor:pointer;box-shadow:0 6px 15px rgba(0,0,0,.18);
  transition:filter .16s,transform .16s;
}
.shaf-panel button[type=submit]:hover{filter:brightness(1.08);transform:translateY(-1px)}
.shaf-panel button[type=submit]:focus-visible{outline:3px solid #fff1c8!important;outline-offset:3px}
.shaf-profile form>button,.shaf-wallet form>button,.shaf-archive form>button{grid-column:1/-1;justify-self:start}
.shaf-wallet form>label:nth-of-type(4){grid-column:1/-1}
.shaf-wallet-overview{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:22px;
}
.shaf-balance-tile{
  display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;
  padding:18px 20px;border:1px solid rgba(218,182,109,.27);
  border-radius:15px;background:linear-gradient(135deg,#27382e,#18241f);
}
.shaf-balance-tile--commission{background:linear-gradient(135deg,#353020,#24251d)}
.shaf-balance-label{text-transform:uppercase;letter-spacing:.085em;color:#c4ccb9;font-size:10px;font-weight:800}
.shaf-balance-tile strong{font-size:clamp(20px,2.4vw,27px);font-weight:850;color:#f1da9b;line-height:1.2;overflow-wrap:anywhere}
.shaf-balance-tile small{font-size:11px;color:#bfc9bc}
.shaf-archive{border-color:rgba(222,135,117,.39)!important;background:linear-gradient(150deg,#2a2523,#191d1b)!important}
.shaf-archive::before{background:linear-gradient(180deg,#ed997e,#9f4b47)}
.shaf-archive h2{color:#ffb9a8!important;border-bottom-color:rgba(238,150,139,.19)}
.shaf-archive h2::before{background:rgba(213,95,78,.15);border-color:rgba(232,126,111,.24);color:#f3a594}
.shaf-archive button[type=submit]{background:linear-gradient(120deg,#e6a295,#c36a5b)!important;color:#261512!important;border-color:#ffc1b6!important}
.shaf-archive>p{color:#d9bab5!important}
@media(max-width:900px){
  .shaf-profile form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shaf-profile form>label:nth-of-type(3){grid-column:1/-1}
  .shaf-wallet form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shaf-wallet form>label:nth-of-type(3){grid-column:1/-1}
}
@media(max-width:620px){
  .shaf-panel{padding:18px 15px 20px!important;margin:14px 0!important;border-radius:15px!important}
  .shaf-panel h2{font-size:17px!important;gap:9px}
  .shaf-panel h2::before{width:33px;height:33px;border-radius:9px}
  .shaf-profile form,.shaf-wallet form,.shaf-archive form{grid-template-columns:minmax(0,1fr);gap:13px}
  .shaf-profile form>label:nth-of-type(3),.shaf-wallet form>label:nth-of-type(3),
  .shaf-wallet form>label:nth-of-type(4){grid-column:1}
  .shaf-wallet-overview{grid-template-columns:minmax(0,1fr);gap:10px}
  .shaf-balance-tile{padding:14px 15px}
  .shaf-panel button[type=submit]{width:100%!important;justify-self:stretch}
}
@media(prefers-reduced-motion:reduce){.shaf-panel button[type=submit],.shaf-panel label>input{transition:none!important}}
