@keyframes dmOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dmWindowIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dmCornerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.dm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 6, 0.78);
    backdrop-filter: blur(10px);
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: dmOverlayIn 0.18s ease both;
    overflow-y: auto;
    font-family: 'SFPro', sans-serif;
    z-index: 11111111;
}

.dm-window {
    position: relative;
    width: 100%;
    max-width: 760px;

    border: 1px solid rgba(255, 64, 82, 0.35);
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 64, 82, 0.08);
    color: #fff;
    animation: dmWindowIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #101010;
}

.dm-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    z-index: 2;
    pointer-events: none;
    animation: dmCornerPulse 2s ease-in-out infinite;
}
.dm-corner::before, .dm-corner::after {
    content: '';
    position: absolute;
    background: #FF4052;
}
.dm-corner::before { width: 100%; height: 2px; top: 0; left: 0; }
.dm-corner::after { width: 2px; height: 100%; top: 0; left: 0; }
.dm-corner.tl { top: 10px; left: 10px; }
.dm-corner.tr { top: 10px; right: 10px; transform: scaleX(-1); }
.dm-corner.bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.dm-corner.br { bottom: 10px; right: 10px; transform: scale(-1); }

.dm-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 64, 82, 0.08);
    border: 1px solid rgba(255, 64, 82, 0.25);
    border-radius: 6px;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    z-index: 5;
}
.dm-close:hover { background: rgba(255, 64, 82, 0.2); border-color: #FF4052; }
.dm-close:active { transform: scale(0.94); }

.dm-head {
    padding: 1.6rem 1.6rem 0.8rem;
    border-bottom: 1px solid rgba(255, 64, 82, 0.08);
}
.dm-eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    color: #FF4052;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.dm-title {
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1;
    margin-bottom: 6px;
}
.dm-title span { color: #FF4052; }
.dm-sub {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.dm-body {
    padding: 1.2rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.dm-field { display: flex; flex-direction: column; gap: 8px; }

.dm-label {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.dm-amount-row {
    display: flex;
    align-items: stretch;
    background: rgba(8, 8, 12, 0.7);
    border: 1px solid rgba(255, 64, 82, 0.25);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
}
.dm-amount-row:focus-within {
    border-color: #FF4052;
    background: rgba(255, 64, 82, 0.04);
}
.dm-amount {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'SFPro', sans-serif;
    font-size: 20px;
    font-weight: 600;
    padding: 12px 14px;
    outline: none;
    -moz-appearance: textfield;
    background: #161616;
}
.dm-amount::-webkit-outer-spin-button,
.dm-amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.dm-currency {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FF4052;
    background: rgba(255, 64, 82, 0.07);
    border-left: 1px solid rgba(255, 64, 82, 0.2);
}

.dm-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dm-quick-btn {
    flex: 1 1 80px;
    background: rgba(255, 64, 82, 0.05);
    border: 1px solid rgba(255, 64, 82, 0.18);
    color: #fff;
    border-radius: 6px;
    padding: 8px 10px;
    font-family: 'SFPro', sans-serif;
    font-weight: 500;
    font-size: 9px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.dm-quick-btn:hover { background: rgba(255, 64, 82, 0.12); border-color: rgba(255, 64, 82, 0.4); }
.dm-quick-btn.active { background: #FF4052; border-color: #FF4052; color: #fff; }

.dm-split {
    display: grid;
    /*grid-template-columns: 112px 1fr;*/
    gap: 14px;
    align-items: start;
}

.dm-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    background: #0c0c0c;
    border: 1px solid rgba(255, 255, 255, 0.04);
    /*border-radius: 10px;*/
}
.dm-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    font-family: 'SFPro', sans-serif;
    min-height: 78px;
}
.dm-cat:hover { color: #fff; background: rgba(255, 64, 82, 0.05); }
.dm-cat.active {
    color: #fff;
    background: rgba(255, 64, 82, 0.10);
    border-color: rgba(255, 64, 82, 0.45);
}
.dm-cat.active::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 2px;
    background: #FF4052;
}
.dm-cat-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.dm-cat-icon svg { width: 100%; height: 100%; display: block; }
.dm-cat-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1;
}
.dm-cat-count {
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    padding: 1px 6px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    line-height: 1.4;
}
.dm-cat.active .dm-cat-count {
    color: #FF4052;
    background: rgba(255, 64, 82, 0.12);
}

.dm-pane {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.dm-label-hint {
    color: #FF4052;
    font-weight: 700;
    margin-left: 4px;
}

.dm-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.dm-methods.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.dm-method {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    text-align: left;
    color: #fff;
    font-family: 'SFPro', sans-serif;
}
.dm-method:hover { border-color: rgba(255, 64, 82, 0.3); background: rgba(255, 64, 82, 0.04); }
.dm-method.selected { border-color: #FF4052; background: rgba(255, 64, 82, 0.08); }

.dm-method.tile {
    /*flex: 0 1 170px;*/
    /*min-width: 150px;*/
    /*max-width: 200px;*/
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 12px 10px;
    text-align: left;
    /*width: 127px;*/
    /*height: 127px;*/
}
.dm-method.tile .dm-method-icon {
    position: relative;
    width: 100%;
    height: 50px;
    border-radius: 6px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 64, 82, 0.10);
    color: #FF4052;
    font-size: 20px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.dm-method.tile .dm-method-icon img { width: 32px; height: 32px; object-fit: contain; }
.dm-method.tile .dm-method-icon .dm-icon-letter { line-height: 1; }
.dm-method.tile .dm-method-icon.failed::before {
    content: attr(data-fallback);
    color: #FF4052;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}
.dm-method.tile .dm-method-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dm-method.tile .dm-method-title {
    font-size: 12px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.dm-method.tile .dm-method-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.40);
    letter-spacing: 0.3px;
    line-height: 1.3;
}
.dm-method.tile .dm-method-meta {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.30);
    margin-top: 2px;
    font-weight: 700;
}
.dm-method.tile.selected {
    box-shadow: 0 0 0 1px rgba(255, 64, 82, 0.25) inset;
}
.dm-method.tile.selected .dm-method-icon {
    border-color: rgba(255, 64, 82, 0.35);
    background: rgba(255, 64, 82, 0.10);
}

@media (max-width: 640px) {
    .dm-window { max-width: 540px; }
    .dm-split {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .dm-categories {
        flex-direction: row;
        overflow-x: auto;
        padding: 6px;
        scrollbar-width: none;
    }
    .dm-categories::-webkit-scrollbar { display: none; }
    .dm-cat {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 8px;
        padding: 8px 12px;
        min-height: 0;
    }
    .dm-cat.active::before {
        left: 8px;
        right: 8px;
        top: auto;
        bottom: -1px;
        height: 2px;
        width: auto;
        border-radius: 0;
    }
    .dm-cat-icon { width: 18px; height: 18px; }
    .dm-cat-count { display: none; }
    .dm-method.tile { flex: 1 1 calc(50% - 4px); max-width: none; }

    .dm-wrapper
    {
        display: flex;
        flex-direction: column;
    }
    
    .dm-wrapper .dm-categories
    {
        width: 100% !important;
        height: 90px;
    }

    .dm-wrapper .dm-categories .dm-cat
    
}

.dm-method-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 64, 82, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FF4052;
    font-weight: 900;
    font-size: 16px;
}
.dm-method-icon img { width: 22px; height: 22px; object-fit: contain; }

.dm-method-text { flex: 1; min-width: 0; }
.dm-method-title { font-weight: 700; font-size: 13px; letter-spacing: 0.5px; }
.dm-method-sub { font-size: 11px; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }

.dm-method-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}
.dm-method.selected .dm-method-mark {
    border-color: #FF4052;
    background: #FF4052;
}
.dm-method.selected .dm-method-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.dm-skeleton-row { display: flex; flex-direction: column; gap: 6px; }
.dm-skel { height: 56px; background: rgba(255, 255, 255, 0.03); border-radius: 8px; animation: dmOverlayIn 0.6s ease infinite alternate; }
.dm-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    padding: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.dm-promo-row {
    display: flex;
    gap: 6px;
}
.dm-promo {
    flex: 1;
    background: rgba(8, 8, 12, 0.7);
    border: 1px solid rgba(255, 64, 82, 0.2);
    border-radius: 7px;
    padding: 10px 12px;
    color: #fff;
    font-family: 'SFPro', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.15s;
    background: #161616;
}
.dm-promo::placeholder { color: rgba(255, 255, 255, 0.25); letter-spacing: 0.5px; text-transform: none; }
.dm-promo:focus { border-color: #FF4052; }
.dm-promo.ok { border-color: #2ecc71; box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.18) inset; }
.dm-promo.warn { border-color: #FF8C42; box-shadow: 0 0 0 1px rgba(255, 140, 66, 0.18) inset; }
.dm-promo.err { border-color: #ff5566; box-shadow: 0 0 0 1px rgba(255, 85, 102, 0.2) inset; }

.dm-promo-btn {
    background: rgba(255, 64, 82, 0.12);
    border: 1px solid rgba(255, 64, 82, 0.4);
    color: #FF4052;
    border-radius: 7px;
    padding: 0 14px;
    font-family: 'SFPro', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.dm-promo-btn:hover { background: #FF4052; color: #fff; }
.dm-promo-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.dm-promo-msg {
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 6px 8px;
    border-radius: 5px;
    margin-top: 2px;
}
.dm-promo-msg.ok { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.dm-promo-msg.warn { background: rgba(255, 140, 66, 0.1); color: #FF8C42; }
.dm-promo-msg.err { background: rgba(255, 85, 102, 0.1); color: #ff5566; }

.dm-summary {
    background: rgba(255, 64, 82, 0.04);
    border: 1px solid rgba(255, 64, 82, 0.15);
    border-radius: 9px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dm-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.4px;
}
.dm-row.dm-bonus { color: #2ecc71; font-weight: 700; }
.dm-row.dm-fee { color: #FF8C42; font-weight: 700; }
.dm-row.dm-total {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 64, 82, 0.2);
    font-weight: 900;
    font-size: 16px;
    color: #fff;
    letter-spacing: 1px;
}
.dm-row.dm-total span:last-child { color: #FF4052; }

.dm-alert {
    background: rgba(255, 85, 102, 0.1);
    border: 1px solid rgba(255, 85, 102, 0.4);
    color: #ff6b78;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.dm-submit {
    width: 100%;
    height: 46px;
    background: #FF4052;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'SFPro', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.dm-foot
{
    font-size: 13px;
    color: #444;
    margin-top: 2px;
}

.dm-foot a
{
    text-decoration: none;
    color: #ff4052;
}

.dm-foot a:hover
{
    cursor: pointer;
}

.dm-wrapper
{
    display: flex;
}

.dm-wrapper .dm-categories
{
    width: 120px;
}

.dm-wrapper .dm-body
{
    width: 100%;
}

/*#selected-skin-container*/
/*{*/
/*    position: relative;*/
/*    overflow: hidden;*/

/*    &::before {*/
/*        content: '';*/
/*        position: absolute;*/
/*        inset: -30%;*/
/*        background:*/
/*                radial-gradient(*/
/*                        circle,*/
/*                        rgba(255, 40, 40, 0.18) 0%,*/
/*                        transparent 60%*/
/*                );*/
/*        filter: blur(80px);*/
/*        pointer-events: none;*/
/*    }*/
/*}*/