:root {
    --btk-page: #111111;
    --btk-nav: #171717;
    --btk-surface: #1b1b1b;
    --btk-surface-alt: #242424;
    --btk-line: #343434;
    --btk-line-soft: #2b2b2b;
    --btk-text: #eeeeee;
    --btk-text-muted: #a3a3a3;
    --btk-accent: #63bddd;
    --btk-accent-dark: #287b9c;
    --btk-green: #67c891;
    --btk-red: #e67575;
}

.btk-public-page,
.btk-app,
.btk-overlay,
.btk-change-popover,
.btk-toast {
    font-family: Ubuntu, Arial, sans-serif;
}

.btk-public-page *,
.btk-app *,
.btk-overlay *,
.btk-change-popover *,
.btk-toast * { box-sizing: border-box; font-family: inherit; }

.btk-public-page {
    min-height: 100vh;
    margin: 0;
    color: var(--btk-text);
    background: var(--btk-page);
}

/* Saját, visszafogott utcatérkép-hatású háttér: nem külső oldalról vett kép. */
.btk-public-page::before {
    position: fixed;
    z-index: -2;
    inset: 0;
    content: '';
    opacity: .3;
    background:
        linear-gradient(117deg, transparent 0 25%, rgba(155, 168, 178, .17) 25.1% 25.35%, transparent 25.45% 100%),
        linear-gradient(22deg, transparent 0 39%, rgba(155, 168, 178, .15) 39.1% 39.3%, transparent 39.4% 100%),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        radial-gradient(ellipse at 48% 15%, #2b3033 0, #17191a 40%, #101010 84%);
    background-size: auto, auto, 72px 72px, 72px 72px, auto;
}

.btk-public-page::after {
    position: fixed;
    z-index: -1;
    inset: 58px 0 0;
    content: '';
    background: linear-gradient(to bottom, rgba(17, 17, 17, .12), var(--btk-page) 84%);
    pointer-events: none;
}

.btk-public-nav {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    align-items: center;
    min-height: 58px;
    gap: 10px;
    padding: 7px max(20px, calc((100vw - 1440px) / 2));
    background: rgba(23, 23, 23, .97);
    border-bottom: 1px solid var(--btk-line-soft);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .025);
}

.btk-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #78cae7;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    text-decoration: none;
}

.btk-brand-mark {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    overflow: hidden;
    background: transparent;
    border-radius: 3px;
}

.btk-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

.btk-nav-divider { width: 1px; height: 22px; margin: 0 2px; background: #3a3a3a; }
.btk-nav-location { display: inline-flex; align-items: center; gap: 5px; color: #b7b7b7; font-size: 12px; }
.btk-nav-location i { color: var(--btk-accent); font-size: 13px; }
.btk-nav-spacer { flex: 1; }

.btk-nav-button,
.btk-nav-link,
.btk-theme-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    color: #c8c8c8;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.btk-nav-button:hover,
.btk-nav-link:hover,
.btk-theme-toggle:hover { color: #fff; background: #292929; border-color: #3a3a3a; }
.btk-nav-button i,
.public-weapons-nav-link i { color: var(--btk-accent); }
.btk-login-link { border-color: #343434; }
.btk-theme-toggle { width: 32px; padding: 0; color: #e1ba61; }

.btk-app {
    width: min(100%, 1400px);
    min-height: calc(100vh - 58px);
    margin: 0 auto;
    padding: 28px 16px 48px;
    color: var(--btk-text);
}

.btk-inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin: 0 0 9px;
}

.btk-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 10px;
    color: #dadada;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    background: #202020;
    border: 1px solid #393939;
    border-radius: 4px;
    transition: .14s ease;
}

.btk-button i { color: var(--btk-accent); }
.btk-button:hover { color: #fff; background: #2a2a2a; border-color: #4c4c4c; }
.btk-button-primary { color: #fff; background: #2b7896; border-color: #408eac; }
.btk-button-primary i { color: #fff; }
.btk-button-primary:hover { background: #3388aa; border-color: #60a9c5; }
.btk-button-danger { color: #ffe5e5; background: #4a2929; border-color: #7d4949; }.btk-button-danger:hover { color: #fff; background: #5a3030; border-color: #a15c5c; }
.btk-button-danger i { color: #e68d8d; }
.btk-button-success { color: #e4fff0; background: #245e3e; border-color: #3f8b60; }.btk-button-success:hover { color: #fff; background: #2d7149; border-color: #5aac7b; }.btk-button-success i { color: #8ee5b0; }
.btk-button-clear i { color: #e68d8d; }.btk-button-clear:hover { border-color: #6f4a4a; }

.btk-search-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 55px;
    padding: 7px 13px;
    margin-bottom: 10px;
    background: rgba(25, 25, 25, .97);
    border: 1px solid #333333;
    border-radius: 6px;
}

.btk-search-icon { color: #a8a8a8; font-size: 17px; }
.btk-search {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    color: #f0f0f0;
    font-size: 13px;
    outline: 0;
    background: transparent;
    border: 0;
}

.btk-search::placeholder { color: #858585; }
.btk-search-count { color: #8e8e8e; font-size: 11px; white-space: nowrap; }
.btk-clear-search { display: none; padding: 3px; color: #9f9f9f; font-size: 16px; cursor: pointer; background: transparent; border: 0; }
.btk-clear-search.visible { display: block; }
.btk-clear-search:hover { color: #fff; }

.btk-selection {
    display: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 11px;
    margin: 0 0 8px;
    background: #1b1b1b;
    border: 1px solid #353535;
    border-radius: 6px;
}

.btk-selection.is-visible { display: grid; }
.btk-selection-title { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; color: #e5e5e5; font-size: 12px; font-weight: 700; }
.btk-selection-title i { color: var(--btk-accent); }
.btk-selection-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.btk-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 5px 4px 7px; color: #d6d6d6; font-size: 11px; background: #292929; border-radius: 3px; }
.btk-chip b { color: #86cce6; }.btk-chip span { overflow: hidden; max-width: 175px; text-overflow: ellipsis; white-space: nowrap; }
.btk-chip button { padding: 0 1px; color: #aaa; font-size: 14px; line-height: 1; cursor: pointer; background: transparent; border: 0; }.btk-chip button:hover { color: #fff; }
.btk-selection-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }.btk-selection-actions .btk-button { min-height: 31px; font-size: 11px; }

.btk-total-cards {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    width: max-content;
    max-width: 100%;
    margin: 0 0 10px;
    overflow: hidden;
    background: #1b1b1b;
    border: 1px solid #353535;
    border-radius: 5px;
}

.btk-total-card { min-width: 170px; padding: 8px 11px; border-right: 1px solid #353535; }.btk-total-card:last-child { border-right: 0; }
.btk-total-card-label { display: block; margin-bottom: 3px; color: #959595; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.btk-total-card-value { color: #eee; font-size: 12px; font-weight: 700; }.btk-total-card-value span { color: #90d1e9; }
.btk-prison-rank-warning { display: flex; align-items: center; gap: 7px; width: max-content; max-width: 100%; padding: 8px 10px; margin-top: -2px; color: #f0c77f; font-size: 11px; font-weight: 600; background: #342a18; border: 1px solid #70582a; border-radius: 5px; }.btk-prison-rank-warning i { color: #f0b84c; }

.btk-categories { display: grid; gap: 8px; }
.btk-category { overflow: hidden; background: #1a1a1a; border: 1px solid #333333; border-radius: 5px; }
.btk-category-heading {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 9px;
    min-height: 42px;
    padding: 10px 13px;
    color: #e1e1e1;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    background: #292929;
    border: 0;
    border-bottom: 1px solid #383838;
}

.btk-category-heading:hover { background: #303030; }.btk-category-heading > i { color: #a7a7a7; font-size: 11px; transition: transform .15s ease; }.btk-category.is-collapsed .btk-category-heading > i { transform: rotate(-90deg); }
.btk-category-count { margin-left: auto; color: #9e9e9e; font-size: 11px; font-weight: 400; }
.btk-category-content { overflow: auto hidden; }.btk-category.is-collapsed .btk-category-content { display: none; }

.btk-table { width: 100%; min-width: 880px; border-collapse: collapse; table-layout: fixed; }
.btk-table th {
    padding: 9px 11px;
    color: #a6a6a6;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .035em;
    background: #222;
    border-bottom: 1px solid #343434;
    white-space: nowrap;
}

.btk-table th:nth-child(1) { width: 72px; }.btk-table th:nth-child(2) { width: 19%; }.btk-table th:nth-child(3) { width: 90px; }.btk-table th:nth-child(4) { width: 130px; }.btk-table th:nth-child(5) { width: 116px; }.btk-table th:nth-child(6) { width: 37%; }.btk-table th:nth-child(7) { width: 88px; }
.btk-table td { padding: 11px; color: #d4d4d4; font-size: 12px; line-height: 1.48; vertical-align: top; border-top: 1px solid #2c2c2c; }
.btk-table tbody tr { cursor: pointer; transition: background .13s ease; }.btk-table tbody tr:hover td { background: #222; }.btk-table tbody tr.is-selected td { background: rgba(48, 123, 151, .22); }.btk-table tbody tr.is-inactive { cursor: default; }.btk-table tbody tr.is-inactive td { color: #8d8d8d; background: rgba(99, 42, 42, .12); }.btk-table tbody tr.is-inactive:hover td { background: rgba(99, 42, 42, .18); }
.btk-code { color: #8bceed !important; font-size: 11px !important; font-weight: 700; white-space: nowrap; }
.btk-point-name { color: #f0f0f0 !important; font-weight: 700; }.btk-point-name.is-child { padding-left: 18px; color: #e0e0e0 !important; }.btk-point-name.is-child::before { margin-right: 6px; color: #8d8d8d; content: '↳'; }.btk-inactive-label { display: inline-flex; align-items: center; gap: 4px; margin: 5px 0 0 7px; padding: 3px 5px; color: #ecaaaa; font-size: 9px; font-weight: 500; background: rgba(159, 62, 62, .15); border: 1px solid rgba(184, 78, 78, .25); border-radius: 3px; vertical-align: middle; }
.btk-bail { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; white-space: nowrap; }.btk-bail.yes { color: var(--btk-green); }.btk-bail.no { color: var(--btk-red); }.btk-bail.none { color: #8f8f8f; }
.btk-price { color: #ebebeb; font-weight: 500; white-space: nowrap; }.btk-price.empty { color: #858585; font-weight: 400; }
.btk-description { color: #c0c0c0; }.btk-description-text { display: block; overflow: visible; white-space: normal; }
.btk-short-cell { color: #8dcae2 !important; font-size: 11px !important; font-weight: 700; }
.btk-row-actions { display: flex; gap: 3px; justify-content: center; }.btk-icon-button { display: grid; width: 27px; height: 27px; place-items: center; padding: 0; color: #a4a4a4; cursor: pointer; background: transparent; border: 1px solid transparent; border-radius: 3px; }.btk-icon-button:hover { color: #fff; background: #333; border-color: #444; }.btk-icon-button:last-child:hover { color: #f09b9b; }
.btk-empty { padding: 29px 16px; color: #a6a6a6; font-size: 12px; text-align: center; }.btk-empty i { display: block; margin-bottom: 7px; color: var(--btk-accent); font-size: 20px; }

.btk-change-popover {
    position: fixed;
    z-index: 1200;
    top: 64px;
    right: 20px;
    display: none;
    width: min(480px, calc(100vw - 32px));
    max-height: min(680px, calc(100vh - 82px));
    overflow: auto;
    color: var(--btk-text);
    background: #1d1d1d;
    border: 1px solid #3a3a3a;
    border-radius: 7px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .58);
}

.btk-change-popover.is-open { display: block; }
.btk-change-popover-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 15px 13px; background: #262626; border-bottom: 1px solid #3a3a3a; }.btk-change-popover-header > div { min-width: 0; }.btk-change-popover-header span { display: inline-flex; align-items: center; gap: 8px; color: #f0f0f0; font-size: 13px; }.btk-change-popover-header span i { color: #67c8e7; }.btk-change-popover-header small { display: block; margin: 4px 0 0 22px; color: #929292; font-size: 10px; }.btk-change-popover-header button { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; color: #aaa; cursor: pointer; background: transparent; border: 0; border-radius: 4px; }.btk-change-popover-header button:hover { color: #fff; background: #383838; }
.btk-log-list { display: grid; gap: 7px; padding: 9px; }.btk-log-entry { padding: 11px 12px; background: #222; border: 1px solid #343434; border-radius: 5px; }.btk-log-entry:hover { border-color: #484848; background: #252525; }.btk-log-entry-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }.btk-log-action { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; color: #e9f8ff; font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .04em; background: #168ac2; border-radius: 4px; }.btk-log-action i { font-size: 11px; }.btk-log-entry.create .btk-log-action, .btk-log-entry.activate .btk-log-action { color: #effff5; background: #079747; }.btk-log-entry.deactivate .btk-log-action { color: #fff3f3; background: #b43a3a; }.btk-log-entry time { color: #8d8d8d; font-size: 10px; white-space: nowrap; }.btk-log-title { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; color: #dcdcdc; font-size: 12px; line-height: 1.35; }.btk-log-title strong { color: #92d4eb; font-size: 11px; }.btk-log-meta { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; color: #9e9e9e; font-size: 10px; }.btk-log-meta i { color: #6fc8e6; }.btk-log-details { margin: 8px 0 0; padding-top: 8px; color: #bdbdbd; font-size: 11px; line-height: 1.48; white-space: pre-wrap; border-top: 1px solid #333; }

.btk-overlay { position: fixed; z-index: 1000; inset: 0; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(0, 0, 0, .7); }.btk-overlay.is-open { display: flex; }
.btk-modal { display: flex; flex-direction: column; width: min(100%, 760px); max-height: min(850px, calc(100vh - 36px)); overflow: hidden; color: #eee; background: #202020; border: 1px solid #424242; border-radius: 6px; box-shadow: 0 22px 70px rgba(0, 0, 0, .58); }.btk-modal.btk-modal-small { width: min(100%, 620px); }
.btk-modal-header { display: flex; align-items: center; gap: 9px; padding: 14px 16px; background: #292929; border-bottom: 1px solid #3a3a3a; }.btk-modal-header > i { color: var(--btk-accent); }.btk-modal-title { margin: 0; font-size: 14px; font-weight: 700; }.btk-modal-close { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; margin-left: auto; color: #aaa; cursor: pointer; background: transparent; border: 0; border-radius: 3px; }.btk-modal-close:hover { color: #fff; background: #373737; }
.btk-modal-content { min-height: 0; padding: 16px; overflow: auto; }.btk-modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 12px 16px; background: #1d1d1d; border-top: 1px solid #383838; }.btk-editor-activation-state { display: inline-flex; align-items: center; gap: 5px; margin-right: auto; color: #a8dcb9; font-size: 11px; }.btk-editor-activation-state.is-inactive { color: #e8aaaa; }
.btk-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.btk-field { min-width: 0; }.btk-field-wide { grid-column: 1 / -1; }.btk-field label { display: block; margin-bottom: 6px; color: #c9c9c9; font-size: 11px; font-weight: 700; }.btk-field input, .btk-field select, .btk-field textarea { width: 100%; padding: 9px 10px; color: #eeeeee; font-size: 12px; line-height: 1.3; outline: 0; background: #151515; border: 1px solid #3d3d3d; border-radius: 4px; }.btk-field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }.btk-field input:focus, .btk-field select:focus, .btk-field textarea:focus { border-color: #5ea9c6; box-shadow: 0 0 0 2px rgba(94, 169, 198, .12); }.btk-field-help { margin: 5px 0 0; color: #979797; font-size: 10px; }.btk-editor-status { display: none; padding: 9px 10px; margin-bottom: 12px; color: #f2b6b6; font-size: 12px; background: #3e2525; border: 1px solid #754444; border-radius: 4px; }.btk-editor-status.is-visible { display: block; }

.btk-toast { position: fixed; z-index: 2000; top: 16px; right: 16px; display: flex; align-items: center; gap: 8px; max-width: min(400px, calc(100vw - 32px)); padding: 11px 12px; color: #def3e5; font-size: 12px; background: #203529; border: 1px solid #406a51; border-radius: 4px; box-shadow: 0 10px 26px rgba(0, 0, 0, .38); }.btk-toast i { color: #78d59c; font-size: 15px; }.btk-toast.error { color: #f7d4d4; background: #412727; border-color: #7a4646; }.btk-toast.error i { color: #f09c9c; }

html.btk-light-theme { --btk-page: #e5e7e8; --btk-nav: #f6f6f6; --btk-surface: #fbfbfb; --btk-surface-alt: #ededed; --btk-line: #d1d1d1; --btk-line-soft: #d8d8d8; --btk-text: #242424; --btk-text-muted: #686868; }
html.btk-light-theme .btk-public-page { color: #242424; background: #e5e7e8; } html.btk-light-theme .btk-public-page::before { opacity: .16; } html.btk-light-theme .btk-public-page::after { background: linear-gradient(to bottom, rgba(229, 231, 232, .1), #e5e7e8 84%); } html.btk-light-theme .btk-public-nav { background: rgba(248, 248, 248, .97); border-bottom-color: #d3d3d3; } html.btk-light-theme .btk-nav-button, html.btk-light-theme .btk-nav-link { color: #494949; } html.btk-light-theme .btk-nav-button:hover, html.btk-light-theme .btk-nav-link:hover, html.btk-light-theme .btk-theme-toggle:hover { background: #e7e7e7; border-color: #d1d1d1; } html.btk-light-theme .btk-login-link { border-color: #d4d4d4; } html.btk-light-theme .btk-search-shell, html.btk-light-theme .btk-category, html.btk-light-theme .btk-selection, html.btk-light-theme .btk-total-cards { background: #fbfbfb; border-color: #d2d2d2; } html.btk-light-theme .btk-category-heading { color: #303030; background: #ededed; border-bottom-color: #d4d4d4; } html.btk-light-theme .btk-category-heading:hover, html.btk-light-theme .btk-table tbody tr:hover td { background: #f0f0f0; } html.btk-light-theme .btk-table th { color: #666; background: #f3f3f3; border-bottom-color: #d6d6d6; } html.btk-light-theme .btk-table td { color: #444; border-top-color: #dedede; } html.btk-light-theme .btk-table tbody tr.is-selected td { background: #d9edf4; } html.btk-light-theme .btk-point-name { color: #222 !important; } html.btk-light-theme .btk-price { color: #333; } html.btk-light-theme .btk-description { color: #505050; }
html.btk-light-theme .btk-change-popover { background: #fafafa; border-color: #d2d2d2; box-shadow: 0 16px 38px rgba(0,0,0,.18); } html.btk-light-theme .btk-change-popover-header { background: #f0f0f0; border-bottom-color: #d7d7d7; } html.btk-light-theme .btk-change-popover-header span { color: #252525; } html.btk-light-theme .btk-log-entry { background: #fff; border-color: #d9d9d9; } html.btk-light-theme .btk-log-entry:hover { background: #f7f7f7; border-color: #c8c8c8; } html.btk-light-theme .btk-log-title { color: #444; } html.btk-light-theme .btk-log-meta, html.btk-light-theme .btk-log-entry time { color: #717171; } html.btk-light-theme .btk-log-details { color: #5e5e5e; border-top-color: #e0e0e0; }

@media (max-width: 720px) {
    .btk-public-nav { gap: 5px; padding-inline: 12px; }.btk-nav-divider, .btk-nav-location { display: none; }.btk-nav-button { padding-inline: 7px; }.btk-nav-button i { margin: 0; }.btk-nav-button { font-size: 0; }.btk-nav-button i { font-size: 14px; }.btk-login-link span { display: none; }.btk-login-link { width: 32px; padding: 0; }.btk-app { padding: 16px 10px 34px; }.btk-inline-actions { justify-content: stretch; }.btk-inline-actions .btk-button { flex: 1; }.btk-selection { grid-template-columns: 1fr; }.btk-selection-actions { justify-content: flex-start; }.btk-total-cards { grid-template-columns: 1fr; width: 100%; }.btk-total-card { min-width: 0; border-right: 0; border-bottom: 1px solid #353535; }.btk-total-card:last-child { border-bottom: 0; }.btk-table { min-width: 800px; }.btk-category-content { overflow-x: auto; }.btk-form-grid { grid-template-columns: 1fr; }.btk-field-wide { grid-column: auto; }
}
