:root {
    color-scheme: dark;
    --bg: #080a10;
    --surface: #1a1e26;
    --surface-2: #222836;
    --line: #303848;
    --text: #f5f7fb;
    --muted: #9aa4b2;
    --primary: #4f8cff;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.topbar {
    display: none;
}

.topbar {
    background: #151922;
    border-bottom: 1px solid var(--line);
}

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

.sidebar {
    background: #121313;
    border-right: 1px solid #27272a;
    padding-top: .85rem !important;
}

.sidebar a {
    color: #9cc5ef;
    display: block;
    padding: .72rem .9rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: .35rem;
}

.sidebar a:hover {
    background: #0e3320;
    color: #00ff88;
}

.sidebar a.active {
    background: #0c351f;
    color: #00ff88;
}

.content {
    min-width: 0;
    background: #070910;
    padding-top: 1.35rem !important;
    overflow-x: hidden;
}

img,
svg,
canvas {
    max-width: 100%;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 760px;
}

.table th,
.table td {
    white-space: nowrap;
}


.panel, .metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: .875rem;
}

.metric strong {
    display: block;
    font-size: clamp(1.35rem, 2vw, 2rem);
    margin-top: .35rem;
}

.form-control, .form-select {
    background-color: #10141b;
    border-color: var(--line);
    color: var(--text);
}

.form-control:focus, .form-select:focus {
    background-color: #10141b;
    color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(79, 140, 255, .18);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.span-2 {
    grid-column: span 2;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
}

.auth-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(0, 240, 132, .08), rgba(8, 10, 16, 0) 32%),
        radial-gradient(circle at 50% 0, rgba(0, 216, 255, .08), transparent 34%),
        #070910;
}

.auth-panel {
    width: min(100%, 448px);
    background: #0b0c13;
    border: 1px solid #20304d;
    border-top: 2px solid #00d889;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
    padding: 28px;
}

.auth-brand {
    align-items: center;
    border-bottom: 1px solid #20304d;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
}

.auth-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #00f084;
    color: #03150d;
    display: grid;
    font-size: 20px;
    font-weight: 900;
    place-items: center;
}

.auth-brand-title {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.auth-brand-title span {
    color: #00ff88;
}

.auth-brand-subtitle {
    color: #00ff88;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    margin-top: 5px;
}

.auth-heading {
    margin-bottom: 22px;
}

.auth-heading p {
    color: #00ff9a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    margin: 0 0 8px;
}

.auth-heading h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.08;
    margin: 0;
}

.auth-heading span {
    color: #9fc2f3;
    display: block;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field label {
    color: #dbe8ff;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.auth-field .form-control {
    min-height: 44px;
    background: #121420;
    border-color: #243047;
    border-radius: 8px;
    color: #edf4ff;
}

.auth-field .form-control:focus {
    border-color: #00d889;
    box-shadow: 0 0 0 3px rgba(0, 216, 137, .12);
}

.auth-help {
    color: #6f8ab5;
    font-size: 12px;
    margin-top: 6px;
}

.auth-submit {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #05e17d;
    color: #00170d;
    font-size: 13px;
    font-weight: 900;
    margin-top: 4px;
}

.auth-submit:hover {
    background: #13ef8d;
}

.auth-link {
    color: #8da0be;
    font-size: 13px;
    text-align: center;
}

.auth-link a {
    color: #00ff9a;
    font-weight: 800;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #070910;
}

.result-green { background: #198754; }
.result-red { background: #dc3545; }
.result-reembolso { background: #0dcaf0; color: #071015; }
.result-pendente { background: #6c757d; }
.mov-entrada td { border-left: 3px solid #198754; }
.mov-saida td { border-left: 3px solid #dc3545; }
.mov-neutra td { border-left: 3px solid #6c757d; }

.brand-block {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .1rem .6rem 1.35rem;
    border-bottom: 1px solid #27272a;
    margin: 0 -.6rem 1rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #00f084;
    color: #03150d;
    border-radius: 14px;
    font-weight: 900;
}

.brand-title {
    color: #fff;
    font-weight: 900;
    line-height: 1;
}

.brand-title span {
    color: #00ff88;
}

.brand-subtitle {
    color: #00ff88;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    margin-top: .25rem;
}

.user-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1b2723;
    color: #00ff88;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.user-name {
    color: #fff;
    font-weight: 800;
}

.user-role {
    display: inline-block;
    background: #063b20;
    color: #00ff88;
    border-radius: 4px;
    padding: .15rem .35rem;
    font-size: .58rem;
    font-weight: 900;
}

.sidebar-section {
    color: #d8e2ff;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .14em;
    margin: 1rem .55rem .65rem;
}

.sidebar-logout-form {
    border-top: 1px solid #27272a;
    margin-top: 1rem;
    padding-top: 1rem;
}

.sidebar-logout-form button {
    width: 100%;
    border: 1px solid #3d1224;
    border-radius: 6px;
    background: #17070f;
    color: #ff5377;
    display: block;
    font-weight: 900;
    padding: .72rem .9rem;
    text-align: left;
}

.sidebar-logout-form button:hover {
    background: #260711;
    color: #ff7290;
}

.bet-entry-shell {
    min-height: calc(100vh - 3rem);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: .4rem;
}

.bet-entry-card {
    width: min(100%, 1120px);
    background: #0b0c13;
    border: 1px solid #1d2b45;
    border-radius: 12px;
    padding: 1.55rem;
    box-shadow: 0 22px 80px rgba(0, 0, 0, .35);
}

.bet-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #243047;
    padding-bottom: 1rem;
    margin-bottom: 1.45rem;
}

.bet-entry-head h1 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0;
    display: flex;
    gap: .6rem;
    align-items: center;
}

.bet-entry-head p {
    color: #aec4ea;
    font-size: .78rem;
    margin: .45rem 0 0;
}

.bet-head-icon {
    color: #00ff88;
    font-size: 1.25rem;
}

.balance-chip {
    min-width: 168px;
    background: #0e1423;
    border: 1px solid #1a2741;
    border-radius: 8px;
    padding: .7rem .85rem;
    font-family: Consolas, monospace;
    text-align: right;
    font-size: .72rem;
}

.balance-chip span {
    display: block;
    color: #6f7c91;
}

.balance-chip strong {
    display: block;
    font-size: .72rem;
}

.balance-chip .principal { color: #00ff88; }
.balance-chip .protecao { color: #00d8ff; }

.bet-entry-form {
    display: grid;
    gap: 1.35rem;
}

.bet-grid {
    display: grid;
    gap: 1.25rem;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-details { grid-template-columns: repeat(4, minmax(170px, 1fr)); }
.grid-money { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.span-3 { grid-column: span 3; }

.bet-field label {
    display: block;
    color: #dbe8ff;
    font-size: .76rem;
    font-weight: 800;
    margin-bottom: .45rem;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: normal;
}

.bet-field input,
.bet-field select,
.bet-field textarea {
    width: 100%;
    min-width: 0;
    background: #121420;
    border: 1px solid #243047;
    border-radius: 8px;
    color: #e9f0ff;
    padding: .62rem .75rem;
    font-size: .9rem;
    outline: none;
    min-height: 44px;
}

.bet-field input:focus,
.bet-field select:focus,
.bet-field textarea:focus {
    border-color: #00d47c;
    box-shadow: 0 0 0 .15rem rgba(0, 212, 124, .12);
}

.bet-field input::placeholder,
.bet-field textarea::placeholder {
    color: #8c98ad;
}

.bet-bottom-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 7rem;
    align-items: end;
}

.bet-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: .4rem;
}

.bet-actions button {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #059669, #00c767);
    color: #00150b;
    font-weight: 900;
    font-size: .78rem;
    padding: 1.55rem 1.6rem;
    width: 215px;
    box-shadow: 0 8px 26px rgba(16, 185, 129, .2);
}

.bet-actions button:hover {
    background: linear-gradient(90deg, #10b981, #22c55e);
}

.bet-create-page {
    display: block;
    width: 100%;
    padding: 0;
}

.bet-create-card {
    width: 100%;
    background: #0b0c13;
    border: 1px solid #20304d;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .32);
}

.bet-create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid #243047;
}

.bet-create-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.bet-create-header p {
    margin: 8px 0 0;
    color: #b7cdf2;
    font-size: 12px;
    line-height: 1.35;
}

.bet-title-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.bet-title-icon::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 3px;
    width: 4px;
    height: 4px;
    background: #00ff88;
    box-shadow:
        7px 0 #00ff88,
        14px 0 #00ff88,
        0 6px #00ff88,
        7px 6px #00ff88,
        14px 6px #00ff88;
}

.bet-balance-box {
    min-width: 168px;
    padding: 11px 12px;
    border: 1px solid #1d2c49;
    border-radius: 8px;
    background: #0f1524;
    text-align: right;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    line-height: 1.35;
}

.bet-balance-box span,
.bet-balance-box strong {
    display: block;
}

.bet-balance-box span {
    color: #728099;
}

.bet-balance-box strong {
    font-weight: 900;
}

.bet-balance-box .balance-main {
    color: #00ff88;
}

.bet-balance-box .balance-protection {
    color: #00d8ff;
}

.bet-create-form {
    display: grid;
    gap: 26px;
}

.bet-row {
    display: grid;
    gap: 22px;
}

.bet-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bet-row-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.bet-control {
    min-width: 0;
}

.bet-control label {
    display: block;
    margin: 0 0 8px;
    color: #dbe8ff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    white-space: normal;
}

.bet-control input,
.bet-control select,
.bet-control textarea {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 1px solid #243047;
    border-radius: 8px;
    background: #121420;
    color: #edf4ff;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
}

.bet-control textarea {
    min-height: 64px;
    resize: vertical;
}

.bet-control input::placeholder,
.bet-control textarea::placeholder {
    color: #8d99ad;
}

.bet-control input:focus,
.bet-control select:focus,
.bet-control textarea:focus {
    border-color: #00c875;
    box-shadow: 0 0 0 3px rgba(0, 200, 117, .12);
}

.exchange-panel {
    border: 1px solid #20304d;
    border-radius: 12px;
    background: #10131d;
    padding: 18px 16px;
}

.exchange-title,
.bet-preview h2 {
    margin: 0 0 18px;
    color: #00ff9a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}

.mini-section-icon {
    display: inline-block;
    width: 10px;
    height: 12px;
    border: 1px solid #00ff9a;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: -2px;
    position: relative;
}

.mini-section-icon::before,
.mini-section-icon::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    height: 1px;
    background: #00ff9a;
}

.mini-section-icon::before { top: 3px; }
.mini-section-icon::after { top: 7px; }

.exchange-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.exchange-operation label {
    display: block;
    color: #9fc2f3;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.exchange-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.exchange-toggle button {
    min-height: 36px;
    border: 1px solid #9db5de;
    border-radius: 7px;
    background: #111827;
    color: #9fc2f3;
    font-size: 12px;
    font-weight: 900;
}

.exchange-toggle button.back.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #020817;
    box-shadow: 0 0 18px rgba(37, 99, 235, .35);
}

.exchange-toggle button.lay.active {
    border-color: #f00348;
    background: #f00348;
    color: #020817;
    box-shadow: 0 0 18px rgba(240, 3, 72, .35);
}

.bet-preview {
    border: 1px solid #0f3a2c;
    border-radius: 12px;
    background: #071713;
    padding: 20px;
    margin-top: 6px;
}

.bet-preview.is-invalid {
    border-color: #8a1d3d;
    background: #170710;
}

.preview-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.preview-metrics span,
.preview-rule span {
    display: block;
    color: #84a6d7;
    font-size: 10px;
    font-weight: 900;
}

.preview-metrics strong,
.preview-rule strong {
    display: block;
    color: #e6f0ff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 18px;
    font-weight: 900;
    margin-top: 4px;
}

.preview-metrics small,
.preview-rule small {
    display: block;
    color: #58749e;
    font-size: 9px;
    margin-top: 4px;
}

.orange { color: #ff9f1a !important; }
.green-text { color: #00ff9a !important; }
.danger-text { color: #ff3d67 !important; }
.purple-text { color: #7478ff !important; }

.preview-divider {
    height: 1px;
    background: #173228;
    margin: 18px 0;
}

.bet-preview h3 {
    color: #7378ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    margin: 0 0 12px;
}

.rule-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7378ff;
    margin-right: 6px;
    vertical-align: 1px;
}

.preview-rule {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border: 1px solid #d9e4ff;
    border-radius: 8px;
    padding: 14px;
    background: #07101b;
}

.preview-note {
    color: #9fc2f3;
    font-size: 10px;
    font-style: italic;
    margin: 14px 0 0;
}

.bet-preview.is-invalid .preview-note {
    color: #ff7290;
    font-weight: 900;
}

.bet-submit-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 14px;
}

.bet-submit-row button {
    min-width: 202px;
    min-height: 36px;
    border: 0;
    border-radius: 8px;
    background: #08c66f;
    color: #00170c;
    font-size: 12px;
    font-weight: 900;
    padding: 10px 20px;
    box-shadow: 0 10px 24px rgba(8, 198, 111, .18);
}

.bet-submit-row button:hover {
    background: #13d97f;
}

.settings-page {
    width: min(100%, 576px);
    margin: 16px auto 48px;
    display: grid;
    gap: 24px;
}

.account-page {
    width: 100%;
    display: grid;
    gap: 24px;
}

.account-header {
    align-items: center;
    border-bottom: 1px solid #20304d;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
}

.account-header p {
    color: #00ff9a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    margin: 0 0 6px;
}

.account-header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    margin: 0;
}

.account-header span {
    color: #b7cdf2;
    display: block;
    font-size: 13px;
    margin-top: 5px;
}

.account-logout-btn {
    min-height: 38px;
    border: 1px solid #86203e;
    border-radius: 8px;
    background: #270812;
    color: #ff5377;
    font-size: 12px;
    font-weight: 900;
    padding: 9px 16px;
}

.account-logout-btn:hover {
    background: #3a0b1a;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

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

.account-readonly-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.account-readonly-row div {
    background: #07101b;
    border: 1px solid #243047;
    border-radius: 8px;
    padding: 12px;
}

.account-readonly-row span {
    color: #84a6d7;
    display: block;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.account-readonly-row strong {
    color: #00ff9a;
    display: block;
    font-size: 14px;
    font-weight: 900;
    margin-top: 5px;
}

.account-bank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.settings-card {
    background: #0b0c13;
    border: 1px solid #20304d;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .32);
}

.bank-settings-card {
    border-top: 2px solid #00d889;
}

.danger-settings-card {
    border-color: #a3123f;
    border-top: 2px solid #ff0f58;
    background: #0d0b12;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.settings-icon-green {
    border: 1px solid #006f52;
    background: #06211c;
    color: #00ff9a;
}

.settings-icon-danger {
    border: 1px solid #87213e;
    background: #250912;
    color: #ff5377;
}

.settings-header h1,
.settings-header h2 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .06em;
}

.settings-header p {
    margin: 4px 0 0;
    color: #aac3ee;
    font-size: 12px;
}

.settings-divider {
    height: 1px;
    background: #1b2a43;
    margin: 16px 0 20px;
}

.danger-divider {
    background: #321126;
}

.settings-field {
    margin-bottom: 18px;
}

.settings-field label,
.danger-form label {
    display: block;
    color: #9fc2f3;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    margin-bottom: 8px;
}

.settings-field input,
.danger-form input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #243047;
    border-radius: 7px;
    background: #121420;
    color: #f4f8ff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 15px;
    font-weight: 800;
    padding: 8px 12px;
    outline: none;
}

.settings-field input:focus,
.danger-form input:focus {
    border-color: #00d889;
    box-shadow: 0 0 0 3px rgba(0, 216, 137, .12);
}

.settings-field small {
    display: block;
    margin-top: 7px;
    color: #58749e;
    font-size: 9px;
}

.settings-primary-btn,
.settings-danger-btn {
    width: 100%;
    min-height: 32px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}

.settings-primary-btn {
    border: 0;
    background: linear-gradient(90deg, #0aa673, #00d066);
    color: #00170c;
    margin-top: 14px;
}

.settings-primary-btn:hover {
    background: linear-gradient(90deg, #11bd84, #11e174);
}

.danger-box {
    border: 1px solid #3d1224;
    background: #17070f;
    border-radius: 10px;
    padding: 18px 16px;
    margin-bottom: 20px;
}

.danger-box h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.danger-box p {
    margin: 0;
    color: #b7cdf2;
    font-size: 12px;
    line-height: 1.55;
}

.danger-form {
    display: grid;
    gap: 10px;
}

.settings-danger-btn {
    border: 1px solid #86203e;
    background: #270812;
    color: #ff4f72;
}

.settings-danger-btn:hover {
    background: #3a0b1a;
}

.bets-page {
    width: 100%;
    display: grid;
    gap: 24px;
}

.bets-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #20304d;
    padding-bottom: 18px;
}

.bets-header h1 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.bets-header p {
    color: #9fc2f3;
    margin: 6px 0 0;
    font-size: 13px;
}

.bets-header a {
    background: #08a96b;
    color: #00170c;
    border-radius: 8px;
    padding: 8px 14px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.bets-title-icon,
.filter-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #00d889;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    margin-right: 8px;
    vertical-align: -1px;
}

.bets-filter-card {
    border: 1px solid #20304d;
    border-radius: 10px;
    background: #0b0c13;
    padding: 16px;
}

.bets-filter-card h2 {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    margin: 0 0 12px;
}

.filter-icon {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    transform: rotate(45deg);
}

.filter-line {
    height: 1px;
    background: #d7deea;
    opacity: .9;
    margin-bottom: 16px;
}

.filter-search,
.bets-filter-card select,
.bets-filter-card input[type="date"] {
    width: 100%;
    border: 1px solid #243047;
    border-radius: 7px;
    background: #121420;
    color: #dfe9ff;
    min-height: 34px;
    padding: 7px 12px;
    outline: 0;
}

.filter-search {
    margin-bottom: 14px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bets-filter-card label,
.period-row span {
    color: #85a1d0;
    display: grid;
    gap: 6px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    font-weight: 800;
}

.period-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #d7deea;
    margin-top: 16px;
    padding-top: 16px;
}

.period-row select {
    width: 150px;
}

.period-row input {
    width: 140px;
}

.period-row button {
    border: 1px solid #243047;
    background: #101827;
    color: #dbe8ff;
    border-radius: 7px;
    padding: 8px 14px;
    font-weight: 900;
}

.bets-list {
    display: grid;
    gap: 24px;
}

.bet-card {
    border: 1px solid #2d2d2d;
    border-radius: 14px;
    background: #151515;
    padding: 24px;
}

.bet-card.is-open {
    border-left: 3px solid #f59e0b;
    border-color: #7a5209;
}

.bet-card.is-green {
    border-left: 3px solid #00d889;
}

.bet-card.is-red {
    border-left: 3px solid #ff0f58;
    border-color: #6c1532;
}

.bet-card-top,
.bet-match,
.bet-status-actions {
    display: flex;
    align-items: center;
}

.bet-card-top {
    justify-content: space-between;
    gap: 16px;
}

.bet-match {
    gap: 12px;
}

.sport-ball {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #202328;
    display: grid;
    place-items: center;
}

.bet-match h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.bet-match h3 span {
    color: #9fb0c8;
    font-size: 12px;
}

.bet-match p {
    margin: 4px 0 0;
    color: #7fa0cf;
    font-size: 12px;
}

.bet-match em {
    background: #063f37;
    color: #00d889;
    border-radius: 4px;
    font-style: normal;
    padding: 3px 7px;
    margin-left: 6px;
}

.bet-status-actions {
    gap: 8px;
}

.status-badge {
    border-radius: 4px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 900;
}

.status-badge.pending { color: #ffb000; border: 1px solid #7a5209; background: #2a1b05; }
.status-badge.green { color: #00ff9a; border: 1px solid #006f52; background: #05291e; }
.status-badge.red { color: #ff5475; border: 1px solid #86203e; background: #260711; }
.status-badge.neutral { color: #cbd5e1; border: 1px solid #334155; background: #111827; }

.status-revert-form {
    margin: 0;
}

.status-revert-btn {
    border: 1px solid #243b66;
    background: #102044;
    color: #9fbfff;
    border-radius: 4px;
    height: 24px;
    padding: 0 10px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 900;
}

.status-revert-btn.danger {
    background: #3b0a19;
    border-color: #8a1d3d;
    color: #ff7290;
}

.icon-btn {
    min-width: 34px;
    height: 24px;
    display: grid;
    place-items: center;
    background: #172544;
    border-radius: 5px;
    color: #9fbfff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
}

.bet-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    border-top: 1px solid #282828;
    border-bottom: 1px solid #282828;
    margin: 20px 0 16px;
    padding: 14px 0;
}

.bet-summary-grid span,
.bet-metrics-box span {
    display: block;
    color: #647ca6;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.bet-summary-grid strong,
.bet-metrics-box strong {
    color: #fff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    font-weight: 900;
}

.bet-metrics-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
    background: #050505;
    border: 1px solid #242424;
    border-radius: 10px;
    padding: 16px;
}

.bet-metrics-box .mt {
    margin-top: 12px;
}

.green-config {
    grid-column: 1 / -1;
    border-top: 1px solid #222;
    color: #00ff9a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    padding-top: 10px;
}

.bet-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
}

.finalize-toggle {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #05e17d;
    color: #00180c;
    font-size: 12px;
    font-weight: 900;
    margin-top: 20px;
    min-height: 34px;
}

.bet-action-row button,
.red-return-actions button {
    width: 100%;
    border-radius: 8px;
    min-height: 34px;
    font-weight: 900;
    font-size: 12px;
}

.green-action {
    border: 1px solid #008a59;
    background: #073d2b;
    color: #00ff9a;
}

.red-action {
    border: 1px solid #8a1d3d;
    background: #3b0a19;
    color: #ff5377;
}

.green-result-box,
.red-result-box {
    margin-top: 20px;
    border-radius: 10px;
    padding: 16px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.green-result-box {
    border: 1px solid #0b3e2d;
    background: #0a2219;
    color: #00ff9a;
}

.green-result-box p,
.red-result-box p {
    margin: 6px 0 0;
}

.red-result-box {
    border: 1px solid #351229;
    background: #100716;
    color: #ff5377;
}

.red-return-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.red-return-actions button {
    border: 1px solid #145f80;
    background: #062b39;
    color: #00d8ff;
}

.red-return-actions button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.empty-state {
    border: 1px solid #20304d;
    border-radius: 10px;
    background: #0b0c13;
    color: #9fc2f3;
    padding: 24px;
    text-align: center;
}

.protection-page {
    display: grid;
    gap: 22px;
}

.protection-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #20304d;
    padding-bottom: 16px;
}

.protection-header h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    margin: 0;
}

.protection-header h1 span {
    color: #00f084;
}

.protection-header p {
    color: #d9e8ff;
    font-size: 12px;
    font-weight: 900;
    margin: 6px 0 0;
}

.sync-button {
    border: 1px solid #292929;
    border-radius: 7px;
    background: #191919;
    color: #e9eef8;
    font-size: 11px;
    font-weight: 900;
    padding: 8px 16px;
}

.protection-layout {
    display: grid;
    grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
    gap: 22px;
}

.protection-left {
    display: grid;
    align-content: start;
    gap: 14px;
}

.protection-form-card,
.protection-info-card,
.protection-list-card {
    background: #141414;
    border: 1px solid #252525;
    border-radius: 12px;
    padding: 20px;
}

.protection-form-card h2,
.protection-info-card h2,
.protection-list-card h2 {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    margin: 0 0 8px;
}

.protection-form-card p,
.protection-info-card p {
    color: #8da0be;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

.protection-form-card label {
    color: #cfe0ff;
    display: grid;
    gap: 8px;
    font-size: 12px;
    font-weight: 900;
    margin-top: 14px;
}

.protection-form-card input,
.protection-form-card select {
    width: 100%;
    background: #121420;
    border: 1px solid #243047;
    border-radius: 8px;
    color: #e8f0ff;
    min-height: 38px;
    padding: 8px 12px;
    outline: 0;
}

.protection-form-card input:focus,
.protection-form-card select:focus {
    border-color: #00f084;
}

.protection-form-card button[type="submit"] {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #05e17d;
    color: #00170d;
    font-size: 12px;
    font-weight: 900;
    margin-top: 18px;
    min-height: 38px;
}

.protection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.protection-house-card {
    background: #080808;
    border: 1px solid #242424;
    border-radius: 10px;
    padding: 16px;
}

.protection-house-card.profit {
    border-color: #14382a;
}

.protection-house-card.loss {
    border-color: #3f1625;
}

.house-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.house-top h3 {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    margin: 0;
}

.house-top span,
.house-stats span {
    color: #586f91;
    display: block;
    font-family: Consolas, "Courier New", monospace;
    font-size: 9px;
    font-weight: 900;
}

.house-top strong {
    background: #172544;
    border-radius: 4px;
    color: #9fbfff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    padding: 3px 8px;
}

.house-stats {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.house-stats.two {
    grid-template-columns: 1fr 1fr;
}

.house-stats.border-top {
    border-top: 1px solid #222;
    padding-top: 14px;
}

.house-stats strong {
    color: #e8f0ff;
    display: block;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    font-weight: 900;
    margin-top: 3px;
}

.dash-page {
    display: grid;
    gap: 22px;
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.dash-card,
.dash-mini-card,
.dash-panel {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 12px;
}

.dash-card {
    min-height: 116px;
    padding: 18px;
}

.dash-card span,
.dash-mini-card span,
.dash-panel h2 {
    color: #5f7498;
    display: block;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.dash-card strong {
    color: #fff;
    display: block;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    margin-top: 8px;
}

.dash-card.highlight strong {
    color: #00f084;
}

.dash-card.negative {
    border-color: #3f1625;
}

.dash-card.negative strong {
    color: #ff0f58;
}

.dash-card.negative small {
    color: #c0d8ff;
}

.dash-card small {
    color: #91a8c8;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
}

.dash-small-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.dash-mini-card {
    min-height: 76px;
    padding: 18px 22px;
}

.dash-mini-card strong {
    color: #fff;
    display: block;
    font-size: 20px;
    font-weight: 900;
    margin-top: 5px;
}

.dash-mini-card.warn {
    border-color: #3f300b;
}

.dash-mini-card.red {
    border-color: #3f1625;
}

.dash-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.dash-panel {
    min-height: 300px;
    padding: 22px;
}

.dash-panel h2 {
    color: #fff;
    margin: 0;
}

.dash-panel p {
    color: #5f7498;
    font-size: 12px;
    font-weight: 800;
    margin: 8px 0 20px;
}

.dashboard-chart-box {
    height: 230px;
    max-height: 230px;
    min-height: 230px;
    position: relative;
    width: 100%;
}

.dashboard-chart-box canvas,
.dashboard-line-chart {
    display: block;
    height: 230px !important;
    max-height: 230px !important;
    width: 100% !important;
}

.dash-rules {
    display: flex;
    flex-direction: column;
}

.rule-card {
    background: #101010;
    border: 1px solid #282828;
    border-radius: 10px;
    color: #c7d6ec;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.55;
    margin-bottom: 14px;
    padding: 14px 16px;
}

.rule-card strong {
    color: #f4f7ff;
}

.dash-action {
    align-items: center;
    background: #05e17d;
    border-radius: 8px;
    color: #00170d;
    display: flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    margin-top: auto;
    min-height: 38px;
    text-decoration: none;
}

.dash-houses {
    min-height: 220px;
}

.dash-house-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dash-house-card {
    background: #080808;
    border: 1px solid #242424;
    border-radius: 10px;
    padding: 16px;
}

.report-page {
    display: grid;
    gap: 22px;
}

.report-header {
    align-items: flex-start;
    border-bottom: 1px solid #20304d;
    display: flex;
    justify-content: space-between;
    padding-bottom: 16px;
}

.report-header h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    margin: 0;
}

.report-header h1 span {
    color: #00f084;
}

.report-header p {
    color: #d9e8ff;
    font-size: 12px;
    font-weight: 900;
    margin: 6px 0 0;
}

.report-export {
    background: #191919;
    border: 1px solid #292929;
    border-radius: 8px;
    color: #dfe8f7;
    font-size: 11px;
    font-weight: 900;
    padding: 8px 16px;
    text-decoration: none;
}

.report-kpis {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.report-kpis article,
.report-panel {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 12px;
}

.report-kpis article {
    min-height: 74px;
    padding: 18px;
}

.report-kpis span,
.report-panel h2,
.report-audit-grid span,
.report-table-head span {
    color: #5f7498;
    display: block;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.report-kpis strong {
    color: #fff;
    display: block;
    font-size: 18px;
    font-weight: 900;
    margin-top: 8px;
}

.report-panel {
    padding: 20px;
}

.report-panel h2 {
    color: #fff;
    margin: 0 0 18px;
}

.report-audit-grid {
    border-top: 1px solid #252525;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-top: 16px;
}

.report-audit-grid strong {
    color: #fff;
    display: block;
    font-family: Consolas, "Courier New", monospace;
    font-size: 15px;
    font-weight: 900;
    margin-top: 6px;
}

.report-two-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.report-table {
    display: grid;
    gap: 0;
}

.report-table-head,
.report-table-row {
    align-items: center;
    border-top: 1px solid #252525;
    display: grid;
    gap: 14px;
    min-height: 44px;
}

.report-table-row {
    color: #d8e2f4;
    font-size: 12px;
    font-weight: 800;
}

.report-table-row strong {
    font-weight: 900;
}

.cols-5 {
    grid-template-columns: 1.4fr .7fr .7fr .7fr 1fr;
}

.cols-7 {
    grid-template-columns: 1.5fr .8fr .7fr .7fr 1fr 1fr .9fr 1fr;
}

.report-concentration h2 {
    margin-bottom: 20px;
}

.concentration-item {
    color: #d8e2f4;
    font-size: 12px;
    font-weight: 800;
    margin-top: 16px;
}

.concentration-item div:first-child {
    display: flex;
    justify-content: space-between;
}

.concentration-item span {
    color: #00f084;
    font-family: Consolas, "Courier New", monospace;
    font-weight: 900;
}

.concentration-bar {
    background: #0a2b1f;
    border-radius: 999px;
    height: 8px;
    margin-top: 8px;
    overflow: hidden;
}

.concentration-bar i {
    background: #05e17d;
    border-radius: inherit;
    display: block;
    height: 100%;
}

.not-found-page {
    min-height: calc(100vh - 3rem);
    display: grid;
    place-items: center;
    padding: 24px;
}

.not-found-card {
    width: min(100%, 620px);
    background:
        linear-gradient(180deg, rgba(0, 240, 132, .06), rgba(0, 216, 255, .025) 42%, rgba(11, 12, 19, 0)),
        #0b0c13;
    border: 1px solid #20304d;
    border-top: 2px solid #00d889;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

.not-found-mark {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    background: #06211c;
    border: 1px solid #006f52;
    border-radius: 18px;
    color: #00ff9a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 18px;
}

.not-found-kicker {
    color: #00ff9a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.not-found-card h1 {
    color: #fff;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
}

.not-found-copy {
    color: #b7cdf2;
    font-size: 14px;
    line-height: 1.65;
    margin: 18px 0 0;
}

.not-found-path {
    margin-top: 18px;
    padding: 12px 14px;
    background: #07101b;
    border: 1px solid #243047;
    border-radius: 8px;
    color: #9fc2f3;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.not-found-actions a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.not-found-primary {
    background: #05e17d;
    color: #00170d;
    box-shadow: 0 10px 24px rgba(5, 225, 125, .18);
}

.not-found-primary:hover {
    background: #13ef8d;
    color: #00170d;
}

.not-found-secondary {
    background: #101827;
    border: 1px solid #243047;
    color: #dbe8ff;
}

.not-found-secondary:hover {
    border-color: #00d889;
    color: #00ff9a;
}

@media (max-width: 980px) {
    .bet-create-card {
        padding: 20px;
    }

    .bet-create-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .bet-balance-box {
        width: 100%;
        text-align: left;
    }

    .bet-row-3,
    .bet-row-4 {
        grid-template-columns: 1fr;
    }

    .exchange-grid,
    .preview-metrics,
    .preview-rule {
        grid-template-columns: 1fr;
    }

    .bet-submit-row button {
        width: 100%;
    }

    .settings-page {
        margin: 0 auto 32px;
    }

    .account-header {
        align-items: stretch;
        flex-direction: column;
    }

    .account-logout-btn {
        width: 100%;
    }

    .account-grid,
    .account-bank-grid,
    .account-readonly-row {
        grid-template-columns: 1fr;
    }

    .filter-grid,
    .bet-summary-grid,
    .bet-metrics-box,
    .bet-action-row,
    .red-return-actions {
        grid-template-columns: 1fr;
    }

    .period-row {
        align-items: stretch;
        flex-direction: column;
    }

    .period-row select,
    .period-row input {
        width: 100%;
    }

    .bet-card-top,
    .bet-status-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .protection-header,
    .protection-layout {
        grid-template-columns: 1fr;
    }

    .protection-header {
        flex-direction: column;
        gap: 14px;
    }

    .protection-grid {
        grid-template-columns: 1fr;
    }

    .dash-kpis,
    .dash-small-row,
    .dash-main-grid,
    .dash-house-grid,
    .report-kpis,
    .report-two-grid,
    .report-audit-grid {
        grid-template-columns: 1fr;
    }

    .report-header {
        flex-direction: column;
        gap: 14px;
    }

    .not-found-page {
        min-height: 70vh;
        padding: 8px;
    }

    .not-found-card {
        padding: 24px;
    }

    .not-found-actions {
        display: grid;
    }

    .report-panel {
        overflow-x: auto;
    }

    .report-table {
        min-width: 760px;
    }
}

@media (max-width: 1400px) {
    .bet-entry-card {
        width: min(100%, 980px);
    }

    .grid-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dash-main-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-rules {
        grid-column: 1 / -1;
    }

    .report-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .report-audit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
    .filter-bar, .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .bet-entry-head { align-items: flex-start; flex-direction: column; }
    .balance-chip { width: 100%; text-align: left; }
    .grid-3, .grid-4, .grid-details, .grid-money { grid-template-columns: 1fr; }
    .span-3 { grid-column: span 1; }
    .bet-bottom-row { grid-template-columns: 1fr; gap: 1rem; }
    .bet-actions button { width: 100%; }
    .dash-kpis,
    .dash-small-row,
    .dash-main-grid,
    .dash-house-grid,
    .report-kpis,
    .report-two-grid,
    .report-audit-grid {
        grid-template-columns: 1fr;
    }
    .dash-rules {
        grid-column: auto;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .app-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .content {
        padding: 1rem !important;
    }

    .bet-row-4,
    .preview-metrics,
    .report-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-bank-grid,
    .protection-layout,
    .report-two-grid {
        grid-template-columns: 1fr;
    }

    .bet-summary-grid,
    .bet-metrics-box {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .content {
        padding: .85rem !important;
    }

    .sidebar {
        padding: .75rem !important;
    }

    .brand-block {
        margin-bottom: .75rem;
        padding-bottom: .9rem;
    }

    .user-card {
        padding: .8rem;
    }

    .sidebar a {
        margin-bottom: .25rem;
        padding: .65rem .75rem;
    }

    .sidebar-logout-form button {
        padding: .65rem .75rem;
    }

    .dash-card,
    .dash-mini-card,
    .dash-panel,
    .settings-card,
    .bet-create-card,
    .bet-card,
    .protection-form-card,
    .protection-info-card,
    .protection-list-card,
    .report-panel {
        border-radius: 10px;
        padding: 16px;
    }

    .dash-card strong {
        font-size: 24px;
    }

    .bet-create-header,
    .bets-header,
    .report-header,
    .protection-header,
    .account-header {
        align-items: stretch;
        flex-direction: column;
    }

    .bet-balance-box,
    .balance-chip,
    .account-logout-btn,
    .sync-button,
    .report-export,
    .bets-header a {
        width: 100%;
    }

    .bet-row-3,
    .bet-row-4,
    .exchange-grid,
    .preview-metrics,
    .preview-rule,
    .filter-grid,
    .account-grid,
    .account-bank-grid,
    .report-kpis,
    .report-audit-grid,
    .dash-kpis,
    .dash-small-row,
    .dash-main-grid,
    .dash-house-grid,
    .protection-grid {
        grid-template-columns: 1fr;
    }

    .period-row {
        align-items: stretch;
        flex-direction: column;
    }

    .period-row select,
    .period-row input,
    .period-row button {
        width: 100%;
    }

    .bet-card-top,
    .bet-status-actions,
    .bet-match {
        align-items: flex-start;
        flex-direction: column;
    }

    .bet-action-row,
    .red-return-actions {
        grid-template-columns: 1fr;
    }

    .table-responsive {
        border-radius: 8px;
    }

    .table-responsive table {
        min-width: 680px;
    }

    .table th,
    .table td {
        font-size: 12px;
        padding: .55rem;
    }
}

@media (max-width: 520px) {
    .content {
        padding: .65rem !important;
    }

    .brand-title {
        font-size: .95rem;
    }

    .brand-subtitle,
    .sidebar-section {
        font-size: .62rem;
    }

    .bet-create-card,
    .settings-card,
    .dash-panel,
    .bet-card,
    .report-panel {
        padding: 14px;
    }

    .bet-create-header h1,
    .bets-header h1,
    .report-header h1,
    .protection-header h1,
    .account-header h1 {
        font-size: 22px;
    }

    .dash-card strong,
    .report-kpis strong {
        font-size: 22px;
    }

    .bet-submit-row {
        display: grid;
    }

    .bet-submit-row button,
    .settings-primary-btn,
    .settings-danger-btn {
        width: 100%;
    }

    .table-responsive table {
        min-width: 620px;
    }
}
