:root{
  --bg:#f7f8fb;--white:#fff;--ink:#252733;--muted:#747887;--line:#e8eaf0;
  --yellow:#ffd21f;--yellow2:#ffe26a;--blue:#3d8bff;--purple:#6c3ce7;
  --red:#ef6262;--green:#169b69;--shadow:0 8px 26px rgba(38,42,55,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
.app{max-width:520px;margin:0 auto;min-height:100vh;padding-bottom:92px}
svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.header{background:linear-gradient(135deg,var(--yellow),#ffdd42);padding:14px 16px 12px;position:sticky;top:0;z-index:20}
.top{display:flex;align-items:center;gap:10px}
.logo{font-size:22px;font-weight:950;letter-spacing:-1px;white-space:nowrap}.logo b{color:var(--purple)}
.icon-btn,.back-btn{width:42px;height:42px;border:0;border-radius:50%;background:#fff;display:grid;place-items:center}
.icon-btn{color:var(--blue)}.back-btn{color:#35343a}
.search{height:44px;flex:1;border-radius:15px;background:#fff;display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--muted);font-size:13px}
.location{margin-top:10px;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:750}.location svg{width:17px}
.page-title{font-size:20px;font-weight:900;letter-spacing:-.55px;flex:1}
.content{padding:16px}
.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:var(--shadow);margin-bottom:13px}
.panel h2{margin:0 0 4px;font-size:16px;letter-spacing:-.3px}
.panel-sub{margin:0 0 14px;color:var(--muted);font-size:12px;line-height:1.4}
.field{margin-top:12px}.field label{display:block;font-size:11px;font-weight:800;margin-bottom:6px;color:#4f5662}
.input,.select,.textarea{width:100%;border:1px solid var(--line);background:#fafbfc;color:var(--ink);border-radius:13px;padding:13px 12px;outline:none}
.textarea{min-height:88px;resize:vertical}
.input:focus,.select:focus,.textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(61,139,255,.09);background:#fff}
.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.primary{width:100%;border:0;border-radius:14px;padding:14px;background:linear-gradient(135deg,var(--yellow),var(--yellow2));color:#2e2800;font-weight:900}
.primary.blue{background:var(--blue);color:#fff}.primary.purple{background:var(--purple);color:#fff}
.secondary{width:100%;border:1px solid var(--line);border-radius:14px;padding:13px;background:#fff;color:var(--ink);font-weight:800}
.danger{width:100%;border:1px solid #ffd6d6;border-radius:14px;padding:13px;background:#fff5f5;color:#b73434;font-weight:850}
.primary:disabled{opacity:.55;cursor:not-allowed}
.link-btn{border:0;background:none;color:var(--purple);font-size:12px;font-weight:800;padding:6px}
.loader{display:none;width:18px;height:18px;border:2px solid rgba(0,0,0,.18);border-top-color:#252733;border-radius:50%;animation:spin .7s linear infinite;margin-right:8px;vertical-align:-4px}
.loading .loader{display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}
.status{display:none;margin-bottom:12px;padding:11px 12px;border-radius:13px;font-size:11px;line-height:1.4}
.status.show{display:block}.status.ok{background:#eefaf5;color:#13724e}.status.err{background:#fff0f0;color:#b53c3c}
.auth-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:var(--shadow);margin-top:18px}
.auth-mark{width:58px;height:58px;border-radius:18px;background:#fff7ce;display:grid;place-items:center;color:#b88800;margin-bottom:15px}
.auth-mark svg{width:29px;height:29px}
.auth-card h1{margin:0;font-size:24px;letter-spacing:-.7px}.auth-card p{color:var(--muted);font-size:12px;line-height:1.45}
.tabs{display:grid;grid-template-columns:1fr 1fr;background:#f2f4f7;border-radius:13px;padding:4px;margin:15px 0}
.tab{border:0;background:transparent;border-radius:10px;padding:10px;font-size:11px;font-weight:850;color:var(--muted)}
.tab.active{background:#fff;color:var(--purple);box-shadow:0 2px 8px rgba(0,0,0,.05)}
.helper{font-size:10px;color:var(--muted);line-height:1.45;margin-top:6px}
.profile-hero{background:linear-gradient(135deg,#fff,#f5f0ff);border:1px solid var(--line);border-radius:22px;padding:17px;display:flex;align-items:center;gap:13px;margin-bottom:13px}
.avatar{width:58px;height:58px;border-radius:50%;background:var(--purple);color:#fff;display:grid;place-items:center;font-size:21px;font-weight:900}
.profile-hero h2{margin:0;font-size:18px}.profile-hero p{margin:4px 0 0;color:var(--muted);font-size:11px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:13px}
.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;text-align:center}.stat strong{display:block;font-size:18px}.stat span{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.menu{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;margin-bottom:13px}
.menu-item{width:100%;border:0;border-bottom:1px solid var(--line);background:#fff;padding:14px 15px;display:flex;align-items:center;gap:11px;text-align:left}
.menu-item:last-child{border-bottom:0}.menu-icon{width:38px;height:38px;border-radius:12px;background:#f5f7fa;display:grid;place-items:center;color:var(--blue)}.menu-item strong{font-size:12px}.menu-item small{display:block;color:var(--muted);font-size:9.5px;margin-top:2px}.menu-arrow{margin-left:auto;color:#9aa2ad}
.ad-list{display:grid;gap:11px}.ad-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:10px;display:grid;grid-template-columns:94px 1fr;gap:11px}.ad-img{width:94px;height:94px;border-radius:13px;background:#edf0f3;overflow:hidden}.ad-img img{width:100%;height:100%;object-fit:cover}.ad-title{font-size:13px;font-weight:850}.ad-meta{font-size:10px;color:var(--muted);margin-top:4px}.ad-price{font-size:17px;font-weight:900;margin-top:7px}.ad-actions{display:flex;gap:7px;margin-top:9px}.mini-btn{border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 9px;font-size:9.5px;font-weight:850}.mini-btn.edit{color:var(--purple);border-color:#ded4ff;background:#f8f5ff}
.empty{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px 20px;text-align:center}.empty h3{margin:10px 0 5px;font-size:16px}.empty p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.upload{border:1.5px dashed #d9dde5;border-radius:17px;background:#fbfcfd;min-height:172px;display:flex;align-items:center;justify-content:center;text-align:center;padding:14px;overflow:hidden;position:relative}
.upload.has-image{padding:0;border-style:solid}.upload img{display:none;width:100%;height:210px;object-fit:cover}.upload.has-image img{display:block}.upload.has-image .upload-placeholder{display:none}
.upload-placeholder svg{width:34px;height:34px;color:var(--purple);margin-bottom:7px}.upload-placeholder strong{display:block;font-size:13px}.upload-placeholder small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mode{border:1.5px solid var(--line);background:#fff;border-radius:16px;padding:14px;text-align:left;min-height:116px}.mode.selected.total{border-color:var(--red);background:#fff7f7}.mode.selected.protected{border-color:var(--blue);background:#f5f9ff}.mode .micon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;margin-bottom:8px}.mode.total .micon{background:#fff0f0;color:var(--red)}.mode.protected .micon{background:#eef5ff;color:var(--blue)}.mode strong{display:block;font-size:13px}.mode small{display:block;color:var(--muted);font-size:10px;line-height:1.35;margin-top:4px}
.chips{display:flex;gap:8px}.chip{flex:1;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 8px;font-size:11px;font-weight:800}.chip.active{background:#fff7ce;border-color:var(--yellow);color:#7e6500}
.notice{background:#f3efff;border:1px solid #e2d9ff;border-radius:14px;padding:11px 12px;color:#5c3bbc;font-size:10.5px;line-height:1.4;margin-top:12px}
.hero{margin:14px 15px 0;background:linear-gradient(135deg,#fff 0%,#fffdf3 58%,#f3efff 100%);border:1px solid var(--line);border-radius:21px;padding:18px;box-shadow:var(--shadow)}
.hero small{color:var(--purple);font-weight:850;letter-spacing:.09em}.hero h1{font-size:23px;line-height:1.08;margin:6px 0 7px;letter-spacing:-.7px}.hero p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.4}.hero .primary{width:auto;margin-top:13px;padding:11px 15px}
.shortcuts{display:flex;gap:9px;overflow:auto;padding:16px 15px 2px;scrollbar-width:none}.shortcuts::-webkit-scrollbar{display:none}.short{min-width:75px;text-align:center;font-size:10.5px;font-weight:750}.bubble{width:54px;height:54px;margin:auto auto 6px;border-radius:17px;background:#fff;border:1px solid var(--line);display:grid;place-items:center}.hot .bubble{color:var(--red);background:#fff4f4}.near .bubble{color:var(--blue);background:#eef5ff}.donate .bubble{color:var(--purple);background:#f4f0ff}.goldcat .bubble{color:#b98900;background:#fff9df}
.promo{margin:16px 15px 0;background:linear-gradient(105deg,#6c3ce7,#865cff);border-radius:17px;padding:13px 15px;color:white;display:flex;align-items:center;justify-content:space-between;gap:12px}.promo-label{font-size:10px;font-weight:900;letter-spacing:.08em;opacity:.82}.promo-title{font-size:14px;font-weight:850;margin-top:3px}.promo-btn{background:var(--yellow);color:#302800;border:0;border-radius:12px;padding:9px 11px;font-size:10px;font-weight:900}
.section{padding:20px 15px 0}.head{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.head h2{font-size:18px;margin:0}.head span{font-size:11px;color:var(--purple);font-weight:850}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.pic{height:150px;background:#e9edf0;position:relative}.pic img{width:100%;height:100%;object-fit:cover}.badge{position:absolute;top:8px;left:8px;background:rgba(255,255,255,.96);padding:6px 8px;border-radius:9px;font-size:9px;font-weight:900;color:var(--red)}.badge.protegido{color:#2873a7}.body{padding:10px}.title{font-size:12.5px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.place{font-size:9.5px;color:var(--muted);margin-top:3px}.label{margin-top:8px;font-size:8.5px;text-transform:uppercase;color:var(--muted);font-weight:800}.price{font-size:19px;font-weight:900}.meta{border-top:1px solid var(--line);padding-top:7px;margin-top:7px;display:flex;justify-content:space-between;font-size:9.5px;color:var(--muted)}.meta strong{color:var(--purple)}.offer{width:100%;border:0;border-radius:10px;background:var(--blue);color:white;padding:9px;margin-top:8px;font-size:10px;font-weight:850}
.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(520px,100%);height:76px;background:rgba(255,255,255,.98);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);z-index:30;padding-bottom:max(4px,env(safe-area-inset-bottom))}
.nav{border:0;background:none;color:#77818d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:9.5px;font-weight:750}.nav.active{color:var(--purple)}.nav svg{width:22px}.create{position:relative}.plus{position:absolute;top:-18px;width:49px;height:49px;border-radius:50%;background:linear-gradient(135deg,var(--yellow),var(--yellow2));display:grid;place-items:center;color:#292016;box-shadow:0 7px 18px rgba(245,166,35,.28)}.create span{margin-top:30px}
@media(max-width:360px){.logo{font-size:19px}.search{font-size:11px}.row{grid-template-columns:1fr}}

.product-detail{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow);margin-bottom:13px}
.product-photo{width:100%;aspect-ratio:1/1;background:#edf0f3;display:flex;align-items:center;justify-content:center;overflow:hidden}
.product-photo img{width:100%;height:100%;object-fit:cover}
.product-info{padding:16px}
.product-badges{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:9px}
.detail-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;font-size:9px;font-weight:900;background:#fff0f0;color:var(--red)}
.detail-badge.protected{background:#eef5ff;color:#2873a7}
.product-name{font-size:22px;font-weight:950;letter-spacing:-.6px;line-height:1.1}
.product-place{color:var(--muted);font-size:11px;margin-top:6px}
.ref-value{color:var(--muted);font-size:11px;margin-top:13px}
.current-offer{font-size:32px;font-weight:950;letter-spacing:-1px;margin-top:2px}
.detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.detail-meta>div{background:#f7f8fb;border:1px solid var(--line);border-radius:13px;padding:10px}
.detail-meta small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800}
.detail-meta strong{display:block;margin-top:3px;font-size:13px}
.desc{font-size:12px;line-height:1.55;color:#505763;white-space:pre-wrap}
.offer-box{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:var(--shadow);margin-bottom:13px}
.offer-box h2{margin:0;font-size:17px}
.offer-box p{margin:5px 0 12px;color:var(--muted);font-size:11px;line-height:1.4}
.offer-suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:9px 0}
.suggest{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 6px;font-size:11px;font-weight:850}
.suggest.active{border-color:var(--purple);background:#f6f1ff;color:var(--purple)}
.offer-input-wrap{position:relative}
.offer-prefix{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:13px;font-weight:850}
.offer-input{padding-left:38px;font-size:20px;font-weight:900}
.commitment{margin-top:11px;background:#fff8de;border:1px solid #f4df8d;border-radius:13px;padding:10px 11px;font-size:10px;line-height:1.45;color:#6b5a16}
.owner-note{background:#f4f0ff;border:1px solid #e1d7ff;color:#5e3db5;border-radius:13px;padding:11px;font-size:10.5px;line-height:1.45;margin-top:12px}
.success-box{background:#eefaf5;border:1px solid #cfeede;color:#14724f;border-radius:13px;padding:12px;font-size:11px;line-height:1.45;margin-top:11px}
