/* GIRO Entregador — camada visual leve. Reestiliza a interface sem alterar regras de negócio. */
:root{--driver-red:#e62f28;--driver-red-dark:#c9221c;--driver-ink:#171816;--driver-muted:#74756f;--driver-line:#e9e9e5;--driver-bg:#f6f6f3;--driver-card:#fff;--driver-green:#209965;--driver-yellow:#efa920;--driver-blue:#3678cf;--driver-shadow:0 12px 40px rgba(18,19,17,.07)}
.app-shell[data-mode="driver"]{background:var(--driver-bg)!important;color:var(--driver-ink)!important;min-height:100dvh;padding-bottom:calc(82px + env(safe-area-inset-bottom))}
.app-shell[data-mode="driver"] .content{background:transparent!important;color:var(--driver-ink)!important;padding:14px 16px 112px}
.app-shell[data-mode="driver"] .driver-appbar{min-height:72px;padding:max(10px,env(safe-area-inset-top)) 16px 9px;background:rgba(246,246,243,.96)!important;border:0!important;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;position:sticky;top:0;z-index:25;backdrop-filter:blur(16px)}
.driver-brand{border:0;background:transparent;color:var(--driver-ink);display:flex;align-items:center;gap:7px;padding:7px 2px;min-height:44px}.driver-brand b{font-size:20px;font-weight:1000;letter-spacing:-.8px}.driver-wing{width:25px;display:grid;gap:2px;transform:skewX(-13deg)}.driver-wing i{height:5px;background:var(--driver-red);border-radius:2px}.driver-wing i:nth-child(2){width:19px}.driver-wing i:nth-child(3){width:13px}
.driver-page-title{min-width:0}.driver-page-title h1{font-size:13px!important;color:var(--driver-ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}.driver-page-title small{display:block;color:var(--driver-muted)!important;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.driver-availability{border:0;border-radius:11px;min-height:42px;padding:8px 10px;display:flex;align-items:center;gap:6px;font-size:10px;font-weight:900}.driver-availability i{width:8px;height:8px;border-radius:50%;background:currentColor}.driver-availability.is-online{background:#e7f5ed;color:#247d55}.driver-availability.is-offline{background:#ececea;color:#777}
.app-shell[data-mode="driver"] .card,.app-shell[data-mode="driver"] .delivery,.app-shell[data-mode="driver"] .notice,.app-shell[data-mode="driver"] .focus{background:var(--driver-card)!important;border:1px solid var(--driver-line)!important;color:var(--driver-ink)!important;border-radius:18px!important;box-shadow:var(--driver-shadow)!important}
.app-shell[data-mode="driver"] .card h2,.app-shell[data-mode="driver"] .card h3,.app-shell[data-mode="driver"] .delivery b{color:var(--driver-ink)!important}.app-shell[data-mode="driver"] .muted,.app-shell[data-mode="driver"] .card small,.app-shell[data-mode="driver"] .delivery small{color:var(--driver-muted)!important}
.app-shell[data-mode="driver"] .urban-hero{background:linear-gradient(135deg,#1b1c1d,#292a2c)!important;border-radius:18px!important;box-shadow:var(--driver-shadow)!important}.app-shell[data-mode="driver"] .urban-main-action,.app-shell[data-mode="driver"] .primary{background:var(--driver-red)!important;color:#fff!important;border-color:var(--driver-red)!important}.app-shell[data-mode="driver"] .urban-main-action:active,.app-shell[data-mode="driver"] .primary:active{background:var(--driver-red-dark)!important}
.app-shell[data-mode="driver"] .urban-gia-card{background:#fff!important;color:var(--driver-ink)!important;border:1px solid var(--driver-line)!important;box-shadow:var(--driver-shadow)!important}.app-shell[data-mode="driver"] .urban-gia-card small{color:var(--driver-red)!important}.app-shell[data-mode="driver"] .urban-gia-card span{color:var(--driver-muted)!important}.app-shell[data-mode="driver"] .urban-gia-orb{background:var(--driver-ink)!important;color:#fff!important}
.urban-rain-card{width:100%;display:grid;grid-template-columns:38px 1fr 20px;align-items:center;gap:10px;border:1px solid #f2dfad;background:#fff9e9;color:var(--driver-ink);border-radius:15px;padding:12px 13px;text-align:left}.urban-rain-card>i{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#ffedbf;color:#9d6800}.urban-rain-card>i .ui-icon{width:19px;height:19px}.urban-rain-card span{display:grid;gap:2px}.urban-rain-card b{font-size:11px}.urban-rain-card small{font-size:9px;color:#836d3a}.urban-rain-card>.ui-icon{width:17px;height:17px;color:#a58b50}
.app-shell[data-mode="driver"] .urban-metrics button{background:#fff!important;border:1px solid var(--driver-line)!important;color:var(--driver-ink)!important;box-shadow:none!important}.app-shell[data-mode="driver"] .section-title h2{color:var(--driver-ink)!important}.app-shell[data-mode="driver"] .section-title button{color:var(--driver-red)!important}
.app-shell[data-mode="driver"] .bottom-nav{grid-template-columns:repeat(4,1fr)!important;height:78px;background:rgba(255,255,255,.96)!important;border-top:1px solid var(--driver-line)!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom));backdrop-filter:blur(16px)}.app-shell[data-mode="driver"] .bottom-nav .nav-btn{color:#92938f!important;min-height:52px}.app-shell[data-mode="driver"] .bottom-nav .nav-btn.active{color:var(--driver-red)!important}.app-shell[data-mode="driver"] .bottom-nav .ui-icon{width:22px;height:22px}
.driver-gia-fab{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(88px + env(safe-area-inset-bottom));z-index:1160;width:56px;height:56px;border:4px solid var(--driver-bg);border-radius:18px;background:var(--driver-ink);color:#fff;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.22)}.driver-gia-fab .ui-icon{width:23px;height:23px}.driver-gia-fab span{position:absolute;bottom:58px;background:var(--driver-ink);padding:5px 8px;border-radius:7px;font-size:9px;font-weight:900;opacity:0;pointer-events:none}.driver-gia-fab:focus-visible span{opacity:1}
.app-shell[data-mode="driver"] .driver-delivery-stats .stat{padding:12px 7px!important}.driver-delivery-stats .icon{display:grid;place-items:center}.driver-delivery-stats .icon .ui-icon{width:20px;height:20px}.driver-delivery-stats .pending .icon{color:var(--driver-yellow)}.driver-delivery-stats .active .icon{color:var(--driver-red)}.driver-delivery-stats .done .icon{color:var(--driver-green)}.driver-delivery-stats .total .icon{color:var(--driver-blue)}
.app-shell[data-mode="driver"] .giro-pay{display:grid;gap:12px}.app-shell[data-mode="driver"] .pay-balance{position:relative;overflow:hidden;display:grid;gap:7px;padding:22px;background:linear-gradient(135deg,#171816,#292a2c)!important;color:#fff!important}.pay-balance>.ui-icon{width:29px;height:29px;color:#f2c346}.pay-balance>small{color:#c9cac6!important;font-weight:900;letter-spacing:.7px}.pay-balance>b{font-size:34px}.pay-watermark{position:absolute;right:15px;bottom:-30px;font-size:120px;font-weight:1000;color:#ffffff0b}.giro-pay .period{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.giro-pay .period button{min-height:42px;border:1px solid var(--driver-line);border-radius:12px;background:#fff;color:var(--driver-muted);font-weight:900}.giro-pay .period button.active{background:var(--driver-ink);color:#fff;border-color:var(--driver-ink)}.earn-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.earn-grid .mini-stat{min-width:0;background:#fff;border:1px solid var(--driver-line);border-radius:15px;padding:13px;display:grid;gap:5px}.earn-grid .mini-stat small{font-size:9px;color:var(--driver-muted);font-weight:900}.earn-grid .mini-stat b{font-size:16px;overflow-wrap:anywhere}.pay-movements{padding:10px 14px!important}.pay-movements>div:not(.empty-state){display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid var(--driver-line)}.pay-movements>div:last-child{border-bottom:0}.pay-movements i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e7f5ed;color:var(--driver-green);font-style:normal}.pay-movements span b,.pay-movements span small{display:block}.pay-movements span small{color:var(--driver-muted);font-size:9px}.pay-movements strong{color:var(--driver-green);font-size:12px}.giro-pay .empty-state{min-height:120px;display:grid;place-items:center;text-align:center;align-content:center;gap:6px;color:var(--driver-ink)}.giro-pay .empty-state small{color:var(--driver-muted)}
.driver-profile{display:grid;gap:12px}.driver-profile-hero{display:grid;grid-template-columns:66px 1fr;align-items:center;gap:14px;padding:17px!important}.driver-avatar{width:64px;height:64px;border-radius:20px;background:linear-gradient(145deg,var(--driver-red),#9f1713);color:#fff;display:grid;place-items:center;font-size:21px;font-weight:1000}.driver-profile-hero h2{margin:0 0 3px}.driver-profile-hero p{margin:0;color:var(--driver-muted)}.driver-profile-hero span{display:flex;align-items:center;gap:4px;margin-top:7px;font-size:11px;font-weight:900}.driver-profile-hero span .ui-icon{width:14px;height:14px;color:var(--driver-yellow)}.driver-profile-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.driver-profile-summary button{min-width:0;border:1px solid var(--driver-line);background:#fff;border-radius:14px;padding:12px 5px;color:var(--driver-ink)}.driver-profile-summary b,.driver-profile-summary small{display:block;overflow:hidden;text-overflow:ellipsis}.driver-profile-summary b{font-size:14px}.driver-profile-summary small{font-size:9px;color:var(--driver-muted);margin-top:4px}.driver-profile-menu{padding:2px 14px!important}.driver-profile-row{width:100%;display:grid;grid-template-columns:38px 1fr 20px;align-items:center;gap:10px;border:0;border-bottom:1px solid var(--driver-line);background:transparent;color:var(--driver-ink);padding:13px 0;text-align:left}.driver-profile-row:last-child{border-bottom:0}.driver-profile-row>i{width:36px;height:36px;border-radius:11px;background:#f3f3f0;color:var(--driver-red);display:grid;place-items:center}.driver-profile-row>i .ui-icon{width:18px;height:18px}.driver-profile-row>span b,.driver-profile-row>span small{display:block}.driver-profile-row>span small{color:var(--driver-muted);font-size:10px;margin-top:2px}.driver-profile-row>.ui-icon{width:17px;height:17px;color:#a5a6a1}.driver-test-shortcut,.driver-logout,.driver-reset{width:100%;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:900}.driver-test-shortcut{min-height:46px;border:1px dashed #b9bab6;background:#fff;color:var(--driver-muted)}.driver-logout{margin:0!important}.driver-logout .ui-icon,.driver-test-shortcut .ui-icon{width:18px;height:18px}.driver-reset{min-height:42px;border:0;background:transparent;color:var(--driver-muted);font-size:10px}
.app-shell[data-mode="driver"] button{touch-action:manipulation}.app-shell[data-mode="driver"] button:focus-visible{outline:3px solid #3678cf;outline-offset:2px}.app-shell[data-mode="driver"] .primary,.app-shell[data-mode="driver"] .secondary,.app-shell[data-mode="driver"] .danger,.app-shell[data-mode="driver"] .success{min-height:48px}
@media(max-width:360px){.driver-page-title{display:none}.app-shell[data-mode="driver"] .driver-appbar{grid-template-columns:1fr auto}.driver-availability span{max-width:82px;overflow:hidden;text-overflow:ellipsis}.app-shell[data-mode="driver"] .content{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.app-shell[data-mode="driver"] *{animation-duration:.01ms!important;transition-duration:.01ms!important}}
