:root{--drawer-width:min(86vw,340px)}
html,body{overflow-x:hidden;max-width:100%;width:100%}
body.drawer-open{overflow:hidden;touch-action:none}

/* Finans içeriği PIN doğrulanmadan hiçbir karede görünmez. Fail-closed: JS gecikse/bozulsa bile sadece giriş ekranı görünür. */
body:not(.auth-unlocked) .wrap,
body:not(.auth-unlocked) .nav,
body:not(.auth-unlocked) .drawer-toggle,
body:not(.auth-unlocked) .drawer-backdrop,
body:not(.auth-unlocked) .modal{display:none!important}
body:not(.auth-unlocked) #login{display:flex!important}
body.auth-unlocked #login{display:none!important}

.wrap{padding-bottom:calc(28px + env(safe-area-inset-bottom));max-width:760px;overflow-x:hidden}
.page-head{padding-left:56px}

.drawer-toggle{position:fixed;top:calc(10px + env(safe-area-inset-top));left:14px;z-index:24;width:44px;height:44px;border:1px solid #eadfca;border-radius:15px;background:rgba(255,255,255,.94);box-shadow:0 6px 18px rgba(33,28,18,.08);display:grid;place-items:center;color:#9f6f13;padding:0;backdrop-filter:blur(14px)}
.drawer-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.drawer-toggle:active{transform:translateY(1px)}
.drawer-backdrop{position:fixed;inset:0;background:rgba(13,18,28,.32);backdrop-filter:blur(2px);z-index:28;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}.drawer-backdrop.open{opacity:1;visibility:visible}

.nav{position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:auto!important;width:var(--drawer-width)!important;min-width:var(--drawer-width)!important;max-width:340px!important;z-index:30!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;gap:8px!important;padding:calc(16px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom))!important;background:linear-gradient(180deg,#fffdf8 0%,#fff 54%,#faf7ef 100%)!important;border-top:0!important;border-right:1px solid #e9dfca!important;box-shadow:18px 0 44px rgba(25,22,16,.13)!important;transform:translate3d(calc(-1 * var(--drawer-width) - 24px),0,0);transition:transform .24s cubic-bezier(.2,.7,.2,1);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;backdrop-filter:none!important;will-change:transform;contain:layout paint}
.nav.open{transform:translate3d(0,0,0)}

.drawer-head{display:grid;grid-template-columns:50px 1fr 38px;gap:11px;align-items:center;margin-bottom:20px;padding:4px 2px 16px;border-bottom:1px solid #eee7db;flex:0 0 auto}.drawer-logo{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,#fff5d9,#e6be5c);border:1px solid #e6c675;color:#98670c;font-size:23px;font-weight:850;box-shadow:0 8px 18px rgba(178,127,27,.14)}.drawer-title{font-size:18px;font-weight:820;letter-spacing:-.03em;color:#111827}.drawer-subtitle{margin-top:2px;color:#8c7d64;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.drawer-close{width:36px;height:36px;border:0;border-radius:12px;background:#f4f1e9;color:#6f685c;font-size:22px;line-height:1;display:grid;place-items:center;padding:0}

.nav button[data-tab]{width:100%!important;min-height:54px!important;flex:0 0 auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:14px!important;padding:0 15px!important;border:1px solid transparent!important;border-radius:16px!important;background:transparent!important;color:#707887!important;font-size:15px!important;font-weight:760!important;text-align:left!important;box-shadow:none!important}.nav button[data-tab] svg{width:23px!important;height:23px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.8!important;flex:0 0 auto}.nav button[data-tab] span{display:block!important;font-size:15px!important;line-height:1!important}.nav button[data-tab].active{background:linear-gradient(145deg,#fff5d9,#f7e8bc)!important;color:#9f6f13!important;border-color:#ecd79f!important;box-shadow:0 5px 15px rgba(177,127,27,.08)!important}.nav button[data-tab].active::after{content:"";margin-left:auto;width:7px;height:7px;border-radius:50%;background:#c9952e;box-shadow:0 0 0 4px rgba(201,149,46,.11)}

@media(min-width:760px){:root{--drawer-width:340px}.drawer-toggle{left:max(18px,calc((100vw - 760px)/2 - 58px))}}
@media(max-width:390px){:root{--drawer-width:min(88vw,330px)}.page-head{padding-left:52px}.drawer-toggle{left:10px;width:42px;height:42px}}
