*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#fff,#fbf9ff);color:#17131f;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.topbar{height:72px;background:#fff;border-bottom:1px solid #ece8f3;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#17131f;font-weight:850;font-size:21px}.brand img{width:38px;height:38px;border-radius:11px;object-fit:cover}.topbar nav{display:flex;gap:5px}.topbar nav button{border:0;background:transparent;padding:10px 13px;border-radius:11px;color:#6d6675;font-weight:700}.nav-active,.topbar nav button:hover{background:#f4efff!important;color:#6821d6!important}.top-actions{display:flex;gap:9px;align-items:center}.network{font-size:12px;font-weight:800;background:#f6f1ff;border:1px solid #e7ddfa;color:#5820ba;padding:10px 13px;border-radius:13px}.network i{display:inline-block;width:8px;height:8px;background:#7627f5;border-radius:50%;margin-right:7px}.wallet{border:0;background:#17131f;color:#fff;padding:11px 15px;border-radius:13px;font-weight:800}main{max-width:560px;margin:auto;padding:45px 16px 70px}.hero{text-align:center;margin-bottom:20px}.hero h1{margin:0 0 8px;font-size:38px;letter-spacing:-1.7px}.hero p{margin:0;color:#79727f;font-size:14px}.swap-card{background:#fff;border:1px solid #ece8f3;border-radius:27px;padding:10px;box-shadow:0 20px 65px rgba(76,34,140,.09)}.token-box{background:#f7f5fa;border:1px solid #eeeaf4;border-radius:20px;padding:16px}.line,.amount-row,.settings-line,.info,.setting,.modal-head,.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.muted,#tokenStatus{color:#8a8490;font-size:12px;font-weight:700}.amount-row{margin-top:3px}.amount-row input{min-width:0;width:100%;border:0;outline:0;background:transparent;font-size:34px;font-weight:750;padding:7px 0}.amount-row input::placeholder{color:#c9c3ce}.max-button{border:1px solid #e2d7f5;background:#f2eaff;color:#6821d6;border-radius:10px;padding:8px 9px;font-size:11px;font-weight:900;white-space:nowrap}.max-button:active{transform:scale(.97)}.token-select{display:flex;align-items:center;gap:7px;max-width:200px;border:1px solid #e6e1eb;background:#fff;border-radius:14px;padding:7px 10px;font-weight:800;white-space:nowrap}.token-select img{width:29px;height:29px;border-radius:9px;object-fit:cover}.flip-wrap{height:0;position:relative;z-index:2}.flip{position:absolute;left:50%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:14px;border:4px solid #fff;background:#fff;box-shadow:0 4px 15px #24103522;color:#7627f5;font-size:20px;font-weight:900}.settings-line{padding:10px 3px 2px;color:#88818e;font-size:11px;min-height:38px}.settings-line button{border:1px solid #e5dcf6;background:#f6f1ff;color:#6020c4;padding:7px 10px;border-radius:10px;font-weight:800}.settings-line>span{display:inline-flex;align-items:center;justify-content:flex-end;min-width:88px;line-height:18px}.fee-line{display:flex;align-items:center;justify-content:flex-end;padding:0 3px 8px;color:#88818e;font-size:11px;line-height:18px;min-height:18px}.fee-line span{display:inline-flex;align-items:center;justify-content:flex-end;min-width:88px}.fee-line b,.settings-line b{color:#5f20c4;font-weight:850}.swap-button{width:100%;border:0;border-radius:18px;padding:17px;background:linear-gradient(135deg,#7627f5,#9147ff);color:#fff;font-size:16px;font-weight:850}.info{padding:13px 7px 4px;color:#8b8591;font-size:12px}.info b{color:#433b4d}.token-panel{margin-top:15px;background:#fff;border:1px solid #ece8f3;border-radius:20px;padding:15px}.panel-head{margin-bottom:10px;font-size:14px}.token-panel>input,.modal-card>input{width:100%;border:1px solid #e5e0ea;border-radius:12px;padding:12px;outline:0;margin-bottom:8px}.token-list{max-height:350px;overflow:auto}.token-item{width:100%;display:flex;align-items:center;gap:11px;padding:10px;border:0;border-bottom:1px solid #f1eef4;background:#fff;text-align:left}.token-item:hover{background:#faf7ff}.token-item img{width:37px;height:37px;border-radius:11px;object-fit:cover}.token-item strong{display:block}.token-item small{display:block;color:#8d8793;margin-top:2px}.tag{margin-left:auto;background:#f0e7ff;color:#6420ca;padding:5px 7px;border-radius:7px;font-size:10px;font-weight:800}.note{color:#8b8590;font-size:11px;line-height:1.5}.modal{display:none;position:fixed;inset:0;background:#18121f55;backdrop-filter:blur(6px);align-items:flex-end;justify-content:center;padding:15px;z-index:20}.modal.open{display:flex}.modal-card{width:min(100%,520px);background:#fff;border-radius:24px;padding:17px;max-height:82vh;overflow:hidden}.close{border:0;background:#f2eff5;border-radius:10px;width:35px;height:35px;font-size:20px}.slip-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:10px 0}.slip-grid button,.custom button{border:1px solid #e5dfeb;background:#f5f1fa;border-radius:10px;padding:9px 4px;font-weight:800}.slip-grid button.active{background:#eee2ff;border-color:#d4bfff;color:#6720d3}.custom{display:flex;gap:7px}.custom input{width:100%;border:1px solid #e5dfeb;border-radius:10px;padding:10px;outline:0}.custom button{background:#7627f5;color:#fff;border:0;padding:0 14px}.setting{border-top:1px solid #eeeaf3;margin-top:14px;padding-top:13px;font-size:13px}.setting select{border:1px solid #e5dfeb;border-radius:9px;padding:8px;background:#fff}#toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);opacity:0;background:#17131f;color:#fff;padding:12px 15px;border-radius:12px;font-size:12px;transition:.2s;z-index:30}#toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:700px){.amount-row input{font-size:30px}.max-button{padding:7px 8px}.topbar{padding:0 13px}.topbar nav,.network{display:none}main{padding-top:30px}.hero h1{font-size:32px}}

/* New/unverified contract lookup badge */

.token-item small{overflow-wrap:anywhere;word-break:break-word;}

.wallet-wrap{position:relative}.wallet-menu{display:none;position:absolute;right:0;top:calc(100% + 8px);width:170px;background:#fff;border:1px solid #e8e2ef;border-radius:14px;padding:6px;box-shadow:0 14px 35px rgba(40,20,70,.16);z-index:50}.wallet-menu.open{display:block}.wallet-menu button{display:block;width:100%;text-align:left;border:0;background:#fff;border-radius:10px;padding:11px 12px;font-weight:750;color:#2a2330}.wallet-menu button:hover{background:#f6f1ff;color:#6420ca}@media(max-width:700px){.wallet-menu{right:0}}
.usd-value{margin-top:2px;color:#8a8490;font-size:11px;font-weight:700;padding-left:1px;min-height:16px}
.history-card{max-height:82vh;overflow:hidden}.history-list{max-height:65vh;overflow:auto;display:grid;gap:9px}.history-empty{padding:22px 8px;text-align:center;color:#8a8490;font-size:13px}.history-item{border:1px solid #eee9f4;background:#faf8fd;border-radius:15px;padding:12px}.history-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.history-pair{font-weight:850;font-size:14px}.history-date{font-size:10px;color:#938c99}.history-values{margin-top:7px;font-size:12px;line-height:1.55}.history-values b{color:#302936}.history-link{display:inline-block;margin-top:8px;color:#6821d6;font-weight:800;font-size:11px;text-decoration:none}.history-link:hover{text-decoration:underline}
@media(max-width:700px){.topbar nav{display:flex;overflow:hidden}.topbar nav button{padding:8px 7px;font-size:11px}.topbar nav button:nth-child(4){display:none}}

.history-under-card{display:block;width:min(100%,300px);margin:14px auto 0;border:1px solid #e3d8f5;background:#f7f2ff;color:#6420ca;border-radius:14px;padding:12px 16px;font-size:13px;font-weight:850;cursor:pointer;box-shadow:0 5px 18px rgba(76,34,140,.06)}
.history-under-card:hover{background:#efe5ff}
.history-under-card:active{transform:scale(.99)}
@media(max-width:700px){.history-under-card{width:100%;margin-top:12px;padding:13px 16px}.topbar nav{display:none}}
.history-status{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.35px;line-height:1}.history-status.success{background:#e8f8ee;color:#1f8a4c}.history-status.failed{background:#ffe9ed;color:#c72f4b}.history-failed{border-color:#f2d8de;background:#fffafb}.history-date{margin-top:4px}.history-error{margin-top:7px;font-size:11px;color:#b52d45;line-height:1.4}

/* BunkiSwap branding + icon-only social footer */
.brand{gap:9px;height:48px;display:flex;align-items:center}
.brand .brand-icon{width:42px;height:42px;border-radius:11px;object-fit:cover;display:block}
.brand .brand-wordmark{width:160px;height:44px;border-radius:0;object-fit:contain;display:block}
.social-footer{display:flex;align-items:center;justify-content:center;gap:16px;margin:18px auto 0;padding:12px 0 2px}
.social-footer a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:11px;background:#f7f3fc;text-decoration:none;transition:.15s}
.social-footer a:hover{background:#eee4ff;transform:translateY(-1px)}
.social-footer a img{width:22px;height:22px;object-fit:contain;display:block}
.social-footer a:first-child img{background:#000;border-radius:6px;padding:3px;box-sizing:border-box}
@media(max-width:700px){.brand{gap:7px;height:44px}.brand .brand-icon{width:38px;height:38px;border-radius:10px}.brand .brand-wordmark{width:145px;height:40px}.social-footer{margin-top:15px;gap:14px}}
/* Final brand alignment: larger, tighter and readable on the white header */
.brand{gap:4px;height:52px;align-items:center}
.brand .brand-icon{width:44px;height:44px;border-radius:11px;object-fit:cover;flex:0 0 44px}
.brand .brand-wordmark{width:184px;height:50px;border-radius:0;object-fit:contain;object-position:left center;display:block;flex:0 0 184px}
@media(max-width:700px){
  .topbar{padding:0 12px}
  .brand{gap:3px;height:48px;min-width:0}
  .brand .brand-icon{width:43px;height:43px;flex-basis:43px}
  .brand .brand-wordmark{width:178px;height:46px;flex-basis:178px}
  .wallet{padding:11px 14px;font-size:14px;white-space:nowrap}
}

/* Exact supplied BunkiSwap wordmark */
.brand{gap:5px}
.brand .brand-wordmark{width:184px;height:44px;object-fit:contain;object-position:center;filter:none}
@media(max-width:700px){.brand{gap:4px}.brand .brand-wordmark{width:168px;height:40px}}

/* Refined mobile brand lockup: compact, centered and visually balanced */
.brand{gap:2px;height:50px;align-items:center;min-width:0}
.brand .brand-icon{width:44px;height:44px;flex:0 0 44px}
.brand .brand-wordmark{width:184px;height:44px;flex:0 0 184px;object-fit:contain;object-position:left center}
.wallet{padding:11px 13px;white-space:nowrap}
@media(max-width:700px){
  .topbar{padding:0 12px;gap:8px}
  .brand{gap:1px;height:46px;flex:1;min-width:0}
  .brand .brand-icon{width:42px;height:42px;flex:0 0 42px}
  .brand .brand-wordmark{width:calc(100% - 42px);max-width:172px;height:42px;flex:1 1 auto;object-fit:contain;object-position:left center}
  .top-actions{flex:0 0 auto}
  .wallet{padding:11px 12px;font-size:14px}
}

/* Final branding: wordmark only, bunny logo removed */
.brand{gap:0}
.brand .brand-wordmark{width:184px;height:48px;flex:0 0 184px;object-fit:contain;object-position:left center}
@media(max-width:700px){.brand .brand-wordmark{width:176px;height:44px;flex:0 0 176px;object-fit:contain;object-position:left center}}
