@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Rajdhani:wght@600;700&family=Tektur:wght@700;900&display=swap");

body {
    --site-footer-height: 55px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

body > :not(.site-footer) {
    flex: 1 1 auto;
    min-height: 0;
}

.bank-page {
    --cp-yellow: #fcee0a;
    --cp-red: #d4143f;
    --cp-cyan: #00b7c8;
    --cp-ink: #050607;
    --cp-panel: rgba(12, 13, 10, .9);
    --cp-muted: #a9b7a8;
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    background:
        linear-gradient(135deg, rgba(252, 238, 10, .07) 0 10%, transparent 10% 100%),
        radial-gradient(circle at 80% 16%, rgba(255, 0, 60, .14), transparent 24rem),
        linear-gradient(180deg, #050607, #0a0c0b 45%, #030404);
}

.hero {
    border-bottom-color: rgba(252, 238, 10, .32);
    box-shadow: 0 0 0 1px rgba(252, 238, 10, .12), 0 18px 42px rgba(0, 0, 0, .45);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 6, 7, .9), rgba(5, 6, 7, .58), rgba(5, 6, 7, .86)),
        repeating-linear-gradient(0deg, rgba(252, 238, 10, .035) 0 1px, transparent 1px 6px);
}

.clan-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: Orbitron, Tektur, Rajdhani, Impact, sans-serif;
    text-transform: uppercase;
}

.clan-brand img {
    width: auto;
    height: auto;
    max-width: min(82vw, 100%);
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, .62));
}

.clan-brand small {
    position: absolute;
    left: 265px;
    bottom: 30px;
    display: inline-block;
    padding: 4px 12px 5px;
    color: rgba(252, 238, 10, .86);
    font-family: Rajdhani, Tektur, Arial, sans-serif;
    font-size: clamp(18px, 2.1vw, 30px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: .11em;
}

.hero-content {
    align-items: flex-start;
    padding-left: clamp(28px, 5vw, 74px);
}

.hero h1 {
    text-shadow: none;
}

@media (max-width: 900px) {
    .clan-brand small {
        left: clamp(120px, 34vw, 265px);
        transform: none;
    }
}

.hero p {
    color: #20240f;
    text-shadow: none;
}

.toolbar {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    border-bottom-color: rgba(252, 238, 10, .24);
    background: rgba(5, 6, 7, .92);
}

.toolbar-form {
    flex: 1 1 auto;
    min-width: 0;
}

.toolbar-form .neon-input {
    width: auto;
}

.toolbar-form .search-input {
    flex: 1 1 280px;
    min-width: min(280px, 100%);
}

.bank-layout {
    height: calc(100vh - var(--site-footer-height) - 348px);
    min-height: 0;
    overflow: hidden;
}

.admin-shell,
.login-screen {
    min-height: calc(100vh - var(--site-footer-height));
}

.inventory-panel,
.history-panel {
    min-height: 0;
    overflow: hidden;
}

.inventory-grid,
.history-list {
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(252, 238, 10, .7) rgba(5, 6, 7, .72);
}

.inventory-grid::-webkit-scrollbar,
.history-list::-webkit-scrollbar {
    width: 10px;
}

.inventory-grid::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track {
    background: rgba(5, 6, 7, .72);
    border-left: 1px solid rgba(252, 238, 10, .14);
}

.inventory-grid::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(252, 238, 10, .82), rgba(212, 20, 63, .42));
    border: 2px solid rgba(5, 6, 7, .86);
}

.inventory-grid::-webkit-scrollbar-thumb:hover,
.history-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(252, 238, 10, .95), rgba(0, 183, 200, .5));
}

.inventory-panel,
.history-panel,
.login-card,
.settings-panel,
.admin-table-wrap,
.stat-card {
    background: var(--cp-panel);
    border-color: rgba(252, 238, 10, .28);
    box-shadow: 0 0 0 1px rgba(0, 240, 255, .08), 0 24px 48px rgba(0, 0, 0, .35);
}

.panel-title {
    color: var(--cp-yellow);
    border-bottom-color: rgba(252, 238, 10, .32);
    background: linear-gradient(90deg, rgba(252, 238, 10, .09), transparent);
}

.neon-input {
    border-color: rgba(252, 238, 10, .38);
    background: rgba(5, 6, 7, .94);
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .06);
}

.neon-input:focus {
    border-color: var(--cp-yellow);
    box-shadow: 0 0 0 1px var(--cp-yellow), 3px 3px 0 rgba(255, 0, 60, .55);
}

.neon-button {
    color: #f8f2b0;
    background: rgba(5, 6, 7, .88);
    border-color: rgba(252, 238, 10, .52);
    font-weight: 800;
    box-shadow: 2px 2px 0 rgba(212, 20, 63, .34), -1px -1px 0 rgba(0, 183, 200, .26);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.neon-button:hover {
    border-color: var(--cp-cyan);
    color: var(--cp-yellow);
    box-shadow: 2px 2px 0 rgba(212, 20, 63, .44), -1px -1px 0 rgba(0, 183, 200, .38);
}

.neon-button.danger {
    color: #ffc9d4;
    background: rgba(45, 6, 15, .86);
    border-color: rgba(212, 20, 63, .68);
}

.item-cell {
    width: 48px;
    height: 48px;
    aspect-ratio: auto;
    background: linear-gradient(145deg, #10120d, #050607);
    border-color: rgba(252, 238, 10, .22);
    box-shadow: inset 0 2px 0 rgba(252, 238, 10, .18), inset 0 0 18px rgba(0, 0, 0, .74);
}

.inventory-grid {
    grid-template-columns: repeat(auto-fill, 48px);
    gap: 8px;
}

.item-cell img {
    width: 32px;
    height: 32px;
}

.item-cell.available:hover {
    border-color: var(--cp-cyan);
    box-shadow: 0 0 22px rgba(0, 240, 255, .36), inset 0 2px 0 var(--cp-yellow);
}

.qty-high {
    color: var(--cp-cyan);
}

.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin: -8px 0 12px;
}

.bulk-actions.compact {
    justify-content: flex-start;
    margin: 0 0 12px;
}

.catalog-manager {
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(520px, 1.15fr);
    gap: 18px;
    align-items: start;
}

.catalog-panel {
    min-width: 0;
}

.catalog-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.catalog-panel-head h2 {
    color: var(--cp-yellow);
    font-size: 20px;
    font-weight: 900;
    margin: 0;
}

.catalog-panel-head span {
    color: var(--cp-muted);
    font-size: 14px;
}

.catalog-table {
    max-height: calc(100vh - var(--site-footer-height) - 220px);
}

.admin-table tr.is-active-category {
    background: rgba(252, 238, 10, .12);
    box-shadow: inset 3px 0 0 var(--cp-yellow);
}

.admin-table tr.is-active-category td {
    border-bottom-color: rgba(252, 238, 10, .28);
}

.admin-check {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(252, 238, 10, .54);
    border-radius: 3px;
    background-color: rgba(5, 6, 7, .9);
}

.admin-check:checked {
    background-color: var(--cp-yellow);
    border-color: var(--cp-yellow);
}

.check-cell {
    cursor: pointer;
}

.site-footer {
    flex: 0 0 auto;
    box-sizing: border-box;
    height: var(--site-footer-height);
    padding: 0 clamp(18px, 3vw, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(252, 238, 10, .22);
    background: rgba(5, 6, 7, .94);
    color: rgba(169, 183, 168, .9);
    font-family: Rajdhani, Arial, sans-serif;
    font-size: 15px;
    text-align: center;
}

.site-footer a {
    color: rgba(252, 238, 10, .88);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--cp-cyan);
}

@media (max-width: 760px) {
    .toolbar {
        align-items: stretch;
    }

    .toolbar-form {
        width: 100%;
    }

    .toolbar-form .neon-input,
    .toolbar-form .neon-button,
    .toolbar > .neon-button {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .bank-layout {
        height: calc(100vh - var(--site-footer-height) - 348px);
        min-height: 0;
        grid-template-rows: minmax(0, 1fr) minmax(0, .65fr);
        overflow: hidden;
    }

    .inventory-panel,
    .history-panel {
        height: auto;
        min-height: 0;
    }

    .catalog-manager {
        grid-template-columns: 1fr;
    }

    .catalog-table {
        max-height: none;
    }
}
