/* V27 Lite stylesheet — build 12 */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4D7C0F;
    --primary-dark: #3F6A0C;
    --success: #4CAF50;
    --danger: #f44336;
    --bg-light: #f5f7fa;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
}

body {
    font-family: "Geist";
    background: #f3f4f6;
    min-height: 100vh;
    color: #000000;
}

h2 {
    font-family: "Geist";
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: #ffffff !important;
    border: 3px solid #e4e6ea !important;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

#verifyBtn {
    width: 100%;
}

#goBackBtn {
    width: 100%;
    background: linear-gradient(180deg, #f6f7f8 0%, #eef0f2 100%)!important;
    border-color: #e4e6ea!important;
    color: #111316!important;
}

#goBackBtn:hover {
    box-shadow: #c6f424ff 0px 0px 10px;
    border: none!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%)!important;
    color: #000000!important;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.logo p {
    color: #111316;
    font-size: 0.95em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111316;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    cursor: pointer;
    padding: 12px 16px;
    background: #16181c!important;
    border: 1px solid #c6f424!important;
    color: #fff;
    border-radius: 8px;
    font-family: "Geist";
    transition: 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: #16181c!important;
    border: 1px solid #c6f424!important;
}

.btn-primary:hover {
    box-shadow: #c6f424ff 0px 0px 10px!important;
    border: 1px solid #c6f424!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%)!important;
    color: #000000!important;
}

.btn-primary:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.btn-logout {
    background: linear-gradient(180deg, #f6f7f8 0%, #eef0f2 100%) !important;
    border: 1px solid #e4e6ea!important;
    height: 38.5px!important;
    margin-top: 5px !important;
}

.btn-logout:hover {
    box-shadow: #c6f424ff 0px 0px 10px!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%)!important;
    border: 1px solid #c6f424!important;
    color: #000000!important;
}

#adminBtn {
    background: linear-gradient(90deg, #4D7C0F, #16181C)!important;
    color: #ffffff!important;
    border: 1px solid #4D7C0F!important;
}

#adminBtn:hover {
    box-shadow: #c6f424ff 0px 0px 10px!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%)!important;
    color: #000000!important;
    border: 1px solid #c6f424!important;
}

.but-ledger, .but-revenue, .but-dex, .but-refresh {
    background: #16181c!important;
    border: 1px solid #c6f424!important;
}

.but-ledger:hover, .but-revenue:hover, .but-dex:hover, .but-refresh:hover {
    border: 1px solid #c6f424!important;

}

.telegram-button {
    transition: 0.3s;
}

.telegram-button:hover {
    box-shadow: #c6f424ff 0px 0px 10px !important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%) !important;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    color: #111316;
}

.auth-links a {
    text-decoration: none;
    color: #4D7C0F;
    font-weight: 700;
}

.auth-link a {
    color: #4d7c0f !important;
    font-weight: 700;
    transition: 0.3s;
}

.auth-link {
    color: #111316 !important;
}

.auth-links a:hover {
    text-decoration: underline;
    color: #4D7C0F !important;
}

.auth-link a:hover {
    color: #4D7C0F !important;
}

.error-message {
    background: #ffebee;
    color: var(--danger);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background: #e8f5e9;
    color: #000000;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

#loginBtn {
    width: 100%
}

/* Dashboard */
.dashboard-header {
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    justify-content: center;
    background: #ffffff;
    border: 3px solid #e4e6ea;
    border-radius: 12px;
}

.dashboard-header p {
    color: #111316 !important;
}

.dashboard-header h1 {
    color: #111316;
    margin-bottom: 10px;
    font-family: "Geist";
    text-transform: uppercase;
}

.dashboard-nav {
    gap: 10px;
    margin-top: 20px;
}

.dashboard-nav .btn {
    width: auto;
    padding: 10px 20px;
    font-size: 14px;
}

.dashboard-nav .btn-primary {
    margin-top: 5px !important;
}

.dashboard-header>div {
    flex-direction: column;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: #ffffff;
    border: 3px solid #e4e6ea;
    border-radius: 12px;
    padding: 25px;
}

.card p {
    color: #111316 !important;
}

.card h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #000000;
}

.card-balance h2 {
    color: #111316;
}

.card-app-wallet .card-title {
    color: #111316;
}

.card-label {
    color: #111316 !important;
}

.card-deposit .card-title {
    color: #111316 !important;
}

.card-credit .card-title {
    color: #111316 !important;
}

.balance-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #4d7c0f;
    margin: 10px 0;
}

.wallet-address {
    font-family: 'Geist Mono', monospace;
    background: var(--bg-light);
    padding: 12px;
    border-radius: 12px;
    font-size: 12px;
    word-break: break-all;
    margin: 15px 0;
}

.btn-copy {
    background: #16181c!important;
    border: 1px solid #c6f424!important;
    color: #ffffff;
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 10px;
    min-width: 100%!important;
    padding: 10px 20px!important;
}

.btn-copy:hover {
    box-shadow: #c6f424ff 0px 0px 10px !important;
    border: 1px solid #c6f424!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%) !important;
    color: #000 !important;
}

.card-section>div {
    color: #000000 !important;
    margin-top: 20px;
}

.card-section>div>div>button {
    background: #16181c!important;
    border: 1px solid #c6f424!important;
    color: #ffffff;
    transition: 0.3s !important;
}

.card-section>div>div>button:hover {
    box-shadow: #c6f424ff 0px 0px 10px !important;
    border: 1px solid #c6f424!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%) !important;
    color: #000 !important;
}

.card-section div div div button {
    background: linear-gradient(180deg, #fdfdfd 0%, #757679 100%) !important;
    box-shadow: rgba(17,19,22,0.3) 0px 0px 2px !important;
    color: #000000 !important;
    transition: 0.3s !important;
}

.card-section p {
    display: none !important;
}

#revealBtn {
    min-width: 100%;
}

#balanceBtn {
    min-width: 100%;
    background: linear-gradient(90deg, #4D7C0F, #16181C)!important;
    border: none!important;
}

#balanceBtn:hover {
    box-shadow: #c6f424ff 0px 0px 10px !important;
    border: none!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%) !important;
    color: #000 !important;
}

/* Transactions */
.transactions-list {
    background: #ffffff;
    border: 3px solid #e4e6ea;
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 25px;
}

.transactions-list p {
    color: #111316;
}

.section-title {
    color: #111316 !important;
}

.transactions-list h2 {
    color: #111316 !important;
}

.transaction-item {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-amount {
    font-weight: bold;
    color: #4d7c0f !important;
    font-size: 1.1em;
}

.transaction-from {
    font-family: 'Geist Mono', monospace;
    font-size: 0.85em;
    color: #111316;
    margin-top: 5px;
}

.transaction-date {
    font-size: 0.85em;
    color: #111316;
}

.transaction-link {
    color: #4d7c0f;
    font-weight: 700;
    transition: 0.3s;
    text-decoration: none;
    font-size: 0.9em;
}

.transaction-link:hover {
    color: #4D7C0F;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #111316;
}

.spinner {
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-nav {
        flex-direction: column;
    }

    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Background Animation */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(17,19,22,0.06), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(17,19,22,0.06), transparent),
        radial-gradient(2px 2px at 40% 60%, rgba(17,19,22,0.06), transparent);
    background-size: 300px 300px;
    animation: drift 20s linear infinite;
    z-index: -1;
}

@keyframes drift {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-300px);
    }
}

/* Card */

#balanceDisplay {
    background-color: #ffffff !important;
}

.card-app-wallet .balance-amount {
    color: #4d7c0f!important;
}

.top-up-wallet {
    font-family: "Geist"!important;
    color: #4D7C0F!important;
    font-size: 16px!important;
}



/* Referals */

.referral-hero {
    background: #ffffff !important;
    border: 3px solid #e4e6ea!important;
}

.stat-card {
    background: #ffffff !important;
    border: 3px solid #e4e6ea;
    border-radius: 12px;
}

.stat-label {
    color: #111316 !important;
    font-size: 1.2em !important;
}

.stat-value {
    color: #4d7c0f!important;
}

.referral-link-box .btn {
    background: linear-gradient(90deg, #4D7C0F, #16181C)!important;
    border: none!important;
    color: #ffffff !important;
}

.referral-link-box {
    text-align: center!important;
    border: 3px solid #e4e6ea!important;
    border-radius: 12px!important;
    background: #f6f7f8!important;
}

.referral-link-box .btn:hover {
    box-shadow: #c6f424ff 0px 0px 10px !important;
    border: none!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%) !important;
    color: #000000!important;
}

.card h2 {
    color: #111316 !important;
}

.ref-card-commission .btn {
    width: 200px !important;
}

.ref-card-commission {
    margin-bottom: 30px !important;
    padding-bottom: 50px !important;
}

.ref-card-recent {
    margin-bottom: 30px !important;
}

#referralTree div {
    color: #111316 !important;
}

.ref-card-tree {
    margin-bottom: 30px !important;
}

#withdrawalHistory div {
    color: #111316 !important;
}

/* Sign Up Page */

#infoModalContent td {
    color: #4D7C0F
}

/* Generic info modal content boxes. Exclude the full Terms popup so it can use its own layout. */
#infoModalContent > div:not(.v27-legal-popup) {
    color: #111316!important;
    background: #f6f7f8!important;
    padding: 15px!important;
    border: 3px solid #e4e6ea!important;
    border-radius: 8px;
    margin: 20px 0px 20px 0px!important;
}

.info-box {
    border-color: #e4e6ea  !important;
}

.home-coin {
    color: #111316;
    text-align: center!important;
    display: flex!important;
    justify-content: center!important;
}

#signupForm .btn {
    min-width: 100% !important;
    margin-bottom: 10px;
}

.info-box p {
    color: #000000 !important;
}

/* ── Card Ledger Page ───────────────────────────────────────────────────── */

.ledger-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.ledger-wrap h1 {
    color: #111316;
    margin: 0 0 20px;
    font-size: 1.35em;
}

.info-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.info-chip {
    background: #ffffff;
    border: 3px solid #e4e6ea;
    border-radius: 12px;
    padding: 14px 20px;
    min-width: 160px;
}

.info-chip .lbl {
    font-size: 0.72em;
    color: #6b7488;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.info-chip .val {
    font-size: 1.1em;
    font-weight: 700;
    color: #111316;
}

.bal-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.bal-chip {
    background: #ffffff;
    border: 3px solid #e4e6ea;
    border-radius: 12px;
    padding: 18px 24px;
    min-width: 180px;
}

.bal-chip .lbl {
    font-size: 0.72em;
    color: #6b7488;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.bal-chip .amt {
    font-size: 1.8em;
    font-weight: 700;
}

.tbl-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 3px solid #e4e6ea;
    background: #ffffff;
    margin-bottom: 16px;
}

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

.tbl-wrap th {
    background: #ffffff;
    color: #6b7488;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 2px solid #e4e6ea;
    white-space: nowrap;
}

.tbl-wrap td {
    padding: 12px 14px;
    border-bottom: 1px solid #e4e6ea;
    font-size: 0.9em;
    vertical-align: middle;
}

.tbl-wrap tr:last-child td {
    border-bottom: none;
}

.table-empty {
    text-align: center;
    color: #6b7488;
    padding: 40px;
    font-size: 0.9em;
}

.table-loading {
    text-align: center;
    color: #6b7488;
    padding: 40px;
}

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
}

.badge-active   { background: #d1fae5; color: #065f46; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-frozen   { background: #fee2e2; color: #991b1b; }
.badge-inactive { background: #f3f4f6; color: #6b7280; }

.spinner-sm {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e4e6ea;
    border-top-color: #4D7C0F;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #ffffff;
    color: #111316;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9em;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

.failed-note {
    font-size: 0.82em;
    color: #6b7488;
    margin: 0 0 12px;
}

.info-message p {
    color: #111316;
}

/* Deposit Page */
h3 {
    color: #111316;
}

#depositPage h1 {
    color: #111316;
}

#userEmailDisplay {
    color: #4d7c0f !important;
}

.deposit-box {
    background: #ffffff !important;
    border: 3px solid #e4e6ea;
    border-radius: 12px;
}

.deposit-box h1 {
    color: #111316 !important;
}

.deposit-box p {
    color: #111316 !important;
}

.deposit-box .deposit-amount {
    color: #0668c2 !important;
}

.deposit-box>div p {
    color: #0668c2 !important;
}

.deposit-box a {
    color: #0668c2 !important;
    font-weight: 700;
}

#depositPage .auth-box .crypto-list li {
    text-align: left!important;
}

.status-pending {
    background: #ffffff !important;
    color: #111316 !important;
}

.status-success {
    color: #111316 !important;
}

/* Withdrawl */
#withdrawModal>div {
    background: #ffffff !important;
    border: 3px solid #e4e6ea;
    border-radius: 12px;
}

#withdrawModal h2 {
    color: #111316
}

#withdrawModal p {
    color: #111316 !important;
}

#withdrawForm>div li {
    color: #000000;
}

#withdrawForm .btn {
    background: linear-gradient(180deg, #fdfdfd 0%, #757679 100%) !important;
    box-shadow: rgba(17,19,22,0.3) 0px 0px 2px !important;
    color: #000000 !important;
}

#withdrawForm .btn:hover {
    transform: translateY(-2px) !important;
}

/* Commissions */
.commission-item {
    color: #000000;
}

#appWalletTopupModal .btn {
    background: linear-gradient(180deg, #fdfdfd 0%, #757679 100%) !important;
    box-shadow: rgba(17,19,22,0.3) 0px 0px 2px !important;
    color: #000000;
}

#appWalletTopupModal .btn:hover {
    transform: translateY(-2px);
}

#appWalletTopupModal span {
    color: #0f0e1a !important;
}

#appWalletTopupModal>div {
    background: #ffffff !important;
    border: 3px solid #e4e6ea;
    border-radius: 12px;
}

#appWalletTopupModal h2 {
    color: #111316 !important;
}

#appWalletTopupModal label {
    color: #111316 !important;
}

#walletAddress {
    color: #000000 !important;
}

#recentCommissions div {
    color: #111316 !important;
    background: #ffffff !important;
}

.commission-item {
    background: none !important;
    border: 1px solid #e4e6ea !important;

}

#recentCommissions strong {
    color: #111316 !important;
}

#recentCommissions .commission-positive {
    color: #4d7c0f !important;
}

.level-badge {
    background-color: #4D7C0F!important;
}

.referral-tree-item:last-child {
    color: #000000 !important;
}

.referral-tree-item strong {
    color: #111316 !important;
}

.referral-tree-item div {
    color: #000000 !important;
}

.referral-tree-item {
    background: #ffffff !important;
}

/* Top Up */
#topupModal>div {
    background: #ffffff !important;
}

#topupModal h2 {
    color: #111316
}

#topupModal label {
    color: #111316;
}

#topupModal .btn {
    background: linear-gradient(180deg, #fdfdfd 0%, #757679 100%) !important;
    box-shadow: rgba(17,19,22,0.3) 0px 0px 2px !important;
    color: #000000;
}

#topupModal .btn:hover {
    transform: translateY(-2px);
}

#recentCommissions div {
    color: #111316 !important;
}


/* Media Rules */
@media only screen and (max-width: 800px) {
    .dashboard-header img {
        display: block;
        max-width: 230px;
        max-height: 95px;
        width: auto;
        height: auto;
    }

    #recentCommissions div {
        display: flex;
        flex-direction: column;
    }

    .level-badge {
        margin: 0 !important;
    }

    .flip-card-front .flip-card-number {
        font-size: 1em !important;
    }

    .flip-card-back .flip-card-number {
        font-size: 1em !important;
    }

    .flip-card-name {
        font-size: 1em !important;
    }

}


/* Info Modal */
#balanceDisplay>div {
    color: #000000 !important;
    padding: 0px !important;
}

#reapBalance div {
    color: #000000 !important;
}

.apple,
.google,
.policy,
.terms,
.prohibited,
.faq {
    border: 1px solid #4D7C0F !important;
    background: #16181c !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-family: "Geist" !important;
    cursor: pointer !important;
    transition: 0.3s !important;
}

.apple:hover,
.google:hover,
.policy:hover,
.terms:hover,
.prohibited:hover,
.faq:hover {
    box-shadow: #c6f424ff 0px 0px 10px !important;
    border: 1px solid #c6f424ff!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%) !important;
    color: #000 !important;

}

#topupModal>div {
    background: #ffffff;
    border: 3px solid #e4e6ea;
    border-radius: 12px;
}

#appWalletTopupModal>div {
    background: #ffffff !important;
}

#infoModal {
    overflow: hidden !important;
}

#infoModal > div {
    background: #ffffff !important;
    border: 3px solid #e4e6ea;
    border-radius: 12px;
    max-height: 90vh !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

#infoModalTitle {
    color: #111316 !important;
    font-family: 'Geist', Arial, sans-serif;
    flex-shrink: 0;
}

/* IMPORTANT: this is the only scrollable area in the terms modal. */
#infoModalContent {
    color: #111316 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(90vh - 90px) !important;
    padding-right: 10px;
    scroll-behavior: smooth;
    flex: 1 1 auto;
}

/* Scrollbar */
#infoModalContent::-webkit-scrollbar {
    width: 10px;
}

#infoModalContent::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

#infoModalContent::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4D7C0F, #c6f424);
    border-radius: 10px;
}

#infoModalContent {
    scrollbar-width: thin;
    scrollbar-color: #c9ccd1 #f3f4f6;
}

/* ================================
   Vault27 Legal Popup
================================ */

#infoModalContent .v27-legal-popup {
    color: #111316;
    font-family: 'Geist', 'Geist', Arial, sans-serif;
    line-height: 1.65;
    max-width: 100%;
    overflow: visible !important;
    max-height: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Header */
#infoModalContent .v27-legal-popup .hero {
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f7f8 100%);
    border: 2px solid #e4e6ea;
}

#infoModalContent .v27-legal-popup h1 {
    margin: 0 0 8px 0;
    color: #111316;
    font-size: 1.8rem;
    font-family: 'Geist', Arial, sans-serif;
    text-transform: none;
}

#infoModalContent .v27-legal-popup .last-updated {
    color: #4d7c0f !important;
    font-weight: 700;
    margin-bottom: 18px;
}

#infoModalContent .v27-legal-popup .legal-notice {
    padding: 16px;
    border-left: 4px solid #4D7C0F;
    background: rgba(143,191,22,0.128);
    color: #111316;
    border-radius: 8px;
    font-weight: 600;
}

/* Table of Contents */
#infoModalContent .v27-legal-popup .toc {
    padding: 20px;
    margin-bottom: 28px;
    border-radius: 14px;
    background: #f3f4f6;
    border: 1px solid #e4e6ea;
    overflow: visible !important;
    max-height: none !important;
}

#infoModalContent .v27-legal-popup .toc-title {
    color: #4d7c0f !important;
    font-weight: 800;
    margin: 0 0 12px 0;
    font-family: 'Geist', Arial, sans-serif;
}

#infoModalContent .v27-legal-popup .toc a {
    display: block;
    color: #111316;
    text-decoration: none;
    padding: 7px 0;
    border-bottom: 1px solid rgba(17,19,22,0.1);
}

#infoModalContent .v27-legal-popup .toc a:hover {
    color: #4d7c0f;
}

#infoModalContent .v27-legal-popup .toc-sub {
    padding-left: 18px;
    font-size: 0.92rem;
    opacity: 0.85;
}

/* Sections */
#infoModalContent .v27-legal-popup .terms-section {
    margin-bottom: 30px;
    padding: 22px;
    border-radius: 14px;
    background: #f6f7f8;
    border: 1px solid #e4e6ea;
    overflow: visible !important;
}

#infoModalContent .v27-legal-popup h2 {
    color: #4d7c0f;
    font-size: 1.25rem;
    margin: 0 0 16px 0;
    font-family: 'Geist', Arial, sans-serif;
}

#infoModalContent .v27-legal-popup h3 {
    color: #4D7C0F;
    font-size: 1.05rem;
    margin: 22px 0 10px 0;
    font-family: 'Geist', Arial, sans-serif;
}

#infoModalContent .v27-legal-popup p {
    color: #111316 !important;
    margin: 0 0 14px 0;
}

#infoModalContent .v27-legal-popup ul,
#infoModalContent .v27-legal-popup ol {
    color: #111316 !important;
    padding-left: 22px;
    margin: 10px 0 16px 0;
}

#infoModalContent .v27-legal-popup li {
    color: #111316 !important;
    margin-bottom: 8px;
}

#infoModalContent .v27-legal-popup li::marker {
    color: #4d7c0f;
}

#infoModalContent .v27-legal-popup strong {
    color: #111316;
}

#infoModalContent .v27-legal-popup em {
    color: #4d7c0f;
}

/* Footer */
#infoModalContent .v27-legal-popup footer {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 2px solid #e4e6ea;
    color: rgba(17,19,22,0.825);
    text-align: center;
}

/* Anchor spacing */
#infoModalContent .v27-legal-popup section,
#infoModalContent .v27-legal-popup h3 {
    scroll-margin-top: 20px;
}

/* Mobile */
@media (max-width: 600px) {
    #infoModal > div {
        max-height: 92vh !important;
    }

    #infoModalContent {
        max-height: calc(92vh - 80px) !important;
        padding-right: 6px;
    }

    #infoModalContent .v27-legal-popup .hero,
    #infoModalContent .v27-legal-popup .toc,
    #infoModalContent .v27-legal-popup .terms-section {
        padding: 16px;
    }

    #infoModalContent .v27-legal-popup h1 {
        font-size: 1.45rem;
    }

    #infoModalContent .v27-legal-popup h2 {
        font-size: 1.1rem;
    }

    #infoModalContent .v27-legal-popup h3 {
        font-size: 1rem;
    }
}

/* ── Card carousel — responsive height on narrow phones ──
   Card aspect ratio = 1.586:1. Slide width = 88% of stack.
   Stack available width = 100vw - 96px (container 40 + card border+padding 56).
   So card height = (100vw - 96px) × 0.88 / 1.586 ≈ (100vw - 96px) × 0.555
   ─────────────────────────────────────────────────────── */
@media (max-width: 500px) {
    #cardStack {
        height: calc((100vw - 96px) * 0.555 + 10px) !important;
    }
    .card-swipe-slide {
        height: calc((100vw - 96px) * 0.555) !important;
    }
    .flip-card {
        height: calc((100vw - 96px) * 0.555) !important;
    }
}

/* ── Card Balance Banner — mobile responsive ── */
@media (max-width: 600px) {
    #cardBalanceBanner {
        padding: 14px 16px !important;
    }
    #cardBalanceBanner > div {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    #cardBalanceBanner > div > div:first-child {
        width: 100% !important;
        min-width: 0 !important;
    }
    #cardBalanceBanner > div > div:last-child {
        width: 100% !important;
        text-align: left !important;
        border-top: 1px solid rgba(17,19,22,0.1);
        padding-top: 10px;
        margin-top: 2px;
    }
    #cardBalanceCardImg {
        width: 72px !important;
        height: 45px !important;
    }
    #cardBalanceValue {
        font-size: 1.5em !important;
    }
    #cardBalanceTotalValue {
        font-size: 1.3em !important;
    }
    #balCardTrigger {
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* Referral Anchor */

.anchor-link {
    text-decoration: none !important;
    width: 100% !important;
    padding: 14px !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    min-height: 50px !important;
    font-size: 15px !important;
}

.anchor-link:hover {
    transform: translateY(-2px) !important;
}



.ref-stat-referrals .stat-value {
    margin-bottom: 30px !important;
}

html {
    scroll-behavior: smooth !important;
}

/*SCROLL BARS */

.ref-card-recent {
    max-height: 500px !important;
    overflow-y: scroll !important;
}

.ref-card-withdrawals {
    max-height: 500px !important;
    overflow-y: scroll !important;
}

.transactions-list {
    overflow-y: scroll !important;
    max-height: 500px !important;
}

.ref-card-tree {
    overflow-y: scroll !important;
    max-height: 500px !important;
}

/* Scrollbar Styling */

::-webkit-scrollbar-track {
    background-color: rgba(17,19,22,0.117) !important;
}

::-webkit-scrollbar-thumb {
    background: #4D7C0F !important;
    border-radius: 5px;
    border: 3px solid #4D7C0F;
}

::-webkit-scrollbar {
    width: 12px !important;
}

/* Admin */
#usersList strong {
    word-wrap: break-word !important;
}

.auth-container .logo h1 {
    color: #111316 !important;
}

/* Apertum Lists */

.card-deposit ul {
    color: #111316 !important;
    padding-left: 20px !important;
    font-size: 1em !important;
}

.home-list p {
    color: #111316 !important;
    padding-left: 20px !important;
}

/* Password Reset */
.reset-password-link {
    color: #111316 !important;
    margin-top: 15px;
}

.reset-password-link a {
    color: #4d7c0f !important;
    transition: 0.3s !important;
}

.reset-password-link a:hover {
    color: #4D7C0F !important;
}

#successMessage .btn-primary {
    font-size: 12px !important;
    text-decoration: none !important;
}

/* Deposit Required Revenue Share Box */
.revenue-share-section {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 40px !important;
    width: 100% !important;

}

.share-message {
    font-weight: 600 !important;
}

.revenue-share-section .telegram-button {
    margin-top: 20px;
}

.revenue-share-section .telegram-button-text {
    color: #111316 !important;
    font-size: 18px;
}

/* Notification Popup */

.notification-content {
    border-radius: 12px !important;
    padding: 0px !important;
    width: 100% !important;
    background: #f6f7f8!important;
    padding: 15px!important;
    border: 3px solid #e4e6ea!important;
}

.notification-header {
    border-bottom: 3px solid #e4e6ea!important;
}

.notification-title {
    color: #111316!important;
}

#notificationBody {
    background: #ffffff!important;
    border: 3px solid #e4e6ea!important;
}

.notification-close-btn, #exportBtn, #exportXlsBtn {
    background: #f1f2f4!important;
    border: 1px solid #4D7C0F!important;
    transition: 0.3s;
}

.notification-close-btn:hover, #exportBtn:hover, #exportXlsBtn:hover { 
    box-shadow: #c6f424ff 0px 0px 10px!important;
    border: 1px solid #c6f424!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%)!important;
    color: #000000!important;
}

.notification-icon {
    background: rgba(17,19,22,0.0) !important;
}


.notification-icon {
    background: rgba(17,19,22,0.04)!important;
}

.notification-body {
    color: #000000!important;
}

/* Pop Ups */

#infoModalContent li {
    color: #111316;
}

#infoModalContent h4 {
    color: #111316!important;
}

#infoModalContent a {
    color: #4d7c0f!important;
    transition: 0.3s;
}

#infoModalContent a:hover {
    color: #4D7C0F!important;
}

/* Card Effects */




#cardSection>div:hover {
    box-shadow: none !important;
}

.onyx-card-section>div>div {
    padding-top: 20px;
    color: #111316 !important;
}

#cardSection>div:hover {
    box-shadow: none !important;
}

#balanceDisplay {
    color: #111316 !important;
    border: 1px solid #067ce5 !important;
}

#balanceDisplay div {
    color: #111316 !important;
}


.card-section #balanceDisplay {
    aspect-ratio: 2 / 0 !important;
    color: #111316 !important;
}

.card-section #balanceDisplay:after {
    content: none !important;
    animation: none !important;
}



/* Crypto Icons */
.crypto-list {
    list-style: none;
    /* Remove default bullets */
    padding: 0;
}

.crypto-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
}

.crypto-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Individual Icons */
.crypto-list .bep::before {
    background-image: url('/frontend/img/icon_bep.png');
}

.crypto-list .usdt::before {
    background-image: url('/frontend/img/icon_usdt.png');
}

.crypto-list .usdc::before {
    background-image: url('/frontend/img/icon_usdc.png');
}

.crypto-list .wusdt::before {
    background-image: url('/frontend/img/icon_aptm.png');
}

.crypto-list .aptm::before {
    background-image: url('/frontend/img/icon_aptm.png');
}

.crypto-list .waptm::before {
    background-image: url('/frontend/img/icon_aptm.png');
}

.crypto-list .btaf::before {
    background-image: url('/frontend/img/icon_btaf.png');
}

.crypto-list .vow::before {
    background-image: url('/frontend/img/icon_vow.png');
}

.crypto-list .vdollar::before {
    background-image: url('/frontend/img/icon_v$.png');
}




/* ============================================================
   card-flip.css  —  OnyxCard flip animation
   Place this file at: css/card-flip.css
   ============================================================ 


 ----------------------------------------------------------
   1. Flip card wrapper
   Sets the 3-D perspective for the child elements.
   Width / height here should match whatever looks right in
   the existing layout — adjust as needed.
   ---------------------------------------------------------- */
.flip-card {
    perspective: 1200px;
    width: 100%;
    height: 205px;
    margin-bottom: 15px;
    overflow: hidden !important;
}


/* ----------------------------------------------------------
   2. The inner container — this is the element that rotates
   ---------------------------------------------------------- */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;

    /* Keeps both faces in 3-D space */
    transform-style: preserve-3d;

    /* The actual animation — 0.7 s feels card-like, ease-in-out
       gives it a natural weight. Change duration here only. */
    transition: transform 0.7s ease-in-out;
}

/* Adding this class (via JS) triggers the flip */
.flip-card-inner.is-flipped {
    transform: rotateY(180deg);
}


/* ----------------------------------------------------------
   3. Shared styles for both faces
   ---------------------------------------------------------- */
.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    /* shorthand for top/right/bottom/left: 0 */
    border-radius: 12px;
    padding: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #4D7C0F, #16181C);

    /* Each face must hide its reverse side */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Safari */

    /* Stack content vertically */
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* Prevent text selection on the sensitive back face */
    user-select: none;
    overflow: hidden;
}

/* ----------------------------------------------------------
   4. Back face — starts rotated 180° so it's hidden
   When the inner flips to 180° these cancel out → visible
   ---------------------------------------------------------- */
.flip-card-back {
    transform: rotateY(180deg);
    /* Slightly different shimmer so users notice it's the back */
    background: linear-gradient(135deg, #16181C, #4D7C0F);
    /* Allow text selection on the back so users can copy manually */
    user-select: text;
}

/* Backgrounds */

.flip-card-front {
    background-image: url('/frontend/img/card_front_template2.png') !important;
    background-size: contain !important;
    /* Fill container */
    background-position: top;
    /* Center image */
    background-repeat: no-repeat !important;
    background-color: none !important;
    aspect-ratio: 1.586 / 1;
}

.flip-card-back {
    background-image: url('/frontend/img/card_back_template.png') !important;
    background-size: contain !important;
    /* Fill container */
    background-position: top;
    /* Center image */
    background-repeat: no-repeat !important;
    background-color: none !important;
    aspect-ratio: 1.586 / 1;
}

/* ----------------------------------------------------------
   4. Back face — starts rotated 180° so it's hidden
   When the inner flips to 180° these cancel out → visible
   ---------------------------------------------------------- */
.flip-card-back {
    transform: rotateY(180deg);
    /* Slightly different shimmer so users notice it's the back */

    /* Allow text selection on the back so users can copy manually */
    user-select: text;
}

/* ----------------------------------------------------------
   5. Card content typography
   ---------------------------------------------------------- */
.flip-card-logo {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.85;
    text-transform: uppercase;
    color: #000000!important;
}

.flip-card-back {
    font-size: 12px!important;
}

.flip-card-back .flip-card-logo {
    display: none!important;
}

.flip-card-back .flip-card-footer {
    padding-top: 0px!important;
    margin-bottom: 20px!important;
}

.flip-card-back .flip-card-copy-row {
    margin-bottom: 20px!important;
}

.flip-card-front .flip-card-logo {
    display: none !important;
}

.flip-card-front span:last-child {
    display: none!important;
}

.flip-card-number {
    font-family: 'Geist Mono', monospace;
    font-size: 1.25em;
    letter-spacing: 0.08em;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000!important;
}

.flip-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.85em;
    gap: 10px;
    flex-wrap: wrap;
    color: #000000!important;
}

.flip-card-name {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000000!important;
}

.flip-card-expiry,
.flip-card-cvv {
    opacity: 0.9;
    font-family: 'Geist Mono', monospace;
    color: #000000!important;
}


/* ----------------------------------------------------------
   6. Copy buttons on the back face
   ---------------------------------------------------------- */
.flip-card-copy-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.flip-copy-btn {
    background: rgba(17,19,22,0.06);
    border: 1px solid rgba(17,19,22,0.35);
    color: #111316;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75em;
    cursor: pointer;
    transition: 0.2s;
}

.flip-copy-btn:hover {
    background: rgba(17,19,22,0.06);
}

.flip-card-front .flip-card-number {
    margin-top: 40px !important;

}

.flip-card-back .flip-card-number {
    font-size: 1.75em !important;
}

.flip-card-back .flip-card-expiry {
    font-size: 1.25em !important;
}

.flip-card-back .flip-card-name {
    font-size: 1.25em !important;
}

.flip-card-back .flip-card-cvv {
    font-size: 1.25em !important;
}

/* Card text colour override — applied when card background is dark */
.card-text-white .flip-card-logo,
.card-text-white .flip-card-number,
.card-text-white .flip-card-footer,
.card-text-white .flip-card-name,
.card-text-white .flip-card-expiry,
.card-text-white .flip-card-cvv {
    color: #ffffff !important;
}

/* ----------------------------------------------------------
   7. Reduced-motion accessibility
   If the user has "prefers-reduced-motion" enabled in their
   OS, skip the animation entirely — just snap to the result.
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .flip-card-inner {
        transition: none;
    }
}

.flip-card-inner {
    position: relative;
    /* overflow: hidden removed — it breaks preserve-3d and causes the front face
       to bleed through the back during the flip animation */
}

.flip-card-front::after,
.flip-card-back::after {
    content: "";
    position: absolute;
    inset: -50%;
    pointer-events: none;

    background: linear-gradient(90deg,
            transparent 0%,
            rgba(17,19,22,0.06) 80%,
            transparent 0%);

    transform: rotate(360deg);
    animation: lightSweep 2s infinite;
}

@keyframes lightSweep {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }

    100% {
        transform: translateX(100%) rotate(25deg);
    }
}

/* Dual Card Updates */

#rainFlipCardInner .flip-card-front {
    background-image: url('/frontend/img/card_front_template_pink.png') !important;
    background-size: contain !important;
    /* Fill container */
    background-position: top;
    /* Center image */
    background-repeat: no-repeat !important;
    background-color: none !important;
    aspect-ratio: 1.586 / 1;
}

#rainFlipCardInner .flip-card-back {
    background-image: url('/frontend/img/card_back_template_pink.png') !important;
    background-size: contain !important;
    /* Fill container */
    background-position: top;
    /* Center image */
    background-repeat: no-repeat !important;
    background-color: none !important;
    aspect-ratio: 1.586 / 1;
}

.card-selector-btn {
    background: linear-gradient(180deg, #fdfdfd 0%, #757679 100%) !important;
    box-shadow: rgba(17,19,22,0.3) 0px 0px 2px !important;
    color: #000000 !important;
    border: none !important;

}

.card-selector-btn.active {
    background-color: #16181c !important;
    border: 1px solid #067ce5 !important;
}

#rainFlipCardInner .flip-card-front {
    background-image: url('/frontend/img/card_front_template_pink.png') !important;
    background-size: contain !important;
    /* Fill container */
    background-position: top !important;
    /* Center image */
    background-repeat: no-repeat !important;
    background-color: none !important;
    aspect-ratio: 1.586 / 1;
}

#rainFlipCardInner .flip-card-back {
    background-image: url('/frontend/img/card_back_template_pink.png') !important;
    background-size: contain !important;
    /* Fill container */
    background-position: top !important;
    /* Center image */
    background-repeat: no-repeat !important;
    background-color: none !important;
    aspect-ratio: 1.586 / 1;
}

#rainBalanceDisplay {
    background-color: #ffffff !important;
    color: #111316 !important;
    border: 1px solid #067ce5 !important;
    padding: none !important;
}

#rainBalanceDisplay>div {
    padding-top: 0px !important;
    color: #111316 !important;
}

#rainBalanceValue div {
    color: #111316 !important;
}

.card-selector .active {
    background: #16181c !important;
    border: 2px solid #067ce5 !important;
    color: #ffffff !important;
}

.card-selector-btn {
    border: 2px solid #e4e6ea !important;
}

/* Rain OTP */

#rainOtpWaiting {
    background: #ffffff !important;
    border: 1px solid #067ce5 !important;
    font-size: 16px !important;
}

#rainOtpWaiting button {
    background: linear-gradient(180deg, #fdfdfd 0%, #757679 100%) !important;
    box-shadow: rgba(17,19,22,0.3) 0px 0px 2px !important;
    color: #000000 !important;
    border: none !important;
    transition: 0.3s !important;
}

#rainOtpWaiting button:hover {
    transform: translateY(-2px);
}

.rain-otp-display {
    background: #ffffff !important;
    border: 1px solid #067ce5 !important;
    font-size: 16px !important;
}

.rain-otp-display button {
    background: linear-gradient(180deg, #fdfdfd 0%, #757679 100%) !important;
    box-shadow: rgba(17,19,22,0.3) 0px 0px 2px !important;
    color: #000000 !important;
    border: none !important;
    transition: 0.3s !important;
}

#rain-otp-display button:hover {
    transform: translateY(-2px);
}


/* Admin Dashbard */

.admin-dash-box {
    min-width: 100% !important
}

/* Pop Up Notification */

#notificationBody {
    border-radius: 12px !important;
    padding: 15px !important;
    width: 90% !important;
    margin: 20px !important;
    text-align: center !important;
}

.notification-content {
    padding: 30px !important;
    width: 100% !important;
    padding: 0px !important;
}

.notification-icon {
    background: #ffffff !important;
}


.notification-close-btn {
    margin: 10px !important;
}

.notification-header {
    text-align: center !important;
}

/* Button Flags */
.flag-icon {
    width: 20px !important;
    height: 14px !important;
    object-fit: cover !important;
    border-radius: 2px !important;
}

.card-selector-btn {
    display: inline-flex;
    gap: 8px;
    justify-content: center;
}




.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notification-modal.show {
    display: flex;
}

.notification-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(17,19,22,0.075);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.notification-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4D7C0F, #16181C);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.notification-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.notification-body {
    color: #555;
    line-height: 1.7;
    font-size: 1em;
    margin-bottom: 25px;
    max-height: 300px;
    overflow-y: auto;
}

.notification-body p {
    margin: 0 0 10px 0;
}

.notification-body p:last-child {
    margin-bottom: 0;
}

.notification-footer {
    display: flex;
    justify-content: flex-end;
}

.notification-close-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #4D7C0F, #16181C);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.notification-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(143,191,22,0.64);
}

.card-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.card-selector-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    color: #718096;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.card-selector-btn.active {
    border-color: #4D7C0F;
    background: #4D7C0F;
    color: white;
}

/* ── Wasabi Mastercard block ─────────────────────────────────────────── */
.card-wasabi {
    position: relative;
    background: #ffffff;
    color: #111316;
    overflow: visible;
    border: 3px solid #4D7C0F;
}

.card-wasabi .card-title {
    color: #111316;
}

.card-wasabi button {
    min-width: 100%;
}
/* allow side-by-side flex buttons to shrink */
.card-wasabi #wasabiRevealActions button {
    min-width: 0 !important;
}

.wasabi-card-badge {
    position: absolute;
    top: -10px;
    right: 18px;
    background: #4D7C0F!important;
    color: white;
    font-size: 0.65em;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px #4D7C0F;
}

#wasabiCopyNumberBtn {
    min-width: 50%!important;
}

#wasabiCopyCvvBtn {
    min-width: 50%!important;
}

/* ── Wasabi KYC form ─────────────────────────────────────────────────── */
.wasabi-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.82em;
    font-weight: 700;
    color: rgba(17,19,22,0.775);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wasabi-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(17,19,22,0.15);
    border-radius: 8px;
    font-size: 0.95em;
    color: #111316;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: "Geist", sans-serif;
}

.wasabi-input option {
    background: #ffffff;
    color: #111316;
}

.wasabi-input:focus {
    outline: none;
    border-color: #c6f424;
    box-shadow: 0 0 0 3px rgba(198,244,36,0.12);
    background: #ffffff;
}

.wasabi-step-indicator {
    flex: 1;
    text-align: center;
    padding: 9px 4px;
    font-size: 0.75em;
    font-weight: 700;
    color: rgba(17,19,22,0.675);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.25s;
}

.wasabi-step-active {
    background: linear-gradient(135deg, #c6f424, #a8d400);
    color: #000;
}

.wasabi-step-done {
    background: rgba(198,244,36,0.4);
    color: #4d7c0f;
}

.wasabi-btn-next {
    padding: 11px 26px;
    background: linear-gradient(135deg, #c6f424, #a8d400);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95em;
    cursor: pointer;
    font-family: "Geist", sans-serif;
    transition: transform 0.15s, box-shadow 0.15s;
}

.wasabi-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(198,244,36,0.45);
}

.wasabi-btn-back {
    padding: 11px 22px;
    background: rgba(17,19,22,0.042);
    color: rgba(17,19,22,0.825);
    border: 1px solid rgba(17,19,22,0.15);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.2s;
}

.wasabi-btn-back:hover {
    background: rgba(17,19,22,0.06);
    color: #111316;
}

.wasabi-btn-submit {
    padding: 12px 28px;
    background: linear-gradient(135deg, #c6f424, #a8d400);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95em;
    cursor: pointer;
    font-family: "Geist", sans-serif;
    transition: transform 0.15s, box-shadow 0.15s;
}

.wasabi-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(198,244,36,0.45);
}

.wasabi-btn-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

#wasabiDropZoneFront:hover,
#wasabiDropZoneBack:hover,
#wasabiDropZoneSelfie:hover {
    border-color: #c6f424;
    background: rgba(198,244,36,0.11);
}

/* ── Wasabi card action buttons (inside dark block) ──────────────────── */
.wasabi-action-btn {
    display: inline-block;
    padding: 11px 22px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
}

.wasabi-apply-btn {
    background: linear-gradient(90deg, #4D7C0F, #16181C)!important;
    border: none!important;
    color: #ffffff !important;
    font-family: "Geist";
    transition: 0,3s;
}

.wasabi-apply-btn:hover {
    box-shadow: #c6f424ff 0px 0px 10px !important;
    border: none!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%) !important;
    color: #000 !important;
}

.wasabi-issue-btn {
    border: 1px solid #c6f424ff!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%) !important;
    color: #000 !important;
    font-family: "Geist";
}

.wasabi-issue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px #c6f424ff;
}

.wasabi-status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    background-color: #ffffff!important
}

.wasabi-status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #b45309;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.wasabi-status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.wasabi-status-applied {
    background: rgba(99, 102, 241, 0.2);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

/* Footer*/
.vault-footer {
    padding: 10px;
    margin: 30px 0px;
    text-align: center!important;
    justify-content: center;
    background: none!important;
    border: none!important;
}

.vault-footer p {
    color: #111316 !important;
}

.vault-footer h1 {
    color: #111316;
    margin-bottom: 10px;
    font-family: "Geist";
    text-transform: uppercase;
}

.vault-footer>div {
    flex-direction: column;
}

/* Forgot Password */

#forgotForm button{
    width: 100%!important;
}

/* Chat Bot */

#v27-launcher {
    background: #c6f424!important;

}

#v27-header-title {
    font-family: "Geist"!important;
    color: #4D7C0F!important;
}

#v27-avatar {
    background-color: #4D7C0F!important;
}

#v27-input {
    border-color: #4D7C0F!important;
}

#v27-input:focus {
    border-color: #4D7C0F!important;
}

#v27-send {
    background: #c6f424!important;
}

#v27-header {
    background-color: #08080eff!important;
    border: 1px solid #1e152f!important;
}

#v27-input-row {
    background-color: #08080eff!important;
    border: 1px solid #1e152f!important;
}

#v27-messages {
    background-color: #0f0e1a!important;
    border: 1px solid #1e152f!important;
}

#v27-widget {
    border: 1x solid #1e152f!important;
}

.v27-user {
    background: #c6f424!important;
}

#v27-header-sub {
    color: #ffffff!important;
}

#v27-close {
    color: #4D7C0F!important;
}

/* Top Up Button */

#topwalbut {
    box-shadow: #c6f424ff 0px 0px 10px!important;
    border: none!important;
    background: linear-gradient(180deg, #c6f424ff 0%, #718d16ff 100%)!important;
    color: #000000!important;
    text-transform: uppercase!important;
}

#topwalbut:hover {
    background: linear-gradient(90deg, #4D7C0F, #16181C)!important;
    border: none!important;
    color: #ffffff!important;
}


/* Hide Things for later */
.transaction-link {
    display: none!important;
}

/* Wasabi Balance */
#wasabiBalanceDisplay {
    border: 3px solid #c6f424ff!important;
    background-color: #718d16ff!important;

}

/* Card Balance */
#cardBalanceBanner {
    background: #f6f7f8!important;
    border: 3px solid #e4e6ea!important;
}

#cardBalanceBanner > div > div > div > div {
    color: #111316!important;
}

#cardBalanceStatus {
    color: #111316!important;
}

/* Card Ledger and Extra Buttons */

.btn-logout {
    padding: 12px 16px;
    background: linear-gradient(180deg, #f6f7f8 0%, #eef0f2 100%) !important;
    border-color: #e4e6ea !important;
    color: #111316 !important;
}

.admin-section td {
    color: #000000!important;
}

.ledger-wrap {
    margin: 0px!important;
    padding: 0px!important;
    max-width: 100%!important;
}

.ledger-wrap td {
    color: #111316!important;
}

.ledger-wrap th {
    color: #111316!important;
}
.tbl-wrap div {
    color: #4D7C0F !important
}

#balDiffBlock .lbl {
    color: #111316!important;
}

.bal-chip .lbl {
    color: #111316!important;
}

.info-chip .lbl {
    color: #111316!important;
}

/* Recapcha */

.puzzle-piece {
    background: #4D7C0F!important;
    box-shadow: 0 2px 10px rgba(143,191,22,0.72)!important;
    
}

.puzzle-gap {
    border-left: 2px dashed #c6f424!important;
}

.captcha-ok {
    color: #4d7c0f!important;
}

.puzzle-gap svg {
    stroke: #4d7c0f!important;
}

/* New Features */

.featured-badge {
    position: absolute;
    top: -10px;
    right: 18px;
    background: #4D7C0F!important;
    color: white;
    font-size: 0.65em;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px #4D7C0F;
}

/* Footer Fix */
.v27-footer-link {
    font-family: "Geist"!important;
}

/* ==========================================================================
   V27 LITE: "Graphite" theme
   Original Vault27 layout, restyled:
     • Type: Geist for everything, Geist Mono for figures and addresses
     • Canvas #f3f4f6, white panels, 1px #e4e6ea borders, 10px radius
     • Graphite #16181c: header, footer, wallet balance panel, dark buttons
     • Vault27 green #c6f424: main actions and highlights only, always with
       dark text on top. Olive #4d7c0f for positive amounts and "active" states.
   Overrides are prefixed "html body" so they beat the page's own <style>
   blocks without editing them.
   ========================================================================== */

:root {
    --g-ink: #111316;
    --g-ink-2: #4b5058;
    --g-muted: #6b7079;
    --g-faint: #9aa0a8;
    --g-canvas: #f3f4f6;
    --g-panel: #ffffff;
    --g-line: #e4e6ea;
    --g-line-2: #eceef1;
    --g-graphite: #16181c;
    --g-graphite-2: #24272d;
    --g-graphite-line: #2a2d33;
    --g-lime: #c6f424;
    --g-lime-hover: #b5e01c;
    --g-olive: #4d7c0f;
    --g-r: 10px;
    --g-r-s: 7px;
    --g-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --g-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
html body {
    background: var(--g-canvas) !important;
    color: var(--g-ink);
    font-family: var(--g-sans) !important;
    font-feature-settings: "tnum" 1;
    -webkit-font-smoothing: antialiased;
}
html body button, html body input, html body select, html body textarea { font-family: var(--g-sans); }
html body #v27ParticleCanvas, html body::before { display: none !important; }

html body h1, html body h2, html body h3, html body h4 {
    font-family: var(--g-sans) !important;
    text-transform: none !important;
    letter-spacing: -0.01em;
}

/* ── Panels ───────────────────────────────────────────────────────────── */
html body .card,
html body .transactions-list,
html body .stat-card,
html body .deposit-box,
html body .info-chip, html body .bal-chip, html body .tbl-wrap {
    background: var(--g-panel) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: var(--g-r) !important;
    box-shadow: 0 1px 2px rgba(16,18,22,0.04) !important;
    padding: 20px 22px;
}
html body .card h2,
html body .card .card-title,
html body .transactions-list h2,
html body .section-title {
    color: var(--g-ink) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 14px;
}
html body .deposit-bar-sub,
html body .v27-mode-toggle-hint,
html body .card p { color: var(--g-muted) !important; }
html body .card-wasabi { border: 1px solid var(--g-line) !important; }

/* ── Header: graphite bar (keeps the white logo) ──────────────────────── */
html body #v27-header {
    background: var(--g-graphite) !important;
    border: none !important;
    border-bottom: 1px solid var(--g-graphite) !important;
    box-shadow: none !important;
    backdrop-filter: none;
}
html body .h-nav-btn { color: #c9ccd1 !important; font-family: var(--g-sans); font-size: 13px; border-radius: var(--g-r-s); }
html body .h-nav-btn:hover { background: var(--g-graphite-2) !important; color: #fff !important; }
html body .h-nav-btn .h-icon { display: inline-flex; color: var(--g-faint); }
html body .h-nav-btn.h-accent { color: var(--g-lime) !important; }
html body .h-nav-btn.h-accent .h-icon { color: var(--g-lime); }
html body .h-nav-btn.h-logout { color: var(--g-faint) !important; border-color: var(--g-graphite-line) !important; }
html body .h-divider { background: var(--g-graphite-line) !important; }
html body .h-user-pill { background: var(--g-graphite-2) !important; border-color: var(--g-graphite-line) !important; }
html body .h-avatar { background: var(--g-lime) !important; color: var(--g-graphite) !important; }
html body .h-email, html body .h-mobile-user-email { color: #c9ccd1 !important; }
html body #v27-mobile-menu { background: var(--g-graphite) !important; border-bottom: 1px solid var(--g-graphite-line) !important; }
html body .h-mobile-item { color: #c9ccd1 !important; }
html body .h-mobile-item .h-icon { display: inline-flex; color: var(--g-faint); }
html body .h-mobile-item.h-accent, html body .h-mobile-item.h-accent .h-icon { color: var(--g-lime) !important; }
html body .h-lite-tag {
    font-family: var(--g-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--g-graphite);
    background: var(--g-lime);
    padding: 3px 7px;
    border-radius: 5px;
    line-height: 1;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
html body .btn,
html body .btn-primary,
html body .btn-copy,
html body .card-section > div > div > button {
    font-family: var(--g-sans) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: var(--g-r-s) !important;
    background: #ffffff !important;
    color: var(--g-ink) !important;
    border: 1px solid #d9dce1 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
html body .btn:hover,
html body .btn-copy:hover,
html body .card-section > div > div > button:hover {
    background: #f6f7f8 !important;
    color: var(--g-ink) !important;
    border-color: #c9ccd1 !important;
    box-shadow: none !important;
    transform: none !important;
}
/* Primary actions: Vault27 green, dark label */
html body button[onclick^="walletBarTopUp"],
html body #topwalbut,
html body #balanceBtn,
html body .wasabi-apply-btn,
html body .wasabi-issue-btn,
html body .wasabi-btn-next,
html body .wasabi-btn-submit,
html body .v27-tour-btn.primary,
html body .card-advert button,
html body .notification-close-btn {
    background: var(--g-lime) !important;
    color: var(--g-graphite) !important;
    border: 1px solid var(--g-lime) !important;
    font-family: var(--g-sans) !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}
html body button[onclick^="walletBarTopUp"]:hover,
html body #topwalbut:hover,
html body #balanceBtn:hover,
html body .wasabi-apply-btn:hover,
html body .wasabi-issue-btn:hover,
html body .v27-tour-btn.primary:hover,
html body .card-advert button:hover {
    background: var(--g-lime-hover) !important;
    border-color: var(--g-lime-hover) !important;
    color: var(--g-graphite) !important;
    box-shadow: none !important;
    transform: none !important;
}
html body .btn-logout, html body #goBackBtn {
    background: #fff !important; color: var(--g-ink) !important; border: 1px solid #d9dce1 !important;
}
html body .v27-tour-btn.secondary { background: #f1f2f4 !important; color: var(--g-ink-2) !important; }

/* Info panel: plain list rows instead of coloured buttons */
html body .card-info .btn,
html body .card-info .telegram-button {
    background: #fff !important;
    color: var(--g-ink) !important;
    border: 1px solid var(--g-line) !important;
    justify-content: flex-start !important;
    padding: 11px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: var(--g-r-s) !important;
    position: relative;
    box-shadow: none !important;
}
html body .card-info .btn::after,
html body .card-info .telegram-button::after {
    content: "";
    position: absolute; right: 14px; top: 50%;
    width: 6px; height: 6px;
    border-right: 1.5px solid var(--g-faint); border-top: 1.5px solid var(--g-faint);
    transform: translateY(-50%) rotate(45deg);
}
html body .card-info .btn:hover,
html body .card-info .telegram-button:hover { background: #f6f7f8 !important; color: var(--g-ink) !important; border-color: #d9dce1 !important; }
html body .card-info .btn > span:first-child:empty { display: none; }
html body .card-info .telegram-button img { width: 20px !important; height: 20px !important; }
html body .card-info > div { gap: 8px !important; }

/* ── Deposit address ──────────────────────────────────────────────────── */
html body .wallet-address {
    font-family: var(--g-mono) !important;
    background: #f6f7f8 !important;
    color: var(--g-ink) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: var(--g-r-s) !important;
}
html body .deposit-chip {
    background: #fff !important;
    border: 1px solid var(--g-line) !important;
    border-radius: var(--g-r-s) !important;
    color: var(--g-ink) !important;
    font-weight: 600 !important;
}
html body .deposit-chip em { color: var(--g-faint) !important; font-weight: 400; }
html body .deposit-chip-icon { background-color: #f1f2f4 !important; }
html body .deposit-chip:hover { border-color: #c9ccd1 !important; background: #fafafa !important; }
html body .deposit-chip.chip-stabilization-alert { border-color: #d9ea9f !important; background: #fbfdf2 !important; animation: none !important; }
html body .chip-info-btn { background: var(--g-lime) !important; color: var(--g-graphite) !important; animation: none !important; }

/* ── Wallet balance: the one graphite panel ───────────────────────────── */
html body .card-wallet-summary-bar {
    background: var(--g-graphite) !important;
    border-color: var(--g-graphite) !important;
    color: #fff !important;
}
html body .card-wallet-summary-bar .card-title,
html body .card-wallet-summary-bar h2 { color: #fff !important; }
html body .card-wallet-summary-bar .top-up-wallet { color: var(--g-faint) !important; font-family: var(--g-sans) !important; font-size: 13px !important; font-weight: 400 !important; }
html body .card-wallet-summary-bar .v27-summary-label,
html body .card-wallet-summary-bar .card-label,
html body .card-wallet-summary-bar #walletBalanceConverted,
html body .card-wallet-summary-bar #cardBalanceTotalConverted,
html body .card-wallet-summary-bar #cardBalanceStatusBar { color: var(--g-faint) !important; }
html body .card-wallet-summary-bar .balance-amount {
    color: #fff !important;
    font-family: var(--g-mono) !important;
    font-weight: 500 !important;
    letter-spacing: -0.04em;
}
html body #cardBalanceTotalValueBar { color: var(--g-lime) !important; font-family: var(--g-mono) !important; font-weight: 500 !important; }
html body .card-wallet-summary-bar select {
    background: var(--g-graphite-2) !important;
    color: #c9ccd1 !important;
    border: 1px solid var(--g-graphite-line) !important;
}
html body .card-wallet-summary-bar select option { background: var(--g-graphite) !important; color: #fff; }
html body .wallet-summary-divider { background: var(--g-graphite-line) !important; }
html body .card-wallet-summary-bar button.send-funds-button {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid #3a3e45 !important;
}
html body .card-wallet-summary-bar button.send-funds-button:hover { background: var(--g-graphite-2) !important; }

/* ── Card panels ──────────────────────────────────────────────────────── */
html body #cardBalanceValue, html body #cardBalanceValueBottom { color: var(--g-ink) !important; font-family: var(--g-mono) !important; font-weight: 500 !important; }
html body #cardBalanceTotalValueBottom { color: var(--g-ink) !important; font-family: var(--g-mono) !important; }
html body .v27-summary-label { color: var(--g-muted) !important; letter-spacing: 0.02em !important; text-transform: none !important; font-size: 12.5px !important; }
html body .wasabi-card-badge, html body .featured-badge, html body .level-badge {
    background: var(--g-lime) !important; color: var(--g-graphite) !important; box-shadow: none !important;
    font-family: var(--g-mono); letter-spacing: 0.04em;
}
html body #balCardTrigger, html body .v27-tx-card-trigger {
    background: #fff !important; border: 1px solid var(--g-line) !important;
}
html body #balCardTriggerLabel, html body .v27-tx-card-name { color: var(--g-ink) !important; }

/* Physical preorder advert */
html body .card-advert { background: #fff !important; }

/* ── Mode toggle ──────────────────────────────────────────────────────── */
html body .v27-mode-toggle { background: #fff !important; border: 1px solid var(--g-line) !important; border-radius: 9px !important; }
html body .v27-mode-thumb { background: var(--g-graphite) !important; box-shadow: none !important; border-radius: 6px !important; }
html body .v27-mode-btn { font-family: var(--g-sans) !important; font-weight: 500 !important; color: var(--g-muted) !important; border-radius: 6px !important; letter-spacing: 0 !important; }
html body .v27-mode-btn.active { color: #fff !important; }

/* ── Activity tabs: underline style ───────────────────────────────────── */
html body .v27-tx-tabs { gap: 20px !important; border-bottom: 1px solid var(--g-line-2); margin-bottom: 8px !important; }
html body .v27-tx-tab {
    flex: 0 0 auto !important;
    background: none !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    font-family: var(--g-sans) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--g-muted) !important;
    margin-bottom: -1px;
}
html body .v27-tx-tab.active { color: var(--g-ink) !important; border-bottom-color: var(--g-ink) !important; background: none !important; }
html body .transaction-item { border-bottom: 1px solid var(--g-line-2) !important; }
html body .transaction-amount { color: var(--g-olive) !important; font-family: var(--g-mono) !important; font-weight: 500 !important; }
html body .transaction-from { font-family: var(--g-mono) !important; color: var(--g-muted) !important; }
html body .transaction-date { color: var(--g-muted) !important; }

/* ── Ad slider: graphite slides with green highlights ─────────────────── */
html body .adslide-bg-1, html body .adslide-bg-2, html body .adslide-bg-3, html body .adslide-bg-4 { background: var(--g-graphite) !important; }
html body .adslide-bg-1::after, html body .adslide-bg-2::after,
html body .adslide-bg-3::after, html body .adslide-bg-4::after { content: none !important; }
html body .adslide-tag {
    color: var(--g-graphite) !important; background: var(--g-lime) !important; border: none !important;
    font-family: var(--g-mono) !important; letter-spacing: 0.06em !important; border-radius: 5px !important;
}
html body .card .adslide-heading { color: #fff !important; font-size: 22px !important; font-family: var(--g-sans) !important; font-weight: 600 !important; }
html body .card .adslide-heading span { color: var(--g-lime) !important; }
html body .card .adslide-body { color: var(--g-faint) !important; }
html body .adslide-btn { background: var(--g-lime) !important; color: var(--g-graphite) !important; border: none !important; border-radius: var(--g-r-s) !important; font-family: var(--g-sans) !important; font-weight: 600 !important; }
html body .adslider-dots { background: var(--g-graphite) !important; border-top: 1px solid var(--g-graphite-line); }
html body .adslider-dot { background: #3a3e45 !important; }
html body .adslider-dot.active { background: var(--g-lime) !important; }

/* ── Modals & tour ────────────────────────────────────────────────────── */
html body :is(#infoModal, #addCardModal, #freezeCardModal, #notificationModal, #rejectReasonModal,
              #sendFundsModal, #wasabiApplyModal, #wasabiTopupModal, #topupModal,
              #appWalletTopupModal, #withdrawModal) > div,
html body #v27InfoModalBox,
html body #v27TourCard,
html body #v27TourWelcome,
html body .notification-content {
    background: #fff !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(16,18,22,0.18) !important;
}
html body #v27TourStepLabel { color: var(--g-olive) !important; font-family: var(--g-mono) !important; }
html body #v27TourTitle, html body #v27TourWelcome h2 { color: var(--g-ink) !important; font-family: var(--g-sans) !important; font-weight: 600 !important; }
html body #v27TourHighlight { border-color: var(--g-lime) !important; box-shadow: 0 0 0 6px rgba(198,244,36,0.25) !important; }
html body #infoModalTitle { font-family: var(--g-sans) !important; color: var(--g-ink) !important; }
html body #infoModalContent .v27-legal-popup h1,
html body #infoModalContent .v27-legal-popup h2,
html body #infoModalContent .v27-legal-popup h3 { font-family: var(--g-sans) !important; }
html body .faq-section-title { color: var(--g-olive) !important; }

/* Inputs */
html body .form-group input,
html body .wasabi-input { background: #fff !important; color: var(--g-ink) !important; border: 1px solid #d9dce1 !important; border-radius: var(--g-r-s) !important; }
html body .form-group input:focus,
html body .wasabi-input:focus { border-color: var(--g-ink) !important; box-shadow: 0 0 0 3px rgba(17,19,22,0.08) !important; }

/* ── Footer: graphite ─────────────────────────────────────────────────── */
html body #v27-footer, html body .v27-footer-grid { background-color: var(--g-graphite) !important; }
html body #v27-footer { border-top: none !important; }
html body .v27-footer-link { font-family: var(--g-sans) !important; }
html body .v27-footer-link:hover, html body .v27-social-icon:hover { color: var(--g-lime) !important; }

/* Scrollbars */
::-webkit-scrollbar-track { background-color: #eceef1 !important; }
::-webkit-scrollbar-thumb { background: #c9ccd1 !important; border: 3px solid #eceef1 !important; border-radius: 8px; }

/* Add New Card: quiet secondary button (keeps green for the main actions) */
html body button[onclick^="openAddCardModal"]:not(.adslide-btn) {
    background: #fff !important; color: var(--g-ink) !important; border: 1px solid #d9dce1 !important;
    font-family: var(--g-sans) !important; font-weight: 500 !important; letter-spacing: 0 !important; box-shadow: none !important;
}
html body button[onclick^="openAddCardModal"]:not(.adslide-btn):hover { background: #f6f7f8 !important; }
html body .card-advert > div:first-child { background: #f6fbe6 !important; border-color: #dcebb4 !important; color: var(--g-olive) !important; font-family: var(--g-mono) !important; letter-spacing: 0.08em !important; }

/* Card panel actions: consistent weight, no letter-spacing, sentence case */
html body .card-wasabi button,
html body #wasabiCardSection button,
html body #pendingCardsStrip button {
    font-family: var(--g-sans) !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-size: 13px !important;
    border-radius: var(--g-r-s) !important;
}
html body #wasabiRevealBtn,
html body #wasabiHideBtn,
html body #wasabiCopyNumberBtn,
html body #wasabiCopyCvvBtn {
    background: #fff !important; color: var(--g-ink) !important; border: 1px solid #d9dce1 !important;
}
html body #wasabiRevealBtn:hover, html body #wasabiHideBtn:hover { background: #f6f7f8 !important; }
html body #topwalbut { font-weight: 600 !important; }
html body button[onclick^="openFreezeCardModal"] { background: #fff !important; color: #c0262d !important; border: 1px solid #f0caca !important; }
html body .wasabi-status-pill, html body [class*="status-pill"] { font-family: var(--g-sans) !important; letter-spacing: 0 !important; }

/* Info panel now sits alone in its row (news + features removed):
   two columns of links on wider screens, one column on phones. */
html body .cards-grid:has(> .card-info:only-child) { grid-template-columns: 1fr !important; }
@media (min-width: 761px) {
    html body .card-info > div { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html body .card-info .telegram-button { grid-column: 1 / -1; }
}

/* ==========================================================================
   PHONE (≤ 640px): the primary target
   ========================================================================== */
@media (max-width: 640px) {
    html body { font-size: 15px; }
    html body .container { padding: 0 12px 12px !important; }
    html body .v27-top-stack, html body .cards-grid, html body .cards-grid-top { gap: 12px !important; margin-bottom: 12px !important; }

    /* Header: slimmer bar, bigger tap target on the menu button */
    html body #v27-header { height: 56px !important; padding: 0 12px 0 16px !important; margin-bottom: 14px !important; }
    html body #v27-header .h-logo img { height: 28px !important; }
    html body #v27-hamburger { width: 44px !important; height: 44px !important; padding: 12px !important; background: var(--g-graphite-2) !important; border-color: var(--g-graphite-line) !important; }
    html body #v27-mobile-menu { top: 56px !important; }
    html body .h-mobile-item { min-height: 48px; font-size: 15px !important; }

    /* Panels */
    html body .card, html body .transactions-list { padding: 18px 16px !important; border-radius: 12px !important; }
    html body .card h2, html body .card .card-title, html body .section-title { font-size: 15px !important; margin-bottom: 12px !important; }

    /* Virtual / Physical toggle: full width, hint hidden */
    html body .v27-mode-toggle-wrap { margin: 0 0 12px !important; }
    html body .v27-mode-toggle { display: grid !important; width: 100%; }
    html body .v27-mode-btn { padding: 12px 8px !important; font-size: 14px !important; }
    html body .v27-mode-toggle-hint { display: none !important; }

    /* Deposit address: address + copy on one full-width row */
    html body .deposit-bar-head { gap: 12px !important; margin-bottom: 12px !important; }
    html body .deposit-bar-sub { font-size: 13px !important; }
    html body .deposit-address-row { width: 100%; }
    html body .deposit-address-row .wallet-address { flex: 1; min-width: 0; min-height: 44px; display: block !important; line-height: 26px; padding: 9px 12px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px !important; }
    html body .deposit-address-row .btn-copy { min-height: 44px; padding: 0 18px !important; }
    html body .deposit-token-row { gap: 6px !important; }
    html body .deposit-chip { min-height: 40px; font-size: 12.5px !important; justify-content: flex-start !important; padding: 6px 10px 6px 6px !important; }

    /* Wallet balance: big figure, two equal full-width actions */
    html body .card-wallet-summary-bar { gap: 18px !important; }
    html body .card-wallet-summary-bar .top-up-wallet { font-size: 13px !important; margin-bottom: 14px !important; }
    html body .card-wallet-summary-bar .balance-amount { font-size: clamp(34px, 11vw, 44px) !important; line-height: 1.05; }
    html body .wallet-summary-left > div[style*="margin-top:12px"] { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; margin-top: 16px !important; }
    html body .wallet-summary-left > div[style*="margin-top:12px"] button { width: 100%; min-height: 48px; padding: 0 10px !important; font-size: 14px !important; }
    html body .wallet-summary-right { padding-top: 16px; border-top: 1px solid var(--g-graphite-line); }
    html body #cardBalanceTotalValueBar { font-size: 26px !important; }

    /* Long lists scroll with the page on phones, not inside a small box */
    html body .transactions-list, html body .ref-card-recent, html body .ref-card-withdrawals, html body .ref-card-tree { max-height: none !important; overflow-y: visible !important; }

    /* Selects: 16px stops iOS zooming the page when they are tapped */
    html body select { font-size: 16px !important; min-height: 40px; max-width: 100%; padding: 6px 10px !important; border-radius: var(--g-r-s) !important; }

    /* Card panel */
    html body .card-and-balance-row { gap: 16px !important; }
    html body .card-wasabi button, html body #pendingCardsStrip button,
    html body button[onclick^="openAddCardModal"] { min-height: 48px; font-size: 14px !important; }
    html body #cardBalanceValue, html body #cardBalanceValueBottom { font-size: 28px !important; }

    /* Info rows: comfortable tap height */
    html body .card-info .btn, html body .card-info .telegram-button { min-height: 48px; font-size: 14px !important; }

    /* Activity: tabs in one swipeable row instead of stacking */
    html body .v27-tx-tabs { flex-direction: row !important; overflow-x: auto; gap: 18px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    html body .v27-tx-tabs::-webkit-scrollbar { display: none; }
    html body .v27-tx-tab { white-space: nowrap; padding: 12px 0 !important; font-size: 14px !important; }
    html body .v27-tx-header-row { gap: 14px !important; }
    html body .v27-tx-header-row > div:last-child { text-align: left !important; }
    html body .transaction-item { padding: 14px 0 !important; }

    /* Footer: brand, then Help and Legal side by side */
    html body #v27-footer { padding: 32px 0 0 !important; }
    html body .v27-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px 16px !important; padding: 0 16px !important; margin-bottom: 24px !important; }
    html body .v27-footer-brand { grid-column: 1 / -1 !important; }
    html body .v27-footer-link { min-height: 32px; display: flex !important; align-items: center; margin-bottom: 4px !important; }
    html body .v27-footer-social-row { flex-wrap: wrap; padding: 20px 16px !important; }
    html body .v27-footer-bottom { padding: 16px !important; }

    /* Modals: near full-screen sheets */
    html body :is(#infoModal, #addCardModal, #freezeCardModal, #sendFundsModal, #wasabiApplyModal, #wasabiTopupModal, #topupModal, #appWalletTopupModal, #withdrawModal) { padding: 8px !important; }
    html body :is(#infoModal, #addCardModal, #freezeCardModal, #sendFundsModal, #wasabiApplyModal, #wasabiTopupModal, #topupModal, #appWalletTopupModal, #withdrawModal) > div { margin: 8px auto !important; padding: 20px 16px !important; max-height: calc(100vh - 32px) !important; }
}

/* ==========================================================================
   OPTION E: graphite page, light panels, light header carrying the
   V27 LITE logo (the logo has a black "27", so it needs a light bar)
   ========================================================================== */
:root {
    --g-canvas: #23262c;
    --g-panel: #f3f4f6;
    --g-line: #d9dce1;
}
html body { background: var(--g-canvas) !important; }
html body .card, html body .transactions-list, html body .stat-card, html body .deposit-box,
html body .info-chip, html body .bal-chip, html body .tbl-wrap {
    background: var(--g-panel) !important;
    border-color: var(--g-line) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.25) !important;
}
/* Wallet balance panel stays graphite; a hairline separates it from the page */
html body .card-wallet-summary-bar { background: #16181c !important; border: 1px solid #33373e !important; }
html body .v27-mode-toggle { background: var(--g-panel) !important; border-color: var(--g-line) !important; }
html body .v27-mode-toggle-hint { color: #9aa0a8 !important; }

/* Light header bar */
html body #v27-header {
    background: var(--g-panel) !important;
    border-bottom: 1px solid var(--g-line) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
}
html body #v27-header .h-logo img.v27-lite-logo { height: 30px !important; width: auto; filter: none !important; }
html body .h-nav-btn { color: var(--g-ink-2) !important; }
html body .h-nav-btn .h-icon { color: var(--g-muted) !important; }
html body .h-nav-btn:hover { background: #e6e8eb !important; color: var(--g-ink) !important; }
html body .h-nav-btn.h-accent, html body .h-nav-btn.h-accent .h-icon { color: var(--g-olive) !important; }
html body .h-nav-btn.h-logout { color: var(--g-muted) !important; border-color: var(--g-line) !important; }
html body .h-nav-btn.h-admin { color: #c0262d !important; border-color: #f0caca !important; }
html body .h-divider { background: var(--g-line) !important; }
html body .h-user-pill { background: #fff !important; border-color: var(--g-line) !important; }
html body .h-email { color: var(--g-ink-2) !important; }
html body .h-avatar { background: var(--g-graphite) !important; color: var(--g-lime) !important; }
html body #v27-hamburger { background: #fff !important; border: 1px solid var(--g-line) !important; }
html body #v27-hamburger span { background: var(--g-ink) !important; }

/* Mobile menu drops down as a light sheet under the header */
html body #v27-mobile-menu { background: var(--g-panel) !important; border-bottom: 1px solid var(--g-line) !important; box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
html body .h-mobile-item { color: var(--g-ink) !important; }
html body .h-mobile-item .h-icon { color: var(--g-muted) !important; }
html body .h-mobile-item:hover, html body .h-mobile-item:active { background: #e6e8eb !important; color: var(--g-ink) !important; }
html body .h-mobile-item.h-accent, html body .h-mobile-item.h-accent .h-icon { color: var(--g-olive) !important; }
html body .h-mobile-item.h-admin { color: #c0262d !important; }
html body .h-mobile-item.h-logout { color: var(--g-muted) !important; }
html body .h-mobile-user-email { color: var(--g-ink-2) !important; }
html body .h-mobile-divider, html body .h-mobile-user, html body .h-mobile-item.h-logout { border-color: var(--g-line) !important; }

/* Footer: a shade darker than the page */
html body #v27-footer, html body .v27-footer-grid { background-color: #1a1c21 !important; }
html body #v27-footer { border-top: 1px solid #33373e !important; }

@media (max-width: 640px) {
    html body #v27-header .h-logo img.v27-lite-logo { height: 26px !important; }
    html body #v27-hamburger { background: #fff !important; border-color: var(--g-line) !important; }
}

/* ==========================================================================
   V27 LITE IDENTITY PALETTE (supersedes option E above)
   Vault27 DNA: Lime + Graphite. V27 Lite evolution: Lime + Light Lime + White + Graphite.
   Ratio target: ~60% light neutral · 25% graphite · 10% V27 green · 5% light/deep green.
     V27 Green   #C6F424   primary actions
     Lite Green  #D9FF4A   figures and labels on graphite, focus rings
     Soft Green  #EFFF9A   washes, highlights, status pills
     Green Hover #B5E01C
     Mid Green   #8FBF16   logo facet, small accents
     Olive       #4D7C0F   positive amounts, text on soft green
     Graphite    #16181C / Raised #24272D
     Text        #111316 / #4B5058 / #6B7079
     Neutrals    #F3F4F6 page · #F6F7F8 soft panel · #E4E6EA borders · #FFFFFF surfaces
   Logo facets, standardised: #D9FF4A → #C6F424 → #8FBF16 → #4D7C0F
   ========================================================================== */
:root {
    --g-canvas: #F3F4F6;
    --g-panel: #FFFFFF;
    --g-soft: #F6F7F8;
    --g-line: #E4E6EA;
    --g-lime: #C6F424;
    --g-lime-hover: #B5E01C;
    --v-lite: #D9FF4A;
    --v-soft: #EFFF9A;
    --v-mid: #8FBF16;
    --g-olive: #4D7C0F;
    --v-facets: linear-gradient(90deg, #D9FF4A 0 25%, #C6F424 25% 50%, #8FBF16 50% 75%, #4D7C0F 75% 100%);
}

/* Light neutral page with a soft-green wash at the top, so it never reads as flat white */
html body {
    background:
        radial-gradient(900px 520px at 85% -120px, rgba(217,255,74,0.38), rgba(217,255,74,0) 70%),
        radial-gradient(1200px 640px at 10% -200px, rgba(239,255,154,0.95), rgba(239,255,154,0) 70%),
        var(--g-canvas) !important;
    background-repeat: no-repeat !important;
    background-color: var(--g-canvas) !important;
}

/* White surfaces, quiet borders, soft lift */
html body .card, html body .transactions-list, html body .stat-card, html body .deposit-box,
html body .info-chip, html body .bal-chip, html body .tbl-wrap {
    background: var(--g-panel) !important;
    border: 1px solid var(--g-line) !important;
    box-shadow: 0 1px 2px rgba(17,19,22,0.04), 0 8px 24px rgba(17,19,22,0.05) !important;
}
html body .v27-mode-toggle { background: var(--g-panel) !important; border-color: var(--g-line) !important; }
html body .v27-mode-toggle-hint { color: var(--g-muted) !important; }
html body .v27-mode-btn.active { color: var(--v-lite) !important; }

/* Header: white, logo on the left, the four logo facets as a hairline underneath */
html body #v27-header { background: #FFFFFF !important; border-bottom: none !important; box-shadow: 0 1px 0 var(--g-line), 0 6px 18px rgba(17,19,22,0.04) !important; }
html body #v27-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--v-facets); }
html body .h-nav-btn:hover, html body .h-mobile-item:hover, html body .h-mobile-item:active { background: var(--g-soft) !important; }
html body .h-user-pill { background: var(--g-soft) !important; }
html body .h-avatar { background: var(--g-graphite) !important; color: var(--v-lite) !important; }
html body #v27-mobile-menu { background: #FFFFFF !important; top: 59px !important; }
@media (max-width: 640px) { html body #v27-mobile-menu { top: 59px !important; } }

/* Wallet balance: the graphite hero, with the facet stripe along its top edge */
html body .card-wallet-summary-bar {
    background: var(--g-graphite) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(17,19,22,0.18) !important;
}
html body .card-wallet-summary-bar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--v-facets); }
html body #cardBalanceTotalValueBar { color: var(--v-lite) !important; }
html body .wallet-summary-divider { background: var(--g-graphite-2) !important; }

/* Soft Green highlights */
html body .deposit-chip.chip-stabilization-alert { background: rgba(239,255,154,0.45) !important; border-color: var(--v-lite) !important; }
html body .deposit-chip:hover { background: rgba(239,255,154,0.35) !important; border-color: var(--g-lime) !important; }
html body .card-info .btn:hover, html body .card-info .telegram-button:hover { background: rgba(239,255,154,0.35) !important; border-color: var(--v-lite) !important; }
html body [class*="status-pill"], html body .status-badge,
html body .wasabi-status-active { background: var(--v-soft) !important; color: var(--g-olive) !important; border: 1px solid var(--v-lite) !important; }
html body .wallet-address { background: var(--g-soft) !important; border-color: var(--g-line) !important; }

/* Activity: graphite label, V27-green underline */
html body .v27-tx-tab.active { border-bottom: 3px solid var(--g-lime) !important; color: var(--g-ink) !important; }
html body .transaction-item:hover { background: rgba(239,255,154,0.18); }

/* Focus: Lite Green ring */
html body button:focus-visible, html body a:focus-visible, html body select:focus-visible, html body input:focus-visible {
    outline: none !important; box-shadow: 0 0 0 3px var(--v-lite) !important;
}

/* Footer: graphite, facet stripe on top */
html body #v27-footer, html body .v27-footer-grid { background-color: var(--g-graphite) !important; }
html body #v27-footer { border-top: none !important; position: relative; }
html body #v27-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--v-facets); }
html body .v27-footer-link:hover, html body .v27-social-icon:hover { color: var(--v-lite) !important; }

/* ==========================================================================
   AUTH PAGES (signup, forgot / reset password, deposit required)
   ========================================================================== */
html body .auth-container { min-height: 100vh; padding: 32px 16px; align-items: flex-start; padding-top: 8vh; }
html body .auth-box,
html body .deposit-box {
    background: #FFFFFF !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(17,19,22,0.04), 0 16px 40px rgba(17,19,22,0.08) !important;
    padding: 32px 28px !important;
    position: relative;
    overflow: hidden;
    color: var(--g-ink) !important;
}
html body .auth-box::before,
html body .deposit-box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--v-facets); }
html body .v27-auth-logo { width: 220px; max-width: 80%; height: auto; display: block; margin: 0 auto; }
html body .auth-box .logo { margin-bottom: 24px; }
html body .auth-box .logo p { color: var(--g-muted) !important; font-size: 15px; margin-top: 4px; }
html body .auth-box .logo h1 { color: var(--g-ink) !important; font-size: 22px !important; }
html body .auth-box h3, html body .deposit-box h3 { color: var(--g-ink) !important; font-size: 16px; font-weight: 600; }
html body .form-group label { color: var(--g-ink-2) !important; font-size: 13px; font-weight: 500; }
html body .form-group input { min-height: 46px; font-size: 16px !important; padding: 10px 14px !important; }
html body .form-group input[readonly] { background: var(--g-soft) !important; color: var(--g-muted) !important; }
html body .auth-box label, html body .auth-box li, html body .auth-box ol, html body .auth-box span { color: var(--g-ink-2); }
html body .auth-box input[type="checkbox"] { accent-color: var(--g-graphite) !important; }
html body .auth-box a:not(.btn) { color: var(--g-olive) !important; font-weight: 600; }
html body .auth-links, html body .auth-link, html body .reset-password-link { color: var(--g-muted) !important; text-align: center; margin-top: 20px; }
html body .auth-links a, html body .auth-link a, html body .reset-password-link a { color: var(--g-olive) !important; }

/* Main action on these pages is the V27 green button, full width */
html body .auth-box .btn-primary,
html body .auth-box button[type="submit"],
html body .deposit-box .btn-primary {
    width: 100%;
    min-height: 48px;
    background: var(--g-lime) !important;
    color: var(--g-graphite) !important;
    border: 1px solid var(--g-lime) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none !important;
}
html body .auth-box .btn-primary:hover,
html body .auth-box button[type="submit"]:hover,
html body .deposit-box .btn-primary:hover { background: var(--g-lime-hover) !important; border-color: var(--g-lime-hover) !important; }
html body .auth-box .btn-primary:disabled { opacity: 0.5; }

html body .error-message { background: #fdf2f2 !important; color: #b42318 !important; border: 1px solid #f5c6c6; border-radius: 10px !important; }
html body .success-message { background: var(--v-soft) !important; color: var(--g-olive) !important; border: 1px solid var(--v-lite); border-radius: 10px !important; }

/* Signup: steps box and slide captcha */
html body .auth-box > div[style*="rgba(198, 244, 36"] { background: rgba(239,255,154,0.35) !important; border-color: var(--v-lite) !important; color: var(--g-ink) !important; }
html body .captcha-label { color: var(--g-muted) !important; }
html body .puzzle-track { background: var(--g-soft) !important; border: 1px solid var(--g-line) !important; }
html body .puzzle-piece { background: var(--g-graphite) !important; color: var(--v-lite) !important; box-shadow: 0 2px 8px rgba(17,19,22,0.25) !important; }
html body .puzzle-gap { border-left: 2px dashed var(--v-mid) !important; color: var(--v-mid) !important; }
html body .puzzle-gap svg { stroke: var(--v-mid) !important; }
html body .captcha-ok { color: var(--g-olive) !important; }

/* Deposit required */
html body .deposit-box { max-width: 600px; margin: 32px auto !important; }
html body .deposit-box .deposit-amount, html body .deposit-box #requiredAmount { color: var(--g-ink) !important; font-family: var(--g-mono) !important; font-weight: 500 !important; letter-spacing: -0.03em; }
html body .deposit-box > div[style*="text-align: center"] { color: var(--g-muted) !important; }
html body .deposit-box .home-list, html body .deposit-box .crypto-list li { color: var(--g-ink-2) !important; }
html body .wallet-box { background: var(--g-soft) !important; border: 1px solid var(--g-line); font-family: var(--g-mono); font-size: 13px; color: var(--g-ink) !important; }
html body .status-pending { background: var(--g-soft) !important; color: var(--g-ink-2) !important; border: 1px solid var(--g-line); }
html body .status-success, html body .status-complete { background: var(--v-soft) !important; color: var(--g-olive) !important; border: 1px solid var(--v-lite); }
html body .deposit-box .spinner { border-color: var(--g-line) !important; border-top-color: var(--g-graphite) !important; }
html body #progressBar { color: var(--g-graphite) !important; }
html body .revenue-share-section {
    background: var(--g-graphite) !important; color: #fff !important; position: relative; overflow: hidden; padding: 24px !important; border-radius: 14px !important;
}
html body .revenue-share-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--v-facets); }
html body .revenue-share-section h3 { color: #fff !important; }
html body .revenue-share-section p { color: var(--g-faint) !important; }
html body .revenue-share-link-box { background: var(--g-graphite-2) !important; }
html body .revenue-share-link { background: #fff !important; color: var(--g-ink) !important; font-family: var(--g-mono) !important; }
html body .copy-btn { background: var(--g-lime) !important; color: var(--g-graphite) !important; min-height: 44px; }
html body .revenue-share-section .telegram-button { background: transparent !important; border: 1px solid #3a3e45 !important; }
html body .revenue-share-section .telegram-button img { width: 22px !important; height: 22px !important; }
html body .revenue-share-section .telegram-button-text { color: #fff !important; font-size: 15px !important; margin: 0; }

/* ==========================================================================
   CARD LEDGER
   ========================================================================== */
html body .ledger-wrap h1 { color: var(--g-ink) !important; font-size: 22px !important; font-weight: 600 !important; }
html body .info-chip, html body .bal-chip { border-left-width: 4px !important; }
html body .info-chip .lbl, html body .bal-chip .lbl { color: var(--g-muted) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 12.5px !important; }
html body .info-chip .val { color: var(--g-ink) !important; font-family: var(--g-mono); font-weight: 500 !important; }
html body .bal-chip .amt { font-family: var(--g-mono) !important; font-weight: 500 !important; }
html body .tbl-wrap th { background: var(--g-soft) !important; color: var(--g-muted) !important; border-bottom: 1px solid var(--g-line) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; }
html body .tbl-wrap td { color: var(--g-ink) !important; border-bottom: 1px solid var(--g-line-2) !important; }
html body .tbl-wrap div { color: inherit !important; }
html body #exportBtn, html body #exportXlsBtn { background: #fff !important; color: var(--g-ink) !important; border: 1px solid #d9dce1 !important; }
html body #exportBtn:hover, html body #exportXlsBtn:hover { background: var(--g-soft) !important; box-shadow: none !important; }
html body .failed-note, html body .table-empty, html body .table-loading { color: var(--g-muted) !important; }
html body .spinner-sm { border-color: var(--g-line) !important; border-top-color: var(--g-graphite) !important; }
@media (max-width: 640px) {
    html body .ledger-wrap .info-bar, html body .ledger-wrap .bal-row { gap: 10px !important; }
    html body .info-chip, html body .bal-chip { flex: 1 1 100%; min-width: 0 !important; }
    html body .auth-box, html body .deposit-box { padding: 28px 18px !important; }
    html body .auth-container { padding-top: 24px; }
}

html body .deposit-box > div p { color: var(--g-muted) !important; }
html body .deposit-box a:not(.btn) { color: var(--g-olive) !important; }
html body .deposit-box .revenue-share-section p { color: var(--g-faint) !important; }
html body .deposit-box .revenue-share-section p.share-message:first-of-type { color: var(--v-lite) !important; font-weight: 600 !important; }
html body .deposit-box #progressBox { background: var(--g-soft) !important; border: 1px solid var(--g-line); }
html body .deposit-box #progressBox h3 { color: var(--g-ink) !important; }
html body .deposit-box #progressBox > div:first-of-type { border: 1px solid var(--g-line); }
html body .deposit-box #progressBox > div:last-child { background: #e6e8eb !important; }
html body .deposit-box #remainingAmount { color: #b42318 !important; }
html body .deposit-box > div[style*="F6F7F8"] { border: 1px solid var(--g-line); color: var(--g-ink-2); }

/* ==========================================================================
   REVENUE SHARE
   ========================================================================== */
html body .referral-hero {
    background: var(--g-graphite) !important;
    border: none !important;
    color: #fff !important;
    position: relative; overflow: hidden;
    border-radius: 16px !important;
    padding: 28px 24px !important;
    box-shadow: 0 12px 30px rgba(17,19,22,0.18) !important;
    text-align: left;
}
html body .referral-hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--v-facets); }
html body .referral-hero h2 { color: #fff !important; font-size: 20px !important; font-weight: 600 !important; }
html body .referral-hero > p { color: var(--g-faint) !important; opacity: 1 !important; font-size: 14px; line-height: 1.55; }
html body .referral-link-box {
    background: var(--g-graphite-2) !important;
    border: 1px solid #33373e !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-top: 18px;
    text-align: left !important;
}
html body .referral-link-box strong { color: var(--v-lite) !important; font-weight: 600; font-size: 13px; }
html body .referral-link { background: #fff !important; color: var(--g-ink) !important; font-family: var(--g-mono) !important; font-size: 12.5px !important; border-radius: 8px !important; padding: 12px !important; margin: 10px 0 !important; word-break: break-all; }
html body .referral-hero .referral-link-box .btn {
    width: 100%; min-height: 46px;
    background: var(--g-lime) !important; color: var(--g-graphite) !important; border: 1px solid var(--g-lime) !important;
    font-weight: 600 !important; box-shadow: none !important;
}
html body .referral-hero .referral-link-box .btn:hover { background: var(--g-lime-hover) !important; border-color: var(--g-lime-hover) !important; }

/* Stats */
html body .stats-grid { gap: 12px !important; }
html body .stat-card { text-align: left !important; padding: 18px !important; }
html body .stat-label { color: var(--g-muted) !important; font-size: 13px !important; font-weight: 500 !important; }
html body .stat-value { color: var(--g-ink) !important; font-family: var(--g-mono) !important; font-weight: 500 !important; font-size: 26px !important; letter-spacing: -0.03em; margin: 6px 0 0 !important; }
html body .ref-stat-wallet { background: var(--g-graphite) !important; border-color: var(--g-graphite) !important; }
html body .ref-stat-wallet .stat-label { color: var(--g-faint) !important; }
html body .ref-stat-wallet .stat-value { color: var(--v-lite) !important; font-size: 32px !important; }
html body .ref-stat-wallet .btn {
    width: 100%; min-height: 46px; margin-top: 14px !important;
    background: var(--g-lime) !important; color: var(--g-graphite) !important; border-color: var(--g-lime) !important; font-weight: 600 !important;
}
html body .ref-stat-wallet .btn:hover { background: var(--g-lime-hover) !important; }
html body .ref-stat-referrals .stat-value { margin-bottom: 12px !important; }
html body .ref-stat-referrals .anchor-link { display: inline-flex !important; align-items: center; justify-content: center; min-height: 40px !important; padding: 0 14px !important; width: auto !important; font-size: 13px !important; font-weight: 500 !important; }

/* Commission rules */
html body .ref-card-commission { padding-bottom: 18px !important; }
html body .ref-card-commission .card-title { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; }
html body .ref-card-commission .card-title .btn { float: none !important; width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 6px 12px !important; font-size: 12.5px !important; }
html body .info-box { background: var(--g-soft) !important; border: 1px solid var(--g-line) !important; border-radius: 12px !important; padding: 16px !important; margin-top: 12px; color: var(--g-ink) !important; }
html body .level-row { border-color: var(--g-line) !important; color: var(--g-ink-2); font-family: var(--g-sans); }
html body .level-row strong { font-family: var(--g-mono); font-weight: 500; color: var(--g-ink); }
html body .info-box p { color: var(--g-olive) !important; }

/* Recent commissions + withdrawals */
html body .commission-item { background: #fff !important; border: 1px solid var(--g-line) !important; border-radius: 12px !important; }
html body #recentCommissions div, html body #recentCommissions strong,
html body #withdrawalHistory div { color: var(--g-ink) !important; background: transparent !important; }
html body #recentCommissions .commission-item { background: #fff !important; }
html body #recentCommissions div[style*="font-size: 0.9em"] { color: var(--g-muted) !important; }
html body #recentCommissions .commission-positive { color: var(--g-olive) !important; font-family: var(--g-mono) !important; font-weight: 500 !important; }
html body .level-badge {
    display: inline-block !important; width: auto !important; align-self: flex-start !important;
    background: var(--v-soft) !important; color: var(--g-olive) !important; border: 1px solid var(--v-lite);
    font-size: 11px !important; font-weight: 600 !important; padding: 2px 8px !important; border-radius: 999px !important; box-shadow: none !important;
}
html body #withdrawalHistory [style*="text-transform"], html body #withdrawalHistory [style*="uppercase"] { color: var(--g-olive) !important; }

/* Network tree */
html body .tree-load-wrap p { display: block !important; color: var(--g-muted) !important; }
html body #networkTreeContainer, html body #networkTreeContainer * { color: var(--g-ink); }
html body .referral-tree-item { background: #fff !important; border: 1px solid var(--g-line) !important; border-radius: 10px; }
html body .referral-tree-item div { color: var(--g-muted) !important; }
html body .referral-tree-item strong { color: var(--g-ink) !important; }

@media (max-width: 640px) {
    html body .stats-grid { grid-template-columns: 1fr 1fr !important; }
    html body .ref-stat-wallet { grid-column: 1 / -1; }
    html body .stat-value { font-size: 22px !important; }
    html body .ref-stat-wallet .stat-value { font-size: 30px !important; }
    html body .referral-hero { padding: 24px 18px !important; }
    html body #recentCommissions .commission-item { gap: 8px; }
}

/* Withdraw modal */
html body #withdrawModal h2 { color: var(--g-ink) !important; font-size: 20px !important; font-weight: 600 !important; }
html body #withdrawModal p { color: var(--g-ink-2) !important; }
html body #withdrawAvailable { color: var(--g-ink) !important; font-family: var(--g-mono) !important; font-weight: 500 !important; }
html body #withdrawForm .btn {
    background: #fff !important; color: var(--g-ink) !important; border: 1px solid #d9dce1 !important;
    box-shadow: none !important; min-height: 46px; font-weight: 500 !important; transform: none !important;
}
html body #withdrawForm button[type="submit"] { background: var(--g-lime) !important; border-color: var(--g-lime) !important; color: var(--g-graphite) !important; font-weight: 600 !important; }
html body #withdrawForm button[type="submit"]:hover { background: var(--g-lime-hover) !important; }
html body #withdrawForm > div[style*="background"] { background: var(--g-soft) !important; border: 1px solid var(--g-line); }
html body #withdrawForm li, html body #withdrawForm strong { color: var(--g-ink-2) !important; }

/* Header logo: larger */
html body #v27-header .h-logo img.v27-lite-logo { height: 40px !important; }
@media (max-width: 640px) {
    html body #v27-header .h-logo img.v27-lite-logo { height: 34px !important; }
}

/* Footer: social icons removed */
html body .v27-footer-social-row { display: none !important; }

/* ==========================================================================
   INFO / LEGAL POPUPS (Privacy, Terms, Prohibited, FAQ): greens and greys only
   ========================================================================== */
html body #infoModalContent { color: var(--g-ink) !important; }
html body #infoModalContent > div:not(.v27-legal-popup) { background: var(--g-soft) !important; border: 1px solid var(--g-line) !important; color: var(--g-ink) !important; }
html body #infoModalContent td { color: var(--g-ink-2) !important; }
html body #infoModalContent li, html body #infoModalContent h4 { color: var(--g-ink) !important; }
html body #infoModalContent a { color: var(--g-olive) !important; }
html body #infoModalContent a:hover, html body #infoModalContent a:focus { color: var(--g-ink) !important; }
html body #infoModalContent .v27-legal-popup { color: var(--g-ink) !important; font-family: var(--g-sans) !important; }
html body #infoModalContent .v27-legal-popup .hero { background: var(--g-soft) !important; border: 1px solid var(--g-line) !important; }
html body #infoModalContent .v27-legal-popup h1 { color: var(--g-ink) !important; font-family: var(--g-sans) !important; font-weight: 600 !important; }
html body #infoModalContent .v27-legal-popup .last-updated { color: var(--g-olive) !important; }
html body #infoModalContent .v27-legal-popup .legal-notice {
    background: rgba(239,255,154,0.45) !important;
    border-left: 4px solid var(--g-lime) !important;
    color: var(--g-ink) !important;
}
html body #infoModalContent .v27-legal-popup .toc { background: var(--g-soft) !important; border: 1px solid var(--g-line) !important; }
html body #infoModalContent .v27-legal-popup .toc-title { color: var(--g-olive) !important; font-family: var(--g-sans) !important; }
html body #infoModalContent .v27-legal-popup .toc a { color: var(--g-ink-2) !important; border-bottom-color: var(--g-line) !important; }
html body #infoModalContent .v27-legal-popup .toc a:hover,
html body #infoModalContent .v27-legal-popup .toc a:focus,
html body #infoModalContent .v27-legal-popup .toc a:active { color: var(--g-olive) !important; }
html body #infoModalContent .v27-legal-popup .terms-section { background: #fff !important; border: 1px solid var(--g-line) !important; }
html body #infoModalContent .v27-legal-popup h2 { color: var(--g-ink) !important; font-family: var(--g-sans) !important; font-weight: 600 !important; }
html body #infoModalContent .v27-legal-popup h3 { color: var(--g-olive) !important; font-family: var(--g-sans) !important; font-weight: 600 !important; }
html body #infoModalContent .v27-legal-popup p,
html body #infoModalContent .v27-legal-popup li,
html body #infoModalContent .v27-legal-popup ul,
html body #infoModalContent .v27-legal-popup ol { color: var(--g-ink-2) !important; }
html body #infoModalContent .v27-legal-popup strong { color: var(--g-ink) !important; }
html body #infoModalContent .v27-legal-popup em { color: var(--g-olive) !important; }
html body #infoModalContent .v27-legal-popup li::marker { color: var(--v-mid) !important; }
html body #infoModalContent .v27-legal-popup footer { border-top: 1px solid var(--g-line) !important; color: var(--g-muted) !important; }
html body #infoModalContent::-webkit-scrollbar-track { background: var(--g-soft) !important; }
html body #infoModalContent::-webkit-scrollbar-thumb { background: #c9ccd1 !important; border: none !important; }
html body #infoModalContent { scrollbar-color: #c9ccd1 var(--g-soft) !important; }
html body #v27InfoModalBody .info-warn { background: #fdf2f2 !important; border-color: #f5c6c6 !important; color: #b42318 !important; }
html body #v27InfoModalBody .info-note { background: rgba(239,255,154,0.4) !important; border-color: var(--v-lite) !important; color: var(--g-olive) !important; }



/* ==========================================================
   V27 Lite fixes — v11
   ========================================================== */

/* Apply for Card / green buttons: same border on normal and hover,
   so the button never changes size */
html body .wasabi-action-btn { box-sizing: border-box !important; }
html body .wasabi-action-btn.wasabi-apply-btn,
html body .wasabi-action-btn.wasabi-issue-btn {
    border: 1px solid var(--g-lime) !important;
}
html body .wasabi-action-btn.wasabi-apply-btn:hover,
html body .wasabi-action-btn.wasabi-issue-btn:hover:not(:disabled) {
    border: 1px solid var(--g-lime-hover) !important;
}

/* Info panel: green border on every row */
html body .card-info .btn {
    border: 1px solid #8FBF16 !important;
}
html body .card-info .btn:hover {
    border-color: var(--g-mid, #8FBF16) !important;
    background: #f7fde6 !important;
}

/* Info panel: Telegram in Telegram blue, same size as the other rows */
html body .card-info .telegram-button {
    background: #0088CC !important;
    color: #ffffff !important;
    border: 1px solid #0088CC !important;
    padding: 11px 14px !important;
    gap: 10px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}
html body .card-info .telegram-button:hover {
    background: #0077B5 !important;
    border-color: #0077B5 !important;
    color: #ffffff !important;
}
html body .card-info .telegram-button::after { border-color: rgba(255,255,255,0.85) !important; }
html body .card-info .telegram-button img {
    width: 18px !important; height: 18px !important;
    flex-shrink: 0; object-fit: contain;
}

/* Dark cards: white card text so it reads on black */
html body .card-text-white .flip-card-logo,
html body .card-text-white .flip-card-number,
html body .card-text-white .flip-card-footer,
html body .card-text-white .flip-card-footer span,
html body .card-text-white .flip-card-name,
html body .card-text-white .flip-card-expiry,
html body .card-text-white .flip-card-cvv {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* Card visuals: shadow offset to the bottom-right, rounded like the card art */
html body .flip-card-front,
html body .flip-card-back,
html body img[src*="Card_"][src*="_Front"],
html body img[src*="card_front_template"] {
    filter: none !important;
}
html body .card-swipe-slide > .flip-card { overflow: visible !important; }
html body .flip-card-front,
html body .flip-card-back {
    border-radius: 3.4% / 5.4% !important;
    box-shadow: 6px 9px 22px rgba(17,19,22,0.34), 2px 3px 6px rgba(17,19,22,0.18) !important;
}
html body img[src*="Card_"][src*="_Front"],
html body img[src*="card_front_template"] {
    border-radius: 3.4% / 5.4% !important;
    box-shadow: 4px 6px 14px rgba(17,19,22,0.32), 1px 2px 4px rgba(17,19,22,0.16) !important;
}

/* Card carousel: size the stack from its real width so the card face is
   never clipped at the bottom, and leave room for the drop shadow */
html body #cardStackWrap { padding: 14px 0 22px !important; }
html body #cardStack { height: auto !important; aspect-ratio: 1.75 / 1 !important; }
html body .card-swipe-slide,
html body .card-swipe-slide > .flip-card { height: 100% !important; }

/* Info panel: two columns of four, Telegram first in the left column */
html body .card-info .btn,
html body .card-info .telegram-button {
    height: 50px !important;
    min-height: 50px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
@media (min-width: 641px) {
    html body .card-info > div {
        grid-auto-flow: column !important;
        grid-template-rows: repeat(4, auto) !important;
    }
    html body .card-info .telegram-button { grid-column: auto !important; }
}
html body #cardStackWrap { padding: 14px 0 26px !important; }

/* New Cards panel hidden until the first card is issued; V27 Lite Cards then fills the row */
html body .cards-grid-top:not(.has-issued-card) .card-wasabi { grid-column: 1 / -1 !important; }
