
/* =========================
   CRYPTO MODAL — MONOCHROME LUXE
   ========================= */

#cryptoModal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
        radial-gradient(900px 500px at 85% 110%, rgba(255, 255, 255, 0.04), transparent 55%),
        rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    animation: cryptoFadeIn 0.22s ease both;
}

@keyframes cryptoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#cryptoModal * {
    box-sizing: border-box;
}

#cryptoModal .crypto-modal {
    position: relative;
    width: min(560px, calc(100vw - 24px));
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(180deg, #151515 0%, #090909 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.025),
        0 32px 90px rgba(0, 0, 0, 0.88),
        0 0 70px rgba(255, 255, 255, 0.025);
    color: #f5f5f5;
    margin: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    animation: cryptoModalPop 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#cryptoModal .crypto-modal::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.35),
        transparent
    );
    opacity: 0.9;
}

@keyframes cryptoModalPop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }

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

#cryptoModal .crypto-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

#cryptoModal .crypto-head-left {
    min-width: 0;
}

#cryptoModal .crypto-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

#cryptoModal .crypto-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(
        120deg,
        #ffffff 15%,
        #e7e7e7 50%,
        #a8a8a8 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
}

#cryptoModal .crypto-subtitle {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.60);
}

#cryptoModal .crypto-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#cryptoModal .crypto-price-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 6px 11px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.10),
        rgba(255, 255, 255, 0.035)
    );
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.045);
}

#cryptoModal .crypto-price-currency {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.50);
}

#cryptoModal .crypto-price-value {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.05;
    color: #ffffff;
}

#cryptoModal .crypto-close-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: #f5f5f5;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

#cryptoModal .crypto-close-btn:hover {
    transform: rotate(90deg) scale(1.05);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

#cryptoModal .crypto-summary {
    display: grid;
    gap: 0;
    margin-bottom: 10px;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

#cryptoModal .crypto-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 2px;
}

#cryptoModal .crypto-summary-row + .crypto-summary-row {
    border-top: 1px dashed rgba(255, 255, 255, 0.10);
}

#cryptoModal .crypto-summary-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.43);
}

#cryptoModal .crypto-summary-value {
    font-size: 13.5px;
    font-weight: 700;
    color: #f5f5f5;
}

#cryptoModal .crypto-summary-total {
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

#cryptoModal .crypto-modal-body {
    display: grid;
    gap: 12px;
}

#cryptoModal .crypto-prompt {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
}

#cryptoModal .crypto-prompt i {
    color: #ffffff;
    margin-right: 6px;
}

#cryptoModal .crypto-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}

#cryptoModal .crypto-coin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 72px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

#cryptoModal .crypto-coin-symbol {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
}

#cryptoModal .crypto-coin-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    filter: grayscale(100%);
}

#cryptoModal .crypto-coin-fallback {
    display: none;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
}

#cryptoModal .crypto-coin-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.085);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

#cryptoModal .crypto-coin-btn:active {
    transform: translateY(0) scale(0.97);
}

#cryptoModal .payment-area {
    margin-top: 4px;
}

#cryptoModal .payment-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.045),
        rgba(255, 255, 255, 0.018)
    );
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#cryptoModal .topline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

#cryptoModal .pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

#cryptoModal .pill-dark {
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.84);
    border-color: rgba(255, 255, 255, 0.11);
}

#cryptoModal .payment-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
    color: #f7f7f7;
}

#cryptoModal .qr-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2px;
    position: relative;
}

#cryptoModal .qr-wrap::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.09),
        transparent 70%
    );
    animation: cryptoBreath 2.4s ease-in-out infinite;
}

@keyframes cryptoBreath {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

#cryptoModal .qr-box {
    position: relative;
    width: 196px;
    min-height: 196px;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

#cryptoModal .payment-details {
    display: grid;
    gap: 7px;
}

#cryptoModal .payment-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.065);
}

#cryptoModal .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.50);
}

#cryptoModal .value {
    color: #f5f5f5;
    font-size: 13px;
    word-break: break-all;
}

#cryptoModal .mini-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

#cryptoModal .mini-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

#cryptoModal .status-msg {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

#cryptoModal .error-box {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #eeeeee;
}

#cryptoModal .error-title {
    font-weight: 800;
    margin-bottom: 6px;
}

#cryptoModal .success-text {
    color: #ffffff;
    font-weight: 800;
    animation: cryptoPulse 1.6s ease-in-out infinite;
}

@keyframes cryptoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

#cryptoModal .error-text {
    color: #ffffff;
    font-weight: 800;
}

#cryptoModal .hidden {
    display: none !important;
}

@media (max-width: 520px) {
    #cryptoModal .crypto-modal {
        padding: 16px;
        border-radius: 18px;
    }

    #cryptoModal .crypto-title {
        font-size: 19px;
    }

    #cryptoModal .crypto-price-pill {
        padding: 6px 10px;
    }

    #cryptoModal .crypto-price-value {
        font-size: 18px;
    }

    #cryptoModal .crypto-coin-btn {
        min-width: 66px;
        padding: 6px 9px;
    }

    #cryptoModal .payment-row {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    #cryptoModal .mini-btn {
        margin-top: 4px;
    }

    #cryptoModal .qr-box {
        width: 170px;
        min-height: 170px;
    }
}


/* =========================
   MONOCHROME LUXE EXTRAS
   ========================= */

#cryptoModal .crypto-price-pill {
    position: relative;
    overflow: hidden;
}

#cryptoModal .crypto-price-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.20) 50%,
        transparent 70%
    );
    transform: translateX(-120%);
    animation: cryptoShimmer 2.8s ease-in-out infinite;
}

@keyframes cryptoShimmer {
    0% {
        transform: translateX(-120%);
    }

    55%, 100% {
        transform: translateX(120%);
    }
}

/* Force monochrome treatment for DOGE specifically */
#cryptoModal .crypto-coin-btn[data-coin="doge"] .crypto-coin-symbol {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.13),
        rgba(255, 255, 255, 0.045)
    );
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.10);
}

#cryptoModal .crypto-coin-btn[data-coin="doge"] .crypto-coin-icon {
    padding: 2px;
    filter:
        grayscale(100%)
        brightness(1.1)
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.16));
}

#cryptoModal .crypto-coin-btn[data-coin="doge"]:hover {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}


/* =========================
   MONOCHROME TOASTR
   ========================= */

#toast-container {
    z-index: 100000 !important;
}

#toast-container > .toast {
    background: linear-gradient(
        180deg,
        rgba(23, 23, 23, 0.98),
        rgba(10, 10, 10, 0.98)
    ) !important;
    color: #f2f2f2 !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-left: 4px solid #ffffff !important;
    border-radius: 14px !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(255, 255, 255, 0.025),
        0 0 30px rgba(255, 255, 255, 0.035) !important;
    padding: 14px 16px 14px 18px !important;
    font-family: Inter, system-ui, -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: maoToastIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes maoToastIn {
    from {
        opacity: 0;
        transform: translateX(24px) scale(0.96);
    }

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

#toast-container > .toast-success {
    border-left-color: #ffffff !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.65),
        0 0 30px rgba(255, 255, 255, 0.07) !important;
}

#toast-container > .toast-success:before {
    content: "✓";
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-weight: 900;
    font-size: 12px;
    margin-right: 9px;
}

#toast-container > .toast-error {
    border-left-color: #ffffff !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.65),
        0 0 30px rgba(255, 255, 255, 0.07) !important;
}

#toast-container > .toast-warning {
    border-left-color: #d4d4d4 !important;
}

#toast-container > .toast-info {
    border-left-color: #8a8a8a !important;
}

#toast-container > .toast-title {
    font-weight: 800 !important;
    letter-spacing: 0.02em;
}

#toast-container > .toast-message {
    display: inline;
    overflow-wrap: break-word;
    line-height: 1.45 !important;
}

#toast-container > .toast-close-button {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55) !important;
    opacity: 1 !important;
    transition: color 0.15s ease, transform 0.15s ease;
}

#toast-container > .toast-close-button:hover {
    color: #ffffff !important;
    transform: rotate(90deg);
}

#toast-container > .toast-progress {
    height: 3px !important;
    background: linear-gradient(
        90deg,
        #ffffff,
        #777777
    ) !important;
    opacity: 0.9 !important;
}

#toast-container > .toast-success .toast-progress {
    background: linear-gradient(
        90deg,
        #ffffff,
        #aaaaaa
    ) !important;
}


/* =========================
   PAYGATE CARD METHOD +
   ANTI-SPAM UX + CLEANER QR
   ========================= */

#cryptoModal .crypto-methods {
    display: grid;
    gap: 8px;
}

#cryptoModal .crypto-method-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.03)
    );
    color: #f5f5f5;
    cursor: pointer;
    text-align: left;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

#cryptoModal .crypto-method-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.07);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.045)
    );
}

#cryptoModal .crypto-method-btn:active {
    transform: translateY(0) scale(0.98);
}

#cryptoModal .crypto-method-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(
        135deg,
        #ffffff,
        #8c8c8c
    );
    color: #050505;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.10);
}

#cryptoModal .crypto-method-name {
    font-size: 14.5px;
    font-weight: 800;
}

#cryptoModal .crypto-method-sub {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

#cryptoModal .crypto-or {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 2px 0;
}

#cryptoModal .crypto-or::before,
#cryptoModal .crypto-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.14),
        transparent
    );
}

#cryptoModal .qr-inner {
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    display: grid;
    place-items: center;
}

#cryptoModal .qr-box img {
    image-rendering: pixelated;
    border-radius: 6px;
}

#cryptoModal .pay-amount {
    color: #ffffff;
}

#cryptoModal .pay-currency {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    font-size: 14px;
}

#cryptoModal .expiry-line {
    font-size: 12px;
    font-weight: 700;
    color: #d2d2d2;
    text-align: center;
}

#cryptoModal .reused-note {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.16);
    color: #dddddd;
}

#cryptoModal .payment-sub {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
}

#cryptoModal .crypto-pay-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #ffffff,
        #9d9d9d
    );
    color: #050505;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}

#cryptoModal .crypto-pay-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 255, 255, 0.17);
    filter: brightness(1.06);
    color: #000000;
}

#cryptoModal .error-hint {
    margin-top: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.60);
}


/* =========================
   SCROLLBAR
   ========================= */

#cryptoModal .crypto-modal::-webkit-scrollbar {
    width: 7px;
}

#cryptoModal .crypto-modal::-webkit-scrollbar-track {
    background: transparent;
}

#cryptoModal .crypto-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

#cryptoModal .crypto-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}