:root {
    --page-bg: #f7f8fc;
    --ink: #25314d;
    --muted: #74809a;
    --line: #edf0f5;
    --purple: #7959d9;
}

body {
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.eyebrow {
    color: var(--purple);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.card {
    border: 1px solid var(--line);
    border-radius: .85rem;
    box-shadow: 0 4px 18px rgba(30, 45, 75, .035);
}

.filter-card .card-body { padding: 1.25rem; }
.table-card { overflow: hidden; }
.table-card .card-header { border-bottom-color: var(--line); font-weight: 600; padding: 1rem 1.25rem; }

.table { --bs-table-bg: transparent; }
.table thead th {
    background: #fafbfe;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .9rem 1.25rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tbody td { border-color: var(--line); padding: .85rem 1.25rem; }
.table tbody tr:hover { background: #fcfcff; }
.table tbody tr.is-selected { background: #f1edff; }
.table tbody tr.is-selected td { border-color: #e3dafd; }
.table tbody tr.is-highlighted { background: #fff9dc; }
.table tbody tr.is-highlighted td { border-color: #f5e9a8; }
.table tbody tr.is-highlighted.is-selected { background: #eee7ff; }
.highlight-column { padding-left: 1rem !important; padding-right: .25rem !important; text-align: center; width: 52px; }
.highlight-toggle { accent-color: #e0a100; cursor: pointer; }
.selection-column { padding-left: 1rem !important; padding-right: .25rem !important; width: 38px; }
.selection-column .form-check-input { cursor: pointer; }
.account-info { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #536078; font-size: .86rem; }
.order-code { color: #5d6880; font-family: Consolas, monospace; font-size: .8rem; white-space: nowrap; }

.status-select {
    appearance: none;
    background: #fff2e5;
    border: 0;
    border-radius: 99px;
    color: #ad632c;
    cursor: pointer;
    font-size: .74rem;
    font-weight: 700;
    outline: 0;
    padding: .35rem .7rem;
}
.status-available { background: #e8f7ee; color: #28764c; }
.status-reserved { background: #fff8dc; color: #927118; }
.status-sold { background: #fff0e3; color: #b46525; }

.action-buttons { align-items: center; display: flex; gap: .35rem; justify-content: flex-end; }
.action-buttons form { margin: 0; }
.action-buttons .btn { align-items: center; display: inline-flex; gap: .25rem; font-size: .73rem; white-space: nowrap; }
.btn-outline-purple { border-color: #dacff8; color: var(--purple); }
.btn-outline-purple:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.empty-state { color: var(--muted); padding: 3.5rem !important; text-align: center; }
.empty-state i { font-size: 1.75rem; }
.raw-account {
    background: #f8fbff;
    border: 1px solid #dce5f1;
    border-radius: .65rem;
    color: #24466f;
    min-height: 76px;
    padding: .85rem 2.7rem .85rem .9rem;
    position: relative;
}
.raw-account-label { color: #8492a8; font-size: .7rem; font-weight: 700; margin-bottom: .25rem; }
.raw-account-value { font-family: Consolas, monospace; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.copy-raw, .copy-field {
    background: transparent;
    border: 0;
    color: #8091ac;
    padding: .25rem;
}
.copy-raw { position: absolute; right: .65rem; top: 50%; transform: translateY(-50%); }
.copy-raw:hover, .copy-field:hover { color: var(--purple); }
.copy-success { color: #24834d !important; }
.copy-failed { color: #c43d4d !important; }
.detail-heading { color: #6f7f98; font-size: .82rem; font-weight: 700; margin: 1rem 0 .5rem; }
.account-fields { display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-field {
    align-items: center;
    border: 1px solid #dce5f1;
    border-radius: .7rem;
    display: flex;
    gap: .7rem;
    min-height: 76px;
    padding: .7rem .75rem;
}
.field-icon { color: #7256d7; font-size: 1.2rem; width: 1.35rem; text-align: center; }
.field-content { flex: 1; min-width: 0; }
.field-label { color: #91a0b7; display: block; font-size: .71rem; margin-bottom: .12rem; }
.field-value { color: #263651; display: block; font-size: .86rem; overflow-wrap: anywhere; }
.totp-value { color: #ba36d6; font-size: 1.1rem; letter-spacing: .18em; }
.totp-timer { color: #91a0b7; display: block; font-size: .66rem; margin-top: .1rem; }

@media (max-width: 576px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .action-buttons span { display: none; }
    .action-buttons .btn { padding: .36rem .48rem; }
    .table thead th, .table tbody td { padding-left: .8rem; padding-right: .8rem; }
    .account-fields { grid-template-columns: 1fr; }
}
