﻿/* ============================================================
   F5 TABLET - "VIOLET OS" tamsi violetinė premium tema
   (Ported near-verbatim from html/style.css so the web panel matches
   the in-game tablet exactly. Same variables, same class names.)
   ============================================================ */

:root {
    --bg:        #0b0709;
    --panel:     #151013;
    --panel-2:   #1d1518;
    --line:      #2c2126;
    --red:       #9d4edd;
    --red-deep:  #4c1d70;
    --red-glow:  rgba(157, 78, 221, 0.35);
    --gold:      #e8b44a;
    --text:      #f3edee;
    --muted:     #96888b;
    --ok:        #3fbf6f;
    --radius:    14px;
    --font-disp: 'Chakra Petch', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
html, body { height: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); overflow: hidden; }
.hidden { display: none !important; }
input, textarea, select { user-select: text; }

/* ============ PILNO EKRANO IŠDĖSTYMAS (DYNASTY.LT) ============ */

#tablet {
    position: fixed; inset: 0;
    animation: tabletIn .25s ease;
}
@keyframes tabletIn { from { opacity: 0; } to { opacity: 1; } }

.tablet-frame { width: 100vw; height: 100vh; }
.tablet-screen {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 70% -15%, rgba(157, 78, 221, .12), transparent 55%),
        radial-gradient(800px 600px at 0% 115%, rgba(76, 29, 112, .10), transparent 55%),
        linear-gradient(180deg, #0e0a0c, #090607);
}
.tablet-screen::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        repeating-linear-gradient(-45deg, rgba(157, 78, 221, .022) 0 2px, transparent 2px 26px);
}
.tablet-screen > * { position: relative; z-index: 1; }

/* ============ VIRŠUTINĖ NAVIGACIJA ============ */

.topnav {
    display: flex; align-items: center; gap: 26px;
    height: 66px; padding: 0 26px;
    background: linear-gradient(180deg, rgba(24, 15, 18, .95), rgba(16, 10, 12, .95));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 26px rgba(0, 0, 0, .45);
}
.topnav::after { display: none; }

.brand { display: flex; align-items: center; gap: 12px; }
.flux-img {
    width: 42px; height: 42px;
    border-radius: 11px;
    object-fit: cover;
    border: 1px solid rgba(157, 78, 221, .45);
    box-shadow: 0 0 16px rgba(157, 78, 221, .3);
}
.brand-text { font-family: var(--font-disp); font-weight: 700; font-size: 20px; letter-spacing: 3px; }
.brand-text span { color: var(--red); }

.nav-tabs {
    display: flex; align-items: center; gap: 4px;
    flex: 1; height: 100%;
}
.dock-btn {
    position: relative;
    height: 100%;
    background: transparent; border: 0; color: var(--muted);
    padding: 0 18px; cursor: pointer;
    display: flex; align-items: center; gap: 9px;
    font-family: var(--font-disp); font-size: 13px; font-weight: 600; letter-spacing: .8px;
    transition: color .15s;
}
.dock-btn i { font-size: 15px; }
.dock-btn:hover { color: var(--text); }
.dock-btn.active { color: var(--text); }
.dock-btn.active::before {
    content: '';
    position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--red), #c77dff);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 14px var(--red);
}
.cart-badge {
    background: var(--red); color: #fff; font-style: normal;
    font-size: 10px; font-weight: 700; min-width: 17px; height: 17px;
    padding: 0 4px;
    border-radius: 999px; display: flex; align-items: center; justify-content: center;
}

.top-right { display: flex; align-items: center; gap: 12px; }
.euro-chip {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #2a2013, #1c1710);
    border: 1px solid #4a3a1c;
    color: var(--gold);
    padding: 8px 16px; border-radius: 999px;
    font-family: var(--font-disp); font-weight: 700; font-size: 16px;
}
.icon-btn {
    background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
    width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
    font-size: 15px; transition: .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--red); }

.content { flex: 1; overflow-y: auto; padding: 30px 40px; }
.content > .page { max-width: 1280px; margin: 0 auto; }
.content::-webkit-scrollbar { width: 8px; }
.content::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.page-title {
    font-family: var(--font-disp); font-size: 24px; font-weight: 700;
    letter-spacing: 1px; margin-bottom: 20px;
}
.section-title {
    font-family: var(--font-disp); font-size: 15px; font-weight: 600; color: var(--muted);
    letter-spacing: 1.5px; text-transform: uppercase; margin: 24px 0 12px;
}

/* ============ MYGTUKAI / ĮVESTYS ============ */

.btn {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    border: none; color: #fff; cursor: pointer;
    padding: 11px 18px; border-radius: 11px;
    font-family: var(--font-disp); font-weight: 600; font-size: 13px; letter-spacing: .5px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: .15s; box-shadow: 0 4px 16px rgba(157, 78, 221, .25);
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.small { padding: 7px 12px; font-size: 12px; }
.btn.full { width: 100%; justify-content: center; }
.btn.ghost { background: var(--panel-2); border: 1px solid var(--line); box-shadow: none; color: var(--muted); }
.btn.ghost:hover { color: var(--text); border-color: var(--red); }
.btn.danger { background: linear-gradient(135deg, #a01528, #5c0c17); }

.input {
    background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
    padding: 10px 14px; border-radius: 10px; font-size: 13px; width: 100%;
    outline: none; transition: .15s; font-family: var(--font-body);
}
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.input.search { max-width: 280px; }
select.input { cursor: pointer; }
textarea.input { resize: vertical; min-height: 70px; }
label.f-label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 5px; letter-spacing: .5px; }

/* ============ CHARAKTERIS ============ */

.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px;
}
.stat-label { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.stat-value { font-family: var(--font-disp); font-size: 19px; font-weight: 700; }

.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.veh-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: .15s;
}
.veh-card:hover { border-color: var(--red); }
.veh-img {
    height: 120px; background: var(--panel-2) center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; color: var(--line); font-size: 34px;
}
.veh-body { padding: 12px 14px; }
.veh-name { font-family: var(--font-disp); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.veh-meta { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.veh-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .5px; }
.tag.red { background: rgba(157, 78, 221, .15); color: var(--red); }
.tag.gold { background: rgba(232,180,74,.13); color: var(--gold); }
.tag.grey { background: var(--panel-2); color: var(--muted); }
.veh-card .btn { margin: 0 14px 14px; }

/* ============ PARDUOTUVĖ ============ */

.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cat-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 20px; }
.cat-pill {
    background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
    padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px; transition: .15s;
}
.cat-pill:hover { color: var(--text); }
.cat-pill.active { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; border-color: transparent; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.product-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; transition: .18s;
}
.product-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.product-img {
    height: 130px; background: var(--panel-2) center/cover no-repeat; position: relative;
    display: flex; align-items: center; justify-content: center; color: var(--line); font-size: 34px;
}
.discount-flag {
    position: absolute; top: 10px; left: 0;
    background: var(--red); color: #fff; font-weight: 800; font-size: 11px;
    padding: 4px 10px 4px 8px; clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
}
.product-body { padding: 13px 15px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-family: var(--font-disp); font-weight: 700; font-size: 15px; }
.product-desc { font-size: 12px; color: var(--muted); margin: 5px 0 10px; flex: 1; line-height: 1.45; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 11px; }
.price { font-family: var(--font-disp); font-weight: 700; font-size: 18px; color: var(--gold); }
.price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }

/* ============ VIP ============ */

.vip-current {
    background: linear-gradient(120deg, var(--panel), #241318);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.vip-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
}
.vip-card.owned { border-color: var(--gold); }
.vip-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--red), transparent);
}
.vip-lvl { font-family: var(--font-disp); font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.vip-lvl i { color: var(--gold); }
.vip-desc { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }
.vip-price { font-family: var(--font-disp); font-weight: 700; font-size: 21px; color: var(--gold); }

/* ============ ADMIN ============ */

.tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab-row.sub { margin: 4px 0 14px; }
.tab {
    background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
    padding: 9px 16px; border-radius: 10px; cursor: pointer;
    font-family: var(--font-disp); font-size: 13px; font-weight: 600; transition: .15s;
}
.tab:hover { color: var(--text); }
.tab.active { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; border-color: transparent; }

.player-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.player-row {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.player-id {
    background: var(--panel-2); border-radius: 8px; padding: 5px 10px;
    font-family: var(--font-disp); font-weight: 700; color: var(--red); font-size: 13px;
}
.player-name { font-weight: 600; flex: 1; min-width: 130px; }
.player-name small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.player-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pact {
    background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
    width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 13px; transition: .13s;
}
.pact:hover { color: #fff; background: var(--red); border-color: var(--red); }

.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: 52vh; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
    text-align: left; padding: 11px 14px; color: var(--muted); font-size: 11px;
    text-transform: uppercase; letter-spacing: 1px; position: sticky; top: 0; background: var(--panel);
    border-bottom: 1px solid var(--line);
}
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: none; }

.admin-cols { display: flex; gap: 18px; align-items: flex-start; }
.admin-col { width: 280px; }
.admin-col.grow { flex: 1; width: auto; }
.col-head { display: flex; justify-content: space-between; align-items: center; }
.col-head .section-title { margin: 0; }
.list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.list-row {
    background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
    padding: 11px 14px; display: flex; align-items: center; gap: 10px;
}
.list-row .grow-txt { flex: 1; font-weight: 600; font-size: 13px; }
.list-row .grow-txt small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }

.vip-admin-row {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 16px; margin-bottom: 10px;
}
.vip-admin-row .row-line { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.vip-admin-row .row-line b { font-family: var(--font-disp); min-width: 60px; }

/* ============ KREPŠELIS ============ */

.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 380px;
    background: var(--panel); border-left: 1px solid var(--line);
    display: flex; flex-direction: column; z-index: 60;
    box-shadow: -20px 0 60px rgba(0,0,0,.6);
    animation: drawerIn .22s ease-out;
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head {
    padding: 18px 20px; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
}
.drawer-head h2 { font-family: var(--font-disp); font-size: 17px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.cart-item {
    background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px;
    padding: 11px 14px; display: flex; align-items: center; gap: 12px;
}
.cart-item .grow-txt { flex: 1; font-size: 13px; font-weight: 600; }
.cart-item .grow-txt small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.cart-item .price { font-size: 14px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); }
.cart-total { font-size: 15px; margin-bottom: 12px; text-align: right; }
.cart-total b { color: var(--gold); font-family: var(--font-disp); font-size: 18px; }
.cart-empty { color: var(--muted); text-align: center; margin-top: 30px; font-size: 13px; }

/* ============ MODALAI ============ */

.overlay {
    position: fixed; inset: 0; background: rgba(5,3,4,.72); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; z-index: 80;
}
.modal {
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    width: 440px; max-width: 92vw; max-height: 84vh; display: flex; flex-direction: column;
    animation: tabletIn .2s ease-out;
}
.modal-head {
    padding: 16px 20px; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-disp); font-weight: 700; font-size: 16px;
}
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-body img { max-width: 100%; border-radius: 10px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }

/* ============ VIEŠŲJŲ DARBŲ HUD ============ */

/* ============ PRANEŠIMAI ============ */

#toast-area { position: fixed; bottom: 26px; right: 26px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast {
    background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--red);
    border-radius: 11px; padding: 12px 18px; font-size: 13px; min-width: 240px;
    animation: drawerIn .2s ease-out; box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.toast.ok { border-left-color: var(--ok); }

/* ---- planšetės inventorius ---- */
.page-hint {
    font-size: 12px;
    color: var(--muted);
    margin: -6px 0 16px;
}
.list-col { display: flex; flex-direction: column; gap: 10px; }
.inv-row {
    display: flex; align-items: center; gap: 14px;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 16px;
}
.inv-icon {
    width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: rgba(157, 78, 221, .12); color: var(--red); font-size: 18px;
}

/* ============================================================
   DIZAINO ATNAUJINIMAS v2
   ============================================================ */

/* animuotas fono švytėjimas ekrane */
.tablet-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(800px 400px at 85% -10%, rgba(157, 78, 221, .09), transparent 60%),
        radial-gradient(600px 500px at -10% 110%, rgba(157, 78, 221, .06), transparent 60%);
    animation: bgPulse 9s ease-in-out infinite alternate;
    z-index: 0;
}
@keyframes bgPulse {
    from { opacity: .65; }
    to   { opacity: 1; }
}
.tablet-screen > * { position: relative; z-index: 1; }

/* puslapių perėjimo animacija */
.page { animation: pageIn .28s ease both; }
@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* laikrodis viršuje */
.clock-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 10px;
    background: var(--panel-2); border: 1px solid var(--line);
    font-family: var(--font-disp); font-weight: 700; font-size: 14px;
    color: var(--muted); letter-spacing: 1px;
}
.clock-chip i { color: var(--red); }

/* geresni kortelių hover'iai */
.stat-card, .product-card, .vip-card, .veh-card, .inv-row {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.stat-card:hover, .inv-row:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 1px var(--red);
}
.product-card .product-img { transition: transform .3s ease; overflow: hidden; }
.vip-card:hover { transform: translateY(-3px); border-color: var(--gold); }

/* statistikos kortelės su ikonomis */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}
.stat-card.glow {
    display: flex; align-items: center; gap: 14px;
}
.stat-ic {
    width: 44px; height: 44px; flex: 0 0 auto;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(157, 78, 221, .22), rgba(76, 29, 112, .18));
    border: 1px solid rgba(157, 78, 221, .3);
    color: var(--red); font-size: 17px;
}
.stat-card.glow .stat-label { margin-bottom: 3px; }
.stat-card.glow .stat-value { font-size: 17px; }

/* žaidėjų įrankių juosta */
.players-toolbar {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.players-toolbar .search { flex: 1; max-width: 320px; }

/* pavojingi veiksmai raudonesni */
.pact.warn { color: #ff8a97; }
.pact.warn:hover { background: rgba(224, 36, 58, .22); color: #fff; }

/* akcijų kategorija */
.cat-pill.sale-pill { border-color: rgba(232, 180, 74, .4); color: var(--gold); }
.cat-pill.sale-pill.active {
    background: linear-gradient(135deg, rgba(232,180,74,.2), rgba(232,180,74,.08));
    border-color: var(--gold); color: var(--gold);
}

/* rikiavimo select */
.sort-select { max-width: 200px; cursor: pointer; }

/* lentelių patobulinimas */
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: rgba(157, 78, 221, .05); }
.table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .015); }
.table tbody tr:nth-child(even):hover { background: rgba(157, 78, 221, .05); }

/* select stilius */
select.input option { background: var(--panel); color: var(--text); }

/* geresnis scrollbar visur */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--red-deep), var(--line));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* toast animacija sklandesnė */
.toast { animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px) scale(.95); }
    to   { opacity: 1; transform: none; }
}

/* mygtukų blizgesys */
.btn:not(.ghost)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform .5s ease;
}
.btn { position: relative; overflow: hidden; }
.btn:hover::after { transform: translateX(110%); }

/* ============================================================
   REPORTŲ SISTEMA (adminui - žaidėjo pusė nenaudojama web panelėje)
   ============================================================ */

.report-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }

.report-chat {
    height: 220px;
    overflow-y: auto;
    background: rgba(0, 0, 0, .25);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex; flex-direction: column; gap: 8px;
}
.chat-msg { max-width: 85%; padding: 7px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; }
.chat-msg small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.chat-msg.player { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); }
.chat-msg.admin { align-self: flex-end; background: rgba(157, 78, 221, .16); border: 1px solid rgba(157, 78, 221, .35); }
.chat-msg.system { align-self: center; background: transparent; color: var(--muted); font-style: italic; font-size: 11.5px; padding: 2px; }
.report-chat-row { display: flex; gap: 8px; }
.report-chat-row .input { flex: 1; }

/* admin pusė */
.reports-col { min-width: 260px; max-width: 300px; }
.report-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 10px; padding: 11px 13px; cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.report-row:hover { border-color: var(--red); }
.report-row.active { border-color: var(--red); background: rgba(157, 78, 221, .07); }
.report-row .grow-txt { min-width: 0; }
.report-row .grow-txt div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag.open { background: rgba(76, 217, 100, .13); color: var(--ok); }
.tag.taken { background: rgba(232, 180, 74, .13); color: var(--gold); }
.cart-badge.inline { position: static; margin-left: 6px; }

.report-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.report-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.report-desc {
    background: var(--panel-2); border: 1px solid var(--line);
    border-radius: 10px; padding: 12px 14px;
    font-size: 12.5px; line-height: 1.5; margin: 10px 0;
    white-space: pre-wrap; word-break: break-word;
}
#report-detail .report-chat { height: 260px; margin-bottom: 10px; }


/* ============================================================
   ĮSPĖJIMO DĖŽUTĖ + TOOLTIP'AI (v4)
   ============================================================ */

.warn-box {
    display: flex; gap: 12px; align-items: flex-start;
    background: rgba(232, 180, 74, .08);
    border: 1px solid rgba(232, 180, 74, .35);
    border-left: 3px solid var(--gold);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 12px; line-height: 1.5;
    margin-bottom: 12px;
    color: #f0dcae;
}
.warn-box i { color: var(--gold); font-size: 15px; margin-top: 2px; }
.warn-box b { color: var(--gold); }

/* CSS tooltip'ai (naršyklė NUI title nerodo, bet paliekam identišką stilių) */
.pact[data-tip] { position: relative; }
.pact[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1f1418;
    border: 1px solid var(--red-deep);
    color: var(--text);
    font-size: 11px; font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 40;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}
.pact[data-tip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--red-deep);
    opacity: 0;
    transition: opacity .15s ease;
    z-index: 40;
    pointer-events: none;
}
.pact[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.pact[data-tip]:hover::before { opacity: 1; }
.player-actions .pact[data-tip]:last-child::after,
.player-actions .pact[data-tip]:nth-last-child(2)::after { left: auto; right: 0; transform: translateY(4px); }
.player-actions .pact[data-tip]:last-child:hover::after,
.player-actions .pact[data-tip]:nth-last-child(2):hover::after { transform: translateY(0); }

/* ============================================================
   v5: tankesnis dizainas + nauji elementai
   ============================================================ */

/* mažiau tuščios erdvės */
.content { padding: 22px 28px; }
.content > .page { max-width: 1400px; }
.page-title { margin-bottom: 14px; }
.section-title { margin: 18px 0 10px; }
.char-grid { gap: 10px; }
.stat-card { padding: 13px 15px; }
.veh-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.product-grid { gap: 12px; }
.stats-grid { gap: 10px; margin-bottom: 16px; }
.vip-grid { gap: 12px; }
.player-row { padding: 9px 12px; }
.list-row { padding: 9px 12px; }
.tab-row { margin-bottom: 14px; }
.topnav { height: 60px; }

/* Full Tune pasirinkimas prekės kortelėje */
.ft-opt {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600;
    background: rgba(157, 78, 221, .07);
    border: 1px solid rgba(157, 78, 221, .25);
    border-radius: 8px;
    padding: 7px 10px;
    margin: 8px 0 2px;
    cursor: pointer;
    user-select: none;
}
.ft-opt input { accent-color: var(--red); cursor: pointer; }
.ft-price { margin-left: auto; color: var(--gold); font-family: var(--font-disp); }

/* offline (DB) žaidėjų eilutės */
.player-row.offline { border-style: dashed; opacity: .92; }
.player-id.off {
    background: var(--panel-2); color: var(--muted);
    font-size: 10px; letter-spacing: 1px;
}

/* ---- žaidėjų sąrašo info + online/offline žymos ---- */
.players-info {
    font-size: 11.5px; color: var(--muted);
    white-space: nowrap; margin-right: auto;
}
.players-info b { color: var(--text); }
.tag.ok-tag { background: rgba(63, 191, 111, .13); color: var(--ok); }
.player-row.offline { border-style: dashed; opacity: .9; }
.player-row.offline:hover { opacity: 1; }
.player-id.off {
    background: var(--panel-2); color: var(--muted);
    font-size: 10px; letter-spacing: 1px;
}

/* ============================================================
   PREKĖS PERŽIŪRA (detali kortelė su galerija)
   ============================================================ */

.product-window {
    width: min(1020px, 92vw);
    max-height: 88vh;
    display: flex; flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(157, 78, 221, .18);
    overflow: hidden;
    animation: tabletIn .2s ease both;
}
.pw-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-2);
}
.pw-title {
    font-family: var(--font-disp); font-weight: 700;
    font-size: 19px; letter-spacing: .5px;
}
.pw-body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 22px;
    padding: 20px;
    overflow-y: auto;
}

/* galerija */
.pv-main {
    position: relative;
    width: 100%; aspect-ratio: 16 / 10;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #0c0809 center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    color: var(--line); font-size: 46px;
    overflow: hidden;
}
.pv-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(10, 7, 8, .75);
    border: 1px solid var(--line);
    color: var(--text); cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: .15s; z-index: 2;
}
.pv-arrow:hover { background: var(--red); border-color: var(--red); }
.pv-arrow.left { left: 10px; }
.pv-arrow.right { right: 10px; }
.pv-arrow.hidden { display: none; }
.pv-counter {
    position: absolute; right: 12px; bottom: 12px;
    background: rgba(10, 7, 8, .8);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 10px; font-size: 11px; color: var(--muted);
    z-index: 2;
}
.pv-thumbs {
    display: flex; gap: 8px; margin-top: 10px;
    overflow-x: auto; padding-bottom: 4px;
}
.pv-thumb {
    width: 78px; height: 52px; flex: 0 0 auto;
    border-radius: 8px; border: 1px solid var(--line);
    background: #0c0809 center/cover no-repeat;
    cursor: pointer; opacity: .55; transition: .15s;
}
.pv-thumb:hover { opacity: .85; }
.pv-thumb.active { opacity: 1; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }

/* info */
.pv-info { display: flex; flex-direction: column; min-width: 0; }
.pv-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pv-desc {
    font-size: 13px; line-height: 1.6; color: var(--muted);
    white-space: pre-wrap; word-break: break-word;
    margin-bottom: 14px;
}
.pv-h3 {
    font-family: var(--font-disp); font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
    margin: 4px 0 8px;
}
.pv-specs { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pv-specs td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.pv-specs td:first-child { color: var(--muted); width: 45%; }
.pv-specs td:last-child { text-align: right; font-weight: 600; }

.pv-options { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.pv-opt {
    display: flex; align-items: center; gap: 10px;
    background: rgba(157, 78, 221, .07);
    border: 1px solid rgba(157, 78, 221, .25);
    border-radius: 10px; padding: 10px 12px;
    font-size: 12.5px; font-weight: 600; cursor: pointer; user-select: none;
    transition: .15s;
}
.pv-opt:hover { border-color: var(--red); }
.pv-opt input { accent-color: var(--red); cursor: pointer; }
.pv-opt .opt-price { margin-left: auto; color: var(--gold); font-family: var(--font-disp); }
.pv-opt small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; margin-top: 2px; }

.pv-buy {
    margin-top: auto; padding-top: 16px;
    display: flex; align-items: center; gap: 14px;
}
.pv-total { display: flex; flex-direction: column; }
.pv-total span { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.pv-total b { font-family: var(--font-disp); font-size: 26px; color: var(--gold); }
.pv-buy .btn { margin-left: auto; padding: 12px 24px; }

/* kortelė rodo, kad ją galima spausti */
.product-card { cursor: pointer; }
.product-card .product-img { position: relative; }
.gallery-flag {
    position: absolute; left: 8px; bottom: 8px;
    background: rgba(10, 7, 8, .8); border: 1px solid var(--line);
    border-radius: 999px; padding: 2px 8px;
    font-size: 10px; color: var(--muted);
}

/* ---- video galerijoje ---- */
.pv-main video, .pv-main iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: 0; background: #000;
}
.pv-thumb.video-thumb {
    display: flex; align-items: center; justify-content: center;
    background: #14090c; color: var(--red); font-size: 18px;
}

/* ============================================================
   PRISIJUNGIMO EKRANAS (tik web versijoje - žaidime nereikalingas)
   ============================================================ */

.login-wrap {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(1200px 500px at 70% -15%, rgba(157, 78, 221, .12), transparent 55%),
        radial-gradient(800px 600px at 0% 115%, rgba(76, 29, 112, .10), transparent 55%),
        linear-gradient(180deg, #0e0a0c, #090607);
}
.login-card {
    width: 420px; max-width: 92vw;
    background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
    padding: 34px 30px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(157, 78, 221, .12);
}
.login-logo {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    font-size: 26px; color: #fff;
    box-shadow: 0 8px 26px var(--red-glow);
}
.login-card h1 {
    font-family: var(--font-disp); font-size: 21px; font-weight: 700; letter-spacing: 1px;
    margin-bottom: 8px;
}
.login-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.login-discord-btn {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    box-shadow: 0 4px 16px rgba(88,101,242,.35);
}
.login-error {
    margin-top: 16px; font-size: 12px; color: #ff8a97;
    background: rgba(224, 36, 58, .08); border: 1px solid rgba(224, 36, 58, .3);
    border-radius: 10px; padding: 10px 12px; line-height: 1.5;
}
