:root {
    --navy: #071426;
    --navy-2: #0d2038;
    --gold: #f4c542;
    --gold-dark: #d6a91f;
    --green: #148a4f;
    --red: #c73535;
    --telegram: #229ed9;
    --muted: #6b7280;
    --line: #e5e7eb;
}

.tesla-app-floating-button {
    display: none;
}

.tesla-app-floating-button.is-visible {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    background: #facc15;
    color: #111827 !important;
    text-decoration: none;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.1;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
    border: 1px solid rgba(17, 24, 39, .12);
}

.tesla-app-floating-button:hover,
.tesla-app-floating-button:focus {
    background: #fde047;
    color: #111827;
    text-decoration: none;
    transform: translateY(-1px);
}

.app-download-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 32px 0;
}

.app-download-card {
    width: min(560px, 100%);
    text-align: center;
}

.app-download-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #1778d4, #2bb6bd);
    box-shadow: 0 12px 28px rgba(17, 120, 212, .25);
}

.app-download-card h1 {
    color: var(--navy);
    margin-bottom: 12px;
}

.app-download-card p {
    color: #4b5563;
    margin-bottom: 18px;
}

.app-download-primary,
.app-download-secondary {
    width: 100%;
    margin-top: 10px;
}

.app-download-notice {
    margin: 16px 0 8px;
    text-align: left;
}

@media (max-width: 767px) {
    body.has-mobile-bottom-nav .tesla-app-floating-button.is-visible {
        bottom: 88px;
    }

    .tesla-app-floating-button.is-visible {
        right: 16px;
        min-height: 50px;
        padding: 0 18px;
        font-size: .95rem;
    }
}

* { box-sizing: border-box; }
body.site-bg {
    margin: 0;
    min-height: 100vh;
    background: var(--navy);
    color: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
}
a { color: #0b72c9; }
.page-wrap {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
    padding: 20px 0 86px;
}
.hero {
    min-height: 72vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero h1 {
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1;
    margin: 0 0 18px;
}
.lead { max-width: 760px; color: #dbe7f4; }
.eyebrow { color: var(--gold); text-transform: uppercase; font-weight: 700; letter-spacing: 0; }
.content-section, .dashboard { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.plan-grid, .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.white-card, .auth-card {
    background: #fff;
    color: #101827;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.auth-card {
    width: min(520px, 100%);
    margin: 36px auto;
}
.auth-card.wide { width: min(760px, 100%); }
.white-card h3 { margin-top: 0; }
.amount, .white-card strong {
    display: block;
    color: var(--navy);
    font-size: 1.65rem;
    font-weight: 800;
}
.white-card span { color: var(--muted); }
.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #111827;
    font-weight: 700;
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #111827; }
.risk-notice, .notice {
    background: #fff8db;
    border-left: 4px solid var(--gold);
    color: #3b2c00;
    padding: 12px 14px;
    border-radius: 6px;
}
.telegram-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1100;
    background: var(--telegram);
    color: #fff;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.forex-ticker {
    width: 100%;
    overflow: hidden;
    background: #03101f;
    border-bottom: 1px solid rgba(244,197,66,.22);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1050;
}
.forex-ticker-track {
    display: flex;
    gap: 24px;
    min-width: max-content;
    padding: 9px 0;
    animation: tickerScroll 42s linear infinite;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .88rem;
    white-space: nowrap;
}
.ticker-item strong { color: var(--gold); }
.market-up { color: #25c66a; }
.market-down { color: #ff6767; }
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.forex-panel {
    margin: 28px 0;
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(180deg, #0b1c32 0%, #081526 100%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.forex-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin-bottom: 16px;
}
.forex-panel h2 { color: #fff; margin: 0; }
.forex-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.forex-controls .form-select {
    min-width: 150px;
    background-color: #fff;
}
.market-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 700;
}
.market-live-dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #25c66a;
    box-shadow: 0 0 0 5px rgba(37,198,106,.12);
}
.forex-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
}
.forex-chart-card {
    background: #06101e;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 10px;
    min-height: 280px;
}
.forex-chart-card canvas {
    width: 100%;
    height: 360px;
    display: block;
}
.forex-side {
    display: grid;
    gap: 10px;
}
.forex-side > div {
    background: #fff;
    color: #111827;
    border-radius: 8px;
    padding: 14px;
}
.forex-side span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
}
.forex-side strong {
    display: block;
    font-size: 1.15rem;
}
.ai-signal small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}
.payment-modal-dialog {
    width: min(680px, calc(100% - 18px));
    max-width: calc(100% - 18px);
    margin-left: auto;
    margin-right: auto;
}
.payment-modal-dialog .modal-content {
    max-height: calc(100dvh - 24px);
    overflow: hidden;
}
.payment-modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100dvh - 150px);
}
.payment-modal-dialog .modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--line);
}
.proof-upload-box {
    border: 1px dashed #b9c2d0;
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}
.proof-preview {
    display: none;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid var(--line);
    background: #fff;
}
.app-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 22px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7,20,38,.92);
    padding: 10px 0;
}
.user-shell {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.user-sidebar {
    background: var(--navy-2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 14px;
    min-height: calc(100vh - 92px);
    position: sticky;
    top: 48px;
}
.user-side-nav {
    display: grid;
    gap: 8px;
}
.user-side-nav a,
.sidebar-logout {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1);
    font-weight: 700;
}
.user-side-nav a:hover,
.user-side-nav a.active,
.sidebar-logout:hover {
    border-color: var(--gold);
    background: rgba(244,197,66,.1);
    color: var(--gold);
}
.sidebar-logout {
    margin-top: 18px;
    border-color: rgba(255,103,103,.35);
}
.user-main {
    min-width: 0;
}
.dashboard-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.dashboard-head h1 {
    margin: 0;
}
.dashboard-stat-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}
.stat-card.primary {
    border-top: 4px solid var(--gold);
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
.status-panel h2,
.section-title {
    font-size: 1.25rem;
    margin: 0 0 14px;
}
.section-title {
    color: #fff;
    margin-top: 24px;
}
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.status-row:last-child {
    border-bottom: 0;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.plan-card {
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--gold);
}
.plan-card .amount {
    margin: 12px 0 4px;
}
.plan-duration {
    display: inline-block;
    background: #ecfdf3;
    color: var(--green);
    border: 1px solid #b7ebc8;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .82rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.local-amount {
    color: var(--green);
    font-weight: 800;
}
.investment-plan-grid,
.featured-plans {
    margin-top: 16px;
}
.app-nav a, .admin-sidebar a {
    color: #fff;
    text-decoration: none;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    text-align: center;
}
.app-nav a:hover, .admin-sidebar a:hover { border-color: var(--gold); color: var(--gold); }
.table { vertical-align: middle; }
.badge { text-transform: capitalize; }
.countdown {
    font-size: 2rem;
    font-weight: 800;
    color: var(--red);
}
.balance-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.profile-list {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
}
.profile-list dt { color: var(--muted); }
.admin-wrap { width: min(1420px, calc(100% - 20px)); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; gap: 18px; }
.admin-sidebar {
    background: var(--navy-2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 14px;
    height: max-content;
    position: sticky;
    top: 12px;
}
.admin-sidebar a { display: block; text-align: left; margin-bottom: 8px; }
.brand-mini { color: var(--gold); font-weight: 800; margin: 6px 0 16px; }
.admin-content h1, .admin-content h2 { color: #fff; }
.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    align-items: start;
}
.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 16px;
}
.inline-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.balance-input { width: 100px; }

@media (max-width: 760px) {
    .page-wrap { width: min(100% - 16px, 1180px); padding-top: 10px; }
    .hero { min-height: 62vh; }
    .app-nav { grid-template-columns: repeat(3, 1fr); }
    .user-shell { grid-template-columns: 1fr; }
    .user-sidebar {
        position: static;
        min-height: auto;
    }
    .user-side-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-head {
        display: block;
    }
    .dashboard-head .btn {
        margin-top: 10px;
        width: 100%;
    }
    .dashboard-stat-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .quick-actions {
        grid-template-columns: 1fr;
    }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
    .profile-list { grid-template-columns: 1fr; }
    .section-head { display: block; }
    .table { min-width: 760px; }
    .telegram-float { left: 12px; right: 12px; text-align: center; }
    .forex-panel { padding: 14px; }
    .forex-panel-head { display: block; }
    .forex-controls { margin-top: 12px; }
    .forex-layout { grid-template-columns: 1fr; }
    .forex-chart-card canvas { height: 260px; }
    .payment-modal-dialog {
        width: calc(100% - 10px);
        max-width: calc(100% - 10px);
        margin: 5px auto;
    }
    .payment-modal-body {
        max-height: calc(100dvh - 142px);
    }
    .payment-modal-dialog .modal-footer {
        display: grid;
        gap: 8px;
    }
    .payment-modal-dialog .modal-footer .btn {
        width: 100%;
    }
}

/* Admin/user switching and safer admin user management layout */
.sidebar-admin {
    display: block;
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--gold, #f5b942);
    color: #111;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}
.admin-view-banner {
    border-radius: 14px;
}
.admin-user-switch-card {
    border: 1px solid rgba(245, 185, 66, .45);
    border-radius: 16px;
    padding: 16px;
    background: rgba(245, 185, 66, .08);
}
.compact-actions {
    gap: 6px;
    flex-wrap: wrap;
}
.compact-actions .form-select,
.compact-actions .form-control {
    min-width: 120px;
}
.admin-content .grid-form label {
    display: block;
    font-weight: 600;
}


/* Investment payment modal readability and receipt upload fix */
.payment-proof-modal .modal-dialog,
.payment-modal-dialog {
    width: min(620px, calc(100% - 20px)) !important;
    max-width: calc(100% - 20px) !important;
    margin: 10px auto !important;
}
.payment-proof-modal .modal-content,
.payment-modal-content,
.payment-modal-dialog .modal-content {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 80px rgba(0,0,0,.55) !important;
    opacity: 1 !important;
    max-height: calc(100dvh - 20px) !important;
    overflow: hidden !important;
}
.payment-proof-modal .modal-header,
.payment-modal-dialog .modal-header {
    background: #ffffff !important;
    color: #111827 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 16px 18px !important;
}
.payment-proof-modal .modal-title,
.payment-modal-dialog .modal-title {
    color: #111827 !important;
    font-weight: 800 !important;
}
.payment-proof-modal .btn-close,
.payment-modal-dialog .btn-close {
    opacity: 1 !important;
    filter: none !important;
}
.payment-modal-body {
    background: #ffffff !important;
    color: #111827 !important;
    max-height: calc(100dvh - 160px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 18px !important;
}
.payment-modal-body *:not(.btn):not(.badge) {
    color: inherit;
}
.payment-details-list {
    margin-bottom: 16px !important;
    padding: 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
}
.payment-details-list dt {
    color: #374151 !important;
    font-weight: 700 !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
.payment-details-list dd {
    color: #111827 !important;
    font-weight: 600 !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    word-break: break-word !important;
}
.modal-section-title {
    color: #111827 !important;
    font-size: .82rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    margin: 14px 0 8px !important;
}
.payment-modal-body .form-label {
    color: #111827 !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
}
.payment-modal-body .form-control,
.payment-modal-body input,
.payment-modal-body select,
.payment-modal-body textarea {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
}
.payment-modal-body .form-control:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 .2rem rgba(244,197,66,.24) !important;
}
.payment-modal-body .notice,
.payment-modal-body .risk-notice,
.payment-instructions-box {
    background: #fff7d6 !important;
    color: #3b2c00 !important;
    border-left: 4px solid var(--gold) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
}
.payment-instructions-box p {
    margin: 0 0 8px !important;
    color: #3b2c00 !important;
}
.payment-instructions-box p:last-child {
    margin-bottom: 0 !important;
}
.proof-upload-box {
    display: block !important;
    border: 2px dashed #94a3b8 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    background: #f8fafc !important;
    margin-top: 14px !important;
}
.proof-upload-label {
    display: block !important;
    color: #111827 !important;
    font-size: 1rem !important;
}
.proof-help,
.proof-file-name {
    color: #475569 !important;
    font-size: .9rem !important;
}
.proof-preview {
    display: none;
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}
.payment-modal-body .countdown {
    color: #c73535 !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
}
.payment-modal-dialog .modal-footer {
    position: sticky !important;
    bottom: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 14px 18px !important;
    z-index: 2 !important;
}
.payment-modal-dialog .modal-footer .btn,
.payment-modal-content .modal-footer .btn {
    width: 100% !important;
    min-height: 46px !important;
    font-weight: 800 !important;
}
.payment-modal-dialog .modal-footer .btn:disabled {
    background: #e5e7eb !important;
    border-color: #e5e7eb !important;
    color: #6b7280 !important;
}
.modal-backdrop.show {
    opacity: .72 !important;
}
@media (max-width: 576px) {
    .payment-proof-modal .modal-dialog,
    .payment-modal-dialog {
        width: calc(100% - 12px) !important;
        max-width: calc(100% - 12px) !important;
        margin: 6px auto !important;
    }
    .payment-modal-body {
        max-height: calc(100dvh - 150px) !important;
        padding: 14px !important;
    }
    .payment-modal-body .countdown {
        font-size: 1.75rem !important;
    }
}

/* Payment modal reference-style update: investment + withdrawal requirement */
.payment-proof-modal .modal-dialog,
.payment-modal-dialog {
    width: min(460px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 8px auto !important;
}
.payment-proof-modal .modal-content,
.payment-modal-content,
.payment-modal-dialog .modal-content {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .45) !important;
    max-height: calc(100dvh - 16px) !important;
    overflow: hidden !important;
}
.payment-modal-header {
    padding: 18px 20px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #ffffff !important;
}
.payment-modal-header .modal-title {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}
.payment-modal-subtitle {
    display: block;
    margin-top: 4px;
    color: #6b7280 !important;
    font-size: .82rem;
    line-height: 1.35;
}
.payment-modal-body {
    padding: 18px 20px !important;
    max-height: calc(100dvh - 150px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #ffffff !important;
    color: #1f2937 !important;
}
.payment-modal-body p,
.payment-modal-body span,
.payment-modal-body small,
.payment-modal-body div,
.payment-modal-body label,
.payment-modal-body strong {
    color: inherit;
}
.payment-summary-card,
.payment-info-box,
.payment-instructions-box {
    background: #fffbe8 !important;
    border: 1px solid #f4e7a7 !important;
    border-radius: 4px !important;
    padding: 12px 14px !important;
    margin-bottom: 14px !important;
    color: #3f2f06 !important;
}
.payment-summary-row {
    display: grid;
    grid-template-columns: minmax(112px, 42%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 4px 0;
    font-size: .9rem;
}
.payment-summary-row span {
    color: #4b5563 !important;
}
.payment-summary-row strong {
    color: #111827 !important;
    font-weight: 800 !important;
    word-break: break-word;
}
.modal-section-title {
    margin: 16px 0 8px !important;
    color: #374151 !important;
    font-size: .88rem !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.payment-modal-body .form-label {
    color: #374151 !important;
    font-weight: 700 !important;
    font-size: .88rem !important;
}
.payment-modal-body .form-control,
.payment-modal-body input,
.payment-modal-body textarea,
.payment-modal-body select {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    min-height: 42px;
}
.payment-countdown,
.payment-modal-body .payment-countdown {
    color: #c73535 !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    margin: 12px 0 8px !important;
}
.proof-upload-box {
    background: #ffffff !important;
    border: 1.5px dashed #c4ccd8 !important;
    border-radius: 4px !important;
    padding: 16px !important;
    margin: 14px 0 !important;
    text-align: center;
}
.required-star {
    color: #ef4444 !important;
}
.proof-upload-box .proof-input {
    min-height: auto !important;
    margin-bottom: 10px;
}
.proof-drop-hint {
    color: #6b7280 !important;
    font-size: .84rem;
    line-height: 1.45;
}
.proof-drop-hint strong {
    color: #0ea35a !important;
}
.proof-drop-hint span,
.proof-file-name,
.proof-pdf-preview {
    color: #6b7280 !important;
    font-size: .8rem;
    word-break: break-word;
}
.proof-preview {
    display: none;
    width: 100%;
    max-height: 210px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-top: 10px;
    background: #fff;
}
.proof-remove {
    display: none;
}
.payment-modal-body .risk-notice.small {
    background: #fffbe8 !important;
    border: 1px solid #f4e7a7 !important;
    border-radius: 4px !important;
    padding: 10px 12px !important;
    color: #3f2f06 !important;
    font-size: .82rem !important;
}
.payment-modal-dialog .modal-footer,
.payment-modal-content .modal-footer {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 12px 20px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e5e7eb !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 5 !important;
}
.payment-modal-dialog .modal-footer .btn,
.payment-modal-content .modal-footer .btn {
    width: auto !important;
    min-width: 150px !important;
    min-height: 42px !important;
    border-radius: 6px !important;
    font-weight: 800 !important;
}
.payment-modal-dialog .modal-footer .proof-submit,
.payment-modal-content .modal-footer .proof-submit {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
}
.payment-modal-dialog .modal-footer .proof-submit:disabled,
.payment-modal-content .modal-footer .proof-submit:disabled {
    background: #d1d5db !important;
    border-color: #d1d5db !important;
    color: #6b7280 !important;
    opacity: 1 !important;
}
.requirement-description {
    color: #6b7280 !important;
    font-size: .9rem;
}
@media (max-width: 576px) {
    .payment-proof-modal .modal-dialog,
    .payment-modal-dialog {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        margin: 6px auto !important;
    }
    .payment-modal-body {
        padding: 14px !important;
        max-height: calc(100dvh - 140px) !important;
    }
    .payment-summary-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .payment-modal-dialog .modal-footer,
    .payment-modal-content .modal-footer {
        padding: 10px 14px !important;
        flex-direction: column-reverse !important;
    }
    .payment-modal-dialog .modal-footer .btn,
    .payment-modal-content .modal-footer .btn {
        width: 100% !important;
        min-width: 0 !important;
    }
}


/* FINAL MODAL CLARITY FIX - keeps backdrop dim, modal content fully readable */
.modal.payment-proof-modal,
.modal.payment-proof-modal.show,
.payment-proof-modal,
.payment-proof-modal.show {
    z-index: 200000 !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
}

.modal-backdrop,
.modal-backdrop.show {
    z-index: 199990 !important;
    background-color: #000000 !important;
    opacity: 0.72 !important;
}

.payment-proof-modal .modal-dialog,
.payment-modal-dialog {
    z-index: 200010 !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    pointer-events: auto !important;
}

.payment-proof-modal .modal-content,
.payment-modal-content,
.payment-modal-dialog .modal-content {
    background: #ffffff !important;
    color: #111827 !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55) !important;
    position: relative !important;
    z-index: 200020 !important;
}

.payment-proof-modal .modal-content *,
.payment-modal-content *,
.payment-modal-dialog .modal-content * {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.payment-modal-header,
.payment-proof-modal .modal-header {
    background: #ffffff !important;
    color: #111827 !important;
    border-bottom: 1px solid #e5e7eb !important;
    opacity: 1 !important;
}

.payment-modal-header .modal-title,
.payment-proof-modal .modal-title {
    color: #111827 !important;
    opacity: 1 !important;
}

.payment-modal-subtitle {
    color: #4b5563 !important;
    opacity: 1 !important;
}

.payment-modal-body,
.payment-proof-modal .modal-body {
    background: #ffffff !important;
    color: #111827 !important;
    opacity: 1 !important;
}

.payment-modal-body p,
.payment-modal-body div,
.payment-modal-body span,
.payment-modal-body small,
.payment-modal-body label,
.payment-modal-body strong,
.payment-modal-body h1,
.payment-modal-body h2,
.payment-modal-body h3,
.payment-modal-body h4,
.payment-modal-body h5,
.payment-modal-body h6 {
    opacity: 1 !important;
}

.payment-summary-card,
.payment-info-box,
.payment-instructions-box,
.payment-modal-body .risk-notice.small {
    background: #fff7d6 !important;
    color: #3f2f00 !important;
    border: 1px solid #f1df91 !important;
    opacity: 1 !important;
}

.payment-summary-row span,
.payment-instructions-box span,
.requirement-description,
.proof-drop-hint,
.proof-file-name,
.proof-pdf-preview {
    color: #4b5563 !important;
    opacity: 1 !important;
}

.payment-summary-row strong,
.payment-instructions-box strong,
.payment-modal-body .form-label,
.proof-upload-label,
.modal-section-title {
    color: #111827 !important;
    opacity: 1 !important;
}

.payment-modal-body input,
.payment-modal-body textarea,
.payment-modal-body select,
.payment-modal-body .form-control {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #cbd5e1 !important;
    opacity: 1 !important;
}

.payment-modal-body input::placeholder,
.payment-modal-body textarea::placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
}

.proof-upload-box {
    background: #ffffff !important;
    color: #111827 !important;
    border: 2px dashed #cbd5e1 !important;
    opacity: 1 !important;
}

.proof-drop-hint strong {
    color: #16a34a !important;
}

.payment-countdown,
.payment-modal-body .payment-countdown,
.payment-modal-body .countdown {
    color: #c73535 !important;
    opacity: 1 !important;
}

.payment-modal-dialog .modal-footer,
.payment-modal-content .modal-footer,
.payment-proof-modal .modal-footer {
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb !important;
    opacity: 1 !important;
    z-index: 200030 !important;
}

.payment-modal-dialog .modal-footer .btn,
.payment-modal-content .modal-footer .btn,
.payment-proof-modal .modal-footer .btn {
    opacity: 1 !important;
}

.payment-modal-dialog .modal-footer .proof-submit,
.payment-modal-content .modal-footer .proof-submit {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
}

.payment-modal-dialog .modal-footer .proof-submit:disabled,
.payment-modal-content .modal-footer .proof-submit:disabled {
    background: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.payment-proof-modal .btn-close {
    opacity: 1 !important;
    filter: none !important;
}

/* Keep other floating UI behind opened modals */
.telegram-float,
.mobile-bottom-nav,
.user-sidebar,
.admin-sidebar {
    z-index: 1000 !important;
}

@media (max-width: 576px) {
    .payment-proof-modal .modal-dialog,
    .payment-modal-dialog {
        width: 94vw !important;
        max-width: 94vw !important;
        margin: 10px auto !important;
    }

    .payment-proof-modal .modal-content,
    .payment-modal-content {
        max-height: 92dvh !important;
        overflow: hidden !important;
    }

    .payment-modal-body,
    .payment-proof-modal .modal-body {
        max-height: calc(92dvh - 145px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* HARD MODAL CONTRAST FIX 2026-06-17
   Fixes white/faded text inside payment/requirement modals by forcing readable
   colors on the actual modal descendants, not only on the overlay. */
html body .modal.payment-proof-modal.show,
html body .modal.payment-proof-modal {
    opacity: 1 !important;
    background: transparent !important;
    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal !important;
}

html body .payment-proof-modal .modal-dialog,
html body .payment-proof-modal .payment-modal-dialog,
html body .payment-proof-modal .modal-content,
html body .payment-proof-modal .payment-modal-content {
    opacity: 1 !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mix-blend-mode: normal !important;
}

html body .payment-proof-modal .modal-header,
html body .payment-proof-modal .modal-body,
html body .payment-proof-modal .modal-footer,
html body .payment-proof-modal .payment-modal-header,
html body .payment-proof-modal .payment-modal-body {
    background-color: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal !important;
}

html body .payment-proof-modal .modal-body *,
html body .payment-proof-modal .payment-modal-body *,
html body .payment-proof-modal .payment-summary-card *,
html body .payment-proof-modal .payment-info-box *,
html body .payment-proof-modal .payment-instructions-box *,
html body .payment-proof-modal .proof-upload-box * {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal !important;
}

html body .payment-proof-modal .modal-title,
html body .payment-proof-modal .payment-modal-header .modal-title,
html body .payment-proof-modal .modal-section-title,
html body .payment-proof-modal label,
html body .payment-proof-modal .form-label,
html body .payment-proof-modal .proof-upload-label,
html body .payment-proof-modal strong {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 700 !important;
}

html body .payment-proof-modal .payment-modal-subtitle,
html body .payment-proof-modal .payment-summary-row span,
html body .payment-proof-modal small,
html body .payment-proof-modal .proof-drop-hint,
html body .payment-proof-modal .proof-drop-hint span,
html body .payment-proof-modal .proof-file-name,
html body .payment-proof-modal .proof-pdf-preview {
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
}

html body .payment-proof-modal .payment-summary-card,
html body .payment-proof-modal .payment-info-box,
html body .payment-proof-modal .payment-instructions-box,
html body .payment-proof-modal .risk-notice,
html body .payment-proof-modal .notice {
    background-color: #fff7d6 !important;
    border: 1px solid #f1df91 !important;
    color: #3f2f00 !important;
    -webkit-text-fill-color: #3f2f00 !important;
    opacity: 1 !important;
}

html body .payment-proof-modal .payment-summary-card *,
html body .payment-proof-modal .payment-info-box *,
html body .payment-proof-modal .payment-instructions-box *,
html body .payment-proof-modal .risk-notice *,
html body .payment-proof-modal .notice * {
    color: #3f2f00 !important;
    -webkit-text-fill-color: #3f2f00 !important;
}

html body .payment-proof-modal input,
html body .payment-proof-modal textarea,
html body .payment-proof-modal select,
html body .payment-proof-modal .form-control {
    background-color: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    border: 1px solid #cbd5e1 !important;
    opacity: 1 !important;
}

html body .payment-proof-modal input::placeholder,
html body .payment-proof-modal textarea::placeholder {
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    opacity: 1 !important;
}

html body .payment-proof-modal .proof-upload-box {
    background-color: #ffffff !important;
    border: 2px dashed #cbd5e1 !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
}

html body .payment-proof-modal .proof-drop-hint strong,
html body .payment-proof-modal .upload-title {
    color: #16a34a !important;
    -webkit-text-fill-color: #16a34a !important;
}

html body .payment-proof-modal .payment-countdown,
html body .payment-proof-modal .countdown {
    color: #c73535 !important;
    -webkit-text-fill-color: #c73535 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
}

html body .payment-proof-modal .btn,
html body .payment-proof-modal button {
    -webkit-text-fill-color: currentColor !important;
    opacity: 1 !important;
}

html body .payment-proof-modal .proof-submit,
html body .payment-proof-modal .btn-submit-verification {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

html body .payment-proof-modal .proof-submit:disabled,
html body .payment-proof-modal .btn-submit-verification:disabled {
    background-color: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

html body .payment-proof-modal .btn-outline-secondary {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
}

html body .payment-proof-modal .btn-close {
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Ensure modal always sits above page, telegram button, sidebar, and mobile nav */
html body .modal-backdrop.show {
    opacity: .72 !important;
    z-index: 199990 !important;
}
html body .modal.payment-proof-modal.show {
    z-index: 200000 !important;
}
html body .telegram-float,
html body .mobile-bottom-nav,
html body .user-sidebar,
html body .admin-sidebar {
    z-index: 1000 !important;
}

/* Admin/user switch buttons: placed below logout in both sidebars */
.sidebar-admin,
.admin-switch-user-link {
    display: block;
    margin-top: 10px;
    padding: 11px 12px;
    border-radius: 8px;
    background: #facc15 !important;
    color: #111827 !important;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.sidebar-admin:hover,
.admin-switch-user-link:hover {
    background: #fde047 !important;
    color: #111827 !important;
}

.admin-logout-link {
    margin-top: 12px;
}

/* Final admin/user navigation polish */
.admin-sidebar,
.user-sidebar {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
}
.admin-sidebar a,
.user-side-nav a {
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.admin-sidebar a.active,
.user-side-nav a.active {
    background: linear-gradient(135deg, rgba(244,197,66,.24), rgba(244,197,66,.08)) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    box-shadow: inset 3px 0 0 var(--gold);
}
.admin-sidebar a:hover,
.user-side-nav a:hover {
    transform: translateX(2px);
}
.admin-sidebar-actions,
.user-sidebar-actions {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: grid;
    gap: 10px;
}
.admin-logout-link,
.sidebar-logout {
    margin-top: 0 !important;
    border-color: rgba(248,113,113,.45) !important;
    background: rgba(127,29,29,.12) !important;
    color: #fecaca !important;
    text-align: center !important;
}
.sidebar-admin,
.admin-switch-user-link {
    margin-top: 0 !important;
    border: 0 !important;
    background: linear-gradient(135deg, #facc15, #f59e0b) !important;
    color: #111827 !important;
    box-shadow: 0 10px 24px rgba(250,204,21,.18);
}
.sidebar-admin:hover,
.admin-switch-user-link:hover {
    transform: translateY(-1px) !important;
    color: #111827 !important;
}
.trade-progress {
    width: 120px;
    height: 9px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.trade-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: inherit;
}
.trade-progress-alert {
    position: sticky;
    top: 10px;
    z-index: 900;
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #86efac;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.payment-summary-card,
.payment-instructions-box,
.payment-info-box {
    color: #111827 !important;
}
.payment-summary-row strong,
.payment-summary-row span,
.payment-instructions-box strong,
.payment-instructions-box p {
    color: #111827 !important;
}
@media (max-width: 720px) {
    .admin-sidebar,
    .user-sidebar {
        max-height: none;
        overflow: visible;
    }
    .trade-progress { width: 100%; }
    .trade-progress-alert { position: static; }
}

/* Admin panel display updated to match clean mobile drawer reference */
.admin-body {
    background: #f4f6fb !important;
    color: #0f172a;
}
.admin-page {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}
.admin-shell {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 0;
    min-height: 100vh;
}
.admin-sidebar {
    position: sticky !important;
    top: 0;
    height: 100vh;
    max-height: 100vh !important;
    overflow-y: auto !important;
    background: #020714 !important;
    color: #fff;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 26px 0 18px !important;
    box-shadow: 14px 0 34px rgba(2, 7, 20, .18);
    z-index: 1500 !important;
}
.admin-sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0 22px 28px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    margin-bottom: 22px;
}
.admin-sidebar .brand-mini {
    color: #fff !important;
    font-size: 1.72rem;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: .02em;
    margin: 0 !important;
    text-transform: uppercase;
}
.admin-sidebar .brand-mini span {
    display: inline-block;
    text-transform: none;
    font-size: 1.52rem;
    margin-top: 6px;
}
.admin-menu-close {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}
.admin-sidebar a {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin: 0 0 10px !important;
    padding: 15px 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: rgba(255,255,255,.92) !important;
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.admin-sidebar a.active {
    background: #ce0f45 !important;
    color: #fff !important;
    box-shadow: none !important;
    border-radius: 0 10px 10px 0 !important;
}
.admin-sidebar a:hover {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    transform: none !important;
}
.admin-sidebar a.active:hover {
    background: #ce0f45 !important;
}
.nav-ico {
    width: 28px;
    min-width: 28px;
    text-align: center;
    font-size: 1.18rem;
    color: inherit;
}
.admin-nav-section {
    color: rgba(255,255,255,.68);
    font-size: .95rem;
    font-weight: 700;
    padding: 18px 22px 8px;
    letter-spacing: .02em;
}
.admin-sidebar-actions {
    border-top: 1px solid rgba(255,255,255,.10) !important;
    margin: 22px 18px 0 !important;
    padding-top: 16px !important;
    display: grid;
    gap: 10px;
}
.admin-sidebar-actions a {
    justify-content: center;
    border-radius: 10px !important;
    margin: 0 !important;
    padding: 13px 14px !important;
}
.admin-logout-link {
    background: rgba(220, 38, 38, .16) !important;
    color: #fecaca !important;
    border: 1px solid rgba(248, 113, 113, .35) !important;
}
.admin-switch-user-link {
    background: linear-gradient(135deg, #facc15, #f59e0b) !important;
    color: #111827 !important;
}
.admin-content {
    padding: 26px;
    min-width: 0;
    background: #f4f6fb;
    color: #0f172a;
}
.admin-content h1,
.admin-content h2 {
    color: #0f172a !important;
    font-weight: 900;
}
.admin-page-note,
.admin-explain-box {
    background: #eaf2ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 16px;
}
.admin-explain-box p { margin: 6px 0 0; }
.admin-mobile-topbar,
.admin-sidebar-backdrop { display: none; }

@media (max-width: 820px) {
    .admin-shell {
        display: block;
        min-height: 100vh;
    }
    .admin-mobile-topbar {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 1400;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 58px;
        padding: 10px 14px;
        background: #020714;
        color: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,.18);
    }
    .admin-menu-toggle,
    .admin-top-switch {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 10px;
        background: rgba(255,255,255,.10);
        color: #fff;
        text-decoration: none;
        font-size: 23px;
        font-weight: 900;
    }
    .admin-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: min(86vw, 360px);
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform .22s ease;
        padding-top: 34px !important;
        z-index: 3000 !important;
    }
    body.admin-menu-open .admin-sidebar {
        transform: translateX(0);
    }
    .admin-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.56);
        z-index: 2500;
    }
    body.admin-menu-open .admin-sidebar-backdrop {
        display: block;
    }
    .admin-menu-close { display: inline-flex; }
    .admin-content {
        padding: 18px 12px 28px;
    }
    .admin-sidebar a {
        font-size: 1.18rem;
        padding: 16px 26px !important;
        gap: 17px;
    }
    .admin-sidebar .brand-mini {
        font-size: 1.55rem;
    }
}

/* Admin mobile responsiveness + compact withdrawals/requirements fix 2026-06-17 */
.grid-span-2 { grid-column: 1 / -1; }
.form-actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-compact-card h3,
.admin-compact-table-wrap h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 12px; }
.admin-compact-form label { font-size: .84rem; font-weight: 800; color: #334155; }
.admin-compact-form .form-control,
.admin-compact-form .form-select { margin-top: 5px; font-size: .88rem; }
.admin-compact-table { font-size: .82rem; line-height: 1.28; }
.admin-compact-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; color: #475569; }
.admin-compact-table td { vertical-align: top; }
.admin-compact-table small { font-size: .72rem; color: #64748b; }
.compact-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.compact-actions .btn { font-size: .72rem; padding: .25rem .45rem; }
.admin-withdrawals-table { min-width: 980px; }
.admin-withdrawals-table .badge { font-size: .68rem; }
.withdrawal-record-row > td { border-top: 2px solid #e2e8f0; }
.requirement-cell { min-width: 260px; }
.withdrawal-requirement-item {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
}
.compact-review-form { display: grid; gap: 6px; margin-top: 6px; min-width: 150px; }
.compact-review-form .form-control-sm { font-size: .74rem; padding: .3rem .45rem; }

@media (max-width: 820px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    .admin-mobile-topbar { left: 0; right: 0; }
    .admin-menu-toggle,
    .admin-menu-close,
    .admin-top-switch {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
        pointer-events: auto !important;
    }
    .admin-sidebar {
        width: min(82vw, 330px) !important;
        max-width: 330px !important;
        will-change: transform;
    }
    body.admin-menu-open { overflow: hidden; }
    body.admin-menu-open .admin-sidebar { transform: translateX(0) !important; }
    body.admin-menu-open .admin-sidebar-backdrop { display: block !important; }
    .admin-sidebar a {
        font-size: 1rem !important;
        padding: 13px 18px !important;
        gap: 13px !important;
    }
    .admin-nav-section { font-size: .84rem; padding: 13px 18px 6px !important; }
    .admin-sidebar .brand-mini { font-size: 1.34rem !important; }
    .admin-sidebar .brand-mini span { font-size: 1.18rem !important; }
    .admin-content { width: 100%; overflow-x: hidden; }
    .white-card { border-radius: 12px; }
    .admin-content h1 { font-size: 1.48rem; }
    .admin-content h2 { font-size: 1.15rem; }
    .grid-form { grid-template-columns: 1fr !important; }
    .admin-compact-table-wrap { padding: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-compact-table { font-size: .76rem; }
    .admin-withdrawals-table { min-width: 860px; }
    .form-actions-row .btn { width: 100%; }
}

@media (max-width: 420px) {
    .admin-sidebar { width: 84vw !important; }
    .admin-sidebar a { font-size: .94rem !important; padding: 12px 16px !important; }
    .nav-ico { width: 22px; min-width: 22px; font-size: 1rem; }
    .admin-mobile-topbar strong { font-size: .95rem; }
    .admin-menu-toggle,
    .admin-top-switch { width: 38px; height: 38px; font-size: 20px; }
    .admin-compact-table { font-size: .72rem; }
}

/* 2026 user-friendly dashboard / plan cards update */
.plans-first-head { margin-bottom: 14px; }
.client-dashboard-head { margin-top: 28px; }
.dashboard-plan-pairs,
.investment-plan-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
    gap: 16px !important;
}
.dashboard-three-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
    gap: 16px !important;
}
.local-plan-amount {
    margin: 12px 0 8px !important;
    line-height: 1.18;
}
.plan-return-label {
    color: #6b7280;
    font-size: .9rem;
    margin-top: 8px;
}
.plan-return-amount {
    color: var(--green);
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 14px;
}
.admin-card-title {
    color: #111827 !important;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.admin-plans-table th,
.admin-plans-table td {
    font-size: .92rem;
    vertical-align: middle;
}
@media (max-width: 900px) {
    .dashboard-three-cards { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
    .dashboard-plan-pairs,
    .investment-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .dashboard-plan-pairs .plan-card,
    .investment-plan-grid .plan-card {
        padding: 12px !important;
        min-width: 0 !important;
    }
    .dashboard-plan-pairs .plan-card h3,
    .investment-plan-grid .plan-card h3 {
        font-size: .98rem !important;
        line-height: 1.2 !important;
        min-height: 2.4em;
    }
    .dashboard-plan-pairs .local-plan-amount,
    .investment-plan-grid .local-plan-amount {
        font-size: 1.05rem !important;
        line-height: 1.15 !important;
        word-break: break-word;
    }
    .dashboard-plan-pairs .plan-return-amount,
    .investment-plan-grid .plan-return-amount {
        font-size: 1.02rem !important;
        line-height: 1.2 !important;
        word-break: break-word;
    }
    .dashboard-plan-pairs .btn,
    .investment-plan-grid .btn {
        padding: 9px 8px !important;
        font-size: .82rem !important;
    }
    .plan-duration {
        font-size: .72rem !important;
        padding: 3px 8px !important;
    }
}

/* Records notes clarity update */
.record-note {
    font-weight: 700;
    font-size: .92rem;
}
.record-note-approved {
    color: #15803d !important;
}
.record-note-rejected {
    color: #dc2626 !important;
}

/* Copyable payment account details */
.copyable-payment-row strong {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.copyable-account {
    user-select: all;
    word-break: break-word;
}
.btn-copy-account {
    border: 1px solid #d4af37 !important;
    background: #fff8df !important;
    color: #5b4300 !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}
.btn-copy-account.copied {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    color: #166534 !important;
}
.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.admin-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-table-actions form {
    margin: 0;
}
@media (max-width: 600px) {
    .copyable-payment-row strong {
        justify-content: flex-start;
    }
    .btn-copy-account {
        width: auto !important;
    }
    .admin-form-actions .btn,
    .admin-table-actions .btn {
        width: auto;
    }
}

/* Requirement modal mandatory close timer + fake receipt warning */
.requirement-modal-close.locked-close,
.requirement-modal-close:disabled {
    opacity: .35 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
}
.fake-warning-modal {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.fake-warning-modal .modal-header {
    background: #fff5f5;
    color: #991b1b;
    border-bottom: 1px solid #fecaca;
}
.fake-warning-text {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 800;
    text-align: center;
    letter-spacing: .02em;
}

/* Compact dashboard cards + support page update */
.dashboard-three-cards .stat-card,
.dashboard-stat-grid .stat-card {
    padding: 14px 16px !important;
    min-height: auto !important;
}
.dashboard-three-cards .stat-card strong,
.dashboard-stat-grid .stat-card strong {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
}
.dashboard-three-cards .stat-card span,
.dashboard-stat-grid .stat-card span,
.dashboard-three-cards .stat-card small,
.dashboard-stat-grid .stat-card small {
    font-size: .82rem !important;
}
.dashboard-actions-only {
    grid-template-columns: minmax(260px, 520px) !important;
}
.compact-actions-panel {
    padding: 14px 16px !important;
}
.support-card {
    max-width: 850px;
    margin: 0 auto;
}
.support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.support-item {
    display: block;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none;
    color: #111827;
    background: #ffffff;
}
.support-item span {
    display: block;
    color: #6b7280;
    font-size: .84rem;
    margin-bottom: 6px;
}
.support-item strong {
    color: #111827;
    word-break: break-word;
}
.support-item:hover {
    border-color: #d4af37;
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
@media (max-width: 760px) {
    .dashboard-three-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .dashboard-three-cards .stat-card,
    .dashboard-stat-grid .stat-card {
        padding: 10px 8px !important;
        border-radius: 12px !important;
    }
    .dashboard-three-cards .stat-card strong,
    .dashboard-stat-grid .stat-card strong {
        font-size: .9rem !important;
        word-break: break-word;
    }
    .dashboard-three-cards .stat-card span,
    .dashboard-stat-grid .stat-card span,
    .dashboard-three-cards .stat-card small,
    .dashboard-stat-grid .stat-card small {
        font-size: .68rem !important;
        line-height: 1.15 !important;
    }
    .support-grid { grid-template-columns: 1fr; }
}


/* Receipt review progress and live Telegram indicator */
.reviewing-receipt-alert {
    border-left: 5px solid #16a34a;
    background: #f0fdf4;
    color: #14532d;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.16);
}
.reviewing-receipt-message {
    font-weight: 800;
    letter-spacing: .02em;
    padding-right: 28px;
}
.reviewing-progress {
    height: 8px;
    border-radius: 999px;
    background: #dcfce7;
    overflow: hidden;
    margin-top: 10px;
}
.reviewing-progress span {
    display: block;
    height: 100%;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a, #22c55e, #86efac);
    animation: reviewing-progress-slide 1.25s ease-in-out infinite;
}
@keyframes reviewing-progress-slide {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(230%); }
}
.telegram-float {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.telegram-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 rgba(34, 197, 94, .7);
    animation: telegram-live-pulse 1.15s infinite;
    flex: 0 0 auto;
}
@keyframes telegram-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .75); opacity: 1; }
    70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); opacity: .55; }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); opacity: 1; }
}

/* Persistent receipt/requirement review notice shown on every user page until admin action */
.system-review-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    pointer-events: none;
}
.system-review-card {
    width: min(92vw, 520px);
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
    border: 1px solid rgba(22, 163, 74, .28);
    padding: 22px 24px;
    text-align: center;
    pointer-events: none;
}
.system-review-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 999px;
    border: 4px solid #dcfce7;
    border-top-color: #16a34a;
    animation: system-review-spin .85s linear infinite;
}
.system-review-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #14532d;
    margin-bottom: 8px;
}
.system-review-message {
    font-size: .95rem;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: .02em;
    color: #0f172a;
    text-transform: uppercase;
}
.system-review-detail {
    margin-top: 8px;
    font-size: .86rem;
    color: #475569;
}
.system-review-small {
    margin-top: 10px;
    font-size: .78rem;
    color: #64748b;
}
.system-review-bar {
    height: 9px;
    border-radius: 999px;
    background: #dcfce7;
    overflow: hidden;
    margin-top: 16px;
}
.system-review-bar span {
    display: block;
    height: 100%;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a, #22c55e, #86efac);
    animation: reviewing-progress-slide 1.15s ease-in-out infinite;
}
@keyframes system-review-spin {
    to { transform: rotate(360deg); }
}
@media (max-width: 640px) {
    .system-review-overlay { align-items: center; padding: 12px; }
    .system-review-card { padding: 18px 16px; border-radius: 16px; }
    .system-review-message { font-size: .82rem; }
}


/* User currency and withdrawal mobile refinements */
.single-currency-balance {
    justify-content: flex-start;
}
.single-currency-balance strong {
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    line-height: 1.25;
}
@media (max-width: 640px) {
    .auth-card.wide, .white-card, .plan-card {
        max-width: 100%;
        box-sizing: border-box;
    }
    .balance-line {
        overflow-wrap: anywhere;
    }
    .form-select, .form-control, .btn {
        min-height: 44px;
        touch-action: manipulation;
    }
}

/* Active trades: keep progress bar, remove countdown display, and keep table compact. */
.active-trades-page .table th,
.active-trades-page .table td {
    vertical-align: middle;
    font-size: 14px;
}
.active-trades-page .trade-progress {
    min-width: 120px;
    height: 10px;
    background: #d1d5db;
    border-radius: 999px;
    overflow: hidden;
}
.active-trades-page .trade-progress span {
    display: block;
    height: 100%;
    background: #16a34a;
    border-radius: inherit;
    transition: width .4s ease;
}

/* Keep Telegram support live and visible on every user page. */
html body .telegram-float {
    position: fixed !important;
    right: 18px !important;
    bottom: 18px !important;
    z-index: 250000 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    background: #229ed9 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 11px 16px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 28px rgba(34, 158, 217, .36) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
html body .telegram-live-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    background: #22c55e !important;
    animation: telegram-live-pulse 1.15s infinite !important;
    flex: 0 0 auto !important;
}
@media (max-width: 768px) {
    html body .telegram-float {
        right: 14px !important;
        bottom: 82px !important;
        padding: 10px 13px !important;
        font-size: 13px !important;
    }
    .active-trades-page .table-responsive { overflow-x: auto; }
    .active-trades-page .table { min-width: 760px; }
}

/* Language switcher */
.language-switcher {
    position: fixed;
    top: 44px;
    right: 16px;
    z-index: 1120;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(3, 16, 31, .88);
    border: 1px solid rgba(244,197,66,.35);
    border-radius: 999px;
    padding: 7px 10px;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.language-switcher label { font-size: 12px; font-weight: 700; margin: 0; color: #f4c542; }
.language-switcher select {
    border: 0;
    border-radius: 999px;
    padding: 5px 8px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}
@media (max-width: 768px) {
    .language-switcher {
        top: 40px;
        right: 8px;
        padding: 5px 7px;
        gap: 5px;
    }
    .language-switcher label { display: none; }
    .language-switcher select { font-size: 12px; max-width: 112px; }
}


/* User language switcher visibility fix */
.user-sidebar-language {
    margin: 14px 0;
    padding: 12px;
    border: 1px solid rgba(244,197,66,.28);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
}
.user-sidebar-language label {
    display: block;
    margin-bottom: 6px;
    color: #f4c542;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.user-sidebar-language select {
    width: 100%;
    border: 1px solid rgba(244,197,66,.35);
    border-radius: 10px;
    padding: 9px 10px;
    background: #ffffff;
    color: #111827;
    font-weight: 700;
}
.language-switcher {
    top: 10px !important;
    right: 12px !important;
    z-index: 20000 !important;
}
@media (min-width: 769px) {
    .user-shell ~ .language-switcher,
    body:has(.user-shell) > .language-switcher {
        display: none;
    }
}
@media (max-width: 768px) {
    .language-switcher {
        top: 8px !important;
        right: 8px !important;
        z-index: 20000 !important;
    }
}


/* Admin phone polish + promotion tracking settings 2026-06-18 */
html body.admin-body { background: #f4f6fb !important; }
.admin-content .auth-card,
.admin-content .card,
.admin-content section.auth-card {
    border-radius: 16px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .08) !important;
}
.admin-sidebar { scrollbar-width: thin; }
.admin-sidebar::-webkit-scrollbar { width: 7px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 999px; }
.admin-sidebar a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.admin-sidebar a:active, .admin-menu-toggle:active, .admin-menu-close:active, .admin-top-switch:active { transform: scale(.98) !important; }
.admin-sidebar a.active { position: relative; }
.admin-sidebar a.active::before {
    content: '';
    position: absolute;
    left: 0; top: 12px; bottom: 12px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: #fff;
}
.admin-mobile-topbar strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
}
.admin-top-switch::after { content: ''; }
.admin-content table { font-size: .88rem; }
.admin-content .btn { min-height: 38px; }
.admin-explain-box { font-size: .92rem; }
@media (max-width: 820px) {
    body.admin-menu-open { overflow: hidden; }
    .admin-mobile-topbar { min-height: 56px; padding: 8px 12px; }
    .admin-menu-toggle, .admin-top-switch { width: 44px; height: 44px; border-radius: 13px; }
    .admin-sidebar {
        width: min(88vw, 338px) !important;
        padding-top: 22px !important;
        box-shadow: 18px 0 44px rgba(0,0,0,.42) !important;
    }
    .admin-sidebar-head { padding: 0 18px 18px !important; margin-bottom: 12px !important; }
    .admin-sidebar .brand-mini { font-size: 1.3rem !important; }
    .admin-sidebar .brand-mini span { font-size: 1.12rem !important; }
    .admin-sidebar a {
        min-height: 50px;
        padding: 13px 20px !important;
        font-size: 1rem !important;
        gap: 13px !important;
    }
    .admin-nav-section { padding: 12px 20px 5px !important; font-size: .8rem !important; text-transform: uppercase; }
    .nav-ico { width: 24px; min-width: 24px; font-size: 1.05rem; }
    .admin-sidebar-actions { margin: 14px 14px 0 !important; padding-top: 12px !important; }
    .admin-sidebar-actions a { min-height: 46px; font-size: .92rem !important; }
    .admin-content { padding: 14px 10px 28px !important; }
    .admin-content h1 { font-size: 1.35rem; margin-bottom: 12px; }
    .admin-content h2 { font-size: 1.12rem; }
    .admin-content .auth-card.wide { padding: 14px !important; }
    .admin-content .form-control, .admin-content .form-select { font-size: 16px; min-height: 44px; }
    .admin-content .btn { min-height: 42px; }
    .table-responsive, .admin-compact-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}


/* Compact Telegram live support button, visible but not blocking forms */
.telegram-float {
    position: fixed !important;
    right: 14px !important;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1090 !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #229ed9 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.28) !important;
    overflow: visible !important;
}
.telegram-float span:not(.telegram-live-dot):not(.telegram-icon) {
    display: none !important;
}
.telegram-float .telegram-icon {
    display: inline-flex !important;
    font-size: 21px !important;
    line-height: 1 !important;
}
.telegram-float::before {
    content: "✈";
    font-size: 21px;
    line-height: 1;
    font-weight: 700;
}
.telegram-float .telegram-icon + span,
.telegram-float .telegram-icon {
    display: none !important;
}
.telegram-live-dot {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    background: #22c55e !important;
    border: 2px solid #ffffff !important;
    animation: telegram-live-pulse 1.15s infinite !important;
}
@keyframes telegram-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,.75); opacity: 1; }
    70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); opacity: .55; }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); opacity: 1; }
}
@media (min-width: 900px) {
    .telegram-float { bottom: 18px !important; }
}
@media (max-width: 520px) {
    .telegram-float {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        right: 12px !important;
        bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .telegram-float::before { font-size: 19px; }
}

/* Always-visible AI chart fallback if browser canvas/script is blocked */
.ai-chart-fallback {
    position: relative;
    min-height: 280px;
    overflow: hidden;
}
.ai-chart-fallback canvas {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
}
.ai-candle-fallback {
    position: absolute;
    inset: 18px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    opacity: .92;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0/100% 25%,
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0/10% 100%;
}
.ai-candle {
    width: 12px;
    height: var(--h);
    min-height: 34px;
    border-radius: 6px;
    background: #25c66a;
    position: relative;
    animation: aiCandleMove 3.5s ease-in-out infinite;
    animation-delay: calc(var(--delay) * -0.16s);
}
.ai-candle::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -18px;
    width: 2px;
    height: calc(100% + 36px);
    background: currentColor;
    opacity: .45;
}
.ai-candle.down {
    background: #ff5b5b;
}
@keyframes aiCandleMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}
.forex-chart-card canvas:not([width]) + .ai-candle-fallback,
.forex-chart-card canvas[style*="display: none"] + .ai-candle-fallback {
    z-index: 3;
}

/* Admin requirement order controls */
.admin-compact-table .compact-actions {
    flex-wrap: wrap;
    gap: 6px;
}
.admin-compact-table .compact-actions form {
    margin: 0;
}


/* Restored Telegram support button: bottom-left, visible on every user page, closable until page refresh */
.telegram-floating-wrap {
    position: fixed !important;
    left: 16px !important;
    right: auto !important;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1088 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.telegram-floating-wrap.is-hidden {
    display: none !important;
}
.telegram-floating-wrap .telegram-float,
.telegram-float {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 10px 14px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #229ed9 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.28) !important;
    overflow: visible !important;
}
.telegram-floating-wrap .telegram-float::before,
.telegram-float::before {
    content: none !important;
}
.telegram-floating-wrap .telegram-label,
.telegram-floating-wrap .telegram-icon {
    display: inline-flex !important;
    color: #ffffff !important;
}
.telegram-floating-wrap .telegram-icon {
    font-size: 17px !important;
    line-height: 1 !important;
}
.telegram-floating-wrap .telegram-live-dot {
    position: static !important;
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    border-radius: 999px !important;
    background: #22c55e !important;
    border: 0 !important;
    animation: telegram-live-pulse 1.15s infinite !important;
}
.telegram-close {
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.55) !important;
    background: rgba(7,20,38,.92) !important;
    color: #ffffff !important;
    font-size: 17px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 6px 14px rgba(0,0,0,.22) !important;
}
.payment-proof-modal,
.modal {
    z-index: 1095;
}
@media (max-width: 520px) {
    .telegram-floating-wrap {
        left: 10px !important;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .telegram-floating-wrap .telegram-float {
        padding: 9px 11px !important;
        font-size: 12px !important;
        gap: 6px !important;
    }
    .telegram-close {
        width: 22px !important;
        height: 22px !important;
        font-size: 15px !important;
    }
}


/* Restored Telegram support: old visible style, bottom-left, live, closable until refresh */
.telegram-floating-wrap {
    position: fixed !important;
    left: 16px !important;
    right: auto !important;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1088 !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}
.telegram-floating-wrap.is-hidden {
    display: none !important;
}
.telegram-floating-wrap .telegram-float,
.telegram-float {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 11px 15px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #229ed9 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.28) !important;
    overflow: visible !important;
}
.telegram-floating-wrap .telegram-float::before,
.telegram-float::before {
    content: none !important;
}
.telegram-floating-wrap .telegram-label,
.telegram-floating-wrap .telegram-icon {
    display: inline-flex !important;
    color: #ffffff !important;
}
.telegram-floating-wrap .telegram-icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.2) !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
}
.telegram-floating-wrap .telegram-live-dot {
    position: static !important;
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    border-radius: 999px !important;
    background: #22c55e !important;
    border: 0 !important;
    animation: telegram-live-pulse 1.15s infinite !important;
}
.telegram-close {
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.55) !important;
    background: rgba(7,20,38,.92) !important;
    color: #ffffff !important;
    font-size: 17px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 6px 14px rgba(0,0,0,.22) !important;
}
@media (max-width: 520px) {
    .telegram-floating-wrap {
        left: 10px !important;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .telegram-floating-wrap .telegram-float {
        padding: 9px 11px !important;
        font-size: 12px !important;
        gap: 6px !important;
    }
    .telegram-floating-wrap .telegram-icon {
        width: 19px !important;
        height: 19px !important;
        font-size: 12px !important;
    }
    .telegram-close {
        width: 22px !important;
        height: 22px !important;
        font-size: 15px !important;
    }
}

/* Professional landing image */
.hero {
    gap: 28px;
    justify-content: space-between;
}
.hero > div:first-child {
    flex: 1 1 420px;
}
.hero-visual {
    flex: 0 1 460px;
    display: flex;
    justify-content: center;
}
.hero-visual img {
    width: min(100%, 460px);
    height: auto;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
@media (max-width: 860px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-visual {
        width: 100%;
    }
}


/* FINAL Telegram support visibility fix: rendered from header and pinned bottom-left on all user pages */
.telegram-floating-wrap {
    position: fixed !important;
    left: 18px !important;
    right: auto !important;
    bottom: 18px !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    pointer-events: auto !important;
}
.telegram-floating-wrap.is-hidden {
    display: none !important;
}
.telegram-floating-wrap .telegram-float {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 12px 16px !important;
    border-radius: 999px !important;
    background: #229ed9 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.32) !important;
    overflow: visible !important;
}
.telegram-floating-wrap .telegram-float::before {
    content: none !important;
}
.telegram-logo-img {
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
}
.telegram-floating-wrap .telegram-label {
    display: inline !important;
    color: #ffffff !important;
}
.telegram-floating-wrap .telegram-live-dot {
    position: static !important;
    display: inline-block !important;
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    border-radius: 999px !important;
    background: #22c55e !important;
    border: 0 !important;
    animation: telegram-live-pulse 1.15s infinite !important;
}
.telegram-floating-wrap .telegram-close {
    width: 25px !important;
    height: 25px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,.7) !important;
    background: rgba(7,20,38,.94) !important;
    color: #ffffff !important;
    font-size: 17px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 6px 14px rgba(0,0,0,.26) !important;
}
@media (max-width: 520px) {
    .telegram-floating-wrap {
        left: 10px !important;
        bottom: 10px !important;
        gap: 6px !important;
    }
    .telegram-floating-wrap .telegram-float {
        padding: 10px 12px !important;
        font-size: 12px !important;
        gap: 6px !important;
    }
    .telegram-logo-img {
        width: 19px !important;
        height: 19px !important;
        flex-basis: 19px !important;
    }
    .telegram-floating-wrap .telegram-close {
        width: 22px !important;
        height: 22px !important;
        font-size: 15px !important;
    }
}


/* Language switcher fixed to top-right on all user pages */
.language-switcher {
    position: fixed !important;
    top: 12px !important;
    right: 14px !important;
    z-index: 99998 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(7, 20, 38, .88) !important;
    border: 1px solid rgba(244, 197, 66, .45) !important;
    border-radius: 999px !important;
    padding: 7px 10px !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.28) !important;
}
.language-switcher label {
    margin: 0 !important;
    color: #f4c542 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}
.language-switcher select {
    border: 0 !important;
    border-radius: 999px !important;
    padding: 7px 28px 7px 12px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-weight: 800 !important;
    max-width: 150px !important;
}
.forex-ticker { padding-right: 190px !important; }
@media (max-width: 640px) {
    .language-switcher { top: 56px !important; right: 10px !important; padding: 5px 7px !important; }
    .language-switcher label { display: none !important; }
    .language-switcher select { max-width: 132px !important; padding: 6px 24px 6px 10px !important; }
    .forex-ticker { padding-right: 0 !important; }
}


/* User navigation organization: all user buttons inside Dashboard dropdown */
.user-dropdown-nav {
    display: block;
}
.dashboard-dropdown {
    border: 1px solid rgba(244,197,66,.28);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
}
.dashboard-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 14px;
    color: #ffffff;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-radius: 14px;
    user-select: none;
}
.dashboard-dropdown summary::-webkit-details-marker {
    display: none;
}
.dashboard-dropdown summary::after {
    content: "▾";
    position: absolute;
    right: 16px;
    transform: translateY(4px);
    color: var(--gold);
}
.dashboard-dropdown[open] summary::after {
    content: "▴";
}
.dashboard-dropdown summary.active,
.dashboard-dropdown[open] summary {
    background: rgba(244,197,66,.14);
    color: #ffffff;
}
.dashboard-dropdown summary small {
    color: rgba(255,255,255,.64);
    font-weight: 600;
    font-size: .78rem;
}
.dashboard-dropdown-menu {
    padding: 8px;
    display: grid;
    gap: 7px;
    background: rgba(7,20,38,.46);
}
.dashboard-dropdown-menu a {
    display: block;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,.88);
    font-weight: 700;
    border: 1px solid transparent;
}
.dashboard-dropdown-menu a:hover,
.dashboard-dropdown-menu a.active {
    background: #ffffff;
    color: var(--navy);
    border-color: rgba(244,197,66,.45);
}
.admin-only-actions {
    margin-top: 14px;
}
@media (max-width: 760px) {
    .dashboard-dropdown summary {
        padding: 12px;
    }
    .dashboard-dropdown-menu {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-dropdown-menu a {
        text-align: center;
        font-size: .88rem;
    }
}


/* Simple user interface: keep user navigation minimal */
.simple-user-sidebar .brand-mini {
    margin-bottom: 14px;
}
.simple-user-nav {
    display: grid;
    gap: 10px;
}
.simple-user-nav a {
    display: block;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
    border: 1px solid rgba(244,197,66,.34);
    background: rgba(244,197,66,.12);
}
.simple-user-nav a.active,
.simple-user-nav a:hover {
    background: var(--gold);
    color: #111827;
}
.user-sidebar-language,
.user-dropdown-nav,
.dashboard-dropdown {
    display: none !important;
}
.profile-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}
.profile-action-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    background: #f8fafc;
}
.profile-action-card h2 {
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: var(--navy);
}
.profile-action-card p {
    color: #4b5563;
    margin-bottom: 12px;
}
.profile-language-select {
    min-height: 48px;
    border: 1px solid rgba(7,20,38,.22);
    border-radius: 12px;
    font-weight: 700;
}
.dashboard-actions-only {
    display: none !important;
}
@media (max-width: 760px) {
    .simple-user-nav a {
        text-align: center;
        padding: 12px;
    }
}


/* Restored simple two-button user navigation */
.user-shell {
    align-items: flex-start;
}
.simple-user-sidebar {
    min-width: 230px;
}
.top-two-nav {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
}
.top-two-nav a {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 14px 14px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
    border: 1px solid rgba(244,197,66,.34);
    background: rgba(255,255,255,.06);
}
.top-two-nav a.active,
.top-two-nav a:hover {
    background: var(--gold);
    color: #111827;
}
.dashboard-actions-only {
    display: grid !important;
}
.profile-page-card {
    width: min(1120px, 100%);
}
.profile-top-row {
    display: grid;
    grid-template-columns: minmax(280px, 1.3fr) minmax(220px, .8fr) minmax(220px, .8fr);
    gap: 16px;
    align-items: stretch;
}
.profile-top-row .profile-action-card {
    margin: 0;
    height: 100%;
}
.compact-profile-list {
    margin-bottom: 0;
}
.profile-admin-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.profile-admin-row .btn {
    min-width: 190px;
}
@media (min-width: 900px) {
    .top-two-nav {
        grid-template-columns: 1fr 1fr;
    }
    .simple-user-sidebar {
        width: 100%;
        min-width: 0;
        grid-column: 1 / -1;
    }
    .user-shell {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
@media (max-width: 900px) {
    .profile-top-row {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 620px) {
    .top-two-nav {
        grid-template-columns: 1fr 1fr;
    }
    .top-two-nav a {
        padding: 12px 8px;
        font-size: .88rem;
    }
    .profile-admin-row .btn {
        width: 100%;
    }
}


/* Final dashboard spacing cleanup */
.simple-user-sidebar {
    margin-bottom: 6px !important;
    padding-bottom: 8px !important;
}
.user-shell {
    gap: 8px !important;
}
.user-main {
    margin-top: 0 !important;
}
.user-dashboard {
    padding-top: 6px !important;
}
.client-dashboard-head {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    padding-top: 0 !important;
}
.client-dashboard-head h1 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.top-two-nav {
    margin-bottom: 0 !important;
}
.investment-plans-title {
    margin: 18px 0 12px !important;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}
.dashboard-plan-pairs {
    margin-top: 0 !important;
}
.dashboard-active-trades-card {
    margin-bottom: 8px !important;
}
@media (max-width: 620px) {
    .user-dashboard {
        padding-top: 2px !important;
    }
    .client-dashboard-head {
        margin-bottom: 10px !important;
    }
    .investment-plans-title {
        margin-top: 12px !important;
        margin-bottom: 10px !important;
        font-size: 2rem;
    }
}

/* Desktop/tablet user layout fix: remove the large empty sidebar card and keep navigation tight */
@media (min-width: 901px) {
    .user-shell {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        align-items: start !important;
    }
    .user-sidebar.simple-user-sidebar,
    .user-sidebar {
        position: static !important;
        top: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        width: 100% !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 0 4px !important;
    }
    .simple-user-sidebar .brand-mini,
    .user-sidebar .brand-mini {
        margin: 0 0 10px !important;
        padding: 0 !important;
        color: var(--gold) !important;
        font-size: 1.16rem !important;
        line-height: 1.2 !important;
    }
    .top-two-nav {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .top-two-nav a {
        padding: 13px 16px !important;
        border-radius: 12px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .user-main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .user-dashboard {
        padding-top: 0 !important;
    }
    .client-dashboard-head {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }
    .client-dashboard-head h1 {
        margin: 0 !important;
        line-height: 1.06 !important;
    }
}

/* Mobile and in-app browser fallback: keep top nav compact and do not create tall cards */
@media (max-width: 900px) {
    .user-sidebar.simple-user-sidebar {
        min-height: 0 !important;
        max-height: none !important;
    }
    .top-two-nav {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
}


/* Top user navigation: 3 compact matching buttons - Client Dashboard, Profile, Language */
.top-three-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
}
.top-three-nav a,
.top-language-button {
    min-height: 44px !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(244,197,66,.42) !important;
    background: rgba(255,255,255,.06) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: .92rem !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}
.top-three-nav a.active,
.top-three-nav a:hover,
.top-language-button:hover {
    background: rgba(244,197,66,.16) !important;
    color: #ffffff !important;
    border-color: var(--gold) !important;
}
.top-language-button {
    gap: 8px !important;
    cursor: pointer !important;
}
.top-language-button span {
    color: #ffffff !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}
.top-language-button select {
    width: auto !important;
    max-width: 118px !important;
    min-width: 86px !important;
    border: 0 !important;
    border-radius: 9px !important;
    padding: 5px 22px 5px 8px !important;
    background: #ffffff !important;
    color: #071426 !important;
    font-weight: 800 !important;
    font-size: .82rem !important;
    line-height: 1 !important;
}
.top-two-nav {
    display: none !important;
}
@media (max-width: 620px) {
    .top-three-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    .top-three-nav a,
    .top-language-button {
        min-height: 40px !important;
        padding: 7px 6px !important;
        font-size: .76rem !important;
        border-radius: 10px !important;
    }
    .top-language-button {
        flex-direction: column !important;
        gap: 3px !important;
    }
    .top-language-button select {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
        font-size: .72rem !important;
        padding: 4px 18px 4px 6px !important;
    }
}


/* Profile and top navigation icons */
.top-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    font-size: 1rem;
    line-height: 1;
}
.top-language-button .top-nav-icon {
    margin-right: 4px;
}
.profile-action-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(244,197,66,.18);
    border: 1px solid rgba(244,197,66,.38);
    font-size: 1.05rem;
}
.support-icon-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
}
.profile-admin-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
@media (max-width: 620px) {
    .top-nav-icon {
        margin-right: 3px;
        font-size: .86rem;
    }
    .top-language-button .top-nav-icon {
        display: none;
    }
}


/* Admin withdrawals plain text: no bold words in withdrawals review page */
.admin-withdrawals-plain strong,
.admin-withdrawals-plain b,
.admin-withdrawals-plain .fw-bold {
    font-weight: 400 !important;
}
.admin-withdrawals-plain th {
    font-weight: 600 !important;
}


/* Admin panel organisation: sidebar = Dashboard, Deposits, Withdrawals, Admin/Settings */
.admin-settings-hub,
.admin-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.admin-settings-card,
.admin-main-action {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-decoration: none;
    background: #ffffff;
    color: #101827;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(244,197,66,.34);
    box-shadow: 0 10px 26px rgba(0,0,0,.14);
    min-height: 118px;
}
.admin-settings-card:hover,
.admin-main-action:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
}
.admin-settings-icon,
.admin-main-action span {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(244,197,66,.18);
    font-size: 1.25rem;
}
.admin-settings-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
}
.admin-settings-card small {
    color: #64748b;
    line-height: 1.35;
}
.admin-main-action {
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    min-height: 92px;
}
.admin-sidebar .admin-nav-section {
    display: none !important;
}
@media (max-width: 760px) {
    .admin-settings-hub,
    .admin-dashboard-actions {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .admin-settings-card,
    .admin-main-action {
        padding: 14px 10px;
        min-height: 98px;
        border-radius: 12px;
    }
    .admin-settings-title,
    .admin-main-action {
        font-size: .9rem;
    }
    .admin-settings-card small {
        display: none;
    }
}
@media (max-width: 420px) {
    .admin-settings-hub,
    .admin-dashboard-actions {
        grid-template-columns: 1fr;
    }
}


/* Visible modal close countdown for withdrawal requirement and deposit proof receipts */
.payment-modal-header {
    position: relative !important;
    padding-right: 92px !important;
}
.modal-countdown-lock {
    position: absolute !important;
    top: 12px !important;
    right: 48px !important;
    min-width: 42px !important;
    height: 32px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    background: #fff3cd !important;
    border: 1px solid #f4c542 !important;
    color: #7a5400 !important;
    font-size: .82rem !important;
    font-weight: 900 !important;
    line-height: 30px !important;
    text-align: center !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.12) !important;
    z-index: 3 !important;
}
.modal-countdown-lock::before {
    content: "Close in ";
    font-weight: 700;
}
.modal-countdown-lock.is-unlocked {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
    color: #14532d !important;
}
.modal-countdown-lock.is-unlocked::before {
    content: "Close ";
}
.payment-modal-header .btn-close.locked-close,
.payment-modal-header .btn-close:disabled {
    opacity: .35 !important;
    cursor: not-allowed !important;
}
@media (max-width: 520px) {
    .payment-modal-header {
        padding-right: 84px !important;
    }
    .modal-countdown-lock {
        top: 10px !important;
        right: 42px !important;
        min-width: 38px !important;
        height: 28px !important;
        font-size: .74rem !important;
        line-height: 26px !important;
        padding: 0 7px !important;
    }
    .modal-countdown-lock::before {
        content: "";
    }
}


/* Rejected proof warning modal: 60-second countdown and lock status */
.fake-warning-modal .modal-header {
    position: relative;
    padding-right: 86px;
}
.fake-warning-countdown {
    position: absolute;
    top: 12px;
    right: 16px;
    min-width: 54px;
    height: 34px;
    border-radius: 999px;
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    font-weight: 900;
    line-height: 32px;
    text-align: center;
}
.fake-warning-countdown::before {
    content: "Wait ";
    font-weight: 700;
}
.fake-warning-close:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.fake-warning-text {
    font-weight: 900;
    color: #b91c1c;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.35;
}
@media (max-width: 520px) {
    .fake-warning-modal .modal-header {
        padding-right: 74px;
    }
    .fake-warning-countdown {
        right: 12px;
        min-width: 48px;
        height: 30px;
        line-height: 28px;
        font-size: .8rem;
    }
    .fake-warning-countdown::before {
        content: "";
    }
}


/* Rejected proof warning: red top card + center countdown */
.proof-warning-top-card {
    width: min(1180px, calc(100% - 24px));
    margin: 14px auto 10px;
    background: #fff1f2;
    color: #991b1b;
    border: 2px solid #ef4444;
    border-left: 8px solid #dc2626;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(220,38,38,.18);
    position: relative;
    z-index: 1065;
}
.proof-warning-icon {
    font-size: 1.8rem;
    line-height: 1;
}
.proof-warning-content strong {
    display: block;
    color: #dc2626;
    font-size: 1.05rem;
    font-weight: 1000;
    letter-spacing: .04em;
}
.proof-warning-content div {
    color: #b91c1c;
    font-weight: 1000;
    line-height: 1.35;
}
.proof-warning-content small {
    display: block;
    margin-top: 4px;
    color: #7f1d1d;
    font-weight: 700;
}
.proof-warning-top-card.warning-expired {
    border-color: #f97316;
    background: #fff7ed;
}
.fake-warning-center-countdown {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(7,20,38,.72);
    backdrop-filter: blur(4px);
}
.fake-warning-center-card {
    width: min(460px, 100%);
    background: #ffffff;
    color: #111827;
    border-radius: 22px;
    padding: 24px 20px;
    text-align: center;
    border: 3px solid #dc2626;
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
}
.fake-warning-center-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 6px;
}
.fake-warning-center-title {
    color: #dc2626;
    font-weight: 1000;
    font-size: 1.45rem;
    letter-spacing: .08em;
}
.fake-warning-center-text {
    color: #b91c1c;
    font-weight: 1000;
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 10px 0 14px;
}
.fake-warning-center-timer {
    width: 124px;
    height: 124px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fee2e2;
    border: 6px solid #dc2626;
    color: #991b1b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.15rem;
    font-weight: 1000;
    box-shadow: inset 0 0 0 8px #fff;
}
.fake-warning-center-note {
    color: #7f1d1d;
    font-weight: 800;
    margin-bottom: 14px;
}
.fake-warning-center-countdown .fake-warning-close:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.fake-warning-center-countdown.can-close {
    background: rgba(7,20,38,.45);
}
.fake-warning-center-countdown.can-close .fake-warning-center-timer {
    background: #dcfce7;
    border-color: #16a34a;
    color: #14532d;
}
@media (max-width: 520px) {
    .proof-warning-top-card {
        width: calc(100% - 18px);
        margin-top: 10px;
        padding: 12px;
        gap: 10px;
        border-radius: 12px;
    }
    .proof-warning-icon {
        font-size: 1.45rem;
    }
    .proof-warning-content strong,
    .proof-warning-content div {
        font-size: .92rem;
    }
    .fake-warning-center-card {
        padding: 20px 15px;
        border-radius: 18px;
    }
    .fake-warning-center-timer {
        width: 104px;
        height: 104px;
        font-size: 1.8rem;
    }
    .fake-warning-center-text {
        font-size: 1rem;
    }
}


/* Force rejected-proof warning on support page to be red and visible */
.support-proof-warning,
.alert-danger {
    background: #fff1f2 !important;
    color: #991b1b !important;
    border-color: #ef4444 !important;
}
.support-proof-warning .proof-warning-content div,
.support-proof-warning .proof-warning-content strong,
.alert-danger {
    color: #dc2626 !important;
    font-weight: 900 !important;
}
.support-lock-countdown {
    z-index: 3500 !important;
}
.support-lock-countdown .fake-warning-center-card {
    border-color: #dc2626 !important;
}


/* Warning card top-right countdown badge */
.proof-warning-top-card {
    padding-right: 104px !important;
}
.warning-card-countdown {
    position: absolute;
    top: 12px;
    right: 14px;
    min-width: 74px;
    min-height: 36px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    border: 2px solid #fecaca;
    font-weight: 1000;
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 8px 18px rgba(220,38,38,.25);
}
.warning-card-countdown::before {
    content: "Restores in";
    display: block;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.warning-card-countdown span {
    display: block;
    font-size: .86rem;
}
@media (max-width: 520px) {
    .proof-warning-top-card {
        padding-right: 90px !important;
    }
    .warning-card-countdown {
        top: 10px;
        right: 10px;
        min-width: 66px;
        min-height: 32px;
        padding: 5px 7px;
    }
    .warning-card-countdown::before {
        font-size: .5rem;
    }
    .warning-card-countdown span {
        font-size: .74rem;
    }
}


/* Final modal cleanup: deposit and withdrawal proof modals are closable, no modal close timer */
.payment-proof-modal .modal-countdown-lock {
    display: none !important;
}
.payment-proof-modal .btn-close:disabled {
    opacity: 1 !important;
    cursor: pointer !important;
}


/* Huge top-right warning countdown tracker */
.warning-huge-topright {
    position: fixed;
    top: 104px;
    right: 14px;
    z-index: 3600;
    background: #dc2626;
    color: #ffffff;
    border: 3px solid #fecaca;
    border-radius: 18px;
    padding: 10px 13px;
    text-align: center;
    box-shadow: 0 20px 44px rgba(220,38,38,.38);
    min-width: 122px;
}
.warning-huge-topright span {
    display: block;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.warning-huge-topright strong {
    display: block;
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1.1;
    font-weight: 1000;
}
@media (max-width: 620px) {
    .warning-huge-topright {
        top: 118px;
        right: 10px;
        min-width: 104px;
        padding: 8px 10px;
        border-radius: 15px;
    }
    .warning-huge-topright strong {
        font-size: 1.12rem;
    }
}


/* Simple warning restored: no red countdown overlays */
.fake-warning-center-countdown,
.warning-huge-topright,
.proof-warning-top-card {
    display: none !important;
}


/* Support page contact icons + admin-managed warning card */
.support-warning-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
}
.support-warning-icon {
    font-size: 1.35rem;
    line-height: 1.2;
}
.support-item-icon {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    min-height: 150px;
}
.support-contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(244,197,66,.18);
    border: 1px solid rgba(244,197,66,.42);
    font-size: 1.4rem !important;
    margin-bottom: 4px;
}
.support-contact-icon.telegram-icon {
    background: rgba(34,158,217,.14);
    border-color: rgba(34,158,217,.36);
}
.support-item-icon:hover .support-contact-icon {
    transform: translateY(-1px);
}
@media (max-width: 760px) {
    .support-item-icon {
        min-height: 122px;
    }
    .support-contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem !important;
    }
}


/* Landing page CTA focus */
.landing-main-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.landing-cta {
    min-width: 220px;
    min-height: 62px;
    padding: 18px 28px !important;
    border-radius: 14px !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: .02em;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.landing-cta.primary {
    background: linear-gradient(135deg, #f4c542, #f9d76b) !important;
    border-color: #f4c542 !important;
}
.landing-cta.secondary {
    border-width: 2px !important;
    background: rgba(255,255,255,.06);
}
.landing-benefits-section {
    padding-top: 8px;
}
.landing-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}
.landing-benefit-card {
    border-top: 5px solid var(--gold);
}
.landing-benefit-icon,
.focus-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(244,197,66,.18);
    border: 1px solid rgba(244,197,66,.4);
    font-size: 1.35rem;
    margin-bottom: 10px;
}

/* Active trades visibility after admin approval */
.trade-progress-alert {
    background: #ecfdf5 !important;
    border: 1px solid #16a34a !important;
    color: #065f46 !important;
    border-left: 6px solid #16a34a !important;
    padding: 16px 18px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    margin: 16px 0 !important;
}
.active-trades-focus-card,
.active-trades-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-left: 6px solid #16a34a;
    margin: 18px 0;
}
.active-trades-focus-card h2,
.active-trades-summary-card h2 {
    margin: 0 0 6px;
    color: var(--navy);
}
.active-trades-focus-card p,
.active-trades-summary-card p {
    margin: 0;
    color: #475569;
    font-weight: 600;
}
.active-trades-table-card {
    border-top: 4px solid var(--gold);
}
@media (max-width: 720px) {
    .landing-main-actions {
        flex-direction: column;
        gap: 12px;
    }
    .landing-cta {
        width: 100%;
        min-height: 58px;
        font-size: 1.05rem !important;
    }
    .active-trades-focus-card,
    .active-trades-summary-card {
        flex-direction: column;
        align-items: stretch;
    }
    .active-trades-focus-card .btn {
        width: 100%;
    }
}


/* Larger landing account buttons */
.landing-main-actions {
    gap: 20px !important;
    margin-top: 34px !important;
}
.landing-cta {
    min-width: 280px !important;
    min-height: 76px !important;
    padding: 22px 36px !important;
    border-radius: 18px !important;
    font-size: 1.35rem !important;
    font-weight: 1000 !important;
    letter-spacing: .03em !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.08) inset !important;
}
.landing-cta.primary {
    transform: scale(1.03);
}
.landing-cta.secondary {
    border-width: 3px !important;
}

/* Disable invest/deposit/withdraw when user already has active trade */
.active-trade-lock-message {
    background: #fff8db;
    color: #4a3500;
    border: 1px solid rgba(244,197,66,.65);
    border-left: 6px solid var(--gold);
    border-radius: 14px;
    padding: 13px 15px;
    font-weight: 800;
    margin-bottom: 14px;
}
.page-lock-message {
    margin: 0 0 18px;
}
.disabled-action,
.disabled-action:hover,
button.disabled-action,
button.disabled-action:hover {
    opacity: .62 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(.15);
}
.quick-actions .disabled-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 720px) {
    .landing-cta {
        min-width: 100% !important;
        min-height: 72px !important;
        font-size: 1.25rem !important;
    }
}


/* Landing page spacing correction: remove large empty gaps */
.hero {
    min-height: auto !important;
    align-items: center !important;
    gap: 28px !important;
    padding: 30px 0 22px !important;
}
.hero > div:first-child {
    flex: 1 1 380px;
}
.hero-visual {
    flex: 1 1 360px;
    display: flex;
    justify-content: center;
}
.hero-visual img {
    width: min(100%, 440px);
    max-height: 360px;
    object-fit: contain;
}
.landing-main-actions {
    margin-bottom: 0 !important;
}
@media (max-width: 760px) {
    .hero {
        display: block !important;
        padding: 18px 0 12px !important;
        border-bottom: 0 !important;
    }
    .hero h1 {
        margin-bottom: 12px !important;
    }
    .hero .lead {
        margin-bottom: 12px !important;
    }
    .hero-visual {
        margin-top: 18px !important;
    }
    .hero-visual img {
        max-height: 260px !important;
    }
    .forex-panel {
        margin-top: 16px !important;
    }
}


/* Public landing language switcher persistence fix */
body:not(:has(.user-shell)) .language-switcher {
    position: fixed !important;
    top: 58px !important;
    right: 12px !important;
    z-index: 20000 !important;
    display: flex !important;
}
@media (max-width: 768px) {
    body:not(:has(.user-shell)) .language-switcher {
        top: 48px !important;
        right: 8px !important;
    }
}


/* Permanent site language switcher for public and user pages */
.language-switcher {
    position: fixed !important;
    top: 54px !important;
    right: 12px !important;
    z-index: 25000 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(3, 16, 31, .94) !important;
    border: 1px solid rgba(244,197,66,.55) !important;
    border-radius: 999px !important;
    padding: 7px 10px !important;
    color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.32) !important;
}
.language-switcher label {
    display: inline-block !important;
    margin: 0 !important;
    color: #f4c542 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}
.language-switcher select {
    border: 0 !important;
    border-radius: 999px !important;
    padding: 6px 10px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    min-width: 112px !important;
}
.top-two-main-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
.top-two-main-nav a {
    min-height: 44px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(244,197,66,.42) !important;
    background: rgba(255,255,255,.06) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.top-two-main-nav a.active,
.top-two-main-nav a:hover {
    background: rgba(244,197,66,.16) !important;
    border-color: var(--gold) !important;
}
@media (max-width: 768px) {
    .language-switcher {
        top: 48px !important;
        right: 8px !important;
        padding: 5px 7px !important;
        gap: 5px !important;
    }
    .language-switcher label {
        display: none !important;
    }
    .language-switcher select {
        min-width: 96px !important;
        max-width: 116px !important;
        font-size: 12px !important;
        padding: 5px 7px !important;
    }
    .top-two-main-nav {
        gap: 7px !important;
    }
    .top-two-main-nav a {
        min-height: 42px !important;
        padding: 8px 7px !important;
        font-size: .84rem !important;
    }
}
/* PHP translation/performance overrides */
.language-switcher {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    position: fixed !important;
    top: 54px !important;
    right: 12px !important;
    z-index: 1050 !important;
}

.language-switcher select {
    max-width: 150px !important;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 640px) {
    .language-switcher {
        top: 48px !important;
        right: 8px !important;
        padding: 5px 7px !important;
    }

    .language-switcher label {
        display: none !important;
    }

    .forex-ticker-track {
        animation-duration: 90s !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .forex-ticker-track {
        animation: none !important;
    }
}


/* User rejected proof warning card - screenshot style */
.user-warning-card.screenshot-warning-card {
    width: 100% !important;
    background: #fffaf0 !important;
    color: #5a3a00 !important;
    border: 1px solid rgba(214, 169, 31, .34) !important;
    border-left: 10px solid #d9a400 !important;
    border-radius: 22px !important;
    padding: 24px 26px !important;
    margin: 20px 0 !important;
    box-shadow: 0 10px 26px rgba(90, 58, 0, .08) !important;
    font-family: Arial, Helvetica, sans-serif !important;
}
.user-warning-card.screenshot-warning-card h3 {
    margin: 0 0 18px !important;
    font-size: clamp(1.25rem, 4vw, 1.85rem) !important;
    line-height: 1.12 !important;
    font-weight: 900 !important;
    color: #5a3a00 !important;
}
.user-warning-card.screenshot-warning-card p {
    margin: 0 0 20px !important;
    font-size: clamp(1.15rem, 4vw, 1.85rem) !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    color: #6a4300 !important;
}
.user-warning-card.screenshot-warning-card .warning-meta-line {
    display: block !important;
    margin: 10px 0 !important;
    color: #5a3a00 !important;
    font-size: clamp(1rem, 3.3vw, 1.45rem) !important;
    line-height: 1.22 !important;
}
.user-warning-card.screenshot-warning-card .warning-meta-line strong {
    display: inline !important;
    color: #5a3a00 !important;
    font-weight: 1000 !important;
    font-size: inherit !important;
}
.user-warning-card.screenshot-warning-card .warning-meta-line span {
    display: inline !important;
    color: #5a3a00 !important;
    font-weight: 900 !important;
}
.user-warning-card.screenshot-warning-card .warning-last-reason {
    margin-top: 16px !important;
}
@media (max-width: 640px) {
    .user-warning-card.screenshot-warning-card {
        border-left-width: 8px !important;
        border-radius: 20px !important;
        padding: 20px 18px !important;
        margin: 18px 0 !important;
    }
    .user-warning-card.screenshot-warning-card h3 {
        margin-bottom: 14px !important;
    }
    .user-warning-card.screenshot-warning-card p {
        margin-bottom: 16px !important;
    }
}

/* Phase 1 clean 4-warning system: no temporary lock/countdown overlays. */
.user-warning-card.clean-warning-card,
.user-warning-card.screenshot-warning-card {
    background: #fff1f2 !important;
    border: 1px solid #fecdd3 !important;
    border-left: 5px solid #dc2626 !important;
    color: #991b1b !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    margin: 12px auto 18px !important;
    max-width: 1100px !important;
    box-shadow: 0 12px 28px rgba(153, 27, 27, .12) !important;
}

.user-warning-card.clean-warning-card h3,
.user-warning-card.screenshot-warning-card h3 {
    color: #991b1b !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    margin: 0 0 6px !important;
}

.user-warning-card.clean-warning-card p,
.user-warning-card.screenshot-warning-card p {
    color: #991b1b !important;
    margin: 0 !important;
    font-weight: 700 !important;
}

.fake-warning-modal,
.fake-warning-center-countdown,
.fake-warning-countdown,
.warning-huge-topright,
.warning-card-countdown,
.proof-warning-top-card,
.support-lock-countdown,
.modal-countdown-lock {
    display: none !important;
}

/* Proof upload performance and double-submit feedback */
.proof-preview {
    display: none;
    width: 100% !important;
    max-height: 280px !important;
    min-height: 120px;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    transform: translateZ(0);
    contain: layout paint;
}

.proof-preview.proof-preview-ready {
    display: block !important;
}

.payment-proof-modal .modal-body,
.payment-proof-modal .payment-modal-body {
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

.payment-proof-modal .proof-upload-box {
    contain: layout paint;
}

.payment-proof-modal .proof-pdf-preview.proof-pdf-ready {
    display: block;
    min-height: 38px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .12);
}

body.proof-modal-open .social-proof-notification {
    z-index: 1000 !important;
}

body.proof-modal-open .social-proof-notification.is-visible {
    opacity: 0;
    transform: translate(-12px, -8px);
}

@media (max-width: 640px) {
    .proof-preview {
        max-height: 220px !important;
        min-height: 96px;
    }
}

.proof-submit.is-uploading,
.proof-submit.is-uploading:disabled {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    opacity: .9 !important;
    cursor: wait !important;
}

.proof-submit-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: proof-submit-spin .75s linear infinite;
    flex: 0 0 auto;
}

@keyframes proof-submit-spin {
    to { transform: rotate(360deg); }
}

/* Admin dashboard refresh and analytics */
.admin-refresh-note,
.admin-page-note {
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    margin: -4px 0 16px;
}

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

@media (max-width: 820px) {
    .admin-analytics-grid {
        grid-template-columns: 1fr;
    }
}

/* Live social proof notification */
.social-proof-notification {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1035;
    width: auto;
    max-width: 320px;
    background: #0f8f4d;
    color: #ffffff;
    border-left: 4px solid #076534;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.28;
    white-space: normal;
    overflow-wrap: anywhere;
    opacity: 0;
    transform: translate(-12px, -8px);
    pointer-events: none;
    transition: opacity .32s ease, transform .32s ease;
}

.social-proof-notification.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 640px) {
    .social-proof-notification {
        top: 10px;
        left: 10px;
        max-width: calc(100vw - 20px);
        width: auto;
        font-size: 12px;
        padding: 9px 10px;
    }
}
