/* ENOT STUDIO v8 — unified player-facing design system. Loaded last. */
:root{
 --bg-0:#090e19;--bg-1:#101827;--bg-2:#151f31;--bg-3:#1c2a40;--bg-4:#26344c;
 --text-1:#f5f8ff;--text-2:#c3cee1;--text-3:#8f9fb8;--text-4:#7184a3;
 --border:rgba(164,190,224,.14);--border-strong:rgba(164,190,224,.26);--border-accent:rgba(102,225,198,.49);
 --accent:#69e4c7;--accent-hover:#8bf7dc;--accent-soft:rgba(105,228,199,.13);--accent-line:rgba(105,228,199,.32);--accent-glow:rgba(105,228,199,.22);
 --cyan:#76b9ff;--cyan-soft:rgba(118,185,255,.13);--cyan-line:rgba(118,185,255,.3);
 --success:#69e4c7;--success-soft:rgba(105,228,199,.12);--success-line:rgba(105,228,199,.3);
 --warning:#f5be72;--warning-soft:rgba(245,190,114,.12);--warning-line:rgba(245,190,114,.3);
 --danger:#ff8095;--danger-soft:rgba(255,128,149,.12);--danger-line:rgba(255,128,149,.34);
 --info:#76b9ff;--info-soft:rgba(118,185,255,.12);--info-line:rgba(118,185,255,.3);
 --shadow-sm:0 6px 16px rgba(0,0,0,.16);--shadow-md:0 16px 40px rgba(2,8,19,.22);--shadow-lg:0 28px 65px rgba(0,0,0,.37);
 --shadow-accent:0 12px 30px -12px rgba(105,228,199,.5);
 --r-xs:9px;--r-sm:12px;--r-md:15px;--r-lg:19px;--r-xl:25px;
 --fs-xs:11px;--fs-sm:12px;--fs-md:13px;--fs-base:14px;--fs-lg:16px;--fs-xl:20px;--fs-2xl:26px;--fs-3xl:36px;
 --sidebar-w:258px;--grad-main:linear-gradient(120deg,#70efce,#64baf8);--grad-soft:linear-gradient(135deg,rgba(105,228,199,.15),rgba(118,185,255,.075));
 color-scheme:dark;
}
*,*:before,*:after{box-sizing:border-box}
html{background:#090e19;scroll-behavior:smooth}
body{
 color:var(--text-1);font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;
 font-size:14px;line-height:1.58;letter-spacing:-.005em;overflow-x:hidden;
 background:radial-gradient(980px 640px at 5% -12%,rgba(45,104,135,.24),transparent 67%),
 radial-gradient(980px 680px at 105% -6%,rgba(23,86,87,.22),transparent 65%),
 linear-gradient(180deg,#0a111e,#0d1422 52%,#0a101c);background-attachment:fixed;
 -webkit-font-smoothing:antialiased;
}
::selection{background:rgba(105,228,199,.3);color:#fff}
:where(.main,.content,.card,.market-grid,.product-card,.profile-card,.pf-card,.pet-card,.shop-card,.ds-panel){min-width:0}
:where(h1,h2,h3,h4){letter-spacing:-.036em}
:where(p,li){overflow-wrap:break-word}
:where(.muted,.text-muted,.subtle){color:var(--text-3)}
a{transition:color .16s ease}
a:hover{color:var(--accent-hover)}
/* Navigation: clean vertical rail with generous spacing */
.sidebar{width:var(--sidebar-w);background:linear-gradient(180deg,rgba(17,28,43,.98),rgba(10,18,30,.99));border-right:1px solid rgba(161,193,218,.13);padding:23px 13px;box-shadow:15px 0 40px rgba(0,0,0,.1)}
.sidebar .logo{margin:0 6px 22px;padding:8px 10px 21px;border-bottom:1px solid var(--border);gap:12px}
.sidebar .logo-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:15px;background:linear-gradient(135deg,#25493f,#173c59);border:1px solid rgba(136,255,222,.3);font-size:24px;box-shadow:0 12px 32px rgba(21,126,118,.16)}
.sidebar .logo-text{font-size:24px;font-weight:850;letter-spacing:-.07em;color:#f4fff9}
.sidebar .logo-dot{color:var(--accent)}
.sidebar .nav-group{margin:0 0 14px}
.sidebar .nav-group-title{font-size:10px;letter-spacing:.15em;font-weight:800;text-transform:uppercase;color:#798ba5;padding:13px 14px 8px}
.sidebar .nav-item{border:1px solid transparent;border-radius:12px;margin:2px 0;padding:10px 13px;color:#afbed3;font-size:13px;font-weight:650;gap:12px;min-height:42px}
.sidebar .nav-item .nav-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;background:rgba(133,163,191,.075);border-radius:10px;font-size:16px}
.sidebar .nav-item:hover{background:rgba(255,255,255,.052);color:white;transform:translateX(2px)}
.sidebar .nav-item.active{background:linear-gradient(105deg,rgba(105,228,199,.16),rgba(118,185,255,.065));border-color:rgba(105,228,199,.24);color:#dcfff5;box-shadow:inset 3px 0 0 var(--accent)}
.sidebar .nav-item.active:before{display:none}
.sidebar .nav-item.active .nav-icon{background:rgba(105,228,199,.18)}
.sidebar-user,.sidebar-guest{border:1px solid rgba(105,228,199,.18);border-radius:18px;background:linear-gradient(150deg,rgba(105,228,199,.09),rgba(118,185,255,.045));padding:15px}
.s-user-name{font-size:14px;font-weight:750;color:#fff}.s-user-lvl,.s-bal-label{color:var(--text-3)}
.s-user-balance{background:rgba(0,0,0,.16);border-radius:10px;padding:9px 11px;margin:12px 0}
.s-bal-value{font-size:17px;font-weight:800;color:#9af5dc;font-variant-numeric:tabular-nums}
/* Main shell */
.main{margin-left:var(--sidebar-w);min-width:0}
.topbar{min-height:77px;padding:13px clamp(16px,3vw,42px);background:rgba(13,23,38,.86);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-bottom:1px solid var(--border);box-shadow:0 2px 20px #0002}
.page-title{font-size:17px;font-weight:800;letter-spacing:-.025em;color:#fff}
.topbar-right{gap:8px;min-width:0}
.topbar .pill,.topbar .bx-icon-btn{border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.035);box-shadow:none;color:var(--text-1)}
.topbar .pill{padding:9px 12px;font-size:12px;font-weight:700}
.topbar .pill-acc{background:var(--accent-soft);border-color:var(--accent-line);color:#b6f8e5}
.topbar .bx-icon-btn:hover{background:rgba(105,228,199,.1);border-color:var(--accent-line);transform:translateY(-2px)}
.content{width:100%;max-width:1660px;margin-inline:auto;padding:clamp(18px,2.8vw,38px)!important;min-width:0}
.footer{border-top:1px solid var(--border);background:rgba(10,20,32,.58);color:var(--text-3);padding:18px 28px}
/* Dynamic page introduction rendered for both full and AJAX routes */
.enot-section-hero{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:25px 27px;min-height:138px;margin:0 0 23px;overflow:hidden;border-radius:24px;border:1px solid rgba(141,227,220,.24);background:linear-gradient(115deg,rgba(26,62,65,.86),rgba(24,41,65,.93) 60%,rgba(23,42,62,.85));box-shadow:var(--shadow-md)}
.enot-section-hero:before{content:"";position:absolute;width:430px;height:430px;right:-150px;top:-275px;border:1px solid rgba(183,248,230,.17);border-radius:50%;box-shadow:0 0 0 48px rgba(157,243,218,.025),0 0 0 110px rgba(157,243,218,.02);z-index:-1;pointer-events:none}
.enot-section-hero:after{content:"";position:absolute;inset:0;background:radial-gradient(400px 180px at 0 0,rgba(105,228,199,.12),transparent);pointer-events:none;z-index:-1}
.enot-section-main{display:flex;align-items:center;gap:19px;flex:1;min-width:min(100%,280px)}
.enot-section-symbol{flex:0 0 66px;width:66px;height:66px;border:1px solid rgba(188,250,236,.21);border-radius:19px;background:linear-gradient(145deg,rgba(147,242,219,.17),rgba(118,185,255,.095));display:grid;place-items:center;font-size:30px;box-shadow:0 13px 31px #0002}
.enot-section-overline{font-size:10px;font-weight:850;text-transform:uppercase;color:#89d8c8;letter-spacing:.19em;margin-bottom:5px}
.enot-section-title{font-size:clamp(22px,2.5vw,30px);line-height:1.12;margin:0 0 7px;font-weight:850;color:#f8fffe}
.enot-section-desc{font-size:13px;color:#bdcecf;max-width:690px;margin:0;line-height:1.55}
.enot-section-cta{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.enot-section-cta a{display:inline-flex;align-items:center;gap:7px;color:#d7f9f4;text-decoration:none;font-size:12px;font-weight:750;background:rgba(255,255,255,.07);border:1px solid rgba(180,233,225,.19);border-radius:12px;padding:9px 13px}
.enot-section-cta a:hover{background:rgba(105,228,199,.16);color:white;border-color:var(--accent-line)}
/* Base surfaces */
:where(.card,.ds-panel,.stat,.guest-stat-box,.guest-feature,.guest-top,.pf-card,.pf-stat,.pet-card,.pets-kpi,.shop-card,.item-card,.market-card,.profile-card,.quest-card,.inventory-item,.clan-card,.skill-card){background:linear-gradient(155deg,rgba(26,38,57,.96),rgba(17,27,43,.98));border:1px solid rgba(157,184,212,.15);border-radius:19px;box-shadow:0 8px 25px rgba(0,0,0,.14)}
:where(.card,.ds-panel,.stat,.guest-stat-box,.guest-feature,.pf-card,.pet-card,.shop-card,.item-card,.market-card,.quest-card,.inventory-item){transition:border-color .2s,box-shadow .2s,transform .2s}
:where(.card,.ds-panel,.stat,.guest-feature,.pf-card,.pet-card,.shop-card,.item-card,.market-card,.quest-card,.inventory-item):hover{border-color:rgba(135,227,211,.31);box-shadow:0 16px 36px rgba(0,0,0,.2)}
:where(.card,.ds-panel,.guest-feature,.shop-card,.item-card,.profile-card){overflow-wrap:anywhere}
:where(.card-head h2,.card-head h3,.ds-panel-title,.guest-section-title){color:#f2f8ff;font-weight:790;letter-spacing:-.025em}
:where(.card-head,.ds-panel-head){border-color:var(--border)}
:where(.stat .v,.guest-stat .gs-value,.pf-stat strong){font-weight:830;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:#f8fffd}
:where(.stat .k,.guest-stat .gs-label){color:var(--text-3);font-weight:700}
/* Buttons & inputs */
:where(.btn,button.btn,.product-btn,.guest-btn-big,.guest-btn-ghost){min-height:39px;border-radius:11px;font-weight:750;letter-spacing:-.01em;transition:transform .18s,box-shadow .18s,background .18s,border-color .18s}
:where(.btn-primary,.product-btn-primary,.guest-btn-big){background:linear-gradient(115deg,#63ddbe,#65b9e5);border:1px solid rgba(180,255,235,.36);color:#08262a;box-shadow:0 7px 22px rgba(87,205,185,.18)}
:where(.btn-primary,.product-btn-primary,.guest-btn-big):hover:not(:disabled){background:linear-gradient(115deg,#91f6dc,#8ac8f7);color:#071e25;box-shadow:0 10px 28px rgba(105,228,199,.25);transform:translateY(-2px)}
:where(.btn-ghost,.product-btn-outline,.guest-btn-ghost){background:rgba(255,255,255,.035);border:1px solid var(--border-strong);color:#d9e5f2}
:where(.btn-ghost,.product-btn-outline,.guest-btn-ghost):hover{background:rgba(105,228,199,.095);border-color:var(--accent-line);color:white}
:where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){background:#111c2d;color:#f2f8ff;border:1px solid rgba(165,194,222,.21);border-radius:11px;max-width:100%;min-width:0;padding:10px 12px;box-shadow:none}
:where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea):focus{outline:0;border-color:rgba(105,228,199,.69);box-shadow:0 0 0 3px rgba(105,228,199,.13)}
:where(input,textarea)::placeholder{color:#778ba6}
:where(input[type=checkbox],input[type=radio]){accent-color:#69e4c7}
:where(a,button,input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Shop / market: consistent full-height product tiles */
.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:17px;align-items:stretch}
.market-grid>.product-card,.product-card{position:relative;display:flex;flex-direction:column;min-width:0;width:100%;height:100%;overflow:hidden;border-radius:20px;background:linear-gradient(165deg,#1b2a40,#121f32);border:1px solid rgba(157,184,212,.2);box-shadow:0 8px 27px #0003;will-change:auto}
.market-grid>.product-card:hover,.product-card:hover{transform:translateY(-4px);box-shadow:0 19px 38px #0005;border-color:rgba(105,228,199,.48)}
.market-grid>.product-card .product-image,.product-card .product-image{aspect-ratio:6/5;min-height:150px;max-height:235px;padding:19px;background:radial-gradient(circle at 52% 37%,rgba(105,228,199,.12),transparent 61%),linear-gradient(160deg,#223750,#152237);border-bottom:1px solid var(--border)}
.product-image img{width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%;filter:drop-shadow(0 15px 22px #0007)}
.product-image-emoji{font-size:clamp(52px,5vw,76px)}
.product-info{padding:17px 16px 5px;display:flex;flex-direction:column;gap:4px;min-width:0}
.product-title{font-weight:790;font-size:15px;color:white;line-height:1.33;min-height:unset;margin:0 0 3px}
.product-type{font-size:10px;color:#91a9c4;letter-spacing:.1em}
.product-desc-short{font-size:12px;color:#9fb2c9;background:transparent;border:none;min-height:unset;padding:0;line-height:1.55;margin:4px 0 8px}
.product-badge{background:#20394b;border-color:rgba(167,219,220,.24);color:#eaf9fa;border-radius:9px;padding:5px 8px}
.product-badge.real{background:#d7a864;color:#241703}.product-badge.owned{background:#388e7b}
.product-features{margin:9px 15px 12px;min-height:0;background:rgba(10,19,33,.38);padding:5px 11px;border:1px solid var(--border);border-radius:11px}
.product-features .pf-row{padding:7px 0;font-size:11px;min-width:0;gap:8px}
.product-features .pf-k{color:#9fb2c9;white-space:normal;flex:1;min-width:0}
.product-features .pf-v{white-space:normal;word-break:break-word;color:#edfaff;flex:1}
.product-meta{margin-top:auto;padding:13px 16px 0;gap:10px;align-items:center;flex-wrap:wrap}
.product-price{font-weight:840;font-size:21px;white-space:normal;overflow-wrap:anywhere;color:#f1fffa}
.product-price.real{color:#ffd18e}.product-price-k{color:#819ab5}
.product-stock{border-radius:9px;background:rgba(105,228,199,.12);color:#9bf3dc;border-color:var(--accent-line)}
.product-actions{padding:13px 16px 17px;gap:8px}
.product-btn{min-height:42px;height:auto;padding:9px 11px;font-size:12px;border-radius:11px;white-space:normal;line-height:1.3}
.product-btn-primary{background:var(--grad-main);color:#08272b}
.product-btn-real{background:linear-gradient(120deg,#f8d091,#eaaa68);border-color:#e6b16e;color:#3c2309}
.product-btn-flea{color:#9ef3dc;border-color:var(--accent-line);background:var(--accent-soft)}
/* Generic lists, chips, status, nav inside pages */
:where(.tabs,.tab-nav,.filters,.filter-tabs,.shop-tabs,.market-tabs){gap:7px;max-width:100%;flex-wrap:wrap}
:where(.tab,.tab-btn,.filter-btn,.shop-tab,.market-tab){border-radius:10px;transition:background .15s,border-color .15s}
:where(.tab.active,.tab-btn.active,.filter-btn.active,.shop-tab.active,.market-tab.active){background:var(--accent-soft);border-color:var(--accent-line);color:#b7fae5}
:where(.badge,.chip,.tag){border-radius:9px}
:where(table){border-collapse:separate;border-spacing:0;width:100%}
:where(th,td){border-color:var(--border)}
:where(th){color:var(--text-3);font-size:11px;letter-spacing:.06em}
:where(tr:hover td){background:rgba(105,228,199,.035)}
:where(.progress,.progress-bar,.meter){border-radius:100px;overflow:hidden}
/* Profile / pets dashboard */
:where(.pf-hero,.pf-header,.profile-hero,.pet-hero,.pets-hero){background:linear-gradient(125deg,#254441,#1b3451 65%,#1a2b43);border:1px solid rgba(137,230,217,.26);border-radius:23px;box-shadow:var(--shadow-md);overflow:hidden}
:where(.pf-stats,.pets-stats,.pf-grid,.pets-grid){gap:15px}
:where(.pf-stat,.pets-kpi){padding:16px;background:linear-gradient(145deg,#1c2d40,#132137);border:1px solid var(--border);border-radius:16px}
:where(.pf-stat,.pets-kpi) :where(strong,.v,.value){font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#f5fffd}
:where(.pet-hero-img,.pf-avatar,.profile-avatar){border-color:rgba(105,228,199,.32)}
:where(.pets-panel,.pet-stat,.pet-action,.pf-panel,.pf-pet-tile){border-radius:17px;border-color:var(--border)}
:where(.pets-panel,.pf-panel){background:linear-gradient(155deg,#1b2a3d,#131f32)}
/* Guest landing */
.guest-wrap{gap:22px}.guest-hero{border:1px solid rgba(105,228,199,.24);border-radius:27px;background:linear-gradient(125deg,#1d3a3b,#1b2b49 62%,#152b39);box-shadow:0 26px 70px #0005;min-height:410px;overflow:hidden}
.guest-hero-bg{background:radial-gradient(650px 450px at 90% 45%,rgba(105,228,199,.12),transparent 68%),radial-gradient(590px 360px at 0 0,rgba(102,185,242,.13),transparent)}
.guest-title{font-size:clamp(32px,4.8vw,57px);font-weight:850;line-height:1.07;letter-spacing:-.065em}
.guest-title .accent{color:#8cf4d9;background:none;-webkit-text-fill-color:initial}
.guest-subtitle{font-size:15px;color:#c7dadd;line-height:1.75;max-width:610px}
.guest-btn-big{font-size:14px;padding:13px 22px}
.guest-feature{padding:22px;border-radius:19px}.guest-feature .gf-icon{font-size:27px}.guest-feature .gf-title{font-size:16px;color:#f6ffff}
.guest-feature .gf-text{font-size:12.5px;line-height:1.65;color:#a9bed0}
/* Alert and dialog polish */
:where(.dev-banner,.alert,.flash){border-radius:14px;border-color:rgba(245,190,114,.28)}
.dev-banner{background:linear-gradient(110deg,rgba(114,89,52,.18),rgba(19,34,46,.9));box-shadow:var(--shadow-sm)}
:where(.modal,.modal-content,.custom-confirm-box,.ep-dialog){border-radius:22px;background:#17253a;border:1px solid var(--border-strong);box-shadow:0 28px 70px #0009}
:where(.ep-dock){background:rgba(17,30,45,.96);border-color:var(--border-strong)}
/* responsive constraints: keep grids and actions inside their parents */
:where(.grid,.market-grid,.shop-grid,.item-grid,.inventory-grid,.products-grid,.pf-grid,.pets-grid,.enot-dash){min-width:0;max-width:100%}
:where(.grid>*,.market-grid>*,.shop-grid>*,.item-grid>*,.inventory-grid>*,.products-grid>*,.pf-grid>*,.pets-grid>*){min-width:0;max-width:100%}
:where(.card,.product-card,.market-card,.pet-card,.pf-card) :where(img,svg){max-width:100%}
:where(.card,.product-card,.market-card,.pet-card,.pf-card) :where(button,.btn,input,select){max-width:100%}
@media(max-width:1240px){.topbar{padding-inline:20px}.content{padding-inline:22px!important}.topbar-right{gap:5px}.enot-section-hero{padding:21px}}
@media(max-width:1000px){.sidebar{width:var(--sidebar-w)}.market-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr))}.enot-section-cta{width:100%}}
@media(max-width:860px){.main{margin-left:0}.sidebar{width:min(86vw,300px);box-shadow:30px 0 70px #0009}.topbar{min-height:68px;padding:10px 16px}.content{padding:18px 15px 100px!important}.enot-section-hero{padding:20px;min-height:unset}.enot-section-symbol{flex-basis:54px;width:54px;height:54px;font-size:25px}.enot-section-title{font-size:23px}.ep-dock{border-radius:20px;background:rgba(19,32,49,.97)}}
@media(max-width:640px){.market-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.market-grid>.product-card .product-image{min-height:115px;max-height:164px;padding:12px}.product-info{padding:12px 11px 4px}.product-title{font-size:13px}.product-meta{padding:10px 11px 0}.product-price{font-size:16px}.product-actions{padding:10px 11px 12px}.product-features{margin:6px 10px 9px}.product-btn{min-height:38px;font-size:11px}.enot-section-hero{margin-bottom:15px;border-radius:18px}.enot-section-desc{font-size:12px}.guest-hero{border-radius:21px}.guest-feature{padding:16px}}
@media(max-width:420px){.market-grid{grid-template-columns:minmax(0,1fr)}.market-grid>.product-card .product-image{max-height:220px}.enot-section-main{align-items:flex-start;gap:12px}.enot-section-symbol{width:43px;height:43px;flex-basis:43px;border-radius:13px;font-size:22px}.enot-section-title{font-size:21px}.enot-section-cta a{padding:8px 10px}.topbar .pill{padding:6px 8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}:where(*,*:before,*:after){animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
