
:root{
  --bg:#eef2f7;--surface:rgba(255,255,255,.84);--surface-solid:#fff;
  --text:#111827;--muted:#6b7280;--line:rgba(17,24,39,.08);
  --hero1:#0f2032;--hero2:#22386f;--accent:#2f80ed;--accent2:#41d9d8;
  --success:#15966a;--danger:#dc4c64;--warning:#d99100;
  --shadow:0 18px 50px rgba(34,53,84,.10);--shadow-soft:0 10px 30px rgba(34,53,84,.07);
  --glass:rgba(255,255,255,.72);--nav:rgba(255,255,255,.90);--input:#f7f9fc;
}
body.dark{
  --bg:#08111d;--surface:rgba(14,27,43,.84);--surface-solid:#0f1d2c;
  --text:#f6f8fb;--muted:#94a3b8;--line:rgba(255,255,255,.08);
  --hero1:#091827;--hero2:#1b285b;--accent:#5aa2ff;--accent2:#47e0df;
  --success:#4bd1a0;--danger:#ff7890;--warning:#f2bc58;
  --shadow:0 18px 50px rgba(0,0,0,.30);--shadow-soft:0 10px 30px rgba(0,0,0,.22);
  --glass:rgba(13,27,43,.74);--nav:rgba(8,17,29,.88);--input:#0d1a29;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Inter,sans-serif}
body{
  background:
    radial-gradient(circle at 15% -8%,rgba(65,217,216,.10),transparent 30%),
    radial-gradient(circle at 96% 0%,rgba(47,128,237,.13),transparent 28%),
    var(--bg);
  color:var(--text);transition:background .25s,color .25s;
}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.ui-icon,.mini-icon{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ui-icon{width:24px;height:24px}.mini-icon{width:16px;height:16px}
.screen{display:none;min-height:100vh;padding:18px 16px 108px;max-width:560px;margin:auto;position:relative}
.screen.active{display:block;animation:screenIn .28s ease both}
.center-screen.active{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.boot-orb{position:absolute;width:300px;height:300px;border-radius:50%;background:rgba(65,217,216,.18);filter:blur(80px);animation:float 4s ease-in-out infinite}
.boot-logo,.auth-logo{
  width:118px;height:118px;object-fit:contain;display:block;margin:0 auto;
  filter:drop-shadow(0 16px 30px rgba(47,128,237,.16))
}
#bootScreen h1{letter-spacing:.18em;margin:7px 0 4px}
#bootScreen p{color:var(--muted)}
.loader{width:150px;height:6px;border-radius:99px;background:rgba(120,130,150,.15);overflow:hidden;margin-top:22px}
.loader span{display:block;width:45%;height:100%;background:linear-gradient(90deg,var(--accent2),var(--accent));animation:loading 1.2s infinite}
.eyebrow,.mini-label{display:block;color:var(--accent);font-size:10px;letter-spacing:.15em;font-weight:850}
.auth-screen{padding-top:24px}
.auth-shell{display:grid;gap:16px}
.auth-hero{text-align:center;padding:8px 8px 0}
.auth-hero h1{font-size:34px;line-height:1.08;letter-spacing:-.04em;margin:12px auto;max-width:480px}
.auth-hero p{max-width:470px;margin:0 auto;color:var(--muted);line-height:1.6;font-size:13px}
.account-type-panel,.auth-card,.message-card,.content-card,.profile-card,.menu-card{
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);
  backdrop-filter:saturate(150%) blur(20px);border-radius:26px;
}
.account-type-panel{padding:16px}
.panel-kicker{display:block;font-size:10px;letter-spacing:.14em;color:var(--accent);font-weight:850;margin-bottom:11px}
.account-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.account-type-card{
  min-height:136px;padding:15px;border-radius:19px;border:1px solid var(--line);
  background:rgba(127,138,155,.05);color:var(--text);text-align:left;
  display:grid;gap:7px;transition:.2s;
}
.account-type-card:hover{transform:translateY(-2px)}
.account-type-card.active{background:linear-gradient(145deg,rgba(65,217,216,.14),rgba(47,128,237,.13));border-color:rgba(47,128,237,.24);box-shadow:0 12px 28px rgba(47,128,237,.11)}
.account-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(65,217,216,.16),rgba(47,128,237,.14));color:var(--accent)}
.account-type-card strong{font-size:15px}.account-type-card small{color:var(--muted);line-height:1.4}
.account-note,.privacy-note{
  margin-top:11px;padding:12px 13px;border-radius:14px;
  background:rgba(47,128,237,.07);color:var(--accent);font-size:11px;line-height:1.5;
  border:1px solid rgba(47,128,237,.08)
}
.auth-card{padding:18px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px;padding:4px;border-radius:15px;background:rgba(127,138,155,.08)}
.auth-tab,.tab{border:0;border-radius:12px;padding:11px;background:transparent;color:var(--muted);font-weight:800}
.auth-tab.active,.tab.active{background:var(--surface-solid);color:var(--text);box-shadow:var(--shadow-soft)}
.auth-form{display:none}.auth-form.active{display:grid;gap:13px;animation:screenIn .25s ease}
.form-title{display:grid;gap:4px}.form-title strong{font-size:18px}.form-title span{font-size:11px;color:var(--muted)}
.auth-form label,.field{display:grid;gap:7px;text-align:left;color:var(--muted);font-size:11px;font-weight:750}
.auth-form input,.auth-form select,.field input,.field select,.field textarea{
  width:100%;padding:14px 15px;border-radius:15px;border:1px solid var(--line);
  background:var(--input);color:var(--text);outline:none;
}
.auth-form input:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(47,128,237,.42);box-shadow:0 0 0 4px rgba(47,128,237,.08)}
.check-row{grid-template-columns:auto 1fr!important;align-items:flex-start}.check-row input{width:auto!important;margin-top:3px}
.primary-btn,.secondary-btn{border-radius:16px;padding:14px 16px;font-weight:850}
.primary-btn{border:0;background:linear-gradient(135deg,var(--accent),#6679f5);color:#fff;box-shadow:0 14px 30px rgba(47,128,237,.22)}
.secondary-btn{background:var(--surface);color:var(--text);border:1px solid var(--line)}
.text-btn{border:0;background:none;color:var(--accent);padding:8px;font-weight:760}.text-btn.strong{font-weight:850}
.business-preview{padding:13px;border-radius:16px;background:rgba(47,128,237,.06);border:1px solid var(--line)}.business-preview.hidden{display:none}
.preview-title{font-weight:850;margin-bottom:9px;color:var(--text)}
.preview-step{display:grid;grid-template-columns:25px 1fr;gap:8px;margin:8px 0;color:var(--muted);font-size:11px}
.preview-step b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(47,128,237,.11);color:var(--accent)}
.auth-security-strip{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:10px;padding:2px 0 14px}
.auth-security-strip span{display:flex;align-items:center;gap:5px}
.message-card{max-width:420px;padding:22px}.message-icon{font-size:46px}.message-card h2{font-size:28px;margin:10px 0}.message-card p{color:var(--muted);line-height:1.55;margin-bottom:20px}
.topbar{
  position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:-18px -16px 16px;padding:12px 16px;
  background:var(--glass);backdrop-filter:saturate(160%) blur(20px);border-bottom:1px solid var(--line)
}
.topbar h2{margin:3px 0 0;font-size:24px;letter-spacing:-.03em}
.topbar-spacer{width:42px}
.avatar-btn,.icon-btn,.theme-toggle{
  width:40px;height:40px;border-radius:14px;border:1px solid var(--line);
  background:var(--surface);color:var(--text);font-weight:850;box-shadow:var(--shadow-soft)
}
.topbar-actions{display:flex;align-items:center;gap:8px}
.theme-toggle{display:grid;place-items:center;padding:0}
.theme-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.welcome-card,.identity-card{
  position:relative;overflow:hidden;padding:22px;border-radius:28px;
  background:linear-gradient(145deg,var(--hero1),var(--hero2));color:#fff;
  border:1px solid rgba(255,255,255,.08);box-shadow:0 24px 60px rgba(16,36,66,.24)
}
.welcome-card:after,.identity-card:after{content:"";position:absolute;width:200px;height:200px;border-radius:50%;right:-70px;top:-80px;background:radial-gradient(circle,rgba(65,217,216,.25),transparent 70%)}
.welcome-card>*{position:relative;z-index:1}.welcome-card h3{font-size:25px;letter-spacing:-.03em;margin:8px 0}.welcome-card p{margin:0;color:rgba(255,255,255,.70);line-height:1.5;max-width:76%;font-size:12px}
.live-badge{position:absolute;right:15px;top:15px;padding:8px 10px;border-radius:99px;background:rgba(255,255,255,.10);color:#fff;font-size:10px;font-weight:850}
.live-badge i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#57e3ac;margin-right:5px;animation:pulse 1.7s infinite}
.stats-grid,.detail-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}
.stats-grid>div,.detail-stats>div{padding:14px 11px;border-radius:19px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.stats-grid span,.detail-stats span{display:block;color:var(--muted);font-size:10px;line-height:1.3}
.stats-grid strong,.detail-stats strong{display:block;font-size:21px;margin-top:6px;letter-spacing:-.03em}
.toolbar{display:grid;grid-template-columns:1fr auto;gap:9px}
.search-box{height:48px;display:flex;align-items:center;gap:9px;padding:0 14px;border-radius:16px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft);color:var(--muted)}
.search-box input{width:100%;border:0;background:none;color:var(--text);outline:none}.search-box input::placeholder{color:var(--muted)}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin:22px 2px 12px}.section-head h3{margin:3px 0 0;font-size:19px;letter-spacing:-.02em}
.product-list{display:grid;gap:11px}
.product-card,.service-request-card{
  width:100%;padding:14px;border-radius:22px;background:var(--surface);border:1px solid var(--line);
  box-shadow:var(--shadow-soft);text-align:left;color:var(--text)
}
.product-card{display:grid;grid-template-columns:60px 1fr auto;gap:12px;align-items:center}
.product-thumb,.product-image{
  width:60px;height:60px;border-radius:18px;display:grid;place-items:center;overflow:hidden;
  background:linear-gradient(145deg,rgba(65,217,216,.15),rgba(47,128,237,.14));color:var(--accent)
}
.product-thumb svg,.product-image svg{width:27px;height:27px}
.product-thumb img,.product-image img{width:100%;height:100%;object-fit:cover}
.product-card h4{margin:0 0 5px;font-size:15px}.product-card p{margin:0;color:var(--muted);font-size:11px}.product-card .arrow{font-size:24px;color:var(--muted)}
.badge,.verified-badge,.role-badge,.status-pill{
  display:inline-flex;margin-top:7px;padding:6px 9px;border-radius:99px;color:var(--success);
  background:rgba(21,150,106,.10);font-size:9px;font-weight:850;letter-spacing:.03em;border:0
}
.empty-state{text-align:center;padding:26px;border-radius:21px;background:var(--surface);border:1px solid var(--line);color:var(--muted)}
.bottom-nav{
  position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(560px,100%);
  display:grid;grid-template-columns:repeat(4,1fr);padding:8px 8px calc(9px + env(safe-area-inset-bottom));
  background:var(--nav);border-top:1px solid var(--line);backdrop-filter:saturate(160%) blur(20px);z-index:30
}
.nav-item{border:0;background:none;color:var(--muted);padding:7px 4px}.nav-item span{display:grid;place-items:center;font-size:20px;height:22px}.nav-item em{display:block;font-style:normal;font-size:9px;font-weight:760;margin-top:4px}.nav-item.active{color:var(--accent)}
.identity-card{display:flex;gap:14px;align-items:center}.identity-card h3{margin:5px 0 8px;font-size:22px}.identity-id{font-size:10px;letter-spacing:.10em;color:rgba(255,255,255,.64)}
.tabs{display:flex;gap:7px;margin-bottom:12px;overflow:auto}.tabs .tab{flex:1;white-space:nowrap;background:rgba(127,138,155,.07);border:1px solid var(--line)}
.content-card,.profile-card,.menu-card{padding:18px}
.info-row{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.info-row:last-child{border-bottom:0}.info-row span{color:var(--muted)}.info-row strong{text-align:right}
.document-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.document-card{padding:13px;border-radius:17px;background:rgba(127,138,155,.06);border:1px solid var(--line);color:var(--text)}.document-card img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:13px}.document-card span{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.timeline{padding-left:7px}.timeline-item{padding:0 0 16px 21px;border-left:2px solid rgba(47,128,237,.18);position:relative}.timeline-item:before{content:"";position:absolute;width:9px;height:9px;border-radius:50%;left:-5.5px;top:4px;background:var(--accent);box-shadow:0 0 0 5px rgba(47,128,237,.10)}.timeline-item h4{margin:0 0 4px}.timeline-item p{margin:0;color:var(--muted);font-size:11px}
.profile-card{text-align:center}.profile-avatar{width:78px;height:78px;margin:auto;border-radius:24px;display:grid;place-items:center;background:linear-gradient(145deg,var(--accent2),var(--accent));color:#fff;font-size:25px;font-weight:900}.profile-card h3{font-size:22px;margin:12px 0 4px}.profile-card p{color:var(--muted);margin:0}
.menu-card{margin-top:13px}.menu-card button{width:100%;display:flex;justify-content:space-between;padding:16px 2px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--text)}.menu-card button:last-child{border-bottom:0}.menu-card em{font-style:normal;color:var(--muted)}
.modal{position:fixed;inset:0;background:rgba(3,10,20,.50);backdrop-filter:blur(9px);display:flex;align-items:flex-end;justify-content:center;z-index:50;padding:12px}.modal.hidden{display:none}
.modal-sheet{width:min(560px,100%);max-height:92vh;overflow:auto;padding:20px;border-radius:28px 28px 18px 18px;background:var(--surface-solid);border:1px solid var(--line);box-shadow:0 30px 80px rgba(0,0,0,.34);animation:sheetIn .25s ease}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal-head h3{margin:3px 0 0;font-size:22px}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
.file-drop{display:block;padding:14px;border-radius:16px;border:1px dashed rgba(47,128,237,.30);background:rgba(47,128,237,.05);text-align:center;color:var(--accent);font-weight:800;margin:10px 0}.file-drop input{display:none}.file-preview{display:none;width:100%;max-height:190px;object-fit:cover;border-radius:14px}
.toast{position:fixed;left:50%;bottom:92px;transform:translateX(-50%) translateY(18px);opacity:0;padding:12px 16px;border-radius:14px;background:var(--surface-solid);color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow);transition:.22s;z-index:80;white-space:nowrap}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.identifier-card,.quote-card,.job-summary,.part-ledger{
  padding:13px;border-radius:16px;background:rgba(127,138,155,.06);border:1px solid var(--line);margin-bottom:9px
}
.identifier-card{display:flex;justify-content:space-between;gap:12px;align-items:center}.identifier-card span{display:block;color:var(--muted);font-size:10px}.identifier-card strong{display:block;margin-top:4px;font-size:15px}.identifier-card em{font-style:normal;color:var(--success);font-size:10px}
.service-main-tabs{margin-top:15px}.request-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.service-request-card h4{margin:10px 0 5px;font-size:16px}.service-request-card p{margin:0;color:var(--muted);line-height:1.45;font-size:11px}.quote-count{margin-top:9px;color:var(--accent);font-size:11px;font-weight:800}.quote-card{display:grid;gap:5px}.quote-card span{color:var(--muted);font-size:11px}.job-summary{display:flex;justify-content:space-between;gap:12px}.job-summary span{color:var(--accent);font-weight:800}.part-ledger{display:grid;gap:4px}.part-ledger span{color:var(--muted);font-size:11px}.dual-input{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@keyframes screenIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes sheetIn{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes loading{0%{transform:translateX(-120%)}100%{transform:translateX(360%)}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(87,227,172,.4)}70%{box-shadow:0 0 0 9px rgba(87,227,172,0)}100%{box-shadow:0 0 0 0 rgba(87,227,172,0)}}
@media(max-width:520px){.account-type-grid{grid-template-columns:1fr}.account-type-card{min-height:auto}.auth-hero h1{font-size:30px}}
@media(min-width:720px){body{padding:24px}.screen{border:1px solid var(--line);border-radius:32px}.bottom-nav{bottom:24px;border-radius:0 0 32px 32px}}


/* =========================================================
   POSSYRA v1.1 UI OVERHAUL
   ========================================================= */
.brand-picture{display:block;margin:0 auto}
.theme-logo{transition:opacity .2s ease,filter .2s ease}
body.dark .theme-logo{content:url("possyra-logo-dark.png?v=110")}
body:not(.dark) .theme-logo{content:url("possyra-logo-light.png?v=110")}

.app-header{min-height:76px}
.header-brand{display:flex;align-items:center;gap:11px;min-width:0}
.header-logo-wrap{display:block;width:42px;height:42px;flex:0 0 42px}
.header-logo{width:42px;height:42px;object-fit:contain;display:block}
body.dark .header-logo{content:url("possyra-header-dark.png?v=110")}
body:not(.dark) .header-logo{content:url("possyra-header-light.png?v=110")}
.header-copy{min-width:0}
.header-copy .eyebrow{font-size:9px;letter-spacing:.18em}
.header-copy h2{font-size:22px;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.welcome-card{
  min-height:164px;
  display:flex;align-items:center;
  padding:24px 22px;
}
.welcome-card h3{font-size:26px;line-height:1.12;max-width:300px}
.welcome-card p{max-width:315px}
.live-badge{font-size:9px;letter-spacing:.04em}

.stats-grid{gap:10px}
.stats-grid .stat-card{
  min-height:132px;
  display:flex;flex-direction:column;
  align-items:flex-start;justify-content:flex-start;
  position:relative;overflow:hidden;
}
.stat-icon{
  width:38px;height:38px;border-radius:13px;
  display:grid;place-items:center;
  color:var(--accent);
  background:linear-gradient(145deg,rgba(65,217,216,.14),rgba(47,128,237,.13));
  margin-bottom:11px;
}
.stat-icon .ui-icon{width:20px;height:20px}
.stats-grid .stat-card>span:not(.stat-icon){font-size:10px}
.stats-grid .stat-card strong{font-size:24px;margin-top:5px}
.stats-grid .stat-card small{display:block;color:var(--muted);font-size:8.5px;line-height:1.35;margin-top:4px}

.toolbar{margin-top:14px}
.search-box{height:52px;border-radius:17px}
.search-box .ui-icon{width:18px;height:18px}
.toolbar .icon-btn{height:52px;width:52px;border-radius:17px}

.section-head{margin-top:25px}
.section-head h3{font-size:20px}
.text-btn.strong{
  min-height:38px;padding:9px 12px;
  border-radius:12px;
  background:rgba(47,128,237,.08);
  border:1px solid rgba(47,128,237,.10)
}

.empty-state{
  min-height:230px;
  padding:28px 22px;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:9px;
  text-align:center;
  color:var(--muted);
}
.empty-state .empty-icon{
  width:70px;height:70px;border-radius:23px;
  display:grid;place-items:center;
  background:linear-gradient(145deg,rgba(65,217,216,.14),rgba(47,128,237,.13));
  color:var(--accent);
  margin-bottom:3px;
}
.empty-state .empty-icon .ui-icon{width:32px;height:32px}
.empty-state h4{margin:0;color:var(--text);font-size:17px}
.empty-state p{margin:0;max-width:270px;font-size:11px;line-height:1.55}
.empty-state-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;max-width:320px;margin-top:8px}
.empty-state-actions button{padding:12px;border-radius:14px;font-size:11px;font-weight:800}
.empty-primary{border:0;color:#fff;background:linear-gradient(135deg,var(--accent),#6679f5)}
.empty-secondary{border:1px solid var(--line);background:var(--surface);color:var(--text)}

.bottom-nav{
  grid-template-columns:repeat(4,1fr);
  padding-top:8px;
}
.nav-item span{height:25px}
.nav-item .ui-icon{width:21px;height:21px}
.nav-item.nav-primary span{
  width:42px;height:42px;border-radius:15px;
  background:linear-gradient(135deg,var(--accent),#6679f5);
  color:white;
  box-shadow:0 10px 24px rgba(47,128,237,.26);
  margin-top:-18px;
}
.nav-item.nav-primary em{margin-top:2px}
.nav-item.active:not(.nav-primary) span{
  width:36px;height:30px;border-radius:12px;
  background:rgba(47,128,237,.08)
}

.product-card{
  min-height:94px;
  padding:15px;
}
.product-thumb{width:64px;height:64px;border-radius:20px}
.product-card h4{font-size:16px}
.product-card p{font-size:10.5px}

.content-card,.profile-card,.menu-card,.account-type-panel,.auth-card,.message-card{
  backdrop-filter:saturate(160%) blur(22px);
}

@media(max-width:390px){
  .stats-grid{grid-template-columns:1fr 1fr}
  .stats-grid .stat-card:last-child{grid-column:1/-1;min-height:106px}
  .welcome-card{min-height:150px}
}


/* POSSYRA v1.2 */
.screen{will-change:opacity,transform}
.screen.active{animation:screenFadeStable .18s ease-out both}
@keyframes screenFadeStable{from{opacity:.01;transform:translate3d(0,4px,0)}to{opacity:1;transform:translate3d(0,0,0)}}

.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.stats-grid .stat-card{min-height:150px;align-items:center;justify-content:center;text-align:center;padding:16px 10px}
.stat-icon{width:48px;height:48px;border-radius:16px;margin:0 auto 10px}
.stat-icon .ui-icon{width:24px;height:24px}
.stats-grid .stat-card>span:not(.stat-icon){font-size:10px;text-align:center}
.stats-grid .stat-card strong{font-size:25px;text-align:center}
.stats-grid .stat-card small{font-size:8.5px;text-align:center;max-width:105px}

.bottom-nav{grid-template-columns:repeat(5,1fr);align-items:end;min-height:76px;padding:8px 8px calc(9px + env(safe-area-inset-bottom))}
.nav-item{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;transition:color .18s ease,transform .18s ease}
.nav-item span{width:34px;height:34px;display:grid;place-items:center;border-radius:12px;transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease}
.nav-item em{font-size:8.5px}
.nav-item.active:not(.nav-primary) span{width:38px;height:38px;transform:scale(1.08);color:var(--accent);background:rgba(47,128,237,.10)}
.nav-item.nav-primary{position:relative;top:-12px}
.nav-item.nav-primary span{width:54px;height:54px;margin:0;border-radius:18px;background:linear-gradient(135deg,var(--accent),#6679f5);color:#fff;box-shadow:0 14px 30px rgba(47,128,237,.30)}
.nav-item.nav-primary.active span{transform:scale(1.08);box-shadow:0 17px 34px rgba(47,128,237,.38)}
.nav-item.nav-primary em{margin-top:1px;color:var(--accent);font-weight:850}

.identifier-guidance{padding:12px 13px;border-radius:15px;background:rgba(47,128,237,.07);border:1px solid rgba(47,128,237,.10);color:var(--muted);font-size:11px;line-height:1.5;margin-bottom:12px}
.identifier-guidance strong{color:var(--text)}
.identifier-group{display:grid;gap:11px}
.identifier-group.hidden{display:none}
.field-help{margin-top:-2px;font-size:9.5px;color:var(--muted);line-height:1.4}
.required-mark{color:var(--danger);font-weight:900}
.input-error{border-color:rgba(220,76,100,.6)!important;box-shadow:0 0 0 4px rgba(220,76,100,.08)!important}
.form-error{display:none;padding:10px 12px;border-radius:13px;background:rgba(220,76,100,.08);color:var(--danger);font-size:10.5px;line-height:1.45}
.form-error.show{display:block}

@media(max-width:390px){
  .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .stats-grid .stat-card:last-child{grid-column:auto;min-height:150px}
  .stats-grid .stat-card{padding:13px 7px}
  .stat-icon{width:44px;height:44px}
  .bottom-nav{padding-left:4px;padding-right:4px}
  .nav-item em{font-size:7.8px}
}


/* POSSYRA v1.3 */
.dashboard-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.dashboard-action{
  min-height:92px;padding:14px;border-radius:20px;border:1px solid var(--line);
  background:var(--surface);color:var(--text);box-shadow:var(--shadow-soft);
  display:flex;align-items:center;gap:12px;text-align:left
}
.dashboard-action>.ui-icon{width:27px;height:27px;color:var(--accent);flex:0 0 auto}
.dashboard-action span{display:grid;gap:4px}
.dashboard-action strong{font-size:13px}.dashboard-action small{color:var(--muted);font-size:9.5px;line-height:1.35}
.dashboard-action.primary-action{background:linear-gradient(145deg,rgba(65,217,216,.12),rgba(47,128,237,.12));border-color:rgba(47,128,237,.14)}
.products-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:14px}
.products-overview>div{padding:14px 10px;border-radius:18px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft);text-align:center}
.products-overview strong{display:block;font-size:22px}.products-overview span{display:block;color:var(--muted);font-size:9px;margin-top:4px}
.product-filter-row{display:flex;gap:7px;overflow:auto;margin:13px 0 2px;padding-bottom:3px}
.product-filter{white-space:nowrap;padding:9px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:10px;font-weight:800}
.product-filter.active{background:var(--text);color:var(--surface-solid)}
.add-icon-btn{color:var(--accent)}
.permanent-history-badge{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:rgba(47,128,237,.09);color:var(--accent);font-size:9px;font-weight:850;margin-top:7px}
.service-lock-note{padding:13px;border-radius:16px;background:rgba(47,128,237,.07);border:1px solid rgba(47,128,237,.10);color:var(--muted);font-size:11px;line-height:1.5;margin-bottom:12px}
.service-lock-note strong{color:var(--text)}
.danger-btn{width:100%;padding:13px;border-radius:15px;border:1px solid rgba(220,76,100,.22);background:rgba(220,76,100,.07);color:var(--danger);font-weight:850}
.danger-btn:disabled{opacity:.5;cursor:not-allowed}
.public-history-card{padding:14px;border-radius:18px;background:var(--surface);border:1px solid var(--line);margin-top:10px}
.public-history-card h4{margin:0 0 5px}.public-history-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}

/* POSSYRA v1.4 */
.trust-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.trust-card{padding:14px;border-radius:18px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.trust-card strong{display:block;font-size:13px}.trust-card span{display:block;color:var(--muted);font-size:10px;line-height:1.45;margin-top:5px}
.transfer-card,.report-card,.dispute-card{padding:14px;border-radius:18px;background:rgba(127,138,155,.06);border:1px solid var(--line);margin-bottom:10px}
.transfer-card h4,.report-card h4,.dispute-card h4{margin:0 0 5px}
.transfer-card p,.report-card p,.dispute-card p{margin:0;color:var(--muted);font-size:10.5px;line-height:1.5}
.transfer-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}
.transfer-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em;font-size:18px;font-weight:900;text-align:center;padding:14px;border-radius:15px;background:rgba(47,128,237,.08);color:var(--accent);margin:12px 0}
.status-chip{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:9px;font-weight:850;margin-bottom:8px;background:rgba(47,128,237,.08);color:var(--accent)}
.status-chip.warning{background:rgba(217,145,0,.10);color:var(--warning)}
.status-chip.danger{background:rgba(220,76,100,.10);color:var(--danger)}
.qr-wrap{display:grid;place-items:center;padding:16px;border-radius:20px;background:#fff;margin:12px 0}
.qr-wrap canvas{max-width:220px;width:100%;height:auto}
.copy-row{display:grid;grid-template-columns:1fr auto;gap:8px}
.copy-row input{min-width:0}
.seal-badge{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:rgba(21,150,106,.10);color:var(--success);font-size:9px;font-weight:850}
.dispute-badge{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:rgba(217,145,0,.10);color:var(--warning);font-size:9px;font-weight:850}
.warning-box{padding:12px 13px;border-radius:15px;background:rgba(217,145,0,.08);border:1px solid rgba(217,145,0,.12);color:var(--muted);font-size:10.5px;line-height:1.5}
.warning-box strong{color:var(--text)}


/* POSSYRA v2.2.4 — kayıt e-posta güvenliği */
.email-feedback{min-height:18px;margin-top:6px;font-size:10px;line-height:1.45;color:var(--muted)}
.email-feedback.checking{color:var(--accent)}
.email-feedback.valid{color:#0f9f70}
.email-feedback.invalid{color:var(--danger)}
.email-suggestion{display:inline-flex;width:max-content;margin-top:4px;padding:7px 10px;border-radius:10px;border:1px solid rgba(47,128,237,.18);background:rgba(47,128,237,.08);color:var(--accent);font-size:10px;font-weight:850}
.email-suggestion[hidden]{display:none!important}
.auth-form label.email-invalid input,#registerEmail.email-invalid{border-color:rgba(220,76,100,.62);box-shadow:0 0 0 4px rgba(220,76,100,.08)}
#registerEmail.email-valid{border-color:rgba(15,159,112,.45);box-shadow:0 0 0 4px rgba(15,159,112,.07)}
.verification-actions{display:grid;gap:9px;margin-top:12px;width:100%}
.message-card .verification-actions button{width:100%}
