:root {
    --bk-bg: #050505;
    --bk-panel: #111111;
    --bk-panel-soft: #171717;
    --bk-panel-strong: #0b0b0b;
    --bk-border: rgba(214, 168, 66, 0.22);
    --bk-border-strong: rgba(214, 168, 66, 0.42);
    --bk-text: #f3efe7;
    --bk-muted: #b1aa9f;
    --bk-gold: #d6a842;
    --bk-gold-strong: #f0c86f;
    --bk-red: #a52020;
    --bk-green: #22a06b;
    --bk-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --bk-font-sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --bk-font-serif: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--bk-font-sans);
    color: var(--bk-text);
    background:
        radial-gradient(circle at top, rgba(214, 168, 66, 0.16), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(165, 32, 32, 0.12), transparent 24%),
        linear-gradient(180deg, #090909 0%, #030303 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.bk-body {
    min-height: 100vh;
}

.bk-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 100vh;
}

.bk-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 22px;
    background: linear-gradient(180deg, rgba(9, 9, 9, 0.98), rgba(6, 6, 6, 0.98));
    border-right: 1px solid var(--bk-border);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bk-brand,
.landing-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bk-brand img,
.landing-brand img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--bk-border);
    box-shadow: 0 10px 30px rgba(214, 168, 66, 0.18);
}

.bk-brand h1,
.landing-brand h1 {
    font-family: var(--bk-font-serif);
    font-size: 1.35rem;
    margin: 0;
    color: var(--bk-gold-strong);
}

.bk-brand p,
.landing-brand p {
    margin: 0;
    color: var(--bk-muted);
}

.bk-user-pill,
.bk-side-card,
.metric-card,
.bk-card,
.landing-panel,
.auth-card,
.auth-side,
.auth-form,
.price-card,
.feature-card {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.95));
    border: 1px solid var(--bk-border);
    border-radius: 24px;
    box-shadow: var(--bk-shadow);
}

.bk-user-pill,
.bk-side-card,
.bk-card,
.metric-card {
    padding: 18px;
}

.bk-user-pill .role {
    display: inline-flex;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--bk-gold);
    margin-bottom: 4px;
}

.bk-user-pill small {
    color: var(--bk-muted);
}

.bk-nav {
    display: grid;
    gap: 8px;
}

.bk-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: #f5f0e8;
    background: rgba(255, 255, 255, 0.02);
    transition: 0.2s ease;
}

.bk-nav-link:hover,
.bk-nav-link.active {
    border-color: var(--bk-border-strong);
    background: linear-gradient(135deg, rgba(214, 168, 66, 0.16), rgba(214, 168, 66, 0.04));
    transform: translateX(2px);
}

.bk-main {
    padding: 28px;
}

.bk-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.bk-topbar h2 {
    margin: 0;
    font-family: var(--bk-font-serif);
    color: var(--bk-gold-strong);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.bk-topbar p {
    margin: 8px 0 0;
    color: var(--bk-muted);
}

.bk-chip,
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--bk-border);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
}

.status-chip.success {
    color: #8ff0b9;
    border-color: rgba(34, 160, 107, 0.35);
}

.status-chip.warning {
    color: #f7cd6b;
    border-color: rgba(214, 168, 66, 0.45);
}

.status-chip.danger {
    color: #ff8f8f;
    border-color: rgba(165, 32, 32, 0.45);
}

.status-chip.secondary {
    color: #c8c1b8;
}

.metric-card {
    min-height: 100%;
}

.metric-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
    color: var(--bk-muted);
}

.metric-value {
    margin-top: 10px;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 800;
}

.bk-card {
    height: 100%;
}

.section-title {
    font-family: var(--bk-font-serif);
    color: var(--bk-gold-strong);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--bk-text);
    --bs-table-border-color: rgba(255, 255, 255, 0.06);
}

.table thead th {
    color: var(--bk-gold-strong);
    border-bottom-color: var(--bk-border);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table td,
.table th {
    vertical-align: middle;
}

.row-state-expired {
    background: rgba(165, 32, 32, 0.09);
}

.row-state-trial {
    background: rgba(214, 168, 66, 0.08);
}

.row-state-premium {
    background: rgba(34, 160, 107, 0.07);
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(214, 168, 66, 0.2);
    color: #fff;
    border-radius: 16px;
    padding: 0.85rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: var(--bk-gold);
    box-shadow: 0 0 0 0.25rem rgba(214, 168, 66, 0.16);
}

.form-control::placeholder {
    color: #9a9388;
}

.btn-primary {
    background: linear-gradient(135deg, #f0c86f, #bf8c25);
    border: 0;
    color: #120d05;
    border-radius: 16px;
    font-weight: 800;
    padding: 0.85rem 1.15rem;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #120d05;
    background: linear-gradient(135deg, #f4d286, #cb952b);
}

.btn-outline-light,
.btn-outline-danger,
.btn-outline-success {
    border-radius: 14px;
}

.bk-footer {
    margin-top: 28px;
    padding: 18px 0 10px;
}

.bk-footer a,
.auth-powered a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bk-muted);
}

.bk-footer img,
.auth-powered img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.landing-page,
.auth-page {
    min-height: 100vh;
    padding: 28px;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 26px;
    margin-top: 26px;
}

.landing-panel,
.feature-card,
.price-card {
    padding: 28px;
}

.landing-copy h2 {
    font-family: var(--bk-font-serif);
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    line-height: 1.04;
    margin: 14px 0;
}

.landing-copy p {
    color: var(--bk-muted);
    font-size: 1.05rem;
}

.landing-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-visual::before {
    content: "";
    position: absolute;
    inset: 12% 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 168, 66, 0.32), transparent 58%);
}

.landing-visual img {
    position: relative;
    width: min(100%, 360px);
    border-radius: 32px;
    border: 1px solid rgba(214, 168, 66, 0.3);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--bk-border);
    color: var(--bk-gold-strong);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.feature-grid,
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card h3,
.price-card h3 {
    font-family: var(--bk-font-serif);
    color: var(--bk-gold-strong);
    font-size: 1.15rem;
}

.feature-card p,
.price-card p,
.price-card li {
    color: var(--bk-muted);
}

.price-card .price {
    font-size: 2.5rem;
    font-weight: 800;
}

.auth-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 24px;
    align-items: stretch;
}

.auth-side,
.auth-form {
    padding: 32px;
}

.auth-side {
    position: relative;
    overflow: hidden;
}

.auth-side::after {
    content: "";
    position: absolute;
    inset: auto -14% -20% auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(214, 168, 66, 0.26), transparent 60%);
}

.auth-side h2 {
    font-family: var(--bk-font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.auth-side ul {
    padding-left: 18px;
    color: var(--bk-muted);
}

.auth-powered {
    margin-top: 22px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 20px;
}

.list-soft {
    display: grid;
    gap: 12px;
}

.list-soft-item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(214, 168, 66, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.warning-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(165, 32, 32, 0.34);
    background: rgba(165, 32, 32, 0.08);
}

.paper-sheet {
    display: grid;
    gap: 18px;
}

.paper-sheet__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.paper-hint {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px dashed rgba(214, 168, 66, 0.34);
    background: rgba(255, 255, 255, 0.03);
    color: var(--bk-muted);
}

.paper-table-wrap {
    border: 1px solid rgba(214, 168, 66, 0.14);
    background: rgba(255, 255, 255, 0.015);
}

.paper-table th,
.paper-table td {
    padding: 0.7rem 0.55rem;
}

.paper-table th {
    font-size: 0.77rem;
}

.paper-table input.form-control {
    min-width: 92px;
}

.paper-balance {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bk-gold-strong);
}

.row {
    --bk-gutter: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    margin: calc(var(--bk-gutter) * -0.5);
}

.row > * {
    width: 100%;
    padding: calc(var(--bk-gutter) * 0.5);
}

.g-2 {
    --bk-gutter: 0.75rem;
}

.g-3 {
    --bk-gutter: 1rem;
}

.g-4 {
    --bk-gutter: 1.5rem;
}

.col-3 { width: 25%; }
.col-4 { width: 33.3333%; }
.col-5 { width: 41.6667%; }
.col-6 { width: 50%; }
.col-7 { width: 58.3333%; }
.col-12 { width: 100%; }

.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.w-100 { width: 100%; }
.h-100 { height: 100%; }
.small,
small {
    font-size: 0.875rem;
}

.text-center { text-align: center; }
.text-end { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-light-emphasis,
.text-secondary-emphasis {
    color: var(--bk-muted) !important;
}

.text-warning {
    color: var(--bk-gold-strong) !important;
}

.text-danger {
    color: #ff8f8f !important;
}

.rounded-pill {
    border-radius: 999px;
}

.border-0 {
    border: 0 !important;
}

.shadow-sm {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18) !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.85rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 800;
    font-family: inherit;
    line-height: 1.1;
    cursor: pointer;
    transition: 0.2s ease;
}

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

.btn-sm {
    min-height: 38px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
}

.btn-outline-light,
.btn-outline-danger,
.btn-outline-success {
    background: transparent;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: #f5f0e8;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.btn-outline-danger {
    border-color: rgba(165, 32, 32, 0.55);
    color: #ffb1b1;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background: rgba(165, 32, 32, 0.12);
    color: #ffd3d3;
}

.btn-outline-success {
    border-color: rgba(34, 160, 107, 0.5);
    color: #8ff0b9;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background: rgba(34, 160, 107, 0.12);
    color: #b6ffd2;
}

.form-label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--bk-muted);
    font-weight: 600;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--bk-gold);
}

.form-check-label {
    color: var(--bk-text);
}

.form-switch .form-check-input {
    width: 2.3rem;
}

.form-control-sm,
.form-select-sm {
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(34, 160, 107, 0.14);
    border-color: rgba(34, 160, 107, 0.4);
    color: #b6ffd2;
}

.alert-danger {
    background: rgba(165, 32, 32, 0.14);
    border-color: rgba(165, 32, 32, 0.4);
    color: #ffd0d0;
}

.alert-warning {
    background: rgba(214, 168, 66, 0.14);
    border-color: rgba(214, 168, 66, 0.45);
    color: #ffe4a3;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.text-bg-warning {
    background: rgba(214, 168, 66, 0.18);
    color: var(--bk-gold-strong);
    border: 1px solid rgba(214, 168, 66, 0.34);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table td,
.table th {
    padding: 0.9rem 0.75rem;
}

.align-middle td,
.align-middle th {
    vertical-align: middle;
}

.bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    min-width: 1.15rem;
    font-style: normal;
    margin-right: 0.35rem;
}

.bi::before { content: "•"; }
.bi-speedometer2::before { content: "◴"; }
.bi-buildings-fill::before { content: "▣"; }
.bi-receipt-cutoff::before { content: "≋"; }
.bi-megaphone-fill::before { content: "✦"; }
.bi-people-fill::before { content: "◉"; }
.bi-person-badge-fill::before { content: "◎"; }
.bi-grid-1x2-fill::before { content: "▥"; }
.bi-cup-straw::before { content: "◍"; }
.bi-tags-fill::before { content: "⌘"; }
.bi-box-seam::before,
.bi-box-seam-fill::before { content: "▢"; }
.bi-cash-stack::before { content: "¤"; }
.bi-bar-chart-fill::before { content: "▤"; }
.bi-shield-exclamation::before { content: "!"; }
.bi-inbox-fill::before { content: "✉"; }
.bi-credit-card-2-front-fill::before { content: "◫"; }
.bi-gear-fill::before { content: "⚙"; }
.bi-currency-euro::before { content: "€"; }

@media (min-width: 768px) {
    .col-md-2 { width: 16.6667%; }
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.3333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.6667%; }
    .col-md-9 { width: 75%; }
    .col-md-10 { width: 83.3333%; }
}

@media (min-width: 1200px) {
    .col-xl-4 { width: 33.3333%; }
    .col-xl-5 { width: 41.6667%; }
    .col-xl-6 { width: 50%; }
    .col-xl-7 { width: 58.3333%; }
    .col-xl-8 { width: 66.6667%; }
}

canvas {
    width: 100% !important;
}

@media (max-width: 1200px) {
    .bk-shell,
    .landing-hero,
    .auth-wrap,
    .feature-grid,
    .price-grid {
        grid-template-columns: 1fr;
    }

    .bk-sidebar {
        position: relative;
        height: auto;
    }
}

@media (max-width: 768px) {
    .bk-main,
    .bk-sidebar,
    .landing-page,
    .auth-page {
        padding: 20px;
    }

    .bk-topbar {
        flex-direction: column;
    }

    .bk-brand img,
    .landing-brand img {
        width: 56px;
        height: 56px;
    }
}
