:root {
    --page-bg: #0c1526;
    --panel-bg: #0f1923;
    --card-bg: rgba(16, 28, 45, 0.92);
    --line: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.62);
    --cyan: #00E5FF;
    --blue: #2D7DFF;
    --violet: #8B5CFF;
    --danger: #d91f42;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at 14% 22%, rgba(0, 229, 255, 0.16), transparent 30%),
        radial-gradient(circle at 88% 16%, rgba(139, 92, 255, 0.15), transparent 28%),
        linear-gradient(135deg, #07111f 0%, var(--page-bg) 54%, #0f1923 100%);
    color: var(--text);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.login-shell {
    width: min(1120px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 48px;
    padding: 32px 0;
}

.brand-panel {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 0;
}

.broker-header {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.broker-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
}

.broker-name {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-copy {
    max-width: 560px;
}

.eyebrow,
.card-kicker {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-copy h1 {
    max-width: 580px;
    margin: 16px 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: 0;
}

.brand-copy p {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.login-card {
    width: 100%;
    padding: 28px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
}

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

.card-heading h2 {
    margin: 6px 0 0;
    font-size: 30px;
    letter-spacing: 0;
}

.social-options {
    display: grid;
    gap: 10px;
}

.social-button,
.primary-action,
.secondary-action {
    min-height: 48px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.social-button {
    background: #ffffff;
    color: #152033;
}

.social-button.muted {
    background: rgba(0, 0, 0, 0.18);
    color: var(--text);
    border-color: var(--line);
}

.google-icon,
.social-button span:not(.google-icon) {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
}

.google-icon {
    color: #4285f4;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.social-button.muted span {
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
}

.social-button:hover,
.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-1px);
}

.divider {
    margin: 22px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

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

.login-form label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
}

.login-form input:focus {
    border-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

.benefit-list {
    margin: 20px 0;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}

.benefit-list li {
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 6px;
}

.auth-note {
    margin: 18px 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.text-link {
    color: var(--cyan);
    font-weight: 800;
    text-decoration: none;
}

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

.primary-action {
    margin-top: 8px;
    background: linear-gradient(135deg, #00B4DB, var(--blue));
    color: var(--text);
    box-shadow: 0 12px 30px rgba(45, 125, 255, 0.26);
}

.secondary-action {
    background: rgba(217, 31, 66, 0.12);
    color: #ff8da0;
    border-color: rgba(217, 31, 66, 0.28);
}

.login-status {
    min-height: 20px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.login-status.is-error {
    color: #ff8da0;
}

.login-status.is-success {
    color: var(--cyan);
}

.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.deposit-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 520px);
}

.deposit-brand {
    min-height: 640px;
}

.deposit-card {
    padding: 26px;
}

.deposit-alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    color: #ffd3dc;
    background: rgba(217, 31, 66, 0.12);
    border: 1px solid rgba(217, 31, 66, 0.28);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.deposit-warning {
    margin: 4px 0;
    color: #ffe9a8;
    background: rgba(245, 176, 65, 0.1);
    border-color: rgba(245, 176, 65, 0.28);
}

.deposit-form {
    gap: 12px;
}

.deposit-amount-row,
.copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}

.deposit-amount-row span {
    min-height: 46px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.16);
    border-radius: 6px;
    font-weight: 900;
}

.deposit-method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 2px 0 4px;
}

.deposit-method-tab {
    min-height: 44px;
    padding: 0 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.deposit-method-tab:hover {
    color: var(--text);
    border-color: rgba(0, 229, 255, 0.34);
}

.deposit-method-tab.active {
    color: #07111F;
    background: linear-gradient(135deg, #00e5ff, #37d99e);
    border-color: transparent;
}

.deposit-method-panel {
    display: contents;
}

.deposit-method-panel[hidden],
.copy-row[hidden],
label[hidden] {
    display: none !important;
}

.copy-button {
    min-height: 46px;
    padding: 0 14px;
    color: var(--text);
    background: rgba(45, 125, 255, 0.18);
    border: 1px solid rgba(45, 125, 255, 0.34);
    border-radius: 6px;
    font-weight: 800;
}

.copy-button:hover {
    border-color: rgba(0, 229, 255, 0.62);
}

.qr-panel {
    margin: 6px 0;
    padding: 18px;
    display: grid;
    justify-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.qr-panel img {
    width: 220px;
    height: 220px;
    padding: 10px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
}

.qr-panel.is-binance-pay {
    padding: 10px;
    background: #202a38;
}

.qr-panel.is-binance-pay img {
    width: min(100%, 360px);
    height: auto;
    max-height: 560px;
    padding: 0;
    background: transparent;
    border-radius: 8px;
}

.qr-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.deposit-link {
    color: var(--text);
    text-decoration: none;
}

.deposit-link[aria-disabled="true"] {
    opacity: 0.52;
    pointer-events: none;
}

.deposit-steps {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.deposit-steps li + li {
    margin-top: 6px;
}

.deposit-ticket-card {
    margin-top: 18px;
    overflow: hidden;
    background: rgba(8, 15, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.deposit-ticket-card[hidden] {
    display: none !important;
}

.deposit-ticket-head {
    padding: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deposit-ticket-head h3 {
    margin: 4px 0 4px;
    color: var(--text);
    font-size: 21px;
}

.deposit-ticket-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.deposit-ticket-close {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.deposit-ticket-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.09);
}

.deposit-ticket-user,
.deposit-ticket-meta,
.deposit-ticket-chat,
.deposit-ticket-form {
    padding-left: 18px;
    padding-right: 18px;
}

.deposit-ticket-user {
    padding-top: 14px;
    padding-bottom: 12px;
    display: grid;
    gap: 3px;
}

.deposit-ticket-user span,
.deposit-ticket-author,
.deposit-ticket-details {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.deposit-ticket-user strong {
    color: var(--text);
    font-size: 15px;
}

.deposit-ticket-user small {
    color: var(--muted);
    font-size: 12px;
    word-break: break-word;
}

.deposit-ticket-meta {
    padding-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.deposit-ticket-meta span {
    padding: 6px 10px;
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.deposit-ticket-chat {
    max-height: 300px;
    overflow: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    display: grid;
    gap: 10px;
    background: rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.deposit-ticket-message {
    width: min(88%, 390px);
    padding: 11px 12px;
    justify-self: start;
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
}

.deposit-ticket-message.user {
    justify-self: end;
    background: rgba(0, 229, 255, 0.09);
    border-color: rgba(0, 229, 255, 0.2);
}

.deposit-ticket-message p {
    margin: 6px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.deposit-ticket-author {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    letter-spacing: 0;
    text-transform: none;
}

.deposit-ticket-details {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.08);
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
}

.deposit-ticket-imgs,
.deposit-ticket-preview {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.deposit-ticket-imgs img,
.deposit-ticket-preview img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
}

.deposit-ticket-form {
    padding-top: 14px;
    padding-bottom: 16px;
    display: grid;
    gap: 10px;
}

.deposit-ticket-form textarea {
    width: 100%;
    min-height: 86px;
    resize: vertical;
    padding: 12px;
    color: var(--text);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    font: inherit;
    box-sizing: border-box;
}

.deposit-ticket-form textarea:focus {
    outline: none;
    border-color: rgba(0,229,255,.42);
    box-shadow: 0 0 0 3px rgba(0,229,255,.08);
}

.deposit-ticket-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.deposit-proof-field {
    display: grid;
    gap: 6px;
}

.deposit-proof-field small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.deposit-ticket-file {
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.deposit-ticket-file:hover {
    background: rgba(255,255,255,.09);
}

.deposit-ticket-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.deposit-ticket-send {
    min-height: 42px;
    width: auto;
    padding-left: 18px;
    padding-right: 18px;
    margin-top: 0;
}

.deposit-ticket-send:disabled {
    opacity: .62;
    cursor: wait;
}

.telegram-help-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    min-height: 54px;
    padding: 8px 14px 8px 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #07111F;
    background: linear-gradient(135deg, #00e5ff, #37d99e);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(0, 229, 255, 0.22);
    text-decoration: none;
    font-weight: 900;
}

.telegram-help-float span {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: #229ED9;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0;
}

.telegram-help-float strong {
    font-size: 14px;
}

.telegram-help-float:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.app-page-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 48px;
}

.app-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 42px;
}

.section-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.section-nav a {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
}

.section-nav a.active,
.section-nav a:hover {
    color: var(--text);
    background: rgba(0, 229, 255, 0.12);
}

.page-title-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}

.page-title-row h1 {
    margin: 10px 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: 0;
}

.page-title-row p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.5;
}

.page-back-action {
    width: auto;
    min-width: 170px;
    padding: 0 18px;
    color: var(--text);
    text-decoration: none;
    flex: 0 0 auto;
}

.copy-status-panel,
.balance-detail-panel {
    margin-bottom: 22px;
    padding: 18px;
    color: var(--muted);
    background: rgba(16, 28, 45, 0.72);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.copy-status-panel.is-active {
    color: var(--cyan);
    border-color: rgba(0, 229, 255, 0.34);
    background: rgba(0, 229, 255, 0.08);
}

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

.trader-card {
    padding: 20px;
    background: rgba(16, 28, 45, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
}

.trader-card.is-copying {
    border-color: rgba(0, 229, 255, 0.48);
    box-shadow: 0 18px 54px rgba(0, 229, 255, 0.12);
}

.trader-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.trader-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--text);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.28), rgba(139, 92, 255, 0.32));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-weight: 900;
}

.trader-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trader-name-row h2 {
    margin: 0;
    font-size: 20px;
}

.trader-card p {
    margin: 4px 0 0;
    color: var(--muted);
}

.verified-badge {
    min-height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.verified-badge svg {
    width: 16px;
    height: 16px;
    fill: rgba(0, 229, 255, 0.16);
    stroke: currentColor;
    stroke-width: 2;
}

.trader-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.trader-metrics div,
.balance-summary-card {
    padding: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.trader-metrics span,
.balance-summary-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.trader-metrics strong,
.balance-summary-card strong {
    color: var(--text);
    font-size: 22px;
}

.trader-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.trader-details span {
    padding: 7px 9px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.copy-action.is-active {
    background: linear-gradient(135deg, #00c88a, var(--cyan));
    box-shadow: 0 12px 30px rgba(0, 229, 255, 0.2);
}

.balance-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.balance-summary-card small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.balance-detail-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.balance-detail-panel h2 {
    margin: 7px 0;
    font-size: 26px;
}

.balance-detail-panel p {
    margin: 0;
    color: var(--muted);
}

.balance-actions {
    display: flex;
    gap: 10px;
    min-width: 300px;
}

.balance-actions a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 860px) {
    .login-shell {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
        padding: 24px 0;
    }

    .brand-panel {
        min-height: auto;
        gap: 42px;
        padding: 0;
    }

    .brand-copy h1 {
        font-size: 40px;
    }

    .brand-copy p {
        font-size: 16px;
    }

    .login-card {
        padding: 22px;
    }

    .deposit-shell {
        grid-template-columns: 1fr;
    }

    .deposit-brand {
        min-height: auto;
    }

    .deposit-ticket-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .deposit-ticket-file,
    .deposit-ticket-send {
        width: 100%;
    }

    .app-page-header,
    .page-title-row,
    .balance-detail-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .section-nav {
        overflow-x: auto;
    }

    .trader-grid,
    .balance-summary-grid {
        grid-template-columns: 1fr;
    }

    .balance-actions {
        min-width: 0;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .login-shell {
        width: min(100% - 20px, 420px);
    }

    .broker-logo {
        width: 38px;
        height: 38px;
    }

    .broker-name {
        font-size: 20px;
    }

    .brand-copy h1 {
        font-size: 34px;
    }

    .deposit-amount-row,
    .copy-row {
        grid-template-columns: 1fr;
    }

    .copy-button {
        width: 100%;
    }

    .deposit-ticket-head,
    .deposit-ticket-user,
    .deposit-ticket-meta,
    .deposit-ticket-chat,
    .deposit-ticket-form {
        padding-left: 14px;
        padding-right: 14px;
    }

    .deposit-ticket-message {
        width: 100%;
        box-sizing: border-box;
    }

    .telegram-help-float {
        right: 14px;
        bottom: 14px;
        min-height: 50px;
        padding-right: 12px;
    }
}

.finance-document,
.finance-page {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #060912;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(135deg, #060912 0%, #0b111d 48%, #111827 100%);
    background-size: 48px 48px, 48px 48px, auto;
    background-color: #060912;
    color: #f8fbff;
}

.finance-page * {
    min-width: 0;
}

.finance-page .broker-name {
    background: linear-gradient(135deg, #00e5ff 0%, #37d99e 48%, #f5b041 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.finance-shell {
    width: calc(100% - 32px);
    max-width: 1220px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px 0 56px;
}

.finance-header {
    min-height: 72px;
    margin-bottom: 22px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(7, 13, 24, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

.finance-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: #050914;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.finance-nav a {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(248, 251, 255, 0.68);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
}

.finance-nav a.active {
    color: #05111d;
    background: #00e5ff;
    box-shadow: 0 10px 24px rgba(0, 229, 255, 0.22);
}

.finance-nav a:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.finance-hero {
    position: relative;
    min-height: 260px;
    margin-bottom: 18px;
    padding: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
    align-items: stretch;
    gap: 22px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(55, 217, 158, 0.06) 44%, rgba(245, 176, 65, 0.08)),
        #09111f;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
}

.finance-hero::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: 24px;
    width: min(48%, 520px);
    height: 92px;
    opacity: 0.18;
    background:
        linear-gradient(135deg, transparent 0 13%, #00e5ff 13% 15%, transparent 15% 34%, #37d99e 34% 36%, transparent 36% 59%, #f5b041 59% 61%, transparent 61% 100%);
    pointer-events: none;
}

.finance-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.finance-hero-copy h1 {
    max-width: 720px;
    margin: 10px 0 12px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 0.95;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.finance-hero-copy p {
    max-width: 620px;
    margin: 0;
    color: rgba(248, 251, 255, 0.72);
    font-size: 17px;
    line-height: 1.55;
    overflow-wrap: break-word;
}

.copy-state-card,
.balance-wallet-card {
    position: relative;
    z-index: 1;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(5, 9, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.copy-state-card span,
.balance-wallet-card span,
.copy-market-strip span {
    color: rgba(248, 251, 255, 0.56);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.copy-state-card strong,
.balance-wallet-card strong {
    margin-top: 8px;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
}

.copy-state-card p,
.balance-wallet-card small {
    margin: 12px 0 0;
    color: rgba(248, 251, 255, 0.72);
    line-height: 1.45;
}

.copy-market-strip,
.balance-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.copy-market-strip article,
.finance-page .balance-summary-card {
    min-height: 126px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(9, 17, 31, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
}

.copy-market-strip strong,
.finance-page .balance-summary-card strong {
    color: #ffffff;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1;
}

.copy-market-strip small,
.finance-page .balance-summary-card small,
.finance-page .balance-summary-card span {
    color: rgba(248, 251, 255, 0.58);
}

.copy-toolbar {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.copy-filter-group {
    display: flex;
    gap: 6px;
    padding: 5px;
    overflow-x: auto;
    background: rgba(5, 9, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.copy-filter-group button {
    min-height: 38px;
    padding: 0 14px;
    color: rgba(248, 251, 255, 0.72);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-weight: 850;
    white-space: nowrap;
}

.copy-filter-group button.is-selected {
    color: #06121d;
    background: #37d99e;
}

.compact-link {
    width: auto;
    min-width: 132px;
    min-height: 42px;
    margin-top: 0;
    padding: 0 16px;
    text-decoration: none;
    white-space: nowrap;
}

.finance-page .secondary-action {
    color: #f8fbff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

.finance-page .primary-action {
    color: #04111c;
    background: linear-gradient(135deg, #00e5ff, #37d99e);
    box-shadow: 0 14px 28px rgba(0, 229, 255, 0.18);
}

.finance-page .trader-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.finance-page .trader-card {
    padding: 18px;
    display: grid;
    gap: 14px;
    background: rgba(9, 17, 31, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.28);
}

.finance-page .trader-card.is-copying {
    border-color: rgba(55, 217, 158, 0.72);
    box-shadow: 0 16px 54px rgba(55, 217, 158, 0.14);
}

.finance-page .trader-card-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.finance-page .trader-avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    color: #06121d;
    background: linear-gradient(135deg, #00e5ff, #37d99e);
    border: 0;
    box-shadow: 0 12px 24px rgba(0, 229, 255, 0.18);
}

.trader-heading {
    min-width: 0;
}

.finance-page .trader-name-row {
    align-items: center;
    gap: 8px;
}

.finance-page .trader-name-row h2 {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.15;
}

.finance-page .trader-card p {
    margin: 4px 0 0;
    color: rgba(248, 251, 255, 0.58);
}

.finance-page .verified-badge {
    min-height: 22px;
    padding: 0 8px;
    color: #07111f;
    background: #00e5ff;
    border: 0;
    border-radius: 999px;
    font-size: 11px;
}

.risk-pill {
    min-width: 62px;
    min-height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.risk-bajo {
    color: #04130f;
    background: #37d99e;
}

.risk-medio {
    color: #1b1200;
    background: #f5b041;
}

.risk-alto {
    color: #ffffff;
    background: #d91f42;
}

.trader-equity {
    height: 70px;
    padding: 8px;
    background: #050914;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.trader-equity svg {
    width: 100%;
    height: 100%;
    display: block;
}

.trader-equity polyline {
    fill: none;
    stroke: #37d99e;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trader-equity .equity-fill {
    fill: rgba(55, 217, 158, 0.13);
}

.finance-page .trader-metrics {
    margin: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-page .trader-metrics div {
    min-height: 82px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.08);
}

.finance-page .trader-metrics span {
    color: rgba(248, 251, 255, 0.54);
}

.finance-page .trader-metrics strong {
    color: #ffffff;
    font-size: 24px;
}

.finance-page .trader-details {
    margin: 0;
}

.finance-page .trader-details span {
    color: rgba(248, 251, 255, 0.72);
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.08);
}

.finance-page .copy-action {
    color: #04111c;
    margin-top: 0;
}

.finance-page .copy-action.is-active {
    background: #37d99e;
    box-shadow: 0 14px 30px rgba(55, 217, 158, 0.24);
}

.balance-wallet-card {
    gap: 6px;
}

.balance-wallet-card strong {
    color: #37d99e;
    font-variant-numeric: tabular-nums;
}

.balance-wallet-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.finance-page .balance-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.finance-page .balance-summary-card {
    margin: 0;
}

.finance-page .balance-summary-card:nth-child(2) {
    border-color: rgba(55, 217, 158, 0.36);
    background: linear-gradient(180deg, rgba(55, 217, 158, 0.14), rgba(9, 17, 31, 0.94));
}

.balance-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 14px;
}

.finance-page .balance-detail-panel,
.balance-ledger-card {
    min-height: 240px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(9, 17, 31, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.26);
}

.finance-page .balance-detail-panel h2 {
    margin: 8px 0;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 40px);
}

.finance-page .balance-detail-panel p {
    color: rgba(248, 251, 255, 0.7);
}

.finance-page .balance-actions {
    display: flex;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.ledger-heading {
    display: grid;
    gap: 8px;
}

.ledger-heading strong {
    color: #ffffff;
    font-size: 24px;
}

.ledger-row {
    min-height: 52px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ledger-row span {
    color: rgba(248, 251, 255, 0.58);
    font-weight: 750;
}

.ledger-row strong {
    color: #ffffff;
    text-align: right;
}

@media (max-width: 940px) {
    .finance-header,
    .finance-hero,
    .copy-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .finance-header {
        display: flex;
    }

    .finance-nav {
        overflow-x: auto;
        max-width: 100%;
    }

    .finance-hero {
        grid-template-columns: 1fr;
    }

    .copy-market-strip,
    .finance-page .balance-summary-grid,
    .finance-page .trader-grid,
    .balance-content-grid {
        grid-template-columns: 1fr;
    }

    .copy-filter-group {
        width: 100%;
    }

    .copy-filter-group button {
        flex: 1 0 auto;
    }
}

@media (max-width: 520px) {
    .finance-shell {
        width: calc(100% - 18px);
        max-width: 520px;
        padding-top: 10px;
    }

    .finance-header,
    .finance-hero,
    .copy-state-card,
    .balance-wallet-card,
    .finance-page .trader-card,
    .finance-page .balance-detail-panel,
    .balance-ledger-card {
        padding: 14px;
    }

    .finance-hero-copy h1 {
        font-size: 38px;
    }

    .finance-hero-copy p {
        font-size: 15px;
        max-width: calc(100vw - 64px);
    }

    .finance-nav a {
        padding: 0 11px;
        font-size: 13px;
    }

    .finance-page .trader-card-top {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .risk-pill {
        grid-column: 1 / -1;
        justify-content: flex-start;
        width: fit-content;
    }

    .finance-page .trader-metrics {
        grid-template-columns: 1fr;
    }

    .balance-wallet-actions,
    .finance-page .balance-actions {
        flex-direction: column;
    }

    .compact-link {
        width: 100%;
    }

    .ledger-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .ledger-row strong {
        text-align: left;
    }
}

.admin-shell {
    width: min(1280px, calc(100% - 28px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px 0 52px;
}

.admin-gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    gap: 22px;
    padding: 24px 0;
}

.admin-access-card {
    width: min(430px, 100%);
    padding: 26px;
    display: grid;
    gap: 14px;
    background: rgba(9, 17, 31, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
}

.admin-access-card h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1;
}

.admin-access-card label,
.admin-editor-card label {
    display: grid;
    gap: 7px;
    color: rgba(248, 251, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.admin-panel-page[hidden],
.admin-gate[hidden] {
    display: none !important;
}

.admin-hero {
    min-height: 230px;
}

.admin-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-notification-wrap {
    position: relative;
}

.admin-notification-button {
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(248, 251, 255, 0.88);
    background: #0f1923;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.admin-notification-button svg {
    width: 18px;
    height: 18px;
    color: #00e5ff;
}

.admin-notification-button.has-unread {
    border-color: rgba(0, 229, 255, 0.46);
    background: rgba(0, 229, 255, 0.08);
}

.admin-notification-button strong {
    min-width: 22px;
    min-height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #06121d;
    background: #00e5ff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
}

.admin-notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 50;
    width: min(390px, calc(100vw - 28px));
    padding: 12px;
    background: #0f1923;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.54);
}

.admin-notification-panel[hidden] {
    display: none !important;
}

.admin-notification-head {
    margin-bottom: 10px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-notification-head h2 {
    margin: 5px 0 0;
    color: #ffffff;
    font-size: 18px;
}

.admin-notification-list {
    max-height: 420px;
    display: grid;
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-notification-row {
    width: 100%;
    min-height: 72px;
    padding: 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    color: #ffffff;
    background: #0b1422;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
}

.admin-notification-row.is-unread {
    border-color: rgba(0, 229, 255, 0.3);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.11), rgba(11, 20, 34, 0.96));
}

.admin-notification-row span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.admin-notification-row strong,
.admin-notification-row small,
.admin-notification-row em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-notification-row strong {
    color: #ffffff;
    font-size: 13px;
}

.admin-notification-row small {
    color: rgba(248, 251, 255, 0.7);
    font-size: 12px;
}

.admin-notification-row em,
.admin-notification-row time {
    color: rgba(248, 251, 255, 0.46);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

.admin-notification-dot {
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border-radius: 999px;
    background: #00e5ff;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.42);
}

.admin-notification-dot.user {
    background: #37d99e;
    box-shadow: 0 0 16px rgba(55, 217, 158, 0.42);
}

.admin-notification-dot.withdrawal {
    background: #ffb84d;
    box-shadow: 0 0 16px rgba(255, 184, 77, 0.42);
}

.admin-notification-dot.deposit {
    background: #2196f3;
}

.admin-section-nav {
    position: sticky;
    top: 8px;
    z-index: 18;
    margin: 14px 0;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    background: rgba(5, 9, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(14px);
}

.admin-section-nav svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.admin-section-nav button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(248, 251, 255, 0.68);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.admin-section-nav button.active {
    color: #06121d;
    background: #00e5ff;
    border-color: #00e5ff;
    box-shadow: 0 12px 26px rgba(0, 229, 255, 0.18);
}

.admin-section-nav button > span {
    color: inherit;
    background: transparent;
    min-width: 0;
    min-height: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}

.admin-section-nav button > strong {
    min-width: 22px;
    min-height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #06121d;
    background: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 950;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    gap: 14px;
}

.admin-users-card,
.admin-editor-card {
    padding: 18px;
    background: rgba(9, 17, 31, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.26);
}

.admin-card-heading {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-card-heading h2 {
    margin: 6px 0 0;
    color: #ffffff;
    font-size: 24px;
}

.admin-pill {
    min-height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    color: #06121d;
    background: #37d99e;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.admin-pill.is-banned,
.admin-user-row em.is-banned {
    color: #ffffff;
    background: #d91f42;
}

.admin-pill.is-neutral {
    color: rgba(248, 251, 255, 0.76);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    color: #ffffff;
    background: #050914;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    outline: none;
}

.admin-input:focus {
    border-color: rgba(0, 229, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.admin-manual-search {
    margin-top: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.admin-users-list {
    height: 640px;
    margin-top: 12px;
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-user-row {
    width: 100%;
    min-height: 64px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    text-align: left;
}

.admin-user-row.is-selected {
    border-color: rgba(0, 229, 255, 0.58);
    background: rgba(0, 229, 255, 0.09);
}

.admin-user-row strong,
.admin-user-row small {
    display: block;
}

.admin-user-row small {
    margin-top: 4px;
    color: rgba(248, 251, 255, 0.58);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-row em {
    min-height: 26px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: #06121d;
    background: #37d99e;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.admin-empty {
    padding: 18px;
    color: rgba(248, 251, 255, 0.58);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    text-align: center;
}

.admin-current-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.admin-current-grid article,
.admin-section-card,
.admin-history-card {
    padding: 14px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
}

.admin-current-grid span {
    display: block;
    margin-bottom: 8px;
    color: rgba(248, 251, 255, 0.58);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-current-grid strong {
    color: #ffffff;
    font-size: clamp(22px, 3vw, 30px);
}

.admin-real-winrate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: -4px 0 14px;
}

.admin-real-winrate-grid article {
    min-height: 92px;
    padding: 14px;
    display: grid;
    align-content: center;
    gap: 6px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
}

.admin-real-winrate-grid article.is-usdt {
    background: rgba(55, 217, 158, 0.06);
    border-color: rgba(55, 217, 158, 0.2);
}

.admin-real-winrate-grid span {
    color: #00e5ff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-real-winrate-grid article.is-usdt span {
    color: #37d99e;
}

.admin-real-winrate-grid strong {
    color: #ffffff;
    font-size: clamp(24px, 3vw, 32px);
    font-variant-numeric: tabular-nums;
}

.admin-real-winrate-grid em {
    color: rgba(248, 251, 255, 0.58);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.admin-section-card {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.admin-history-card {
    margin-bottom: 14px;
}

.admin-history-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.admin-history-summary article {
    min-height: 76px;
    padding: 12px;
    display: grid;
    align-content: center;
    gap: 6px;
    background: #050914;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.admin-history-summary span,
.admin-history-main span {
    color: rgba(248, 251, 255, 0.58);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-history-summary strong {
    color: #ffffff;
    font-size: 24px;
    font-variant-numeric: tabular-nums;
}

.admin-history-summary strong.is-positive {
    color: #37d99e;
}

.admin-history-summary strong.is-negative {
    color: #ff8da0;
}

.admin-history-list {
    max-height: 360px;
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-history-row {
    min-height: 66px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #050914;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.admin-history-row.is-win {
    border-left-color: #37d99e;
}

.admin-history-row.is-loss {
    border-left-color: #d91f42;
}

.admin-history-main {
    display: grid;
    gap: 5px;
}

.admin-history-main strong {
    color: #ffffff;
    font-size: 15px;
}

.admin-history-main span {
    text-transform: none;
    line-height: 1.35;
}

.admin-history-row em {
    padding: 7px 9px;
    flex: 0 0 auto;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.admin-history-row em.is-win {
    color: #06121d;
    background: #37d99e;
}

.admin-history-row em.is-loss {
    color: #ffffff;
    background: #d91f42;
}

.admin-section-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
}

.admin-ticket-card {
    margin-top: 14px;
    padding: 18px;
    background: rgba(9, 17, 31, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.26);
}

.admin-ticket-grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 14px;
}

.admin-ticket-list,
.admin-ticket-chat {
    height: 520px;
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-ticket-list-panel,
.admin-ticket-chat-panel {
    min-width: 0;
}

.admin-ticket-row {
    width: 100%;
    min-height: 86px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 3px solid rgba(55, 217, 158, 0.75);
    border-radius: 8px;
    text-align: left;
}

.admin-ticket-row.is-selected {
    border-color: rgba(0, 229, 255, 0.56);
    border-left-color: #00e5ff;
    background: rgba(0, 229, 255, 0.08);
}

.admin-ticket-row.is-closed {
    border-left-color: rgba(248, 251, 255, 0.25);
}

.admin-ticket-row strong,
.admin-ticket-row small {
    display: block;
}

.admin-ticket-row small {
    margin-top: 4px;
    max-width: 250px;
    color: rgba(248, 251, 255, 0.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-ticket-row em {
    min-height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: #06121d;
    background: #37d99e;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.admin-ticket-row.is-closed em {
    color: rgba(248, 251, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
}

.admin-ticket-chat-head {
    min-height: 92px;
    margin-bottom: 10px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
}

.admin-ticket-chat-head h3 {
    margin: 6px 0 4px;
    color: #ffffff;
    font-size: 20px;
}

.admin-ticket-chat-head p {
    margin: 0;
    color: rgba(248, 251, 255, 0.55);
    font-size: 13px;
}

.admin-ticket-chat {
    height: 380px;
    margin-bottom: 10px;
    padding: 12px;
    background: #050914;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.admin-ticket-message {
    width: min(680px, 88%);
    padding: 12px;
    display: grid;
    gap: 8px;
    color: rgba(248, 251, 255, 0.88);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.admin-ticket-message.is-broker {
    margin-left: auto;
    background: rgba(33, 150, 243, 0.13);
    border-color: rgba(33, 150, 243, 0.26);
}

.admin-ticket-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(248, 251, 255, 0.46);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-ticket-message p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-ticket-details {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(248, 251, 255, 0.52);
    font-size: 12px;
}

.admin-ticket-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 8px;
}

.admin-ticket-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.admin-ticket-reply {
    display: grid;
    gap: 10px;
}

.admin-ticket-reply textarea.admin-input {
    min-height: 92px;
    padding-top: 12px;
    resize: vertical;
}

.admin-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.danger-zone {
    border-color: rgba(217, 31, 66, 0.26);
    background: rgba(217, 31, 66, 0.08);
}

@media (max-width: 980px) {
    .admin-grid,
    .admin-ticket-grid,
    .admin-current-grid,
    .admin-real-winrate-grid,
    .admin-history-summary,
    .admin-two-cols {
        grid-template-columns: 1fr;
    }

    .admin-users-list {
        height: 360px;
    }
}

@media (max-width: 760px) {
    .admin-shell {
        padding-bottom: 78px;
    }

    .admin-panel-page[data-admin-section-active="users"] .admin-editor-card,
    .admin-panel-page[data-admin-section-active="users"] .admin-ticket-card,
    .admin-panel-page[data-admin-section-active="account"] .admin-users-card,
    .admin-panel-page[data-admin-section-active="account"] .admin-ticket-card,
    .admin-panel-page[data-admin-section-active="tickets"] .admin-grid {
        display: none !important;
    }

    .admin-header-actions {
        flex: 1;
        justify-content: flex-end;
        gap: 8px;
    }

    .admin-header-actions .compact-link {
        width: auto;
    }

    .admin-notification-button {
        min-height: 40px;
        padding: 0 11px;
        font-size: 12px;
    }

    .admin-notification-panel {
        position: fixed;
        top: auto;
        left: 8px;
        right: 8px;
        bottom: 60px;
        width: auto;
        max-height: min(72dvh, 520px);
        padding: 14px;
        border-radius: 14px 14px 8px 8px;
        overflow-y: auto;
    }

    .admin-notification-panel::before {
        content: "";
        display: block;
        width: 42px;
        height: 4px;
        margin: 0 auto 12px;
        border-radius: 999px;
        background: rgba(248, 251, 255, 0.22);
    }

    .admin-notification-head {
        align-items: center;
        flex-direction: row;
    }

    .admin-notification-head .compact-link {
        width: auto;
        min-height: 34px;
        padding: 0 10px;
    }

    .admin-notification-list {
        max-height: calc(72dvh - 118px);
    }

    .admin-notification-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-notification-row time {
        grid-column: 2;
        justify-self: start;
    }

    .admin-section-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 70;
        height: 52px;
        min-height: 52px;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 0;
        background: #0c1526;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
        box-shadow: 0 -14px 32px rgba(0, 0, 0, 0.3);
        backdrop-filter: none;
    }

    .admin-section-nav button {
        position: relative;
        flex: 1;
        min-height: 52px;
        padding: 4px 2px;
        display: flex;
        flex-direction: column;
        gap: 3px;
        color: rgba(255, 255, 255, 0.42);
        background: none;
        border: none;
        border-radius: 0;
        font-size: 9px;
        letter-spacing: 0.03em;
        transition: color 0.2s ease;
    }

    .admin-section-nav button.active {
        color: #00e5ff;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .admin-section-nav svg {
        width: 19px;
        height: 19px;
        stroke-width: 1.75;
    }

    .admin-section-nav button > strong {
        position: absolute;
        top: 5px;
        right: calc(50% - 31px);
        min-width: 18px;
        min-height: 18px;
        padding: 0 5px;
        color: #06121d;
        background: #00e5ff;
        border: 1px solid #0c1526;
        font-size: 10px;
        line-height: 1;
    }

    .admin-grid {
        display: block;
    }

    .admin-ticket-card {
        margin-top: 0;
    }

    .admin-ticket-grid {
        display: block;
    }
}

@media (max-width: 560px) {
    .admin-shell {
        width: calc(100% - 18px);
        padding-top: 10px;
    }

    .admin-access-card,
    .admin-users-card,
    .admin-editor-card,
    .admin-ticket-card {
        padding: 14px;
    }

    .admin-manual-search,
    .admin-actions-row,
    .admin-history-row,
    .admin-ticket-chat-head {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .admin-history-row,
    .admin-ticket-chat-head {
        align-items: flex-start;
    }

    .admin-ticket-list,
    .admin-ticket-chat {
        height: 340px;
    }

    .admin-section-nav {
        height: 52px;
    }

    .admin-section-nav button {
        padding: 4px 2px;
    }

    .admin-notification-button span {
        max-width: 104px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
