@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-0: #07080b;
    --bg-1: #0b0d12;
    --bg-2: #10131a;
    --bg-3: #161a23;
    --line: rgba(255, 255, 255, 0.06);
    --line-2: rgba(255, 255, 255, 0.1);
    --orange: #c5d797;
    --orange-2: #d8eab0;
    --orange-soft: rgba(197, 215, 151, 0.15);
    --green: #22c58b;
    --green-soft: rgba(34, 197, 139, 0.12);
    --red: #e5484d;
    --pink: #e0556f;
    --gold: #e9a23b;
    --amber: #f08a24;
    --blue: #1fa4e0;
    --text: #e8eaed;
    --text-2: #9aa1ad;
    --text-3: #5d6472;
    --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Chakra Petch', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --nav-h: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }

body {
    margin: 0;
    background: #070b09;
    color: #f2f1e8;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.icon { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 13px; height: 13px; }
.icon-lg { width: 20px; height: 20px; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #232835; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #313849; }

/* ------------------------------------------------------------------ */
/* Top navigation                                                       */
/* ------------------------------------------------------------------ */
header.topnav { display: none !important; }
.topnav {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20;
}

.nav-left, .nav-right { display: flex; align-items: center; height: 100%; }
.nav-left { gap: 16px; }
.nav-right { gap: 8px; }

.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand-mark {
    width: 32px; height: 32px;
    border: 1px solid rgba(197, 215, 151, 0.45);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(18, 24, 34, 0.65);
    overflow: hidden;
    padding: 2px;
}
.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: 2.5px; line-height: 1; }
.brand-sub { font-size: 8px; letter-spacing: 1.2px; color: var(--text-3); font-weight: 600; text-transform: uppercase; margin-top: 3px; }

.nav-menu { display: flex; align-items: center; height: 100%; gap: 3px; list-style: none; }
.nav-item {
    height: 100%;
    display: flex; align-items: center; gap: 6px;
    padding: 0 8px;
    color: var(--text-2);
    font-family: var(--font-head);
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.9px; text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: color .2s ease, text-shadow .2s ease;
}
.nav-item:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(197, 215, 151, 0.45);
}
.nav-item .nav-ico {
    width: 23px; height: 23px; border-radius: 4px;
    display: grid; place-items: center;
    border: 1px solid var(--line-2);
    background: var(--bg-2);
    transition: all .2s ease;
}
.nav-item .nav-ico svg {
    width: 13.5px; height: 13.5px;
}
.nav-item:hover .nav-ico {
    border-color: rgba(197, 215, 151, 0.7);
    color: #c5d797;
    background: rgba(197, 215, 151, 0.12);
    box-shadow: 0 0 12px rgba(197, 215, 151, 0.45), inset 0 0 6px rgba(197, 215, 151, 0.2);
    transform: translateY(-1px);
}
.nav-item.active { color: #fff; }
.nav-item.active .nav-ico {
    border-color: rgba(197, 215, 151, 0.85);
    color: var(--orange);
    background: var(--orange-soft);
    box-shadow: 0 0 10px rgba(197, 215, 151, 0.35);
}
.nav-item.active::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
    background: var(--orange);
    box-shadow: 0 0 8px rgba(197, 215, 151, 0.6);
}
.nav-item-stack { display: flex; flex-direction: column; line-height: 1.15; }
.nav-item-stack small { font-size: 9px; color: var(--text-3); letter-spacing: 1px; }

.btn-steam {
    display: inline-flex; align-items: center; gap: 8px;
    height: 34px; padding: 0 14px;
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--font-head); font-weight: 600; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.btn-steam:hover { border-color: rgba(197, 215, 151, 0.6); background: #1b2029; }

.icon-btn {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: 4px;
    color: var(--text-2);
    transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.nav-user { display: flex; align-items: center; gap: 10px; padding-left: 10px; border-left: 1px solid var(--line); height: 34px; }
.nav-user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.nav-user-name { font-weight: 600; font-size: 12.5px; }
.nav-user-role { font-family: var(--font-head); font-size: 9.5px; letter-spacing: 1.2px; color: var(--text-3); text-transform: uppercase; }
.nav-user-role.owner { color: var(--orange-2); }
.nav-user-role.admin { color: #ff4757; font-weight: 700; text-shadow: 0 0 6px rgba(255, 71, 87, 0.4); }

.avatar {
    width: 32px; height: 32px; border-radius: 4px;
    background: var(--bg-3); border: 1px solid var(--line-2);
    display: grid; place-items: center; overflow: hidden;
    font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--text-2);
    flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ------------------------------------------------------------------ */
/* Layout                                                               */
/* ------------------------------------------------------------------ */
.dashboard-layout, .layout {
    display: grid;
    grid-template-columns: minmax(0, 860px) 380px;
    justify-content: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 48px;
    gap: 28px;
    box-sizing: border-box;
    min-height: calc(100vh - 100px);
}
body.page-wide .dashboard-layout, body.page-wide .layout {
    grid-template-columns: 1fr;
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
}
body.page-wide .side {
    display: none !important;
}

#page-live {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

#page-stuff {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

#page-shop {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* Chat                                                                 */
/* ------------------------------------------------------------------ */
aside.chat { display: none !important; }
.chat {
    display: flex; flex-direction: column;
    background: var(--bg-1);
    border-right: 1px solid var(--line);
    min-height: 0;
}
.chat-head {
    height: 46px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
}
.chat-title {
    font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
    position: relative; height: 46px; display: flex; align-items: center;
}
.chat-title::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); }
.chat-online {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 10.5px; color: var(--text-2);
    border: 1px solid var(--line-2); background: var(--bg-2);
    padding: 3px 8px; border-radius: 3px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(34,197,139,.7); }
.dot.off { background: var(--red); box-shadow: 0 0 6px rgba(229,72,77,.6); }

.chat-list {
    flex: 1; min-height: 0;
    overflow-y: auto;
    padding: 10px 8px 10px 12px;
    display: flex; flex-direction: column; gap: 2px;
}
.chat-empty {
    margin: auto; text-align: center; color: var(--text-3);
    font-size: 12px; line-height: 1.6; padding: 24px;
}
.chat-empty .icon { width: 28px; height: 28px; margin-bottom: 8px; color: var(--text-3); }

.msg { display: flex; gap: 10px; padding: 7px 8px; border-radius: 4px; position: relative; }
.msg:hover { background: rgba(255,255,255,0.025); }
.msg .avatar { width: 30px; height: 30px; font-size: 12px; }
.msg-body { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.msg-name { font-weight: 600; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-name.staff { color: var(--gold); }
.msg-name.staff.is-admin { color: #ff6b81; }
.msg-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-left: auto; flex-shrink: 0; }
.msg-text { font-size: 12.5px; line-height: 1.45; color: #c3c8d1; word-wrap: break-word; overflow-wrap: anywhere; }
.msg-text .mention { color: var(--orange-2); font-weight: 600; }
.msg.mentioned { background: rgba(197, 215, 151,0.06); box-shadow: inset 2px 0 0 var(--orange); }

.role-badge {
    display: inline-flex; align-items: center; gap: 3px;
    font-family: var(--font-head); font-weight: 700; font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
    padding: 1px 5px; border-radius: 2px;
    border: 1px solid rgba(233,162,59,0.55); color: var(--gold); background: rgba(233,162,59,0.1);
    flex-shrink: 0;
}
.role-badge.owner { border-color: rgba(197, 215, 151,0.6); color: var(--orange-2); background: var(--orange-soft); }
.role-badge.admin {
    border-color: rgba(255, 71, 87, 0.85);
    color: #ff4757;
    background: rgba(255, 71, 87, 0.16);
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.35);
    text-shadow: 0 0 6px rgba(255, 71, 87, 0.5);
}

.msg-del {
    position: absolute; top: 6px; right: 6px;
    width: 22px; height: 22px; display: none; place-items: center;
    background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 3px; color: var(--text-3);
}
.msg:hover .msg-del { display: grid; }
.msg-del:hover { color: var(--red); border-color: rgba(229,72,77,.5); }
.msg:hover .msg-time.has-del { visibility: hidden; }

.chat-foot { flex-shrink: 0; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-form {
    display: flex; align-items: center; gap: 6px;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px;
    padding: 0 6px 0 12px; height: 40px;
    transition: border-color .15s;
}
.chat-form:focus-within { border-color: rgba(197, 215, 151,0.55); }
.chat-form input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 12.5px; }
.chat-form input::placeholder { color: var(--text-3); }
.chat-send {
    width: 30px; height: 30px; display: grid; place-items: center;
    background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 3px; color: var(--text-2);
}
.chat-send:hover { color: var(--orange); border-color: rgba(197, 215, 151,0.5); }
.chat-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--text-3); }
.chat-meta button { background: none; border: none; color: var(--text-3); display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; }
.chat-meta button:hover { color: var(--text-2); }
.chat-login {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; width: 100%;
    background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 4px;
    color: var(--text-2); text-decoration: none;
    font-family: var(--font-head); font-weight: 600; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase;
}
.chat-login:hover { color: var(--text); border-color: rgba(197, 215, 151,0.5); }

/* ------------------------------------------------------------------ */
/* Center                                                               */
/* ------------------------------------------------------------------ */
.main { overflow-y: visible; padding: 0; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.page-title { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; }
.page-sub { color: var(--text-3); font-size: 12px; margin-top: 4px; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    height: 32px; padding: 0 12px;
    background: rgba(18, 24, 34, 0.6);
    border: 1px solid var(--line-2);
    border-radius: 4px;
    color: var(--text-2);
    font-family: var(--font-head); font-weight: 600; font-size: 10.5px; letter-spacing: 1.3px; text-transform: uppercase;
    transition: all .2s ease;
}
.btn-ghost:hover {
    background: rgba(197, 215, 151, 0.08);
    border-color: rgba(197, 215, 151, 0.45);
    color: #fff;
    box-shadow: 0 0 10px rgba(197, 215, 151, 0.2);
}

/* HUD frame with corner brackets */
.hud { position: relative; background: var(--bg-1); border: 1px solid var(--line); }
.hud::before, .hud::after, .hud > .hud-c::before, .hud > .hud-c::after {
    content: ''; position: absolute; width: 12px; height: 12px; pointer-events: none; border-color: rgba(255,255,255,0.45); border-style: solid;
}
.hud::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.hud::after { top: -1px; right: -1px; border-width: 1.5px 1.5px 0 0; }
.hud > .hud-c::before { bottom: -1px; left: -1px; border-width: 0 0 1.5px 1.5px; }
.hud > .hud-c::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }
.hud-c { position: absolute; inset: 0; pointer-events: none; }

/* ============================================================== */
/* LIVE DINOSAUR: ORNATE STONE FRAME & COMPACT MODERN INTERIOR   */
/* ============================================================== */
#view-dashboard .dashboard-layout {
    padding-top: 10px !important;
    gap: 20px !important;
}

#page-live {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

#page-live .page-head {
    height: 38px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin: 0 0 6px 0 !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
}

#page-live .page-title {
    margin: 0 !important;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    line-height: 1.05 !important;
}

#page-live .page-sub {
    margin: 2px 0 0 0 !important;
    color: var(--text-3);
    font-size: 11px !important;
    line-height: 1.15 !important;
}

/* Symmetrical Side Head for Proximity Voice & Equal Height Alignment */
aside.side {
    padding: 0 !important;
    background: transparent !important;
    border-left: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100%;
    max-width: 370px;
}

.side-head {
    height: 38px !important;
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
}

.side-head .btn-ghost {
    margin: 0 !important;
    height: 30px !important;
    padding: 0 12px !important;
    font-size: 10.5px !important;
}

.live-manager-frame {
    margin-top: 0 !important;
}

.dino-panel.hud::before,
.dino-panel.hud::after,
.dino-panel .hud-c,
.dino-panel .hud-c::before,
.dino-panel .hud-c::after {
    display: none !important;
}

.dino-panel.hud,
.dino-panel {
    position: relative;
    background: transparent url('../asset/live_dinosaur_frame.png') no-repeat center center / 100% 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 20px 26px 24px !important;
    margin-top: 0 !important;
    box-sizing: border-box;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 20px rgba(80, 250, 123, 0.12));
    overflow: hidden;
}

.telemetry {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #8fa860;
    padding: 0 4px 6px !important;
    margin-bottom: 2px;
}

.telemetry .live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #50fa7b;
    font-weight: 700;
    letter-spacing: 1px;
}

.telemetry .live .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #50fa7b;
    box-shadow: 0 0 8px #50fa7b, 0 0 16px rgba(80, 250, 123, 0.6);
    animation: livePulse 1.8s infinite ease-in-out;
}

.telemetry .live.off {
    color: #8fa860;
}

.telemetry .live.off .dot {
    background: #e67e22;
    box-shadow: 0 0 6px rgba(230, 126, 34, 0.5);
    animation: none;
}

.telemetry .uid {
    color: #cad8c9;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stage {
    position: relative;
    height: 160px !important;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(197, 215, 151, 0.15) !important;
    background:
        radial-gradient(ellipse at 50% 55%, rgba(80, 250, 123, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.05) 0%, rgba(4, 9, 6, 0.35) 100%) !important;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6) !important;
}

.stage-watermark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(26px, 3.6vw, 42px) !important;
    letter-spacing: 6px !important;
    color: rgba(80, 250, 123, 0.08) !important;
    text-transform: uppercase;
    user-select: none;
    white-space: nowrap;
}

.stage-art {
    position: absolute;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
    width: clamp(200px, 24vw, 290px);
    height: clamp(100px, 13vw, 140px);
    color: #c5d797;
    opacity: .95;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-art svg {
    width: 100%;
    height: 100%;
    animation: softDinoFloat 3.8s ease-in-out infinite;
    will-change: transform;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.8));
}

.stage-art.photo {
    top: 48%;
    width: min(440px, 92%);
    height: 94%;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.stage-art.photo img {
    width: auto;
    max-width: 92%;
    height: 100%;
    max-height: 138px;
    object-fit: contain;
    mix-blend-mode: normal !important;
    animation: softDinoFloat 3.8s ease-in-out infinite;
    will-change: transform;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(80, 250, 123, 0.22));
}

.stage-placeholder {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px !important;
    text-align: center;
    color: rgba(197, 215, 151, 0.85);
    font-size: 11px !important;
    z-index: 2;
}

.stage-placeholder .icon {
    width: 20px !important;
    height: 20px !important;
    color: #50fa7b !important;
    filter: drop-shadow(0 0 6px #50fa7b);
}

.stage-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 14px !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(0deg, rgba(3, 7, 5, 0.7) 0%, transparent 100%) !important;
    z-index: 3;
}

.stage-species {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 9px !important;
    letter-spacing: 1.5px;
    color: #50fa7b !important;
    text-transform: uppercase;
    margin-bottom: 1px !important;
}

.stage-player {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 16px !important;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #f7faf5;
}

.stage-growth {
    text-align: right;
}

.stage-growth-label {
    font-family: var(--font-head);
    font-size: 8px !important;
    letter-spacing: 1.3px;
    color: #8fa860 !important;
    text-transform: uppercase;
}

.stage-growth-val {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px !important;
    color: #50fa7b !important;
    line-height: 1;
    text-shadow: 0 0 10px rgba(80, 250, 123, 0.4);
}

.stage-growth-val small {
    font-size: 10px !important;
    margin-left: 2px;
}

/* Stage Exhibit Backlight */
.stage-exhibit-light {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 135px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(34px);
    opacity: 0.75;
    background: radial-gradient(circle, rgba(80, 250, 123, 0.85) 0%, rgba(197, 215, 151, 0.45) 45%, rgba(80, 250, 123, 0.15) 65%, transparent 75%);
    animation: exhibitLightPulse 3.8s ease-in-out infinite;
    will-change: transform, opacity;
}

.stage-exhibit-light.glow-blue {
    background: radial-gradient(circle, rgba(197, 215, 151, 0.85) 0%, rgba(80, 250, 123, 0.5) 45%, rgba(80, 250, 123, 0.15) 65%, transparent 75%);
}
.stage-exhibit-light.glow-red {
    background: radial-gradient(circle, rgba(248, 113, 113, 0.85) 0%, rgba(220, 38, 38, 0.5) 45%, rgba(185, 28, 28, 0.15) 65%, transparent 75%);
}
.stage-exhibit-light.glow-purple {
    background: radial-gradient(circle, rgba(192, 132, 252, 0.85) 0%, rgba(147, 51, 234, 0.5) 45%, rgba(107, 33, 168, 0.15) 65%, transparent 75%);
}
.stage-exhibit-light.glow-green {
    background: radial-gradient(circle, rgba(74, 222, 128, 0.85) 0%, rgba(22, 163, 74, 0.5) 45%, rgba(21, 128, 61, 0.15) 65%, transparent 75%);
}
.stage-exhibit-light.glow-yellow {
    background: radial-gradient(circle, rgba(250, 204, 21, 0.85) 0%, rgba(202, 138, 4, 0.5) 45%, rgba(161, 98, 7, 0.15) 65%, transparent 75%);
}
.stage-exhibit-light.glow-grey,
.stage-exhibit-light.glow-gray {
    background: radial-gradient(circle, rgba(226, 232, 240, 0.85) 0%, rgba(148, 163, 184, 0.5) 45%, rgba(100, 116, 139, 0.15) 65%, transparent 75%);
}

.tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid rgba(197, 215, 151, 0.2) !important;
    margin-top: 6px !important;
    background: rgba(6, 14, 9, 0.6) !important;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.tab {
    height: 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    color: #8fa860 !important;
    font-family: var(--font-head);
    font-weight: 700 !important;
    font-size: 10px !important;
    letter-spacing: 1.3px !important;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab .icon {
    width: 12px !important;
    height: 12px !important;
    transition: all 0.2s ease;
}

.tab:hover {
    color: #ffffff !important;
    background: rgba(80, 250, 123, 0.08) !important;
}

.tab:hover .icon {
    color: #50fa7b !important;
    filter: drop-shadow(0 0 5px #50fa7b);
}

.tab.active {
    color: #50fa7b !important;
    background: rgba(80, 250, 123, 0.12) !important;
    text-shadow: 0 0 10px rgba(80, 250, 123, 0.6);
}

.tab.active .icon {
    color: #50fa7b !important;
    filter: drop-shadow(0 0 6px #50fa7b);
}

.tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #50fa7b !important;
    box-shadow: 0 0 10px #50fa7b, 0 0 18px rgba(80, 250, 123, 0.8) !important;
}

.tab:active,
.tab.neon-clicked {
    background: rgba(80, 250, 123, 0.24) !important;
    transform: scale(0.97);
    transition: all 0.08s ease;
}

.tab-view {
    padding: 6px 2px 2px !important;
}

.tab-view.hidden,
#view-overview.hidden,
#view-mutations.hidden,
#view-prime.hidden {
    display: none !important;
}

#view-overview:not(.hidden) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
    padding: 6px 2px 2px !important;
}

#view-mutations:not(.hidden),
#view-prime:not(.hidden) {
    display: block !important;
    padding: 6px 2px 2px !important;
}

#view-overview .stat:nth-child(1) {
    grid-column: 1 / -1 !important; /* Growth spans full width */
}

#view-overview .coords {
    grid-column: 1 / -1 !important; /* Coords spans full width */
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    margin-top: 0 !important;
}

.stat {
    padding: 5px 10px !important;
    border: 1px solid rgba(197, 215, 151, 0.2) !important;
    background: rgba(10, 20, 14, 0.75) !important;
    border-radius: 4px !important;
    margin-bottom: 0 !important;
    transition: all 0.2s ease;
}

.stat:hover {
    border-color: rgba(80, 250, 123, 0.4) !important;
    background: rgba(14, 28, 20, 0.85) !important;
    box-shadow: 0 0 12px rgba(80, 250, 123, 0.15) !important;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px !important;
}

.stat-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 9px !important;
    letter-spacing: 1.2px !important;
    color: #c5d797 !important;
    text-transform: uppercase;
}

.stat-name .icon {
    width: 11px !important;
    height: 11px !important;
    color: #50fa7b !important;
    filter: drop-shadow(0 0 4px rgba(80, 250, 123, 0.4));
}

.stat-val {
    font-family: var(--font-mono);
    font-size: 9.5px !important;
    font-weight: 700 !important;
    color: #50fa7b !important;
}

.bar {
    height: 4px !important;
    background: rgba(5, 10, 7, 0.85) !important;
    position: relative;
    overflow: hidden;
    border-radius: 2px !important;
    border: 1px solid rgba(197, 215, 151, 0.12);
}

.bar > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    transition: width .5s ease;
    border-radius: 2px;
}

.bar.growth > span {
    background: linear-gradient(90deg, #50fa7b 0%, #2ec253 100%) !important;
    box-shadow: 0 0 8px rgba(80, 250, 123, 0.6);
}
.bar.growth { background: rgba(5, 10, 7, 0.85) !important; }
.bar.health > span { background: #ff6b6b; box-shadow: 0 0 8px rgba(255, 107, 107, 0.5); }
.bar.stamina > span { background: #ffd166; box-shadow: 0 0 8px rgba(255, 209, 102, 0.5); }
.bar.hunger > span { background: #ff9f43; box-shadow: 0 0 8px rgba(255, 159, 67, 0.5); }
.bar.thirst > span { background: #54a0ff; box-shadow: 0 0 8px rgba(84, 160, 255, 0.5); }

.coords {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px !important;
    margin-top: 0 !important;
}

.coord {
    border: 1px solid rgba(197, 215, 151, 0.2) !important;
    background: rgba(10, 20, 14, 0.7) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: all 0.2s ease;
}

.coord:hover {
    border-color: rgba(80, 250, 123, 0.4) !important;
    background: rgba(14, 28, 20, 0.85) !important;
}

.coord-label {
    font-family: var(--font-head);
    font-size: 7.5px !important;
    letter-spacing: 1.2px !important;
    color: #8fa860 !important;
    text-transform: uppercase;
    margin-bottom: 0 !important;
}

.coord-val {
    font-family: var(--font-mono);
    font-weight: 700 !important;
    font-size: 11px !important;
    color: #50fa7b !important;
    text-shadow: 0 0 6px rgba(80, 250, 123, 0.35);
}

/* Compact Mutation Slots */
.slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px !important;
}

.slot {
    border: 1px solid rgba(197, 215, 151, 0.2) !important;
    background: rgba(10, 20, 14, 0.75) !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot:hover {
    border-color: rgba(80, 250, 123, 0.5) !important;
    background: rgba(80, 250, 123, 0.08) !important;
    box-shadow: 0 0 12px rgba(80, 250, 123, 0.25) !important;
    transform: translateY(-1px);
}

.slot:active,
.slot.neon-clicked {
    background: rgba(80, 250, 123, 0.2) !important;
    border-color: #50fa7b !important;
    box-shadow: 0 0 18px rgba(80, 250, 123, 0.6) !important;
    transform: scale(0.98);
}

.slot-label {
    font-family: var(--font-head);
    font-size: 8.5px !important;
    letter-spacing: 1.4px !important;
    color: #8fa860 !important;
    text-transform: uppercase;
    margin-bottom: 2px !important;
}

.slot-name {
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #f7faf5 !important;
}

.slot-name.empty {
    color: rgba(143, 168, 96, 0.6) !important;
    font-weight: 500 !important;
}

.section-label {
    font-family: var(--font-head);
    font-size: 9px !important;
    letter-spacing: 1.6px !important;
    color: #c5d797 !important;
    text-transform: uppercase;
    margin: 10px 0 6px !important;
}

.section-label:first-child {
    margin-top: 2px !important;
}

.prime-status {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(197, 215, 151, 0.22) !important;
    background: rgba(10, 20, 14, 0.75) !important;
    padding: 10px 14px !important;
    border-radius: 4px !important;
    margin-bottom: 8px;
}

.prime-status .icon {
    width: 20px !important;
    height: 20px !important;
    color: #ffc107;
}

.prime-status.yes {
    border-color: rgba(255, 193, 7, 0.5) !important;
    background: rgba(30, 24, 10, 0.75) !important;
    color: #ffc107;
}

.prime-status.no {
    color: #8fa860;
}

.prime-status-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 12px !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.prime-status-sub {
    font-size: 10.5px !important;
    color: #8fa860;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .dino-panel {
        padding: 28px 20px 34px !important;
    }
    .stage {
        height: 180px !important;
    }
    .slots {
        grid-template-columns: 1fr !important;
    }
}

/* ------------------------------------------------------------------ */
/* Right column                                                         */
/* ------------------------------------------------------------------ */
.side { padding: 0; overflow-y: visible; display: flex; flex-direction: column; gap: 16px; border-left: none; background: transparent; }
.side-spacer { display: none; }
.card { padding: 16px; }
.card-kicker { font-family: var(--font-head); font-weight: 600; font-size: 9.5px; letter-spacing: 1.8px; color: var(--text-3); text-transform: uppercase; }
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .6px; margin: 4px 0 14px; }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.action {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    height: 62px; padding: 0 4px;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 2px;
    color: var(--text-3);
    font-family: var(--font-head); font-weight: 600; font-size: 8.5px; letter-spacing: 1px; text-transform: uppercase; text-align: center;
    transition: color .15s, border-color .15s, background .15s;
}
.action:hover { color: var(--text-2); border-color: rgba(255,255,255,0.18); }
.action.active { color: var(--orange-2); border-color: rgba(197, 215, 151,0.6); background: var(--orange-soft); }
.action-desc { font-size: 11.5px; line-height: 1.55; color: var(--text-2); min-height: 36px; margin-bottom: 14px; }
.action-desc strong { color: var(--text); font-weight: 600; }
.action:disabled { opacity: .35; cursor: not-allowed; }
.action:disabled:hover { color: var(--text-3); border-color: var(--line-2); }

.req-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: -4px 0 14px; padding: 0; }
.req-list li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.req-list li .icon { width: 14px; height: 14px; flex: none; }
.req-list li.ok .icon { color: var(--green); }
.req-list li.no { color: var(--text-3); }
.req-list li.no .icon { color: var(--red); }
.action-note {
    font-size: 11px; line-height: 1.5; color: var(--text-3);
    border-left: 2px solid rgba(197, 215, 151,0.5); padding: 2px 0 2px 9px; margin: -2px 0 14px;
}

.inv-count {
    display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 2px;
    font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--text-2); text-align: center;
}

/* ------------------------------------------------------------------ */
/* My Stuff                                                             */
/* ------------------------------------------------------------------ */
.stuff-empty {
    display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
    padding: 70px 20px; color: var(--text-3); font-size: 12px;
}
.stuff-empty .icon { width: 28px; height: 28px; }

/* Toolbar */
.inv-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.inv-tabs { display: flex; }
.inv-tab {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px; margin-bottom: -1px;
    font-family: var(--font-head); font-weight: 600; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-2);
}
.inv-tab.active { color: var(--green); border-bottom: 2px solid var(--green); }
.inv-tab .inv-count { margin-left: 2px; }
.inv-tools { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.inv-search {
    display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; width: 240px;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 2px; color: var(--text-3);
}
.inv-search:focus-within { border-color: rgba(34,197,139,0.5); }
.inv-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 12px; }
.inv-chip, .inv-sort {
    height: 32px; padding: 0 10px; border-radius: 2px;
    background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2);
    font-family: var(--font-head); font-weight: 600; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
}
.inv-chip { display: inline-flex; align-items: center; gap: 6px; }
.inv-chip.active { color: var(--gold); border-color: rgba(233,162,59,0.55); background: rgba(233,162,59,0.08); }
.inv-sort { outline: none; }
.inv-sort option { background: var(--bg-1); color: var(--text); text-transform: none; }

/* Cards */
.inv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.inv-card {
    display: flex; flex-direction: column; cursor: pointer; outline: none;
    transition: transform .22s ease;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.inv-card:hover, .inv-card:focus-visible {
    border: none !important;
    transform: translateY(-4px);
    box-shadow: none !important;
}
.inv-card .hud-c {
    display: none !important;
}

.inv-card.is-prime,
.inv-card.is-prime:hover {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* All Parked Dinosaurs - Seamless Stone Cavern Background matching Shop */
.inv-card-stage {
    position: relative;
    height: 180px !important;
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px !important;
    flex-shrink: 0;
}

.inv-card-growth {
    position: absolute;
    top: 14px !important;
    right: 46px !important;
    bottom: auto !important;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 20px !important;
    color: #50fa7b !important;
    line-height: 1;
    text-shadow: 0 0 10px rgba(80, 250, 123, 0.6), 0 2px 10px rgba(0, 0, 0, 0.9);
    z-index: 5;
}
.inv-card-growth small { font-size: 11px !important; margin-left: 1px; }

.inv-card .bar.growth span {
    background: repeating-linear-gradient(90deg, #50fa7b 0 3px, transparent 3px 5px);
    box-shadow: 0 0 8px rgba(80, 250, 123, 0.45);
}

/* APEX Badge - Clean Gold / Amber badge */
.inv-flag.apex {
    color: #ffd166;
    border-color: rgba(255, 209, 102, 0.5);
    background: rgba(40, 32, 10, 0.85);
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 9px;
}

/* Park Card Dinosaur Soft Floating Animation & Transparent Art */
.inv-card-art {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5d797;
    z-index: 2;
    pointer-events: none;
}
.inv-card-art img {
    width: auto;
    height: 100%;
    max-height: 145px !important;
    max-width: 92% !important;
    object-fit: contain !important;
    margin-top: 10px !important;
    mix-blend-mode: normal !important;
    animation: softDinoFloat 3.6s ease-in-out infinite;
    will-change: transform;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(80, 250, 123, 0.25)) !important;
    transition: filter .25s ease;
}
.inv-card:hover .inv-card-art img {
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 22px rgba(80, 250, 123, 0.45)) !important;
}
.inv-card-art svg {
    width: 75%;
    height: 75%;
    animation: softDinoFloat 3.6s ease-in-out infinite;
    will-change: transform;
}

.inv-card.is-rex .inv-card-art img,
.inv-card[data-species="tyrannosaurus"] .inv-card-art img {
    max-width: 92% !important;
    max-height: 145px !important;
}

/* Park Card Exhibit Backlight matching Shop */
.inv-card-exhibit-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 155px;
    height: 110px;
    border-radius: 50%;
    filter: blur(22px);
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
    animation: exhibitLightPulse 3.6s ease-in-out infinite;
    will-change: transform, opacity;
    background: radial-gradient(circle, rgba(197, 215, 151, 0.92) 0%, rgba(80, 250, 123, 0.5) 48%, rgba(80, 250, 123, 0.16) 65%, transparent 75%);
}

.inv-card-exhibit-light.glow-red {
    width: 135px;
    height: 95px;
    background: radial-gradient(circle, rgba(248, 113, 113, 0.85) 0%, rgba(220, 38, 38, 0.45) 45%, rgba(185, 28, 28, 0.15) 65%, transparent 75%);
}
.inv-card-exhibit-light.glow-blue {
    background: radial-gradient(circle, rgba(197, 215, 151, 0.92) 0%, rgba(80, 250, 123, 0.5) 48%, rgba(80, 250, 123, 0.16) 65%, transparent 75%);
}
.inv-card-exhibit-light.glow-purple {
    background: radial-gradient(circle, rgba(192, 132, 252, 0.9) 0%, rgba(168, 85, 247, 0.48) 48%, rgba(126, 34, 206, 0.15) 65%, transparent 75%);
}
.inv-card-exhibit-light.glow-green {
    background: radial-gradient(circle, rgba(74, 222, 128, 0.9) 0%, rgba(34, 197, 94, 0.48) 48%, rgba(21, 128, 61, 0.15) 65%, transparent 75%);
}
.inv-card-exhibit-light.glow-yellow {
    background: radial-gradient(circle, rgba(253, 224, 71, 0.92) 0%, rgba(245, 158, 11, 0.52) 48%, rgba(217, 119, 6, 0.16) 65%, transparent 75%);
}
.inv-card-exhibit-light.glow-grey,
.inv-card-exhibit-light.glow-gray {
    background: radial-gradient(circle, rgba(226, 232, 240, 0.85) 0%, rgba(148, 163, 184, 0.45) 48%, rgba(100, 116, 139, 0.15) 65%, transparent 75%);
}

.stuff-stage {
    height: 230px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(197, 215, 151, 0.2) !important;
    background:
        radial-gradient(ellipse at 50% 55%, rgba(80, 250, 123, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.2) 0%, rgba(4, 9, 6, 0.8) 100%),
        url('../asset/hero_frame.png') no-repeat center 26% / cover !important;
    overflow: hidden;
}
.stuff-stage .stage-watermark {
    color: rgba(197, 215, 151, 0.06) !important;
}
.stuff-stage #sd-art img {
    animation: softDinoFloat 3.8s ease-in-out infinite;
    will-change: transform;
    mix-blend-mode: normal !important;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(80, 250, 123, 0.25)) !important;
}
.stuff-stage.is-rex #sd-art img {
    max-width: 92%;
    max-height: 92%;
}

.inv-card-flags { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; z-index: 3; }
.inv-flag {
    display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px;
    background: rgba(7,8,11,0.7); border: 1px solid var(--line-2); border-radius: 2px;
    font-family: var(--font-mono); font-size: 10px; color: var(--text-2);
}
.inv-flag .icon { width: 11px; height: 11px; }
.inv-flag.prime { color: var(--gold); border-color: rgba(233,162,59,0.5); font-family: var(--font-head); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 9px; }

.inv-card-body { padding: 12px 14px 10px; flex: 1; display: flex; flex-direction: column; }
.inv-card-kicker { font-family: var(--font-head); font-weight: 600; font-size: 9px; letter-spacing: 1.6px; color: var(--text-3); text-transform: uppercase; }
.inv-card-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; margin: 2px 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-card-body > .bar { margin-bottom: 12px; }

.inv-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin-bottom: 12px; }
.mini-stat { display: flex; align-items: center; gap: 6px; }
.mini-stat .icon { width: 12px; height: 12px; color: var(--text-3); flex: none; }
.mini-stat b { font-family: var(--font-mono); font-weight: 500; font-size: 10px; color: var(--text-2); min-width: 20px; text-align: right; }
.mini-bar { flex: 1; height: 4px; background: #1a1e27; position: relative; overflow: hidden; }
.mini-bar i { position: absolute; inset: 0 auto 0 0; }
.mini-bar.health i { background: var(--pink); }
.mini-bar.stamina i { background: var(--gold); }
.mini-bar.hunger i { background: var(--amber); }
.mini-bar.thirst i { background: var(--blue); }

.inv-card-muts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.mut-chip {
    padding: 3px 6px; border-radius: 2px; font-size: 10px; line-height: 1.2;
    color: var(--text-2); background: rgba(34,197,139,0.06); border: 1px solid rgba(34,197,139,0.2);
}
.mut-chip.more { color: var(--green); font-family: var(--font-mono); }
.mut-none { font-size: 10.5px; color: var(--text-3); }

.inv-card-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px; border-top: 1px solid var(--line);
    font-family: var(--font-head); font-weight: 600; font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase;
}
.inv-card-date { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }
.inv-card-date .icon, .inv-card-open .icon { width: 12px; height: 12px; }
.inv-card-open { display: inline-flex; align-items: center; gap: 5px; color: var(--green); transition: gap .15s; }
.inv-card:hover .inv-card-open { gap: 8px; }

/* ================================================================== */
/* Parked Dinosaur Details Modal (Image 2 Redesign)                   */
/* ================================================================== */
.park-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.park-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fade-in 0.2s ease;
}
/* Stone frame: its inner edge sits about 3% in from the sides and 5% from top and bottom,
   so the padding keeps all content inside the green line of the artwork. */
.park-modal-window {
    position: relative;
    z-index: 2;
    width: min(940px, 96vw);
    max-height: 96vh;
    background: transparent url('../asset/inventory%20mut%20ayarlama%20yeri.png') no-repeat center center / 100% 100%;
    box-sizing: border-box;
    padding: 36px 44px 50px;
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(80, 250, 123, 0.1));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: parkModalScale 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes parkModalScale {
    0% {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

body.drawer-open { overflow: hidden; }

/* Modal Head */
.park-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(5, 9, 16, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.park-modal-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}
.park-top-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-2);
}
.park-top-flag.prime {
    color: #c5d797;
    background: rgba(197, 215, 151, 0.12);
    border-color: rgba(197, 215, 151, 0.45);
}
.park-top-flag.muts {
    color: #c5d797;
    background: rgba(197, 215, 151, 0.1);
    border-color: rgba(197, 215, 151, 0.4);
}
.park-top-flag .icon {
    width: 12px;
    height: 12px;
}
.park-modal-close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-3);
    cursor: pointer;
    transition: all 0.18s ease;
}
.park-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

/* Modal Stage */
.park-modal-stage {
    position: relative;
    flex-shrink: 0;
    height: 200px;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(80, 250, 123, 0.1) 0%, transparent 65%),
        linear-gradient(135deg, rgba(14, 26, 18, 0.55) 0%, rgba(6, 12, 8, 0.7) 100%);
    border: 1px solid rgba(197, 215, 151, 0.22);
    border-radius: 6px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.park-modal-stage .stage-watermark {
    font-size: clamp(34px, 5.5vw, 68px);
    letter-spacing: 12px;
    color: rgba(197, 215, 151, 0.06);
}
.park-modal-stage .stage-art {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: min(540px, 88%);
    height: 85%;
    z-index: 2;
}
.park-modal-stage .stage-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: normal !important;
    animation: softDinoFloat 3.8s ease-in-out infinite;
    will-change: transform;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(80, 250, 123, 0.25)) !important;
}
.park-stage-hint {
    position: absolute;
    top: 10px;
    right: 12px;
    font-family: var(--font-head);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}
.park-stage-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(0deg, rgba(4, 8, 14, 0.95) 0%, transparent 100%);
    z-index: 3;
}
.park-stage-kicker {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 9.5px;
    letter-spacing: 1.5px;
    color: #c5d797;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.park-stage-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #fff;
}
.park-stage-growth {
    text-align: right;
}
.park-stage-growth-label {
    font-family: var(--font-head);
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--text-3);
    text-transform: uppercase;
}
.park-stage-growth-val {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 28px;
    color: #c5d797;
    line-height: 1;
    text-shadow: 0 0 12px rgba(197, 215, 151, 0.6);
}
.park-stage-growth-val small {
    font-size: 13px;
    margin-left: 2px;
}

/* Modal Sub-Tabs */
.park-modal-tabs {
    display: flex;
    background: #060a12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.park-tab {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: none;
    border: none;
    color: var(--text-3);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: color 0.18s;
}
.park-tab:hover {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.02);
}
.park-tab.active {
    color: #c5d797;
}
.park-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #c5d797;
    box-shadow: 0 0 8px rgba(197, 215, 151, 0.7);
}

/* Modal Body */
.park-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
    min-height: 230px;
}
.park-col-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.park-tab-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.park-tab-empty {
    padding: 30px;
    text-align: center;
    color: var(--text-3);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.park-tab-empty .icon {
    width: 28px;
    height: 28px;
    color: var(--text-3);
}
.park-vitals-card {
    padding: 14px;
    background: rgba(13, 20, 32, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}
.park-vitals-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.park-vital-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.park-vital-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.park-vital-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1.4px;
    color: var(--text-2);
    text-transform: uppercase;
}
.park-vital-label .icon {
    width: 12px;
    height: 12px;
}
.park-vital-val {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-1);
}
.park-vital-bar {
    height: 5px;
    background: #141b26;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.park-vital-bar > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    transition: width 0.4s ease;
}
.park-vital-bar.health > span { background: #ff3366; box-shadow: 0 0 8px rgba(255, 51, 102, 0.5); }
.park-vital-bar.stamina > span { background: #c5d797; box-shadow: 0 0 8px rgba(197, 215, 151, 0.5); }
.park-vital-bar.hunger > span { background: #8fa860; box-shadow: 0 0 8px rgba(80, 250, 123, 0.5); }
.park-vital-bar.thirst > span { background: #c5d797; box-shadow: 0 0 8px rgba(197, 215, 151, 0.5); }

/* Mutations Box & Chips */
.park-muts-card {
    padding: 14px;
    background: rgba(13, 20, 32, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}
.park-card-header {
    margin-bottom: 10px;
}
.park-card-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 1.4px;
    color: #c5d797;
    text-transform: uppercase;
}
.park-mut-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.park-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(7, 12, 19, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    font-size: 11px;
}
.park-chip-tag {
    font-family: var(--font-head);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #c5d797;
    text-transform: uppercase;
}
.park-chip-name {
    font-weight: 600;
    color: #e2e8f0;
}
.park-chip.parent .park-chip-tag {
    color: #a78bfa;
}
.park-chip.elder .park-chip-tag {
    color: #c5d797;
}
.park-chip-empty {
    font-size: 11px;
    color: var(--text-3);
    font-style: italic;
}

/* Right Column (Info Tiles) */
.park-col-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.park-info-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(13, 20, 32, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    transition: border-color 0.18s;
}
.park-info-tile:hover {
    border-color: rgba(197, 215, 151, 0.3);
}
.park-tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-2);
}
.park-tile-icon .icon {
    width: 16px;
    height: 16px;
}
.park-info-tile.prime-tile .park-tile-icon {
    color: #c5d797;
    background: rgba(197, 215, 151, 0.1);
}
.park-tile-info {
    min-width: 0;
    flex: 1;
}
.park-tile-label {
    font-family: var(--font-head);
    font-size: 9px;
    letter-spacing: 1.4px;
    color: var(--text-3);
    text-transform: uppercase;
}
.park-tile-val {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    color: #f1f5f9;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.park-tile-val.gold { color: #c5d797; }
.park-tile-val.teal { color: #c5d797; }
.park-tile-val.mono { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: #94a3b8; }

/* Modal Footer */
.park-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #050810;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    gap: 12px;
}
.park-footer-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.park-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-3);
}
.park-status-pill.in-game {
    color: #34d399;
}
.park-status-pill.offline {
    color: #f87171;
}
.park-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.7);
}
.park-status-pill.in-game .park-status-dot {
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.7);
}
.park-redeem-hint {
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.park-redeem-hint.ok {
    color: #34d399;
}
.park-footer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.btn-park-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 4px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-2);
    transition: all 0.18s ease;
}
.btn-park-act:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.btn-park-act:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.btn-park-act.btn-release:not(:disabled):hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}
.btn-park-act.btn-redeem {
    background: linear-gradient(135deg, rgba(197, 215, 151, 0.2) 0%, rgba(80, 250, 123, 0.25) 100%);
    border: 1px solid rgba(197, 215, 151, 0.55);
    color: #c5d797;
    font-weight: 800;
}
.btn-park-act.btn-redeem:not(:disabled):hover {
    background: linear-gradient(135deg, #c5d797 0%, #50fa7b 100%);
    border-color: #c5d797;
    color: #000;
    box-shadow: 0 0 16px rgba(197, 215, 151, 0.5);
}

/* Parked dinosaur modal: same glass cards and neon as the Customize & Buy modal */
.park-modal-window { --park-card: linear-gradient(135deg, rgba(14, 26, 18, 0.62) 0%, rgba(6, 12, 8, 0.78) 100%); --park-line: rgba(197, 215, 151, 0.22); }

/* Head and footer rows stay clear of the vines and leaves in the frame's corners */
.park-modal-window .park-modal-head { flex-shrink: 0; padding: 0 22px 10px 30px; background: none; border-bottom: none; }
.park-modal-window .park-top-flag { font-family: 'Barlow Condensed', Impact, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.park-modal-window .park-top-flag.prime {
    background: rgba(80, 250, 123, 0.16);
    border-color: rgba(80, 250, 123, 0.5);
    color: #50fa7b;
    box-shadow: 0 0 8px rgba(80, 250, 123, 0.25);
}
.park-modal-window .park-top-flag.prime .icon { filter: drop-shadow(0 0 4px #50fa7b); }
.park-modal-window .park-top-flag.muts { background: rgba(197, 215, 151, 0.16); border-color: rgba(197, 215, 151, 0.4); }
.park-modal-window .park-modal-close {
    border-radius: 50%;
    background: rgba(8, 14, 10, 0.85);
    border-color: rgba(197, 215, 151, 0.4);
    color: #c5d797;
}
.park-modal-window .park-modal-close:hover {
    background: rgba(80, 250, 123, 0.25);
    border-color: #50fa7b;
    color: #fff;
    box-shadow: 0 0 16px rgba(80, 250, 123, 0.7);
    transform: scale(1.08);
}

.park-modal-window .park-stage-hint { color: rgba(197, 215, 151, 0.55); }
.park-modal-window .park-stage-bottom { background: linear-gradient(0deg, rgba(5, 10, 7, 0.82) 0%, transparent 100%); }
.park-modal-window .park-stage-kicker { color: #c5d797; }
.park-modal-window .park-stage-title {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 26px;
    letter-spacing: 0.04em;
    color: #f7faf5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.park-modal-window .park-stage-growth-label { color: #8da08c; }
.park-modal-window .park-stage-growth-val { color: #50fa7b; text-shadow: 0 0 14px rgba(80, 250, 123, 0.6); }

.park-modal-window .park-modal-tabs { flex-shrink: 0; margin-top: 8px; background: none; border-bottom-color: var(--park-line); }
.park-modal-window .park-tab { color: #8da08c; font-family: 'Barlow Condensed', Impact, sans-serif; font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; }
.park-modal-window .park-tab:hover { color: #fff; background: rgba(197, 215, 151, 0.05); }
.park-modal-window .park-tab.active { color: #50fa7b; text-shadow: 0 0 10px rgba(80, 250, 123, 0.5); }
.park-modal-window .park-tab.active::after { background: #50fa7b; box-shadow: 0 0 10px rgba(80, 250, 123, 0.8); }

.park-modal-window .park-modal-body {
    padding: 12px 8px 12px 0;
    gap: 12px;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 215, 151, 0.35) rgba(0, 0, 0, 0.35);
}
.park-modal-window .park-vitals-card,
.park-modal-window .park-muts-card,
.park-modal-window .park-info-tile {
    background: var(--park-card);
    border-color: var(--park-line);
    border-radius: 6px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.5);
}
.park-modal-window .park-info-tile { padding: 10px 12px; }
.park-modal-window .park-info-tile:hover {
    border-color: rgba(80, 250, 123, 0.55);
    box-shadow: 0 0 12px rgba(80, 250, 123, 0.2), inset 0 0 18px rgba(0, 0, 0, 0.5);
}
.park-modal-window .park-tile-icon { background: rgba(80, 250, 123, 0.08); color: #c5d797; border: 1px solid rgba(197, 215, 151, 0.18); }
.park-modal-window .park-info-tile.prime-tile .park-tile-icon { color: #50fa7b; background: rgba(80, 250, 123, 0.12); }
.park-modal-window .park-tile-label { color: #8da08c; }
.park-modal-window .park-tile-val { color: #f5f8f2; }
.park-modal-window .park-tile-val.gold { color: #50fa7b; text-shadow: 0 0 8px rgba(80, 250, 123, 0.4); }
.park-modal-window .park-tile-val.teal { color: #c5d797; }
.park-modal-window .park-tile-val.mono { color: #abb4a7; }

.park-modal-window .park-vital-label { color: #c9d2c0; }
.park-modal-window .park-vital-label .icon { color: #c5d797; }
.park-modal-window .park-vital-val { color: #f5f8f2; }
.park-modal-window .park-vital-bar { background: rgba(0, 0, 0, 0.45); }
.park-modal-window .park-vital-bar.stamina > span,
.park-modal-window .park-vital-bar.thirst > span { background: #50fa7b; box-shadow: 0 0 8px rgba(80, 250, 123, 0.6); }
.park-modal-window .park-vital-bar.hunger > span { background: #c5d797; box-shadow: 0 0 8px rgba(197, 215, 151, 0.55); }

.park-modal-window .park-card-title { font-family: 'Barlow Condensed', Impact, sans-serif; font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; }
.park-modal-window .park-chip { background: rgba(0, 0, 0, 0.35); border-color: var(--park-line); }
.park-modal-window .park-chip-tag { color: #50fa7b; }
.park-modal-window .park-chip.parent .park-chip-tag { color: #c5d797; }
.park-modal-window .park-chip.elder .park-chip-tag { color: #8fbf5a; }
.park-modal-window .park-chip-name { color: #eef3e6; }
.park-modal-window .park-chip-empty,
.park-modal-window .park-tab-empty,
.park-modal-window .park-tab-empty .icon { color: #8da08c; }
.park-modal-window .slot { background: var(--park-card); border-color: var(--park-line); border-radius: 6px; }
.park-modal-window .slot-label { color: #8da08c; }
.park-modal-window .prime-status { background: var(--park-card); border-color: var(--park-line); border-radius: 6px; }
.park-modal-window .prime-status.yes { border-color: rgba(80, 250, 123, 0.5); color: #50fa7b; box-shadow: 0 0 12px rgba(80, 250, 123, 0.2); }
.park-modal-window .prime-status-sub { color: #abb4a7; }

.park-modal-window .park-modal-footer { flex-shrink: 0; padding: 10px 62px 0; background: none; border-top-color: var(--park-line); }
.park-modal-window .park-status-pill.in-game { color: #50fa7b; }
.park-modal-window .park-status-pill.in-game .park-status-dot { background: #50fa7b; box-shadow: 0 0 8px #50fa7b; }
.park-modal-window .park-redeem-hint { color: #8da08c; white-space: normal; line-height: 1.3; }
.park-modal-window .park-redeem-hint.ok { color: #50fa7b; }
.park-modal-window .btn-park-act {
    background: rgba(8, 14, 10, 0.7);
    border-color: var(--park-line);
    color: #c9d2c0;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
}
.park-modal-window .btn-park-act:not(:disabled):hover {
    background: rgba(197, 215, 151, 0.12);
    border-color: rgba(197, 215, 151, 0.55);
    color: #fff;
    box-shadow: 0 0 12px rgba(197, 215, 151, 0.25);
}
.park-modal-window .btn-park-act.btn-release:not(:disabled):hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}
.park-modal-window .btn-park-act.btn-redeem { background: rgba(80, 250, 123, 0.14); border-color: rgba(80, 250, 123, 0.55); color: #50fa7b; }
.park-modal-window .btn-park-act.btn-redeem:not(:disabled):hover {
    background: rgba(80, 250, 123, 0.28);
    border-color: #50fa7b;
    color: #fff;
    box-shadow: 0 0 16px rgba(80, 250, 123, 0.6);
}

@media (max-width: 760px) {
    .park-modal-window { padding: 26px 26px 48px; }
    .park-modal-window .park-modal-head { padding: 0 8px 8px 14px; }
    .park-modal-window .park-stage-kicker span,
    .park-modal-window .park-stage-hint { display: none; }
    .park-modal-window .park-modal-stage { height: 150px; }
    .park-modal-window .park-modal-body { grid-template-columns: minmax(0, 1fr); }
    .park-modal-window .park-tab { font-size: 10.5px; letter-spacing: 0.06em; }
    .park-modal-window .park-modal-footer { flex-direction: column; align-items: stretch; padding: 8px 8px 0; }
    .park-modal-window .park-footer-actions { flex-wrap: wrap; }
    .park-modal-window .btn-park-act { flex: 1; justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* Skin Studio                                                          */
/* ------------------------------------------------------------------ */
.studio-bridge {
    display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px;
    border: 1px solid rgba(34,197,139,0.35); border-radius: 2px; color: var(--green);
    font-family: var(--font-head); font-weight: 600; font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase;
}
.studio-bridge .dot { background: var(--green); }
.studio-bridge.off { color: var(--red); border-color: rgba(229,72,77,0.35); }
.studio-bridge.off .dot { background: var(--red); }

.studio { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.studio-list-panel { padding: 16px; }
.studio-list-panel .btn-secondary { margin-bottom: 12px; }
.studio-list { display: flex; flex-direction: column; gap: 6px; }
.studio-empty { font-size: 11.5px; line-height: 1.5; color: var(--text-3); }
.studio-skin {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; text-align: left; color: var(--text);
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 2px; transition: border-color .15s;
}
.studio-skin:hover { border-color: rgba(255,255,255,0.18); }
.studio-skin.active { border-color: rgba(34,197,139,0.55); background: rgba(34,197,139,0.06); }
.studio-skin-dots { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 22px; flex: none; }
.studio-skin-dots i { height: 10px; border-radius: 1px; }
.studio-skin-main { display: flex; flex-direction: column; min-width: 0; }
.studio-skin-name { font-family: var(--font-head); font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-skin-meta { font-size: 10px; color: var(--text-3); margin-top: 2px; text-transform: capitalize; }

/* Rarity colors, shared by the studio and (later) skins / cases */
.rarity-text.common, .rarity-tag.common { --rar: #9aa3b2; }
.rarity-text.uncommon, .rarity-tag.uncommon { --rar: #3fbf7f; }
.rarity-text.rare, .rarity-tag.rare { --rar: #3b8ef0; }
.rarity-text.epic, .rarity-tag.epic { --rar: #a55cf2; }
.rarity-text.legendary, .rarity-tag.legendary { --rar: #e9a23b; }
.rarity-text.mythic, .rarity-tag.mythic { --rar: #ef4f6b; }
.rarity-text { color: var(--rar); font-weight: 600; }
.rarity-tag {
    display: inline-block; padding: 2px 7px; border-radius: 2px; color: var(--rar); border: 1px solid var(--rar);
    font-family: var(--font-head); font-weight: 600; font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase;
}

.studio-editor { padding: 16px; }
.studio-preview {
    --skin-body: #7a5a3a; --skin-glitch: #ff0055; --skin-glow: 0px; --skin-glitch-speed: 1.6s;
    display: flex; align-items: center; gap: 18px; padding: 14px 16px; margin-bottom: 16px;
    border: 1px solid var(--line);
    background:
        linear-gradient(rgba(34,197,139,0.05) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(90deg, rgba(34,197,139,0.05) 1px, transparent 1px) 0 0 / 18px 18px,
        radial-gradient(ellipse at 25% 50%, rgba(34,197,139,0.14), transparent 60%),
        linear-gradient(180deg, #0f1d18 0%, #0a120f 100%);
}
.studio-preview-art { width: 330px; height: 154px; flex: none; }
.studio-preview-art svg { width: 100%; height: 100%; overflow: visible; }

/* Region guide: each region of the schematic dinosaur takes its color (--rg-<Region>). */
.region-map [data-region] { fill: var(--m); stroke: rgba(0,0,0,0.35); stroke-width: 1; transition: opacity .15s; }
.region-map [data-region=BodyColor] { --m: var(--rg-BodyColor); --a: var(--rg-glitch-BodyColor); }
.region-map [data-region=MarkingsColor] { --m: var(--rg-MarkingsColor); --a: var(--rg-glitch-MarkingsColor); }
.region-map [data-region=FlankColor] { --m: var(--rg-FlankColor); --a: var(--rg-glitch-FlankColor); }
.region-map [data-region=UnderbellyColor] { --m: var(--rg-UnderbellyColor); --a: var(--rg-glitch-UnderbellyColor); }
.region-map [data-region=Detail1Color] { --m: var(--rg-Detail1Color); --a: var(--rg-glitch-Detail1Color); }
.region-map [data-region=EyesColor] { --m: var(--rg-EyesColor); --a: var(--rg-glitch-EyesColor); }
.region-map [data-region=MaleDisplayColor] { --m: var(--rg-MaleDisplayColor); --a: var(--rg-glitch-MaleDisplayColor); }
.region-map [data-region=TeethColor] { --m: var(--rg-TeethColor); --a: var(--rg-glitch-TeethColor); }
.region-map [data-region=MouthColor] { --m: var(--rg-MouthColor); --a: var(--rg-glitch-MouthColor); }
.region-map [data-region=ClawsColor] { --m: var(--rg-ClawsColor); --a: var(--rg-glitch-ClawsColor); }
/* A <g> region colors its children */
.region-map g[data-region] { fill: none; stroke: none; }
.region-map g[data-region] > * { fill: var(--m); stroke: rgba(0,0,0,0.35); stroke-width: 1; }
.region-map.focus [data-region] { opacity: .22; }
.region-map.focus [data-region].on { opacity: 1; }
.region-map.focus path[data-region].on, .region-map.focus ellipse[data-region].on, .region-map.focus circle[data-region].on { stroke: #fff; stroke-width: 2; }
.region-map.focus g[data-region].on > * { stroke: #fff; stroke-width: 2; }

.studio-preview.glow .studio-preview-art { filter: drop-shadow(0 0 var(--skin-glow) var(--skin-body)); }
.studio-preview.glitch .region-map [data-region] { animation: rg-glitch var(--skin-glitch-speed) steps(1) infinite; }
.studio-preview.glitch .region-map g[data-region] > * { animation: rg-glitch var(--skin-glitch-speed) steps(1) infinite; }
.studio-preview.glitch .region-map g[data-region] { animation: none; }
@keyframes rg-glitch {
    0%, 62%, 70%, 88%, 100% { fill: var(--m); }
    64% { fill: var(--a); }
    90% { fill: var(--a); }
}
/* Live 3D preview */
.studio-preview:has(.studio-3d) { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.studio-3d { position: relative; height: 460px; cursor: grab; background: radial-gradient(circle at 50% 40%, rgba(14, 25, 38, 0.65) 0%, rgba(6, 10, 16, 0.95) 100%); }
.studio-3d:active { cursor: grabbing; }
.studio-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.studio-3d-tools { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 5; flex-wrap: wrap; }
.studio-model-selector-wrap {
    display: flex; align-items: center; gap: 6px;
    background: rgba(8, 14, 22, 0.82); border: 1px solid rgba(197, 215, 151, 0.35);
    border-radius: 4px; padding: 2px 8px; backdrop-filter: blur(8px);
}
.studio-model-label {
    display: flex; align-items: center; gap: 4px; font-family: var(--font-head);
    font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: #c5d797; text-transform: uppercase;
}
.studio-model-select {
    background: transparent; color: #e6f1ff; border: none; outline: none;
    font-family: var(--font-head); font-size: 12px; font-weight: 600; padding: 4px 6px; cursor: pointer;
}
.studio-model-select option {
    background: #0d1520; color: #d0e2f5; font-family: var(--font-body); font-size: 13px;
}
.studio-3d-tools .inv-chip {
    background: rgba(8, 14, 22, 0.82); border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}
.studio-3d-tools .inv-chip.active {
    color: #c5d797; border-color: rgba(197, 215, 151, 0.65); background: rgba(197, 215, 151, 0.12);
    box-shadow: 0 0 12px rgba(197, 215, 151, 0.2);
}
.studio-3d-hint {
    position: absolute; left: 14px; top: 14px; z-index: 4; pointer-events: none;
    font-family: var(--font-mono); font-size: 10.5px; color: rgba(160, 195, 225, 0.75);
    background: rgba(6, 11, 18, 0.6); padding: 4px 8px; border-radius: 3px; border: 1px solid rgba(197, 215, 151, 0.15);
}
.studio-3d-loading {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(5, 9, 15, 0.78); backdrop-filter: blur(5px); z-index: 10;
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease; gap: 12px;
}
.studio-3d-loading.active { opacity: 1; pointer-events: auto; }
.studio-3d-spinner {
    width: 38px; height: 38px; border: 3px solid rgba(197, 215, 151, 0.2);
    border-top-color: #c5d797; border-radius: 50%; animation: spin 0.75s linear infinite;
}
.studio-3d-loading-text {
    font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    color: #c5d797; text-transform: uppercase; text-shadow: 0 0 8px rgba(197, 215, 151, 0.4);
}
.studio-3d-fallback { display: none; position: absolute; inset: 0; place-items: center; color: var(--text-3); font-size: 12px; }
.studio-3d.no-webgl .studio-3d-fallback { display: grid; }
.studio-preview:has(.studio-3d) .studio-preview-meta {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(7,8,11,0.45);
}
.studio-preview:has(.studio-3d) .studio-preview-name { margin: 0; font-size: 17px; }
.studio-preview:has(.studio-3d) .studio-swatches { margin-left: auto; }

.studio-hint-inline { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.studio-preview-meta { min-width: 0; }
.studio-preview-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin: 6px 0 10px; }
.studio-swatches { display: flex; flex-direction: column; gap: 4px; }
.studio-swatches > div { display: flex; gap: 3px; }
.studio-swatches i { width: 22px; height: 14px; border-radius: 1px; border: 1px solid rgba(255,255,255,0.08); }
.studio-swatches .glitch-row i { height: 6px; }

.studio-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.studio-field { display: flex; flex-direction: column; gap: 5px; min-width: 120px; }
.studio-field.grow { flex: 1; min-width: 200px; }
.studio-field > span {
    font-family: var(--font-head); font-size: 9.5px; letter-spacing: 1.5px; color: var(--text-3); text-transform: uppercase;
    display: flex; justify-content: space-between;
}
.studio-field > span b { color: var(--text-2); font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.studio-field .field { margin-bottom: 0; }
.studio-field input[type=range] { width: 100%; accent-color: var(--orange); height: 36px; }

.studio-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin-bottom: 8px; }
.studio-color {
    display: flex; align-items: center; gap: 8px; padding: 5px 8px;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 2px;
}
.studio-color input[type=color] { width: 28px; height: 24px; padding: 0; border: none; background: none; cursor: pointer; flex: none; }
.studio-color-label { flex: 1; font-size: 11.5px; color: var(--text-2); }
.studio-hex {
    width: 72px; padding: 3px 5px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 2px;
    font-family: var(--font-mono); font-size: 11px; color: var(--text); outline: none;
}
.studio-hex:focus { border-color: rgba(34,197,139,0.5); }

.studio-effects { display: flex; gap: 6px; margin-bottom: 10px; }
.studio-effects .inv-chip.active { color: var(--green); border-color: rgba(34,197,139,0.55); background: rgba(34,197,139,0.08); }
.studio-glitch { padding: 12px; margin-bottom: 8px; border: 1px dashed rgba(239,79,107,0.35); background: rgba(239,79,107,0.03); }
.studio-hint { font-size: 11.5px; color: var(--text-3); margin-bottom: 10px; }
.studio-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.studio-actions .btn-secondary { width: auto; flex: 1; min-width: 150px; }
.studio-actions .btn-primary { flex: 2; }
.danger-text { color: var(--red); }
.danger-text:hover { border-color: rgba(229,72,77,0.5); }

@media (max-width: 1100px) {
    .studio { grid-template-columns: minmax(0, 1fr); }
    .studio-preview { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
    .inv-search { width: 100%; }
    .inv-tools { width: 100%; }
}

.btn-primary {
    width: 100%; height: 40px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--orange); border: none; border-radius: 2px; color: #120a02;
    font-family: var(--font-head); font-weight: 700; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
    transition: background .15s, opacity .15s;
}
.btn-primary:hover { background: var(--orange-2); }
.btn-primary.danger { background: var(--red); color: #fff; }
.btn-primary.danger:hover { background: #f05b60; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }

.btn-secondary {
    width: 100%; height: 36px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 2px; color: var(--text);
    font-family: var(--font-head); font-weight: 600; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase;
}
.btn-secondary:hover { border-color: rgba(197, 215, 151,0.5); }

.conn-status { display: flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; font-size: 9.5px; letter-spacing: 1.6px; color: var(--green); text-transform: uppercase; }
.conn-status.off { color: var(--red); }
.conn-name { font-family: var(--font-head); font-weight: 700; font-size: 15px; margin: 6px 0 4px; }
.conn-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); line-height: 1.7; }
.conn-meta b { color: var(--text-2); font-weight: 500; }

.field {
    width: 100%; height: 36px; padding: 0 10px; margin-bottom: 8px;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 2px; color: var(--text); font-size: 12px; outline: none;
}
.field:focus { border-color: rgba(197, 215, 151,0.55); }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* ------------------------------------------------------------------ */
/* Toasts                                                               */
/* ------------------------------------------------------------------ */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast {
    display: flex; align-items: center; gap: 10px;
    min-width: 260px; max-width: 380px;
    padding: 11px 14px;
    background: var(--bg-3); border: 1px solid var(--line-2); border-left: 2px solid var(--orange);
    font-size: 12px; color: var(--text);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    animation: toastIn .2s ease;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hidden { display: none !important; }

/* ------------------------------------------------------------------ */
/* Gateway Live Map                                                     */
/* ------------------------------------------------------------------ */
.map-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}
.map-controls-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.map-controls-bar .btn-ghost.active {
    border-color: #c5d797;
    color: #fff;
    background: linear-gradient(135deg, rgba(197, 215, 151, 0.28), rgba(197, 215, 151, 0.12));
    box-shadow: 0 0 12px rgba(197, 215, 151, 0.4);
}

.map-status-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: 4px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.strip-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
}
.strip-pill.ml-auto { margin-left: auto; }
.strip-lbl {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 1.2px;
    color: var(--text-3);
    text-transform: uppercase;
}
.strip-val { font-weight: 600; color: var(--text); }
.strip-val.highlight { color: var(--orange); font-family: var(--font-head); font-size: 11.5px; text-transform: uppercase; }
.strip-val.health-val { color: var(--green); }
.strip-val.mono { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }

.map-hud-panel {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    background: #07090d;
    height: calc(100vh - 215px);
    min-height: 600px;
}
.map-viewport-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}
.live-map-canvas {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #07090d !important;
}

/* Leaflet Dark HUD Overrides */
.leaflet-container {
    background: #07090d !important;
    font-family: var(--font-ui) !important;
}
.leaflet-bar {
    border: 1px solid var(--line-2) !important;
    border-radius: 4px !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6) !important;
}
.leaflet-bar a {
    background: var(--bg-2) !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--line) !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-weight: 700 !important;
    transition: background .15s, color .15s;
}
.leaflet-bar a:hover {
    background: var(--bg-3) !important;
    color: var(--orange) !important;
}
.leaflet-popup-content-wrapper {
    background: var(--bg-1) !important;
    border: 1px solid var(--line-2) !important;
    color: var(--text) !important;
    border-radius: 4px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.8) !important;
    padding: 4px 6px !important;
}
.leaflet-popup-tip {
    background: var(--bg-1) !important;
}
.leaflet-popup-content {
    margin: 8px 12px !important;
    font-size: 12px;
    line-height: 1.5;
}

/* Custom Live Dinosaur Radar Marker */
/* Map marker roots must stay absolute (Leaflet places them with transforms); relative
   positioning stacks them in document flow and pushes every later marker downward. */
.dino-radar-marker {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
.dino-radar-pulse {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    background: rgba(197, 215, 151, 0.25);
    animation: radarPulse 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}
.dino-radar-dot {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--orange);
    border: 2px solid #ffffff;
    box-shadow: 0 0 12px rgba(197, 215, 151, 0.95), 0 0 4px #000;
    z-index: 2;
    cursor: pointer;
}
.dino-radar-label {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 9, 13, 0.92);
    border: 1px solid var(--orange);
    border-radius: 3px;
    padding: 2px 7px;
    font-family: var(--font-head);
    font-size: 9.5px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.7);
    pointer-events: none;
    z-index: 5;
}

/* Other Players Markers (Admin Radar) */
.other-player-marker {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}
.other-player-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #50fa7b;
    border: 1.5px solid #fff;
    box-shadow: 0 0 8px rgba(80, 250, 123, 0.8);
    cursor: pointer;
}
.other-player-label {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 9, 13, 0.88);
    border: 1px solid rgba(80, 250, 123, 0.4);
    border-radius: 2px;
    padding: 1px 5px;
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 600;
    color: #50fa7b;
    white-space: nowrap;
    pointer-events: none;
}

@keyframes radarPulse {
    0% { transform: scale(0.3); opacity: 1; }
    70% { opacity: 0.4; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ------------------------------------------------------------------ */
/* Dinoden Style Map Overlay Sidebar & Interactive Controls           */
/* ------------------------------------------------------------------ */
.map-sidebar {
    position: absolute;
    top: 12px;
    left: 12px;
    bottom: 12px;
    width: 320px;
    max-width: calc(100% - 24px);
    height: calc(100% - 24px);
    max-height: calc(100% - 24px);
    z-index: 1000;
    background: rgba(11, 15, 22, 0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(197, 215, 151, 0.25);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    pointer-events: auto;
}
.map-sidebar.collapsed {
    transform: translateX(-110%);
    opacity: 0;
    pointer-events: none;
}

.map-sb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(18, 24, 34, 0.6);
    flex-shrink: 0;
}
.map-sb-title-box { display: flex; flex-direction: column; gap: 2px; }
.map-sb-badge {
    font-size: 8.5px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.map-sb-title {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fff;
}
.map-sb-btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}
.map-sb-btn-icon:hover {
    background: var(--bg-3);
    border-color: var(--orange);
    color: var(--orange);
}

.map-sidebar-expand-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(11, 15, 22, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--orange);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.7);
    transition: all .15s ease;
}
.map-sidebar-expand-btn:hover {
    background: var(--orange);
    color: #000;
}

.map-sb-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) rgba(0, 0, 0, 0.5);
}
.map-sb-body > * {
    flex-shrink: 0;
}
.map-sb-body::-webkit-scrollbar { width: 7px; }
.map-sb-body::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.45); border-radius: 4px; }
.map-sb-body::-webkit-scrollbar-thumb { background: rgba(197, 215, 151, 0.7); border-radius: 4px; }
.map-sb-body::-webkit-scrollbar-thumb:hover { background: var(--orange); }

.map-sb-search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.map-sb-search-box .icon {
    position: absolute;
    left: 10px;
    color: var(--text-3);
    pointer-events: none;
}
.map-sb-search-box input {
    width: 100%;
    padding: 8px 10px 8px 32px;
    background: rgba(6, 9, 14, 0.85);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: #fff;
    font-size: 11.5px;
    outline: none;
    transition: border-color .15s;
}
.map-sb-search-box input:focus {
    border-color: var(--orange);
}

.map-sb-section-heading {
    font-size: 9px;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 6px;
    margin-bottom: -4px;
}

/* Toggle row item */
.map-sb-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(18, 24, 34, 0.45);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: background .15s, border-color .15s;
}
.map-sb-toggle-item:hover {
    background: rgba(18, 24, 34, 0.7);
    border-color: var(--line-2);
}
.map-sb-toggle-labels { display: flex; flex-direction: column; gap: 2px; }
.map-sb-toggle-name { font-size: 12px; font-weight: 600; color: #fff; }
.map-sb-toggle-desc { font-size: 10px; color: var(--text-3); }

/* Cyberpunk Orange Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #1a2230;
    border: 1px solid var(--line-2);
    transition: .25s ease;
    border-radius: 20px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: #8fa0b5;
    transition: .25s ease;
    border-radius: 50%;
}
.switch input:checked + .slider {
    background-color: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 10px rgba(197, 215, 151, 0.4);
}
.switch input:checked + .slider:before {
    transform: translateX(18px);
    background-color: #ffffff;
}

/* Accordions */
.map-sb-accordion {
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(18, 24, 34, 0.35);
    flex-shrink: 0;
}
.map-sb-acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 600;
    transition: background .15s;
}
.map-sb-acc-header:hover {
    background: rgba(255, 255, 255, 0.04);
}
.map-sb-acc-label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.acc-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.dot-purple { background: #a855f7; box-shadow: 0 0 6px #a855f7; }
.dot-green { background: #00ff88; box-shadow: 0 0 6px #00ff88; }
.dot-blue { background: #50fa7b; box-shadow: 0 0 6px #50fa7b; }
.dot-orange { background: #c5d797; box-shadow: 0 0 6px #c5d797; }

.map-sb-acc-badge {
    margin-left: auto;
    margin-right: 8px;
    padding: 1px 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 10px;
    color: var(--text-2);
}
.acc-chevron {
    color: var(--text-3);
    transition: transform .2s ease;
}
.map-sb-accordion.open .acc-chevron {
    transform: rotate(180deg);
}

.map-sb-acc-list {
    max-height: 250px;
    overflow-y: auto !important;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) rgba(0, 0, 0, 0.3);
}
.map-sb-acc-list > * {
    flex-shrink: 0;
}
.map-sb-acc-list::-webkit-scrollbar { width: 5px; }
.map-sb-acc-list::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); border-radius: 3px; }
.map-sb-acc-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.map-sb-acc-list::-webkit-scrollbar-thumb:hover { background: var(--orange); }

.map-sb-poi-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all .15s;
    font-size: 11px;
    color: var(--text-2);
}
.map-sb-poi-item:hover {
    background: rgba(197, 215, 151, 0.1);
    color: #fff;
    padding-left: 15px;
}
.map-sb-poi-item:hover .map-sb-poi-arrow {
    color: var(--orange);
    transform: translateX(2px);
}
.map-sb-poi-arrow {
    color: var(--text-3);
    font-size: 12px;
    transition: transform .15s;
}

.map-sb-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
}
.map-sb-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 11px;
}

/* Custom Sanctuary Badge Marker */
.sanctuary-map-marker {
    position: absolute !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
}
.sanctuary-icon-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.25);
    border: 2px solid #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    transition: transform .2s ease;
}
.sanctuary-icon-badge:hover {
    transform: scale(1.25);
    background: #a855f7;
}
.sanctuary-map-label {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(12, 16, 22, 0.92);
    border: 1px solid #a855f7;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: var(--font-head);
    font-size: 9px;
    font-weight: 700;
    color: #e9d5ff;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
    pointer-events: none;
    z-index: 5;
}

/* Custom Water Marker */
.water-map-marker {
    position: absolute !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
}
.water-icon-badge {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.2);
    border: 1.5px solid #50fa7b;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
    cursor: pointer;
    transition: transform .2s;
}
.water-icon-badge:hover { transform: scale(1.3); background: #50fa7b; }
.water-map-label {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 9, 13, 0.9);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 2px;
    padding: 1px 5px;
    font-size: 8.5px;
    font-weight: 600;
    color: #50fa7b;
    white-space: nowrap;
    pointer-events: none;
    z-index: 4;
}

/* Custom Migration Zone Label */
.migration-zone-label {
    background: rgba(7, 9, 13, 0.88);
    border: 1px solid #72d653;
    border-radius: 2px;
    padding: 1px 5px;
    font-size: 9px;
    font-weight: 700;
    color: #72d653;
    white-space: nowrap;
    text-transform: uppercase;
    pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Live Map: same glass cards and neon as the Customize & Buy modal                         */
/* ------------------------------------------------------------------ */
#page-map {
    --map-neon: 80, 250, 123;
    --map-water: 127, 227, 196;
    --map-glass: rgba(7, 12, 9, 0.62);
    --map-glass-soft: rgba(197, 215, 151, 0.05);
    --map-line: rgba(197, 215, 151, 0.2);
    --map-card: linear-gradient(180deg, rgba(9, 17, 12, 0.75) 0%, rgba(6, 12, 8, 0.88) 100%);
    --map-selected: linear-gradient(135deg, rgba(80, 250, 123, 0.18) 0%, rgba(10, 22, 14, 0.9) 100%);
}
#page-map .page-title { text-shadow: 0 0 18px rgba(var(--map-neon), 0.35); }
#page-map .page-sub { color: #8da08c; }

/* Top controls */
#page-map .map-controls-bar .btn-ghost {
    background: var(--map-glass);
    border-color: var(--map-line);
    color: #dfe6d3;
    backdrop-filter: blur(8px);
}
#page-map .map-controls-bar .btn-ghost:hover {
    border-color: rgba(var(--map-neon), 0.7);
    color: #fff;
    box-shadow: 0 0 14px rgba(var(--map-neon), 0.35);
}
#page-map .map-controls-bar .btn-ghost.active {
    border-color: #50fa7b;
    color: #50fa7b;
    background: rgba(var(--map-neon), 0.14);
    box-shadow: 0 0 14px rgba(var(--map-neon), 0.45), inset 0 0 8px rgba(var(--map-neon), 0.14);
}

/* Status strip */
#page-map .map-status-strip {
    background: var(--map-glass);
    border-color: var(--map-line);
    backdrop-filter: blur(10px);
}
#page-map .strip-pill { background: var(--map-glass-soft); border-color: var(--map-line); }
#page-map .strip-lbl { color: #8da08c; }
#page-map .strip-val.highlight { color: #50fa7b; text-shadow: 0 0 8px rgba(var(--map-neon), 0.55); }
#page-map .strip-val.health-val { color: #50fa7b; }

/* Map frame: see-through, so the page background shows around the island */
#page-map .map-hud-panel {
    height: calc(100vh - 312px);
    min-height: 520px;
    background: rgba(6, 10, 8, 0.45);
    border-color: var(--map-line);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 26px rgba(var(--map-neon), 0.1), inset 0 0 40px rgba(0, 0, 0, 0.35);
}
#page-map .map-hud-panel::before,
#page-map .map-hud-panel::after,
#page-map .map-hud-panel > .hud-c::before,
#page-map .map-hud-panel > .hud-c::after {
    border-color: rgba(var(--map-neon), 0.8);
    filter: drop-shadow(0 0 4px rgba(var(--map-neon), 0.6));
}
#page-map .live-map-canvas,
#page-map .leaflet-container { background: transparent !important; }

/* Fade the square edges of the satellite image into the panel */
#page-map .leaflet-image-layer {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    filter: saturate(0.92);
}

/* Sidebar */
#page-map .map-sidebar {
    background: var(--map-glass);
    border-color: rgba(var(--map-neon), 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 18px rgba(var(--map-neon), 0.1);
}
#page-map .map-sb-header { background: var(--map-glass-soft); border-bottom-color: var(--map-line); }
#page-map .map-sb-badge { color: #50fa7b; }
#page-map .map-sb-title { text-shadow: 0 0 12px rgba(var(--map-neon), 0.4); }
#page-map .map-sb-btn-icon { background: var(--map-glass-soft); border-color: var(--map-line); color: #50fa7b; }
#page-map .map-sb-btn-icon:hover { border-color: #50fa7b; box-shadow: 0 0 10px rgba(var(--map-neon), 0.4); }
#page-map .map-sb-search-box .icon { color: #8da08c; }
#page-map .map-sb-search-box input { background: rgba(0, 0, 0, 0.3); border-color: var(--map-line); }
#page-map .map-sb-search-box input::placeholder { color: #7d877a; }
#page-map .map-sb-search-box input:focus { border-color: #50fa7b; box-shadow: 0 0 10px rgba(var(--map-neon), 0.3); }
#page-map .map-sb-section-heading { color: #50fa7b; text-shadow: 0 0 8px rgba(var(--map-neon), 0.4); }

#page-map .map-sb-toggle-item { background: var(--map-glass-soft); border-color: var(--map-line); }
#page-map .map-sb-toggle-item:hover { background: rgba(var(--map-neon), 0.09); border-color: rgba(var(--map-neon), 0.4); }
#page-map .map-sb-toggle-item:has(input:checked) {
    border-color: rgba(var(--map-neon), 0.55);
    box-shadow: 0 0 10px rgba(var(--map-neon), 0.16), inset 0 0 10px rgba(var(--map-neon), 0.06);
}
#page-map .map-sb-toggle-desc { color: #8da08c; }
#page-map .slider { background-color: rgba(0, 0, 0, 0.4); border-color: var(--map-line); }
#page-map .slider:before { background-color: #7d877a; }
#page-map .switch input:checked + .slider { background-color: #50fa7b; box-shadow: 0 0 12px rgba(var(--map-neon), 0.65); }
#page-map .switch input:checked + .slider:before { background-color: #10180f; }

#page-map .map-sb-accordion { background: var(--map-glass-soft); border-color: var(--map-line); }
#page-map .map-sb-acc-header:hover { background: rgba(var(--map-neon), 0.08); }
#page-map .map-sb-acc-list { border-top-color: var(--map-line); }
#page-map .map-sb-acc-badge { background: rgba(var(--map-neon), 0.1); border-color: var(--map-line); color: #50fa7b; }
#page-map .map-sb-poi-item { color: #cfd6c8; border-bottom-color: rgba(var(--map-neon), 0.07); }
#page-map .map-sb-poi-item:hover { background: rgba(var(--map-neon), 0.12); box-shadow: inset 2px 0 0 #50fa7b; }
#page-map .dot-purple { background: #50fa7b; box-shadow: 0 0 7px #50fa7b; }
#page-map .dot-green { background: #e8f3cf; box-shadow: 0 0 7px #e8f3cf; }
#page-map .dot-blue { background: rgb(var(--map-water)); box-shadow: 0 0 7px rgb(var(--map-water)); }
#page-map .dot-orange { background: #c5d797; box-shadow: 0 0 7px #c5d797; }

#page-map .map-sb-actions .btn-secondary { background: var(--map-glass-soft); border-color: var(--map-line); color: #dfe6d3; }
#page-map .map-sb-actions .btn-secondary:hover { border-color: #50fa7b; color: #fff; box-shadow: 0 0 12px rgba(var(--map-neon), 0.35); }
#page-map .map-sidebar-expand-btn { background: var(--map-glass); border-color: #50fa7b; box-shadow: 0 0 14px rgba(var(--map-neon), 0.35); }
#page-map .map-sidebar-expand-btn:hover { background: #50fa7b; color: #10180f; }

/* Leaflet controls and popups */
#page-map .leaflet-bar { border-color: var(--map-line) !important; box-shadow: 0 0 12px rgba(var(--map-neon), 0.14) !important; }
#page-map .leaflet-bar a { background: var(--map-glass) !important; color: #50fa7b !important; border-bottom-color: var(--map-line) !important; backdrop-filter: blur(8px); }
#page-map .leaflet-bar a:hover { background: rgba(var(--map-neon), 0.18) !important; color: #fff !important; }
#page-map .leaflet-popup-content-wrapper {
    background: rgba(7, 12, 9, 0.84) !important;
    border-color: rgba(var(--map-neon), 0.4) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(var(--map-neon), 0.2) !important;
}
#page-map .leaflet-popup-tip { background: rgba(7, 12, 9, 0.84) !important; }
#page-map .leaflet-popup-close-button { color: #50fa7b !important; }

/* Map markers */
#page-map .sanctuary-icon-badge {
    background: rgba(var(--map-neon), 0.22);
    border-color: #50fa7b;
    box-shadow: 0 0 12px rgba(var(--map-neon), 0.85);
}
#page-map .sanctuary-icon-badge:hover { background: #50fa7b; }
#page-map .sanctuary-map-label {
    background: rgba(7, 12, 9, 0.72);
    border-color: rgba(var(--map-neon), 0.7);
    color: #e8f3cf;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 8px rgba(var(--map-neon), 0.3);
}
#page-map .water-icon-badge {
    background: rgba(var(--map-water), 0.22);
    border-color: rgb(var(--map-water));
    box-shadow: 0 0 8px rgba(var(--map-water), 0.8);
}
#page-map .water-icon-badge:hover { background: rgb(var(--map-water)); }
#page-map .water-map-label {
    background: rgba(7, 12, 9, 0.68);
    border-color: rgba(var(--map-water), 0.5);
    color: rgb(var(--map-water));
}
#page-map .migration-zone-label { background: rgba(7, 12, 9, 0.68); border-color: #c5d797; color: #c5d797; }

/* Customize & Buy details: type, cards and selected states */
#page-map .page-title,
#page-map .map-sb-title {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #f5f8f2;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}
#page-map .page-title { font-size: clamp(24px, 2.4vw, 30px); }
#page-map .map-sb-title { font-size: 19px; }
#page-map .map-sb-badge,
#page-map .map-sb-section-heading {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    color: #c5d797;
    text-shadow: none;
}
#page-map .map-sb-toggle-name,
#page-map .map-sb-acc-header,
#page-map .strip-lbl,
#page-map .map-controls-bar .btn-ghost,
#page-map .map-sb-actions .btn-secondary {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
}
#page-map .map-sb-toggle-name { font-size: 14px; color: #e5ede2; }
#page-map .map-sb-acc-header { font-size: 13.5px; color: #e5ede2; }
#page-map .strip-lbl { font-size: 11px; }
#page-map .map-controls-bar .btn-ghost,
#page-map .map-sb-actions .btn-secondary { font-size: 12.5px; }

#page-map .map-controls-bar .btn-ghost,
#page-map .map-status-strip,
#page-map .map-sidebar,
#page-map .map-sb-toggle-item,
#page-map .map-sb-accordion,
#page-map .map-sb-actions .btn-secondary { background: var(--map-card); }

/* Hover and selected: the tier and gender cards of the buy modal */
#page-map .map-controls-bar .btn-ghost:hover,
#page-map .map-sb-toggle-item:hover,
#page-map .map-sb-actions .btn-secondary:hover {
    border-color: rgba(80, 250, 123, 0.5);
    box-shadow: 0 0 14px rgba(80, 250, 123, 0.25), inset 0 0 12px rgba(80, 250, 123, 0.08);
}
#page-map .map-controls-bar .btn-ghost.active,
#page-map .map-sb-toggle-item:has(input:checked) {
    background: var(--map-selected);
    border-color: #50fa7b;
    box-shadow: 0 0 20px rgba(80, 250, 123, 0.6), inset 0 0 12px rgba(80, 250, 123, 0.2);
}
#page-map .map-controls-bar .btn-ghost.active { color: #50fa7b; text-shadow: 0 0 8px rgba(80, 250, 123, 0.6); }
#page-map .map-controls-bar .btn-ghost.active .icon { filter: drop-shadow(0 0 6px #50fa7b); }
#page-map .map-sb-toggle-item:has(input:checked) .map-sb-toggle-name { color: #50fa7b; text-shadow: 0 0 10px rgba(80, 250, 123, 0.7); }
#page-map .map-sb-toggle-item:has(input:checked) .map-sb-toggle-desc { color: #d1ded0; }
#page-map .map-sb-acc-badge { background: rgba(197, 215, 151, 0.12); border-color: rgba(197, 215, 151, 0.35); color: #c5d797; }
#page-map .map-sb-body::-webkit-scrollbar-thumb { background: rgba(197, 215, 151, 0.35); }
#page-map .map-sb-body::-webkit-scrollbar-thumb:hover { background: #50fa7b; box-shadow: 0 0 10px #50fa7b; }
#page-map .leaflet-control-zoom a { color: #c5d797 !important; }


/* ------------------------------------------------------------------ */
/* Global Dinoden Style Friends & Teleport Sidebar                   */
/* ------------------------------------------------------------------ */
.friends-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(100%);
    width: clamp(330px, 27vw, 420px);
    height: min(860px, 92vh);
    max-width: 90vw;
    z-index: 1050;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
    pointer-events: auto;
}
.friends-sidebar:not(.collapsed),
.friends-sidebar.open {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    pointer-events: auto;
}
.friends-sidebar.collapsed {
    transform: translateY(-50%) translateX(100%);
    pointer-events: auto;
}

.friends-sb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(18, 24, 34, 0.6);
    flex-shrink: 0;
}
.friends-sb-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.friends-sb-title-box { display: flex; flex-direction: column; gap: 2px; }
.friends-sb-icon-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fff;
}
.friends-sb-icon-title .icon { color: var(--orange); }
.friends-sb-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-2);
}
.status-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #50fa7b;
    box-shadow: 0 0 8px #50fa7b;
    display: inline-block;
    animation: livePulse 1.6s infinite;
}
.dot-sep { color: var(--text-3); font-size: 10px; }

.friends-sb-btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}
.friends-sb-btn-icon:hover {
    background: var(--bg-3);
    border-color: var(--orange);
    color: var(--orange);
}

.friends-sb-tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    background: rgba(14, 19, 27, 0.7);
    flex-shrink: 0;
}
.friends-tab-btn {
    flex: 1;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-2);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .15s ease;
}
.friends-tab-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.02); }
.friends-tab-btn.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    background: rgba(197, 215, 151, 0.08);
}

.friends-sb-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.friends-teleport-status {
    padding: 8px 12px;
    background: rgba(197, 215, 151, 0.07);
    border-bottom: 1px solid rgba(197, 215, 151, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    flex-shrink: 0;
}
.tp-status-row { display: flex; align-items: center; gap: 6px; }
.tp-lbl { color: var(--orange); font-weight: 700; }
.tp-val { color: var(--text-2); }
.tp-cooldown-badge {
    background: rgba(255, 60, 60, 0.2);
    border: 1px solid rgba(255, 60, 60, 0.5);
    color: #ff6b6b;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 10px;
}

.friends-sb-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) rgba(0, 0, 0, 0.5);
}
.friends-sb-body > * { flex-shrink: 0; }
.friends-sb-body::-webkit-scrollbar { width: 7px; }
.friends-sb-body::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.45); border-radius: 4px; }
.friends-sb-body::-webkit-scrollbar-thumb { background: rgba(197, 215, 151, 0.7); border-radius: 4px; }
.friends-sb-body::-webkit-scrollbar-thumb:hover { background: var(--orange); }

.friends-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-2);
    text-transform: uppercase;
    margin-top: 4px;
}
.friends-section-header .section-icon { color: var(--orange); font-size: 11px; }
.friends-badge {
    margin-left: auto;
    padding: 1px 7px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 9.5px;
    color: var(--text-2);
}

.friends-card-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.friends-empty-msg {
    padding: 12px;
    text-align: center;
    font-size: 11px;
    color: var(--text-3);
    background: rgba(18, 24, 34, 0.3);
    border: 1px dashed var(--line);
    border-radius: 4px;
}

/* Friend Card */
.friend-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(18, 24, 34, 0.5);
    border: 1px solid var(--line);
    border-radius: 5px;
    transition: all .15s ease;
}
.friend-card:hover {
    background: rgba(18, 24, 34, 0.85);
    border-color: rgba(197, 215, 151, 0.35);
}
.friend-card.is-ingame {
    border-left: 3px solid #00ff88;
}
.friend-card.is-web {
    border-left: 3px solid #c5d797;
}
.friend-card.is-offline {
    opacity: 0.65;
}
.friend-card-main {
    display: flex;
    align-items: center;
    gap: 10px;
}
.friend-avatar-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    background: #090d14;
    border: 1px solid var(--line-2);
    flex-shrink: 0;
}
.friend-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.friend-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #090d14;
}
.dot-ingame { background: #00ff88; box-shadow: 0 0 6px #00ff88; }
.dot-web { background: #c5d797; box-shadow: 0 0 6px #c5d797; }
.dot-offline { background: #556274; }

.friend-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.friend-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friend-status-text {
    font-size: 10.5px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friend-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.friend-msg-btn {
    background: transparent;
    border: none;
    color: var(--text-2);
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: color .15s, background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.friend-msg-btn:hover {
    color: var(--orange);
    background: rgba(197, 215, 151, 0.15);
}
.friend-remove-btn {
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: color .15s, background .15s;
}
.friend-remove-btn:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* Friend Teleport Button */
.btn-teleport {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px;
    background: linear-gradient(135deg, rgba(197, 215, 151, 0.25), rgba(255, 77, 0, 0.4));
    border: 1px solid var(--orange);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 2px 10px rgba(197, 215, 151, 0.25);
}
.btn-teleport:hover:not(:disabled) {
    background: var(--orange);
    color: #000;
    box-shadow: 0 0 16px rgba(197, 215, 151, 0.7);
    transform: translateY(-1px);
}
.btn-teleport:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-3);
    cursor: not-allowed;
    box-shadow: none;
}

.friends-sb-footer {
    padding: 10px 14px;
    background: rgba(14, 19, 27, 0.8);
    border-top: 1px solid var(--line);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.friends-add-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
}
.friends-bottom-hide-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-2);
    border-radius: 4px;
    color: var(--text-2);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}
.friends-bottom-hide-btn:hover {
    background: rgba(197, 215, 151, 0.12);
    border-color: var(--orange);
    color: #fff;
}

/* Floating Dock Pill on the Right Edge */
.friends-floating-dock {
    display: none !important;
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1150;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(8, 13, 20, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid var(--orange);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: -4px 8px 24px rgba(0, 0, 0, 0.7), 0 0 16px rgba(197, 215, 151, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.friends-floating-dock:hover {
    background: var(--orange);
    color: #07090d;
    padding-right: 18px;
    box-shadow: -4px 8px 30px rgba(197, 215, 151, 0.6);
}
.friends-floating-dock.hidden {
    transform: translate(110%, -50%);
    opacity: 0;
    pointer-events: none;
}
.dock-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 8px var(--orange);
    animation: dockDotPulse 2s infinite;
}
@keyframes dockDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}
.dock-count {
    padding: 1px 6px;
    background: rgba(197, 215, 151, 0.2);
    border: 1px solid var(--orange);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
}
.friends-floating-dock:hover .dock-count {
    background: #07090d;
    color: var(--orange);
    border-color: #07090d;
}

/* Topnav Friends Button */
.nav-friends-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: rgba(197, 215, 151, 0.08);
    border: 1px solid rgba(197, 215, 151, 0.3);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all .15s ease;
}
.nav-friends-btn:hover {
    background: var(--orange);
    color: #07090d;
    border-color: var(--orange);
    box-shadow: 0 0 16px rgba(197, 215, 151, 0.4);
}
.nav-friends-btn.active {
    background: var(--orange);
    color: #07090d;
}
.friends-nav-badge {
    padding: 1px 6px;
    background: rgba(197, 215, 151, 0.25);
    border: 1px solid var(--orange);
    border-radius: 10px;
    font-size: 9.5px;
    font-weight: 800;
    color: #fff;
}
.nav-friends-btn:hover .friends-nav-badge,
.nav-friends-btn.active .friends-nav-badge {
    background: #07090d;
    color: var(--orange);
    border-color: #07090d;
}

/* Smooth Page & Tab Transitions */
.content > div:not(.hidden),
.main > div:not(.hidden),
.page-container:not(.hidden) {
    animation: cyberPageEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.content > #page-map:not(.hidden),
.main > #page-map:not(.hidden) {
    animation: mapPageEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    transform: none !important;
}
@keyframes cyberPageEnter {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.996);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}
@keyframes mapPageEnter {
    0% {
        opacity: 0;
        filter: blur(4px);
        transform: none !important;
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: none !important;
    }
}
.tab-panel:not(.hidden),
.friends-sb-content:not(.hidden) {
    animation: subtabFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes subtabFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.99);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.friends-pill-badge {
    padding: 1px 6px;
    background: rgba(197, 215, 151, 0.25);
    border: 1px solid var(--orange);
    border-radius: 10px;
    font-size: 9.5px;
    font-weight: 800;
    color: #fff;
    margin-left: 4px;
}

/* Modal Add Friend */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-box {
    width: 480px;
    max-width: 100%;
    background: rgba(15, 20, 29, 0.98);
    border: 1px solid rgba(197, 215, 151, 0.35);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    padding: 20px;
}
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}
.modal-desc {
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 12px;
}
.modal-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.suggest-players-section {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.suggest-players-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.suggest-players-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
}
.suggest-player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: background .15s;
}
.suggest-player-row:hover { background: rgba(255, 255, 255, 0.06); }
.suggest-player-name { font-size: 12px; font-weight: 600; color: #fff; }
.suggest-player-sub { font-size: 10px; color: var(--text-3); }

/* Direct Messaging in Friends Sidebar */
.dm-friends-selector {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.dm-selector-header {
    padding: 11px 16px;
    background: rgba(12, 22, 16, 0.75);
    border-bottom: 1px solid rgba(197, 215, 151, 0.2);
    font-size: 11.5px;
    font-weight: 800;
    color: #c5d797;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 0 10px rgba(197, 215, 151, 0.25);
}
.dm-friends-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dm-friend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(18, 24, 34, 0.45);
    border: 1px solid var(--line);
    border-radius: 5px;
    cursor: pointer;
    transition: all .15s ease;
}
.dm-friend-row:hover {
    background: rgba(197, 215, 151, 0.1);
    border-color: rgba(197, 215, 151, 0.4);
    transform: translateX(2px);
}
.dm-friend-action {
    margin-left: auto;
    color: var(--orange);
    display: flex;
    align-items: center;
}

/* Active Conversation View */
.dm-conversation-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.dm-conv-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(14, 19, 27, 0.85);
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.dm-back-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: 4px;
    color: var(--text-2);
    cursor: pointer;
    transition: all .15s ease;
}
.dm-back-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--bg-3);
}
.dm-target-avatar-wrap {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    background: #090d14;
    border: 1px solid var(--line-2);
    flex-shrink: 0;
}
.dm-target-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dm-target-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.dm-target-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dm-target-sub {
    font-size: 10px;
    color: var(--text-2);
}

/* Message bubbles */
.dm-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) rgba(0, 0, 0, 0.4);
}
.dm-bubble {
    max-width: 82%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dm-bubble.outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(197, 215, 151, 0.25), rgba(197, 215, 151, 0.15));
    border: 1px solid rgba(197, 215, 151, 0.45);
    color: #fff;
    border-bottom-right-radius: 2px;
}
.dm-bubble.incoming {
    align-self: flex-start;
    background: rgba(22, 29, 41, 0.7);
    border: 1px solid var(--line-2);
    color: var(--text);
    border-bottom-left-radius: 2px;
}
.dm-bubble-time {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    align-self: flex-end;
}

.dm-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: rgba(14, 19, 27, 0.8);
    flex-shrink: 0;
}
.dm-chat-form input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(6, 9, 14, 0.88);
    border: 1px solid var(--line-2);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    outline: none;
    transition: border-color .15s ease;
}
.dm-chat-form input:focus {
    border-color: var(--orange);
}

/* Friend Requests Styles */
.friends-pending-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    margin: 10px 10px 0;
    background: linear-gradient(135deg, rgba(197, 215, 151, 0.22), rgba(197, 215, 151, 0.08));
    border: 1px solid rgba(197, 215, 151, 0.5);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 0 10px rgba(197, 215, 151, 0.2);
}

/* Incoming Teleport Request Card */
.friends-tp-requests-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px 0;
}
.friends-tp-requests-container:empty {
    display: none;
    padding: 0;
}
.tp-request-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(197, 215, 151, 0.25), rgba(18, 24, 34, 0.9));
    border: 1px solid var(--orange);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(197, 215, 151, 0.35);
    animation: tpPulse 2s infinite ease-in-out;
}
@keyframes tpPulse {
    0%, 100% { border-color: rgba(197, 215, 151, 0.7); box-shadow: 0 0 12px rgba(197, 215, 151, 0.3); }
    50% { border-color: #c5d797; box-shadow: 0 0 20px rgba(197, 215, 151, 0.6); }
}
.tp-request-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--orange);
    text-transform: uppercase;
}
.tp-timer-pill {
    margin-left: auto;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(197, 215, 151, 0.4);
    border-radius: 3px;
    color: #fff;
    font-size: 10px;
}
.tp-request-body {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tp-request-actions {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}
.btn-tp-accept {
    flex: 1;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    background: #c5d797;
    color: #05080e;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all .15s ease;
}
.btn-tp-accept:hover {
    background: #20e0e3;
    box-shadow: 0 0 10px rgba(197, 215, 151, 0.5);
}
.btn-tp-decline {
    flex: 1;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.4);
    border-radius: 3px;
    cursor: pointer;
    transition: all .15s ease;
}
.btn-tp-decline:hover {
    background: rgba(255, 71, 87, 0.3);
}
.requests-sb-header {
    padding: 11px 16px;
    background: rgba(12, 22, 16, 0.75);
    border-bottom: 1px solid rgba(197, 215, 151, 0.2);
    font-size: 11.5px;
    font-weight: 800;
    color: #c5d797;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 0 10px rgba(197, 215, 151, 0.25);
}
.requests-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.request-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: rgba(18, 24, 34, 0.6);
    border: 1px solid var(--line);
    border-radius: 5px;
    transition: border-color .15s ease;
}
.request-card:hover {
    border-color: rgba(197, 215, 151, 0.35);
}
.request-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.request-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.btn-accept-req {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    background: #c5d797;
    color: #06090e;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all .15s ease;
}
.btn-accept-req:hover {
    background: #20e0e3;
    box-shadow: 0 0 8px rgba(197, 215, 151, 0.4);
}
.btn-decline-req {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.35);
    border-radius: 3px;
    cursor: pointer;
    transition: all .15s ease;
}
.btn-decline-req:hover {
    background: rgba(255, 71, 87, 0.28);
    border-color: #ff4757;
}

/* Modal Search Row & Results */
.modal-search-row {
    display: flex;
    gap: 8px;
}
.search-players-results-box {
    margin-top: 14px;
    max-height: 240px;
    overflow-y: auto;
}
.search-players-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.search-player-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(18, 24, 34, 0.55);
    border: 1px solid var(--line);
    border-radius: 5px;
    transition: all .15s ease;
}
.search-player-card:hover {
    border-color: rgba(197, 215, 151, 0.4);
    background: rgba(197, 215, 151, 0.06);
}

@media (max-width: 1100px) {
    .dashboard-layout, .layout {
        grid-template-columns: 1fr;
        max-width: 860px;
        margin: 0 auto;
        gap: 24px;
        padding: 20px 16px 40px;
    }
    .side {
        order: 2;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }
}

/* ------------------------------------------------------------------ */
/* Realistic Winter Snow Canvas                                      */
/* ------------------------------------------------------------------ */
.snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 85;
    opacity: 0.95;
    transition: opacity 0.4s ease;
}

/* ------------------------------------------------------------------ */
/* Active Nav Item Glow & Indicators                                  */
/* ------------------------------------------------------------------ */
.nav-item {
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item.active {
    color: #fff !important;
    background: rgba(197, 215, 151, 0.12) !important;
    border-color: rgba(197, 215, 151, 0.45) !important;
    box-shadow: 0 0 16px rgba(197, 215, 151, 0.18), inset 0 0 12px rgba(197, 215, 151, 0.08);
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 18%;
    right: 18%;
    height: 2px;
    background: var(--orange);
    box-shadow: 0 0 8px var(--orange);
    border-radius: 2px;
}

/* ------------------------------------------------------------------ */
/* Home Page & Community Hub                                          */
/* ------------------------------------------------------------------ */
#page-home {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 40px;
}

/* Home Hero */
.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 280px;
    align-items: center;
    gap: 32px;
    padding: 32px 36px;
    background: linear-gradient(135deg, rgba(14, 20, 32, 0.95) 0%, rgba(7, 10, 16, 0.98) 100%);
    border: 1px solid rgba(197, 215, 151, 0.22);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(197, 215, 151, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    z-index: 2;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 4px 12px;
    background: rgba(197, 215, 151, 0.1);
    border: 1px solid rgba(197, 215, 151, 0.35);
    border-radius: 20px;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 10px var(--orange);
    animation: radarPulse 1.8s infinite;
}

.home-hero-title {
    font-family: var(--font-head);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    letter-spacing: 1.5px;
    margin: 0;
}

.home-hero-title .hero-highlight {
    background: linear-gradient(135deg, #c5d797 0%, #50fa7b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(197, 215, 151, 0.4));
}

.home-hero-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    max-width: 620px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.home-hero-actions .btn-primary {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
}

.btn-discord {
    color: #5865F2 !important;
    border-color: rgba(88, 101, 242, 0.4) !important;
}
.btn-discord:hover {
    background: rgba(88, 101, 242, 0.15) !important;
    border-color: #5865F2 !important;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
}

/* Home Hero Logo Showcase */
.home-hero-logo-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    z-index: 2;
}

.hero-logo-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 215, 151, 0.35) 0%, rgba(197, 215, 151, 0.08) 50%, transparent 75%);
    filter: blur(20px);
    pointer-events: none;
    animation: heroGlowPulse 4s infinite ease-in-out;
}

.home-hero-logo {
    position: relative;
    width: 210px;
    height: 210px;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(197, 215, 151, 0.75)) drop-shadow(0 14px 32px rgba(0, 0, 0, 0.85));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    z-index: 2;
    animation: heroLogoFloat 5s ease-in-out infinite alternate;
}

.home-hero-logo:hover {
    transform: scale(1.06) rotate(1deg);
    filter: drop-shadow(0 0 38px rgba(197, 215, 151, 0.95)) drop-shadow(0 18px 40px rgba(0, 0, 0, 0.95));
}

@keyframes heroLogoFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

@keyframes heroGlowPulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.65;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

/* Home Server Info Card */
.home-server-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 22px;
    background: rgba(8, 12, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.server-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.server-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 800;
    color: #00ff88;
    letter-spacing: 0.8px;
}
.server-status-pill .pulse-dot {
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
}

.server-ping-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #8fa0b5;
    letter-spacing: 0.5px;
}

.server-card-name {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.server-card-ip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #cbd5e1;
}

.server-card-ip b {
    color: var(--orange);
}

.btn-copy-ip {
    background: rgba(197, 215, 151, 0.15);
    border: 1px solid rgba(197, 215, 151, 0.35);
    color: var(--orange);
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
}
.btn-copy-ip:hover {
    background: var(--orange);
    color: #07090d;
}

.server-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.server-qstat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.qstat-lbl {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qstat-val {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}
.qstat-val.highlight {
    color: #c5d797;
}

/* Home Content Grid */
.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
}

.home-section {
    padding: 24px 28px;
    background: rgba(11, 15, 23, 0.85);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.section-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.section-title .icon {
    color: var(--orange);
}

.section-sub {
    font-size: 12px;
    color: #64748b;
    margin: 3px 0 0 0;
}

.section-badge {
    padding: 3px 8px;
    background: rgba(197, 215, 151, 0.12);
    border: 1px solid rgba(197, 215, 151, 0.35);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
}

/* Updates Timeline Cards */
.updates-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.update-card {
    padding: 18px 20px;
    background: rgba(14, 20, 32, 0.6);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.update-card:hover {
    border-color: rgba(197, 215, 151, 0.45);
    background: rgba(14, 20, 32, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.update-card.featured {
    border-left: 3px solid var(--orange);
    background: linear-gradient(90deg, rgba(197, 215, 151, 0.05) 0%, rgba(14, 20, 32, 0.6) 100%);
}

.update-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.badge-tag {
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tag-cyan {
    background: rgba(197, 215, 151, 0.15);
    border: 1px solid rgba(197, 215, 151, 0.45);
    color: var(--orange);
}

.tag-orange {
    background: rgba(255, 170, 0, 0.15);
    border: 1px solid rgba(255, 170, 0, 0.45);
    color: #ffaa00;
}

.tag-purple {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #c084fc;
}

.update-date {
    font-size: 11px;
    color: #64748b;
    font-family: var(--font-mono);
}

.update-card-title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.update-card-text {
    font-size: 12.5px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 12px 0;
}

.update-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-pill {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 10px;
    color: #8fa0b5;
}

/* Home Side Column */
.home-side-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-item {
    padding: 14px 16px;
    background: rgba(14, 20, 32, 0.5);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: all .15s ease;
}

.news-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(14, 20, 32, 0.75);
}

.news-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.news-cat {
    font-family: var(--font-head);
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}
.news-cat.event { background: rgba(0, 255, 136, 0.15); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.3); }
.news-cat.rule { background: rgba(255, 71, 87, 0.15); color: #ff4757; border: 1px solid rgba(255, 71, 87, 0.3); }
.news-cat.guide { background: rgba(197, 215, 151, 0.15); color: var(--orange); border: 1px solid rgba(197, 215, 151, 0.3); }

.news-date {
    font-size: 10.5px;
    color: #64748b;
}

.news-title {
    font-family: var(--font-head);
    font-size: 13.5px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.news-text {
    font-size: 11.5px;
    color: #8fa0b5;
    line-height: 1.5;
    margin: 0;
}

/* Community / Discord Card */
.home-community-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.08) 0%, rgba(14, 20, 32, 0.9) 100%);
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.comm-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.comm-card-icon .comm-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(197, 215, 151, 0.75)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.75));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    margin-bottom: 8px;
}

.comm-card-icon .comm-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 32px rgba(197, 215, 151, 0.95)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.9));
}

.comm-title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px 0;
}

.comm-text {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.w-full {
    width: 100%;
}

@media (max-width: 1100px) {
    .home-hero {
        grid-template-columns: 1fr;
        padding: 24px;
        text-align: center;
    }
    .home-hero-content {
        align-items: center;
    }
    .home-hero-actions {
        justify-content: center;
    }
    .home-hero-logo {
        width: 160px;
        height: 160px;
    }
    .hero-logo-glow {
        width: 190px;
        height: 190px;
    }
    .home-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Currency Pills & Topnav Badges
   ========================================================================== */
.nav-currencies {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-right: 12px;
}

.currency-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 8.5px;
    border-radius: 5px;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    background: rgba(12, 17, 26, 0.88);
    transition: all 0.2s ease;
    cursor: default;
    user-select: none;
}

.currency-pill.gold {
    border: 1px solid rgba(197, 215, 151, 0.45);
    box-shadow: 0 0 8px rgba(197, 215, 151, 0.15), inset 0 0 10px rgba(197, 215, 151, 0.08);
}

.currency-pill.gold .cur-icon {
    font-size: 12px;
    filter: drop-shadow(0 0 4px rgba(197, 215, 151, 0.6));
    line-height: 1;
}

.currency-pill.gold .cur-val {
    color: #c5d797;
    font-weight: 800;
    font-size: 11px;
    text-shadow: 0 0 8px rgba(197, 215, 151, 0.4);
    line-height: 1;
}

.currency-pill.gold .cur-name {
    color: #ffd166;
    font-size: 8.5px;
    letter-spacing: 0.6px;
    opacity: 0.9;
    line-height: 1;
}

.currency-pill.diamond {
    border: 1px solid rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.15), inset 0 0 10px rgba(0, 229, 255, 0.08);
}

.currency-pill.diamond .cur-icon {
    font-size: 12px;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.7));
    line-height: 1;
}

.currency-pill.diamond .cur-val {
    color: #50fa7b;
    font-weight: 800;
    font-size: 11px;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.45);
    line-height: 1;
}

.currency-pill.diamond .cur-name {
    color: #a5f3fc;
    font-size: 8.5px;
    letter-spacing: 0.6px;
    opacity: 0.9;
    line-height: 1;
}

.currency-pill.silver {
    border: 1px solid rgba(180, 205, 230, 0.4);
    box-shadow: 0 0 8px rgba(180, 205, 230, 0.12), inset 0 0 10px rgba(180, 205, 230, 0.06);
}

.currency-pill.silver .cur-icon {
    font-size: 12px;
    filter: drop-shadow(0 0 4px rgba(180, 205, 230, 0.5));
}

.currency-pill.silver .cur-val {
    color: #e0f2fe;
    font-weight: 800;
    font-size: 11px;
    text-shadow: 0 0 8px rgba(180, 205, 230, 0.35);
}

.currency-pill.silver .cur-name {
    color: #94a3b8;
    font-size: 8.5px;
}

.currency-pill:hover {
    transform: translateY(-1px);
}

/* ==========================================================================
   Marketplace & Ready Dino Vault
   ========================================================================== */
#page-marketplace {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 50px;
}

.market-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(14, 20, 32, 0.95) 0%, rgba(7, 10, 16, 0.98) 100%);
    border: 1px solid rgba(197, 215, 151, 0.25);
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.market-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(197, 215, 151, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.market-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}

.market-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 4px 12px;
    background: rgba(197, 215, 151, 0.12);
    border: 1px solid rgba(197, 215, 151, 0.4);
    border-radius: 20px;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    color: #c5d797;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.market-hero-title {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
    margin: 0;
}

.market-hero-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 680px;
    margin: 0;
}

.market-hero-desc b {
    color: #f1f5f9;
}

.market-currency-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}

.market-cur-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(11, 16, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.market-cur-card.gold {
    border-color: rgba(197, 215, 151, 0.35);
    background: linear-gradient(135deg, rgba(197, 215, 151, 0.08) 0%, rgba(15, 21, 32, 0.9) 100%);
}

.market-cur-card.diamond {
    border-color: rgba(0, 229, 255, 0.35);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(15, 21, 32, 0.9) 100%);
    position: relative;
}

.market-cur-card.silver {
    border-color: rgba(180, 205, 230, 0.25);
    background: linear-gradient(135deg, rgba(180, 205, 230, 0.06) 0%, rgba(15, 21, 32, 0.9) 100%);
    position: relative;
}

.mcur-ico {
    font-size: 26px;
}

.mcur-meta {
    display: flex;
    flex-direction: column;
}

.mcur-lbl {
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #64748b;
    text-transform: uppercase;
}

.mcur-val {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.market-cur-card.gold .mcur-val {
    color: #c5d797;
    text-shadow: 0 0 10px rgba(197, 215, 151, 0.3);
}

.market-cur-card.diamond .mcur-val {
    color: #50fa7b;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

.market-cur-card.silver .mcur-val {
    color: #e0f2fe;
}

.mcur-tip {
    margin-left: auto;
    font-size: 10px;
    color: #c5d797;
    background: rgba(197, 215, 151, 0.12);
    border: 1px solid rgba(197, 215, 151, 0.25);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Tabs Bar */
.market-tabs-bar {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 2px;
}

.market-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px 6px 0 0;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.18s ease;
}

.market-tab-btn:hover:not(.disabled) {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.market-tab-btn.active {
    color: #fff;
    background: rgba(14, 20, 32, 0.95);
    border-color: rgba(197, 215, 151, 0.45);
    box-shadow: 0 -2px 10px rgba(197, 215, 151, 0.1);
}

.market-tab-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.market-tab-badge {
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
    background: rgba(197, 215, 151, 0.2);
    color: #c5d797;
}

.market-tab-badge.soon {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

/* Toolbar */
.market-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: rgba(14, 20, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    margin-bottom: 18px;
}

.market-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 380px;
    background: rgba(6, 9, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
}

.market-search-box input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    width: 100%;
    outline: none;
}

.market-search-box input::placeholder {
    color: #64748b;
}

.market-filter-pills {
    display: flex;
    gap: 6px;
}

.market-pill-btn {
    padding: 5px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
}

.market-pill-btn.active, .market-pill-btn:hover {
    background: rgba(197, 215, 151, 0.15);
    border-color: rgba(197, 215, 151, 0.4);
    color: #c5d797;
}

/* Dinosaur Card Grid */
.market-dino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.market-dino-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: all 0.22s ease;
}

.market-dino-card:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: none;
}

.dino-card-media {
    position: relative;
    height: 185px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0;
}

@keyframes softDinoFloat {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes exhibitLightPulse {
    0% {
        transform: translate(-50%, -48%) scale(0.95);
        opacity: 0.75;
    }
    50% {
        transform: translate(-50%, -54%) scale(1.12);
        opacity: 0.98;
    }
    100% {
        transform: translate(-50%, -48%) scale(0.95);
        opacity: 0.75;
    }
}

.dino-card-media img {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85));
    animation: softDinoFloat 3.6s ease-in-out infinite;
    will-change: transform;
    transition: filter 0.25s ease;
}

.market-dino-card:hover .dino-card-media img {
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.98));
}

.dino-exhibit-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 155px;
    height: 110px;
    border-radius: 50%;
    filter: blur(22px);
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
    animation: exhibitLightPulse 3.6s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Light exhibit colors requested by user */
.dino-exhibit-light.glow-red {
    width: 135px;
    height: 95px;
    background: radial-gradient(circle, rgba(248, 113, 113, 0.85) 0%, rgba(220, 38, 38, 0.45) 45%, rgba(185, 28, 28, 0.15) 65%, transparent 75%);
}

.dino-exhibit-light.glow-purple {
    background: radial-gradient(circle, rgba(192, 132, 252, 0.9) 0%, rgba(168, 85, 247, 0.48) 48%, rgba(126, 34, 206, 0.15) 65%, transparent 75%);
}

.dino-exhibit-light.glow-blue {
    background: radial-gradient(circle, rgba(197, 215, 151, 0.92) 0%, rgba(80, 250, 123, 0.5) 48%, rgba(80, 250, 123, 0.16) 65%, transparent 75%);
}

.dino-exhibit-light.glow-green {
    background: radial-gradient(circle, rgba(74, 222, 128, 0.9) 0%, rgba(34, 197, 94, 0.48) 48%, rgba(21, 128, 61, 0.15) 65%, transparent 75%);
}

.dino-exhibit-light.glow-yellow {
    background: radial-gradient(circle, rgba(253, 224, 71, 0.92) 0%, rgba(245, 158, 11, 0.52) 48%, rgba(217, 119, 6, 0.16) 65%, transparent 75%);
}

.dino-exhibit-light.glow-grey {
    background: radial-gradient(circle, rgba(226, 232, 240, 0.85) 0%, rgba(148, 163, 184, 0.45) 48%, rgba(100, 116, 139, 0.15) 65%, transparent 75%);
}

.dino-card-media svg {
    width: 65%;
    height: 65%;
    opacity: 0.35;
    fill: #c5d797;
}

.card-top-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.diet-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    font-family: var(--font-head);
}

.diet-tag.carnivore {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.diet-tag.herbivore {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.diet-tag.omnivore {
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #facc15;
}

.prime-tag {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    background: linear-gradient(90deg, #c5d797, #8fa860);
    color: #000;
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}

.dino-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.dino-card-title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.dino-specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dino-spec-pill {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-weight: 600;
}

.dino-spec-pill.highlight {
    background: rgba(197, 215, 151, 0.12);
    border-color: rgba(197, 215, 151, 0.3);
    color: #c5d797;
}

.dino-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dino-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(78, 242, 210, 0.1);
    border: 1px solid rgba(78, 242, 210, 0.3);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 800;
    color: #4ef2d2;
    white-space: nowrap;
    flex-shrink: 0;
}

.dino-price-tag .price-icon {
    font-size: 12px;
    line-height: 1;
}

.dino-price-tag .dino-price-val {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #4ef2d2;
    white-space: nowrap;
}

.btn-buy-dino {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(80, 250, 123, 0.22) 0%, rgba(14, 38, 22, 0.92) 100%);
    border: 1px solid #50fa7b;
    color: #50fa7b;
    font-family: var(--font-head);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(80, 250, 123, 0.35), inset 0 0 10px rgba(80, 250, 123, 0.15);
    text-shadow: 0 0 8px rgba(80, 250, 123, 0.6);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-buy-dino:hover {
    background: linear-gradient(135deg, #50fa7b 0%, #2ec253 100%);
    border-color: #6eff94;
    color: #050f07;
    text-shadow: none;
    box-shadow: 0 0 26px rgba(80, 250, 123, 0.95), 0 0 45px rgba(80, 250, 123, 0.55), inset 0 0 12px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.btn-buy-dino:active,
.btn-buy-dino.neon-clicked {
    background: #85ffa4 !important;
    border-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 0 38px rgba(80, 250, 123, 1), 0 0 70px rgba(80, 250, 123, 0.85), inset 0 0 16px #ffffff !important;
    transform: translateY(0) scale(0.96) !important;
}

/* Locked Dino Card Styling */
.shop-dino-card.is-locked {
    opacity: 0.78;
    filter: grayscale(0.25);
    border: none !important;
}

.shop-dino-card.is-locked:hover {
    transform: none;
    border: none !important;
    box-shadow: none !important;
}

.locked-badge {
    background: rgba(239, 68, 68, 0.25) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    color: #fca5a5 !important;
}

.dino-card-locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 18, 0.65);
    backdrop-filter: blur(2px);
    z-index: 2;
    pointer-events: none;
}

.dino-card-locked-overlay span {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fca5a5;
    padding: 5px 12px;
    background: rgba(20, 10, 14, 0.85);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.btn-buy-dino.btn-dino-locked {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.btn-buy-dino.btn-dino-locked:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #64748b !important;
}

/* ==========================================================================
   ATHENS STONE FRAME — DINO CUSTOMIZER & MUTATION PICKER MODAL
   ========================================================================== */
.modal-dino-buy-wrapper {
    position: relative;
    max-width: 820px;
    width: 95vw;
    margin: auto;
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(80, 250, 123, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 10000;
}

.modal-dino-buy-frame.modal-dino-customizer {
    position: relative;
    width: 100%;
    max-height: 92vh;
    background-image: url('../asset/customize_buy_frame.png') !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 68px 46px 64px !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

/* Modal Frame Close Button */
.modal-dino-buy-frame .modal-frame-close-btn {
    position: absolute;
    top: 28px;
    right: 36px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(8, 14, 10, 0.85);
    border: 1px solid rgba(197, 215, 151, 0.4);
    color: #c5d797;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    transition: all 0.2s ease;
}
.modal-dino-buy-frame .modal-frame-close-btn:hover {
    background: rgba(80, 250, 123, 0.25);
    border-color: #50fa7b;
    color: #fff;
    box-shadow: 0 0 16px rgba(80, 250, 123, 0.7);
    transform: scale(1.08);
}
.modal-dino-buy-frame .modal-frame-close-btn svg {
    width: 16px;
    height: 16px;
}

/* Top Header */
.dino-modal-top-header {
    text-align: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.dino-modal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #c5d797;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.dino-modal-kicker .live-dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #50fa7b;
    box-shadow: 0 0 8px #50fa7b;
    animation: livePulse 1.8s infinite ease-in-out;
}
.dino-modal-title {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #f5f8f2;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
    margin: 0;
    line-height: 1.1;
}

/* Modal Body */
.customizer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 0 10px 6px 2px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-gutter: stable;
}
.customizer-body::-webkit-scrollbar {
    width: 5px;
}
.customizer-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 3px;
}
.customizer-body::-webkit-scrollbar-thumb {
    background: rgba(197, 215, 151, 0.35);
    border-radius: 3px;
}
.customizer-body::-webkit-scrollbar-thumb:hover {
    background: #50fa7b;
    box-shadow: 0 0 10px #50fa7b;
}

/* Dinosaur Preview Header Card */
.dino-preview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(14, 26, 18, 0.7) 0%, rgba(6, 12, 8, 0.85) 100%);
    border: 1px solid rgba(197, 215, 151, 0.22);
    border-radius: 6px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.5);
}
.dino-art-thumb {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    background: radial-gradient(circle, rgba(80, 250, 123, 0.12) 0%, rgba(5, 9, 7, 0.75) 70%);
    border: 1px solid rgba(197, 215, 151, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
}
.dino-art-thumb img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease;
}
.dino-preview-header:hover .dino-art-thumb img {
    transform: scale(1.05);
}
.dino-header-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.dino-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dino-header-name {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #f7faf5;
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.dino-diet-pill {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 3px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #ff7b7b;
    text-transform: uppercase;
}
.dino-diet-pill.herbivore {
    background: rgba(80, 250, 123, 0.16);
    border-color: rgba(80, 250, 123, 0.45);
    color: #50fa7b;
}
.dino-diet-pill.omnivore {
    background: rgba(189, 147, 249, 0.16);
    border-color: rgba(189, 147, 249, 0.45);
    color: #bd93f9;
}
.dino-header-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.stat-badge {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}
.stat-badge.prime {
    background: rgba(80, 250, 123, 0.16);
    border: 1px solid rgba(80, 250, 123, 0.5);
    color: #50fa7b;
    box-shadow: 0 0 8px rgba(80, 250, 123, 0.25);
}
.stat-badge.prime svg {
    color: #50fa7b;
    filter: drop-shadow(0 0 4px #50fa7b);
}
.stat-badge.growth {
    background: rgba(197, 215, 151, 0.16);
    border: 1px solid rgba(197, 215, 151, 0.4);
    color: #c5d797;
}
.stat-badge.vitals {
    background: rgba(80, 250, 123, 0.12);
    border: 1px solid rgba(80, 250, 123, 0.35);
    color: #50fa7b;
}

/* Customizer Sections */
.customizer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.section-label {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #c5d797;
    text-transform: uppercase;
}
.section-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.mutations-counter-pill {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #ff7b7b;
    transition: all 0.22s ease;
}
.mutations-counter-pill.ready {
    background: rgba(80, 250, 123, 0.2) !important;
    border-color: #50fa7b !important;
    color: #50fa7b !important;
    box-shadow: 0 0 16px rgba(80, 250, 123, 0.5) !important;
}
.section-hint {
    font-size: 11px;
    color: #8da08c;
    margin: -3px 0 0 0;
}

/* Growth Tier Radio Selection */
.tier-radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.tier-card {
    cursor: pointer;
}
.tier-card input {
    display: none;
}
.tier-card-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(9, 17, 12, 0.75) 0%, rgba(6, 12, 8, 0.88) 100%);
    border: 1px solid rgba(197, 215, 151, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
}
.tier-card:hover .tier-card-inner {
    border-color: rgba(80, 250, 123, 0.5);
    box-shadow: 0 0 14px rgba(80, 250, 123, 0.25), inset 0 0 12px rgba(80, 250, 123, 0.08);
    transform: translateY(-2px);
}
/* Neon Green Active State on Click/Select */
.tier-card input:checked + .tier-card-inner {
    background: linear-gradient(135deg, rgba(80, 250, 123, 0.18) 0%, rgba(10, 22, 14, 0.9) 100%) !important;
    border: 1px solid #50fa7b !important;
    box-shadow: 0 0 22px rgba(80, 250, 123, 0.65), inset 0 0 14px rgba(80, 250, 123, 0.22) !important;
    transform: translateY(-2px);
}
.tier-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.tier-badge {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #e5ede2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}
.tier-badge svg {
    color: #c5d797;
}
.tier-card input:checked + .tier-card-inner .tier-badge {
    color: #50fa7b;
    text-shadow: 0 0 10px rgba(80, 250, 123, 0.7);
}
.tier-card input:checked + .tier-card-inner .tier-badge svg {
    color: #50fa7b;
    filter: drop-shadow(0 0 6px #50fa7b);
}
.tier-price-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(197, 215, 151, 0.12);
    border: 1px solid rgba(197, 215, 151, 0.35);
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #c5d797;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}
.tier-price-pill svg {
    color: #50fa7b;
}
.tier-card input:checked + .tier-card-inner .tier-price-pill {
    background: rgba(80, 250, 123, 0.22) !important;
    border-color: #50fa7b !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(80, 250, 123, 0.45) !important;
}
.tier-subtitle {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    color: #9cb09a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.tier-desc {
    font-size: 11px;
    color: #8da28a;
    line-height: 1.35;
    margin: 2px 0 0 0;
}
.tier-card input:checked + .tier-card-inner .tier-desc {
    color: #d1ded0;
}

/* Gender Selection */
.gender-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.gender-card {
    cursor: pointer;
}
.gender-card input {
    display: none;
}
.gender-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(9, 17, 12, 0.75) 0%, rgba(6, 12, 8, 0.88) 100%);
    border: 1px solid rgba(197, 215, 151, 0.2);
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a4b5a2;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
}
.gender-card:hover .gender-card-inner {
    border-color: rgba(80, 250, 123, 0.5);
    color: #fff;
    box-shadow: 0 0 14px rgba(80, 250, 123, 0.25);
    transform: translateY(-1px);
}
.gender-ico {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    transition: all 0.2s ease;
}
/* Neon Green Active State on Gender Select */
.gender-card input:checked + .gender-card-inner {
    background: linear-gradient(135deg, rgba(80, 250, 123, 0.18) 0%, rgba(10, 22, 14, 0.9) 100%) !important;
    border: 1px solid #50fa7b !important;
    color: #50fa7b !important;
    box-shadow: 0 0 20px rgba(80, 250, 123, 0.6), inset 0 0 12px rgba(80, 250, 123, 0.2) !important;
    transform: translateY(-2px);
}
.gender-card input:checked + .gender-card-inner .gender-ico {
    filter: drop-shadow(0 0 8px #50fa7b);
    color: #50fa7b;
}

/* Mutations Grid & Filter Tabs */
.mutation-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}
.mut-filter-btn {
    padding: 5px 12px;
    border-radius: 4px;
    background: rgba(9, 17, 12, 0.7);
    border: 1px solid rgba(197, 215, 151, 0.2);
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ab097;
    cursor: pointer;
    transition: all 0.18s ease;
}
.mut-filter-btn:hover {
    border-color: rgba(80, 250, 123, 0.5);
    color: #fff;
    box-shadow: 0 0 12px rgba(80, 250, 123, 0.25);
}
/* Neon Green Active State for Filter Tabs */
.mut-filter-btn.active {
    background: rgba(80, 250, 123, 0.18) !important;
    border: 1px solid #50fa7b !important;
    color: #50fa7b !important;
    box-shadow: 0 0 16px rgba(80, 250, 123, 0.5) !important;
    text-shadow: 0 0 8px rgba(80, 250, 123, 0.6);
}

.mutations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow-y: auto !important;
    padding-right: 4px;
}
.mutations-grid::-webkit-scrollbar {
    width: 4px;
}
.mutations-grid::-webkit-scrollbar-thumb {
    background: rgba(197, 215, 151, 0.3);
    border-radius: 2px;
}
.mutations-grid::-webkit-scrollbar-thumb:hover {
    background: #50fa7b;
}

.mutation-item {
    position: relative;
    cursor: pointer;
}
.mutation-item input {
    display: none;
}
.mutation-item-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 11px;
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(9, 17, 12, 0.72) 0%, rgba(6, 12, 8, 0.88) 100%);
    border: 1px solid rgba(197, 215, 151, 0.18);
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35);
}
.mutation-item-inner:hover {
    border-color: rgba(80, 250, 123, 0.5);
    box-shadow: 0 0 12px rgba(80, 250, 123, 0.22);
}
/* Neon Green Active State on Mutation Selection */
.mutation-item input:checked + .mutation-item-inner {
    background: linear-gradient(135deg, rgba(80, 250, 123, 0.16) 0%, rgba(9, 22, 13, 0.9) 100%) !important;
    border: 1px solid #50fa7b !important;
    box-shadow: 0 0 18px rgba(80, 250, 123, 0.55), inset 0 0 10px rgba(80, 250, 123, 0.18) !important;
}
.mutation-item input:disabled + .mutation-item-inner {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(0.6);
}
.mut-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.mut-name {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #eaf1e8;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}
.mutation-item input:checked + .mutation-item-inner .mut-name {
    color: #50fa7b !important;
    text-shadow: 0 0 8px rgba(80, 250, 123, 0.65);
}
.mut-cat-badge {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(197, 215, 151, 0.12);
    border: 1px solid rgba(197, 215, 151, 0.25);
    color: #c5d797;
    text-transform: uppercase;
}
.mut-check-box {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1px solid rgba(197, 215, 151, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    transition: all 0.2s ease;
}
.mutation-item input:checked + .mutation-item-inner .mut-check-box {
    background: #50fa7b !important;
    border-color: #50fa7b !important;
    color: #070b09 !important;
    box-shadow: 0 0 10px #50fa7b;
}
.mut-desc {
    font-size: 10.5px;
    color: #8da08a;
    line-height: 1.35;
}

/* Customizer Summary Box */
.customizer-summary-box {
    padding: 12px 16px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(9, 17, 12, 0.8) 0%, rgba(5, 10, 7, 0.92) 100%);
    border: 1px solid rgba(197, 215, 151, 0.2);
    display: flex;
    flex-direction: column;
    gap: 7px;
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.4);
}
.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
}
.summary-line .s-label {
    color: #8da28a;
    font-weight: 600;
}
.summary-line .s-val {
    font-weight: 700;
    color: #eaf1e8;
    text-align: right;
}
.summary-line .s-val.text-cyan {
    color: #50fa7b;
}
.summary-line .s-val.text-green {
    color: #50fa7b;
}
.summary-line .s-val.text-muted {
    color: #72836f;
}
.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 215, 151, 0.2) 20%, rgba(197, 215, 151, 0.2) 80%, transparent);
    margin: 4px 0;
}
.summary-price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.price-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-title {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #9cb09a;
}
.price-diamond-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(80, 250, 123, 0.16);
    border: 1px solid rgba(80, 250, 123, 0.45);
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 900;
    color: #50fa7b;
    font-size: 15px;
    letter-spacing: 0.05em;
    box-shadow: 0 0 12px rgba(80, 250, 123, 0.25);
}
.price-diamond-badge svg {
    color: #50fa7b;
    filter: drop-shadow(0 0 4px #50fa7b);
}
.balance-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
}
.bal-label {
    color: #8da28a;
    font-weight: 600;
}
.bal-val {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #50fa7b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.bal-val.insufficient {
    color: #ff5252 !important;
}

/* Modal Footer */
.modal-footer.customizer-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 12px 4px 0;
    background: transparent !important;
    border-top: 1px solid rgba(197, 215, 151, 0.16);
    flex-shrink: 0;
}
.customizer-footer .btn-secondary {
    padding: 10px 18px;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 215, 151, 0.25);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.customizer-footer .btn-secondary:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 71, 87, 0.4);
}

/* Neon Green Confirm Purchase Button */
#btn-confirm-buy-dino {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 13.5px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.22s ease;
}
#btn-confirm-buy-dino:disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #5c6c5b;
    cursor: not-allowed;
    box-shadow: none;
}
#btn-confirm-buy-dino:not(:disabled) {
    background: linear-gradient(135deg, #50fa7b 0%, #2ec253 100%) !important;
    border: 1px solid #50fa7b !important;
    color: #061109 !important;
    box-shadow: 0 0 24px rgba(80, 250, 123, 0.75), 0 4px 14px rgba(0, 0, 0, 0.6) !important;
    cursor: pointer;
}
#btn-confirm-buy-dino:not(:disabled):hover {
    background: #6eff94 !important;
    box-shadow: 0 0 34px rgba(80, 250, 123, 0.95), 0 6px 18px rgba(0, 0, 0, 0.7) !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .modal-dino-buy-frame.modal-dino-customizer {
        padding: 58px 24px 52px !important;
    }
    .tier-radio-group {
        grid-template-columns: 1fr;
    }
    .modal-dino-buy-frame .modal-frame-close-btn {
        top: 20px;
        right: 20px;
    }
}

/* ============================================================== */
/* ADMIN COMMAND CENTER STYLES                                    */
/* ============================================================== */
.nav-admin-item .nav-ico {
    color: #ef4444;
}
.nav-admin-item:hover .nav-ico,
.nav-admin-item.active .nav-ico {
    color: #f87171;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}
.admin-pill {
    display: inline-block;
    padding: 1px 5px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    border-radius: 3px;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    margin-left: 5px;
}

.page-admin {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.admin-hero {
    position: relative;
    padding: 24px 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 20, 25, 0.9));
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(239, 68, 68, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-hero-content {
    flex: 1;
    min-width: 320px;
}

.admin-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 3px;
    margin-bottom: 8px;
}

.pulse-dot.red {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.admin-hero-title {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.hero-highlight-red {
    color: #ef4444;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.admin-hero-desc {
    font-size: 13px;
    color: #94a3b8;
    max-width: 650px;
    line-height: 1.5;
    margin: 0;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    min-width: 280px;
}

.admin-stat-card {
    padding: 10px 14px;
    background: rgba(10, 15, 25, 0.75);
    border: 1px solid var(--line);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.astat-lbl {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.6px;
}

.astat-val {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 800;
    color: #f1f5f9;
}

.text-cyan { color: #c5d797 !important; }
.text-gold { color: #f59e0b !important; }

/* Admin Tabs Bar */
.admin-tabs-bar {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    overflow-x: auto;
}

.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: #94a3b8;
    cursor: pointer;
    transition: all .15s ease;
}

.admin-tab-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    border-color: rgba(197, 215, 151, 0.4);
}

.admin-tab-btn.active {
    background: rgba(197, 215, 151, 0.15);
    color: #c5d797;
    border-color: #c5d797;
    box-shadow: 0 0 12px rgba(197, 215, 151, 0.25);
}

/* Admin Card Container */
.admin-card {
    position: relative;
    padding: 22px 24px;
    background: rgba(11, 17, 28, 0.85);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 14px;
}

.admin-card-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 4px 0;
}

.admin-card-sub {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.admin-form-grid.three-col {
    grid-template-columns: 2fr 1fr 1.5fr;
}

.admin-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

.admin-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #e2e8f0;
    padding-top: 8px;
}

.quick-growth-btns {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.btn-micro {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--line);
    color: #94a3b8;
    cursor: pointer;
}

.btn-micro:hover, .btn-micro.active {
    background: #50fa7b; color: #07100b;
    color: #ffffff;
    border-color: #c5d797;
}

.mut-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-link-action {
    background: none;
    border: none;
    color: #c5d797;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.btn-link-action:hover {
    color: #7dd3fc;
}

.admin-muts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.admin-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Action Box */
.admin-action-box {
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(197, 215, 151, 0.3);
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Tables */
.admin-table-container {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(10, 15, 25, 0.6);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.admin-table th {
    padding: 10px 14px;
    text-align: left;
    font-family: var(--font-head);
    font-weight: 700;
    color: #64748b;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.8);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table-user-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    background: #50fa7b; color: #07100b;
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name-bold {
    font-weight: 700;
    color: #f1f5f9;
}

.code-tag {
    font-family: monospace;
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    color: #94a3b8;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.badge-owner {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-admin {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-player {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.status-dot-green {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    margin-right: 4px;
}

.btn-table-action {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    border: 1px solid var(--line);
    background: rgba(30, 41, 59, 0.8);
    color: #cbd5e1;
    cursor: pointer;
}

.btn-table-action.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-table-action.danger:hover {
    background: #ef4444;
    color: #ffffff;
}

.btn-micro-action {
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    border: 1px solid var(--line);
    background: rgba(30, 41, 59, 0.7);
    color: #cbd5e1;
    cursor: pointer;
    margin-left: 2px;
}

.btn-micro-action:hover {
    background: #c5d797;
    color: #000;
    border-color: #c5d797;
}

.btn-micro-action.slay:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.btn-micro-action.heal:hover {
    background: #10b981;
    color: #000;
    border-color: #10b981;
}

.growth-tag {
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 3px;
    background: rgba(197, 215, 151, 0.15);
    color: #c5d797;
}

.mini-bar-wrap {
    width: 70px;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.mini-bar-fill {
    height: 100%;
    background: #ef4444;
}

.mini-bar-wrap span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
    line-height: 12px;
    font-weight: 800;
    color: #fff;
}

.table-empty {
    text-align: center;
    padding: 24px;
    color: #64748b;
    font-style: italic;
}

/* Grid Two */
.admin-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.admin-maintenance-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.maint-item {
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--line);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.maint-item h4 {
    margin: 0 0 4px 0;
    font-family: var(--font-head);
    font-size: 14px;
    color: #f1f5f9;
}

.maint-item p {
    margin: 0;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

.btn-danger {
    padding: 8px 16px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 800;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    transition: all .15s ease;
}

.btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Terminal Console */
.admin-terminal {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 4px;
    overflow: hidden;
    font-family: monospace;
}

.admin-terminal-log {
    padding: 16px;
    height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.term-line.sys { color: #64748b; }
.term-line.in { color: #c5d797; font-weight: 700; }
.term-line.out { color: #10b981; white-space: pre-wrap; }
.term-line.err { color: #f87171; white-space: pre-wrap; }

.admin-terminal-input-row {
    display: flex;
    align-items: center;
    background: #090d16;
    border-top: 1px solid #1e293b;
    padding: 8px 12px;
    gap: 8px;
}

.term-prompt {
    color: #c5d797;
    font-weight: 800;
    font-size: 14px;
}

.term-input {
    flex: 1;
    background: none;
    border: none;
    color: #f1f5f9;
    font-family: monospace;
    font-size: 13px;
    outline: none;
}

/* ============================================================== */
/* DINO SHOP HEADER BANNER                                        */
/* ============================================================== */
.shop-hero-showcase {
    position: relative;
    width: 100%;
    margin: 0 auto 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.shop-hero-art-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.shop-hero-banner-img {
    width: 100%;
    max-width: 980px;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 28px rgba(100, 160, 80, 0.28));
    display: block;
    user-select: none;
    pointer-events: none;
}
.shop-header-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 980px;
    gap: 16px;
    flex-wrap: wrap;
    background: rgba(12, 22, 16, 0.72);
    border: 1px solid rgba(197, 215, 151, 0.22);
    border-radius: 6px;
    padding: 10px 18px;
    box-sizing: border-box;
}
.shop-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c5d797;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.shop-header-currencies {
    display: flex;
    align-items: center;
    gap: 12px;
}
.shop-curr-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(8, 16, 11, 0.88);
    border: 1px solid rgba(197, 215, 151, 0.25);
    border-radius: 4px;
    transition: all 0.2s ease;
}
.shop-curr-card:hover {
    border-color: #50fa7b;
    box-shadow: 0 0 12px rgba(80, 250, 123, 0.25);
    transform: translateY(-1px);
}
.shop-curr-card.gold .curr-number {
    color: #ffd866;
}
.shop-curr-card.diamond .curr-number {
    color: #50fa7b;
}
.curr-symbol {
    font-size: 16px;
}
.curr-body {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.curr-name {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #a6ba8e;
    text-transform: uppercase;
}
.curr-number {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
}
.curr-sub {
    font-size: 9.5px;
    color: #50fa7b;
    font-weight: 700;
    padding-left: 6px;
    border-left: 1px solid rgba(197, 215, 151, 0.2);
}

/* ============================================================== */
/* HERO FRAME FOR ALL DINOSAUR CARDS (SHOP & MY STUFF)           */
/* ============================================================== */
.market-dino-card,
.inv-card,
.shop-dino-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 480px !important;
    aspect-ratio: 1024 / 1536 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 24px 30px 78px !important;
    box-sizing: border-box;
    box-shadow: none !important;
    overflow: visible !important;
    transition: transform 0.22s ease;
}

.market-dino-card::after,
.inv-card::after,
.market-dino-card .hud-c,
.inv-card .hud-c {
    display: none !important;
}

.market-dino-card::before,
.inv-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../asset/hero_frame.png') !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
    z-index: 1 !important;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.9));
    transition: filter 0.22s ease, transform 0.22s ease;
}

.market-dino-card:hover,
.inv-card:hover,
.shop-dino-card:hover {
    transform: translateY(-4px);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.market-dino-card:hover::before,
.inv-card:hover::before {
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 18px rgba(197, 215, 151, 0.45));
}

.market-dino-card > *,
.inv-card > * {
    position: relative;
    z-index: 3;
}

.market-dino-card .btn-buy-dino,
.inv-card .inv-card-open {
    position: relative;
    z-index: 12;
}

/* Shop Dinosaur Cards: Spacious & Majestic Inner Layout on Painted Frame */
.market-dino-card .dino-card-media {
    position: relative;
    height: 180px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    padding: 0 !important;
    margin-bottom: 2px !important;
    flex-shrink: 0;
}

.market-dino-card .dino-card-media img {
    max-height: 145px !important;
    max-width: 92% !important;
    object-fit: contain !important;
    margin-top: 10px !important;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(80, 250, 123, 0.25)) !important;
}

.market-dino-card .card-top-badges {
    position: absolute;
    top: 14px !important;
    left: 40px !important;
    right: 46px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 5;
}

.market-dino-card .diet-tag {
    font-size: 9px !important;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 3px 7px !important;
    border-radius: 3px;
    line-height: 1.1;
    background: rgba(14, 25, 18, 0.85);
    border: 1px solid rgba(197, 215, 151, 0.3);
    text-transform: uppercase;
}

.market-dino-card .diet-tag.carnivore {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.4);
    background: rgba(45, 12, 12, 0.8);
}

.market-dino-card .diet-tag.herbivore {
    color: #50fa7b;
    border-color: rgba(80, 250, 123, 0.4);
    background: rgba(12, 38, 18, 0.8);
}

.market-dino-card .diet-tag.omnivore {
    color: #ffd166;
    border-color: rgba(255, 209, 102, 0.4);
    background: rgba(40, 32, 10, 0.8);
}

.market-dino-card .prime-tag {
    font-size: 9px !important;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px !important;
    border-radius: 3px;
    line-height: 1.1;
    background: rgba(14, 25, 18, 0.85);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.market-dino-card .dino-card-body {
    padding: 4px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: center !important;
    width: 100%;
}

.market-dino-card .dino-card-title {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 24px !important;
    font-weight: 800;
    color: #f7faf5;
    letter-spacing: 0.03em;
    margin: 2px 0 8px 0 !important;
    line-height: 1.2;
    text-align: center !important;
    width: 100%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.market-dino-card .dino-specs-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
    width: 100%;
}

.market-dino-card .dino-spec-pill {
    font-size: 9.5px !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 8px !important;
    border-radius: 3px;
    background: rgba(10, 20, 14, 0.8);
    border: 1px solid rgba(197, 215, 151, 0.25);
    color: #c5d797;
    line-height: 1.2;
}

.market-dino-card .dino-spec-pill.highlight {
    background: rgba(80, 250, 123, 0.16);
    border-color: rgba(80, 250, 123, 0.5);
    color: #50fa7b;
}

.market-dino-card .dino-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px !important;
    margin-top: auto;
    padding: 8px 18px 0 18px !important;
    border-top: 1px solid rgba(197, 215, 151, 0.18) !important;
    width: 100%;
    box-sizing: border-box;
}

.market-dino-card .dino-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px !important;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 15px !important;
    font-weight: 800;
    color: #50fa7b;
    letter-spacing: 0.04em;
    text-shadow: 0 0 10px rgba(80, 250, 123, 0.35);
}

.market-dino-card .dino-price-tag .price-icon {
    font-size: 13px;
}

.market-dino-card .btn-buy-dino {
    display: inline-flex;
    align-items: center;
    gap: 6px !important;
    background: linear-gradient(135deg, rgba(80, 250, 123, 0.22) 0%, rgba(20, 60, 35, 0.85) 100%) !important;
    border: 1px solid rgba(80, 250, 123, 0.55) !important;
    color: #50fa7b !important;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 11.5px !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6.5px 12px !important;
    border-radius: 4px !important;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 14px rgba(80, 250, 123, 0.28), inset 0 0 10px rgba(80, 250, 123, 0.12) !important;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 8px rgba(80, 250, 123, 0.6);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.market-dino-card .btn-buy-dino svg {
    width: 13px !important;
    height: 13px !important;
    color: #50fa7b !important;
    filter: drop-shadow(0 0 6px #50fa7b);
}

/* Neon Light Sweep Shimmer Effect */
.market-dino-card .btn-buy-dino::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(80, 250, 123, 0.65), transparent);
    transform: skewX(-22deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

/* Hover: Bright Green Neon Glow & Flare */
.market-dino-card .btn-buy-dino:hover {
    background: linear-gradient(135deg, #50fa7b 0%, #2ec253 100%) !important;
    border-color: #6eff94 !important;
    box-shadow: 0 0 28px rgba(80, 250, 123, 0.95), 0 0 48px rgba(80, 250, 123, 0.55), inset 0 0 12px rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) scale(1.02);
    color: #050f07 !important;
    text-shadow: none !important;
}

.market-dino-card .btn-buy-dino:hover svg {
    color: #050f07 !important;
    filter: none;
}

.market-dino-card .btn-buy-dino:hover::before {
    left: 160%;
}

/* Active / Click: Intense Green Neon Flash & Pulse */
.market-dino-card .btn-buy-dino:active,
.market-dino-card .btn-buy-dino.neon-clicked {
    background: #85ffa4 !important;
    border-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 0 38px rgba(80, 250, 123, 1), 0 0 70px rgba(80, 250, 123, 0.85), inset 0 0 16px #ffffff !important;
    transform: translateY(0) scale(0.96) !important;
    transition: all 0.08s ease;
}

.market-dino-card .btn-buy-dino:active svg,
.market-dino-card .btn-buy-dino.neon-clicked svg {
    color: #000000 !important;
    filter: none;
}

/* My Stuff Cards with hero_frame: Spacious & Majestic Inner Layout */
/* hero_frame.png's stone border ends 12% in from each side; keep all content inside it */
.inv-card {
    padding: 24px 14% 76px !important;
}

.inv-card .inv-card-stage {
    position: relative;
    height: 180px !important;
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 2px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inv-card .inv-card-art img {
    max-height: 145px !important;
    max-width: 92% !important;
    object-fit: contain !important;
    margin-top: 10px !important;
    mix-blend-mode: normal !important;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(80, 250, 123, 0.25)) !important;
}

.inv-card .inv-card-flags {
    top: 14px !important;
    left: 0 !important;
    gap: 5px !important;
    z-index: 5;
}

.inv-card .inv-flag {
    height: 20px !important;
    font-size: 9px !important;
    padding: 0 6px !important;
    background: rgba(14, 25, 18, 0.85);
    border: 1px solid rgba(197, 215, 151, 0.3);
}

.inv-card .inv-flag .icon {
    width: 11px !important;
    height: 11px !important;
}

.inv-card .inv-card-growth {
    font-size: 20px !important;
    right: 0 !important;
    top: auto !important;
    bottom: 2px !important;
    color: #50fa7b !important;
    text-shadow: 0 0 10px rgba(80, 250, 123, 0.6);
}

.inv-card .inv-card-growth small {
    font-size: 11px !important;
}

.inv-card .inv-card-body {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
    width: 100%;
}

.inv-card .inv-card-kicker {
    font-size: 8.5px !important;
    letter-spacing: 1.4px !important;
    color: #8fa860 !important;
    margin-bottom: 1px !important;
    text-align: center !important;
}

.inv-card .inv-card-name {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 22px !important;
    font-weight: 800;
    color: #f7faf5;
    letter-spacing: 0.03em;
    margin: 1px 0 6px 0 !important;
    line-height: 1.2;
    text-align: center !important;
    width: 100%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.inv-card .inv-card-body > .bar {
    height: 5px !important;
    margin-bottom: 6px !important;
    width: 100%;
}

.inv-card .inv-card-stats {
    gap: 6px 10px !important;
    margin-bottom: 6px !important;
    width: 100%;
}

.inv-card .mini-stat {
    font-size: 9px !important;
    gap: 5px !important;
}

.inv-card .mini-stat .icon {
    width: 11px !important;
    height: 11px !important;
}

.inv-card .mini-stat b {
    font-size: 9px !important;
}

.inv-card .inv-card-muts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 4px;
    margin-bottom: 6px !important;
    width: 100%;
}

.inv-card .mut-chip {
    font-size: 8.5px !important;
    padding: 2px 6px !important;
}

.inv-card .mut-none {
    font-size: 9px !important;
}

.inv-card .inv-card-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 2px 0 !important;
    border-top: 1px solid rgba(197, 215, 151, 0.18) !important;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 600;
    font-size: 9.5px !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: 100%;
    box-sizing: border-box;
}

.inv-card .inv-card-date .icon,
.inv-card .inv-card-open .icon {
    width: 11px !important;
    height: 11px !important;
}

.inv-card .inv-card-open {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #50fa7b !important;
    text-shadow: 0 0 8px rgba(80, 250, 123, 0.4);
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: gap 0.18s ease, color 0.18s ease, text-shadow 0.18s ease !important;
}

.inv-card:hover .inv-card-open {
    gap: 8px !important;
    color: #69ff94 !important;
    text-shadow: 0 0 14px rgba(80, 250, 123, 0.7) !important;
}

/* ============================================================== */
/* MARKET PLACE SHOWCASE & PREVIEW CARDS                         */
/* ============================================================== */
.market-hero-showcase {
    text-align: center;
    padding: 36px 20px 24px;
    margin-bottom: 20px;
    background: radial-gradient(ellipse at 50% 30%, rgba(80, 250, 123, 0.08) 0%, transparent 70%);
    border-radius: 8px;
    border: 1px solid rgba(197, 215, 151, 0.15);
}

.market-hero-title {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #f7faf5;
    margin: 8px 0 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(80, 250, 123, 0.3);
}

.market-hero-desc {
    color: #c4d4c2;
    font-size: 13.5px;
    max-width: 580px;
    margin: 0 auto;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.market-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.market-preview-card {
    position: relative;
    background: linear-gradient(180deg, rgba(14, 25, 18, 0.75) 0%, rgba(9, 15, 11, 0.9) 100%);
    border: 1px solid rgba(197, 215, 151, 0.18);
    border-radius: 8px;
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.market-preview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(197, 215, 151, 0.5);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(80, 250, 123, 0.18);
}

.mp-card-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #50fa7b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mp-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.market-preview-card h3 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #f7faf5;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
}

.market-preview-card p {
    font-size: 12px;
    line-height: 1.6;
    color: #b5c4b3;
    margin: 0 0 18px;
    flex: 1;
}

.mp-card-badge {
    align-self: flex-start;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 185, 0, 0.14);
    border: 1px solid rgba(255, 185, 0, 0.4);
    color: #ffd166;
    text-transform: uppercase;
}
