@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Wrap ─── */
.dp-wrap {
    min-height: 100vh;
    color: #e8e0d0;
    padding: 40px 16px 80px;
    position: relative;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
}
main {
    min-height: 100vh;
}
.vanila-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.vanila-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer, .dp-card {
    background: #080303e0!important;
}
.dp-grid-bg {
    position: absolute;
    inset: 0;
    background-size: 48px 48px;
    pointer-events: none;
    animation: gridFade 2s ease forwards;
}
@keyframes gridFade { from { opacity: 0; } to { opacity: 1; } }

/* ─── Inner ─── */
.dp-inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-top: 60px;
    z-index: 1;
}

/* ─── Header ─── */
.dp-title {
    text-align: center;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #c0a060;
    text-transform: uppercase;
    animation: slideDown 0.6s ease both;
}
.dp-heading {
    text-align: center;
    margin-bottom: 40px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #f0e8d8;
    text-transform: uppercase;
    animation: slideDown 0.6s 0.1s ease both;
}
.dp-heading span { color: #d3051d; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Grid ─── */
.dp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    animation: fadeUp 0.7s 0.2s ease both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 680px) { .dp-grid { grid-template-columns: 1fr; } }

/* ─── Card ─── */
.dp-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 28px 28px;
    position: relative;
    transition: border-color 0.3s;
}
.dp-card:hover { border-color: rgba(200,120,40,0.2); }

.dp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,120,40,0.7), transparent);
    border-radius: 50%;
}
.dp-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(200,120,40,0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* ─── Card Label ─── */
.dp-card-label {
    font-size: 10px;
    letter-spacing: 4px;
    font-weight: 700;
    color: #c0a060;
    text-transform: uppercase;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dp-card-label::before {
    content: '';
    width: 3px; height: 12px;
    background: #d3051d;
    border-radius: 2px;
    flex-shrink: 0;
}
.dp-card-label::after {
    content: '';
    flex: 1; height: 1px;
    background: rgba(255,255,255,0.06);
}

/* ─── Field ─── */
.dp-field-label {
    font-size: 10px;
    color: rgba(200,180,140,0.45);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.dp-field-gap { margin-bottom: 10px; }

/* ─── Inputs ─── */
.dp-input {
    width: 100%;
    height: 48px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    color: #f0e8d8;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 0 16px;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    outline: none;
}
.dp-input:hover { border-color: rgba(255,255,255,0.15); }
.dp-input:focus {
    border-color: rgba(200,120,40,0.7);
    background: rgba(0,0,0,0.65);
    box-shadow: 0 0 0 3px rgba(200,120,40,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
}
.dp-input::placeholder { color: rgba(200,180,140,0.25); font-size: 13px; }

/* Validation states */
.dp-input.error {
    border-color: rgba(211,5,29,0.8) !important;
    box-shadow: 0 0 0 3px rgba(211,5,29,0.15) !important;
    animation: shake 0.4s ease;
}
.dp-input.success {
    border-color: rgba(100,200,80,0.6) !important;
    box-shadow: 0 0 0 3px rgba(100,200,80,0.1) !important;
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ─── Amount Field ─── */
.dp-amount-wrap { position: relative; }

.dp-amount-field {
    width: 100%;
    height: 52px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    color: #f0e8d8;
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 700;
    padding: 0 16px 0 46px;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    outline: none;
    letter-spacing: 1px;
}
.dp-amount-field:hover { border-color: rgba(255,255,255,0.15); }
.dp-amount-field:focus {
    border-color: rgba(200,120,40,0.7);
    background: rgba(0,0,0,0.65);
    box-shadow: 0 0 0 3px rgba(200,120,40,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
}
.dp-amount-field.error {
    border-color: rgba(211,5,29,0.8) !important;
    box-shadow: 0 0 0 3px rgba(211,5,29,0.15) !important;
    animation: shake 0.4s ease;
}

/* ─── Presets ─── */
.dp-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.dp-preset {
    padding: 5px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 3px;
    color: rgba(200,180,140,0.5);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}
.dp-preset::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(200,120,40,0.15);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
}
.dp-preset:hover {
    border-color: rgba(200,120,40,0.4);
    color: #f0c060;
}
.dp-preset:hover::before { transform: scaleX(1); }
.dp-preset.active {
    background: rgba(200,120,40,0.18);
    border-color: rgba(200,120,40,0.7);
    color: #f0c060;
    box-shadow: 0 0 12px rgba(200,120,40,0.2);
}

/* ─── Range ─── */
.dp-range-wrap { margin-top: 20px; }
.dp-range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.dp-range-label {
    font-size: 10px;
    color: rgba(200,180,140,0.35);
    letter-spacing: 2px;
}

input[type=range].dp-range {
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
}
input[type=range].dp-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #e8b860 0%, #c0a060 100%);
    border: 2px solid rgba(10,10,20,0.9);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 0 0 rgba(200,120,40,0);
}
input[type=range].dp-range:hover::-webkit-slider-thumb,
input[type=range].dp-range:active::-webkit-slider-thumb {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(200,120,40,0.2);
}

/* ─── Divider ─── */
.dp-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    margin: 22px 0;
}

/* ─── Summary ─── */
.dp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}
.dp-summary-key {
    font-size: 10px;
    color: rgba(200,180,140,0.45);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.dp-summary-val {
    font-size: 14px;
    font-weight: 700;
    color: #e0d0b0;
    transition: all 0.3s;
}
.dp-summary-total .dp-summary-key { color: #c0a060; font-size: 11px; }
.dp-summary-total .dp-summary-val {
    font-size: 22px;
    color: #f0c060;
    text-shadow: 0 0 20px rgba(240,192,96,0.3);
}

/* val update flash */
.dp-summary-val.flash {
    animation: valFlash 0.3s ease;
}
@keyframes valFlash {
    0%   { color: #ffffff; }
    100% { color: inherit; }
}

/* ─── Errors block ─── */
.dp-errors {
    background: rgba(211,5,29,0.1);
    border: 1px solid rgba(211,5,29,0.3);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    color: #ff6060;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    animation: fadeUp 0.3s ease;
}

/* ─── Validation hint ─── */
.dp-field-hint {
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 5px;
    height: 14px;
    transition: all 0.2s;
    opacity: 0;
}
.dp-field-hint.show { opacity: 1; }
.dp-field-hint.hint-error { color: #e05050; }
.dp-field-hint.hint-ok    { color: #70c050; }

/* ─── Button ─── */
.dp-btn {
    width: 100%;
    height: 52px;
    margin-top: 20px;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    background: #8a0010;
}
.dp-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.dp-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s;
}
.dp-btn:hover {
    background: #d3051d;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(211,5,29,0.5);
}
.dp-btn:hover::after { left: 160%; }
.dp-btn:active { transform: translateY(0); box-shadow: none; }

/* ─── Notice ─── */
.dp-notice {
    text-align: center;
    margin-top: 14px;
    font-size: 10px;
    color: rgba(200, 180, 140, 0.53);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ─── Tier bar ─── */
.dp-tier-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}
.dp-tier {
    flex: 1;
    padding: 5px 2px;
    text-align: center;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    color: rgba(200,180,140,0.3);
    transition: all 0.35s;
    cursor: default;
}
.dp-tier-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: currentColor;
    margin: 0 auto 3px;
    transition: all 0.35s;
}
.dp-tier.reached {
    background: rgba(200,120,40,0.1);
    border-color: rgba(200,120,40,0.3);
    color: #b07828;
}
.dp-tier.current {
    background: rgba(211,5,29,0.15);
    border-color: rgba(211,5,29,0.5);
    color: #ff5050;
    box-shadow: 0 0 10px rgba(211,5,29,0.2);
}
.dp-tier.current .dp-tier-dot {
    box-shadow: 0 0 6px currentColor;
}

/* ─── Bonus list ─── */
.dp-bonus-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dp-currency{
    display:flex;
    align-items:center;
    gap:8px;
}

.dp-cur-icon{
    font-size:16px;
    line-height:1;
}

.dp-cur-text{
    font-size:14px;
    letter-spacing:.5px;
}
.dp-bonus-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 4px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}
.dp-bonus-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: rgba(200,120,40,0);
    transition: background 0.35s;
    border-radius: 2px 0 0 2px;
}
.dp-bonus-item.active {
    border-color: rgba(200,120,40,0.35);
    background: rgba(200,120,40,0.06);
}
.dp-bonus-item.active::before { background: #c0a060; }
.dp-bonus-item.locked { opacity: 0.3; }

.dp-bonus-item.just-activated {
    animation: bonusPop 0.4s ease;
}
@keyframes bonusPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.025); }
    100% { transform: scale(1); }
}

.dp-bonus-icon {
    flex-shrink: 0;
    width: 26px;
    text-align: center;
}
.dp-bonus-icon img {
    width: 22px; height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.3));
    transition: filter 0.3s;
}
.dp-bonus-item.active .dp-bonus-icon img {
    filter: drop-shadow(0 0 6px rgba(240,192,96,0.6));
}

.dp-bonus-info { flex: 1; min-width: 0; }
.dp-bonus-name {
    font-size: 14px;
    font-weight: 700;
    color: #c8b890;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
    transition: color 0.3s;
}
.dp-bonus-item.active .dp-bonus-name { color: #e8d098; }
.dp-bonus-desc {
    font-size: 14px;
    color: rgba(200, 180, 140, 0.53);
    margin-top: 2px;
    line-height: 1.3;
}
.dp-bonus-req {
    font-size: 13px;
    color: rgba(200,120,40,0.45);
    margin-top: 3px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.dp-bonus-req.met { color: #70c050; }

.dp-bonus-val {
    font-size: 18px;
    font-weight: 700;
    color: rgba(200, 180, 140, 0.35);
    letter-spacing: 1px;
    flex-shrink: 0;
    transition: all 0.35s;
}
.dp-bonus-val.active-val {
    color: #f0c060;
    text-shadow: 0 0 16px rgba(240,192,96,0.4);
}

/* ─── Modal ─── */
.dp-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.dp-modal.active { display: flex; }

.dp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(6px);
    animation: overlayIn 0.25s ease;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.dp-modal-box {
    position: relative;
    width: 540px;
    max-width: 95%;
    background: #0d0d0d;
    border: 1px solid rgba(200,120,40,0.2);
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.03);
    animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.dp-modal-box::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,120,40,0.7), transparent);
}

.dp-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #d0b880;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dp-modal-close {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    font-size: 20px;
    color: rgba(200,180,140,0.5);
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.dp-modal-close:hover {
    background: rgba(211,5,29,0.2);
    border-color: rgba(211,5,29,0.4);
    color: #ff6060;
}

/* Currency */
.dp-modal-section-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(200,180,140,0.4);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.dp-currency-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.dp-currency {
    padding: 8px 20px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 4px;
    cursor: pointer;
    color: rgba(200,180,140,0.5);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    transition: all 0.2s;
}
.dp-currency:hover { border-color: rgba(200,120,40,0.5); color: #f0c060; }
.dp-currency.active {
    border-color: rgba(200,120,40,0.8);
    background: rgba(200,120,40,0.15);
    color: #f0c060;
    box-shadow: 0 0 12px rgba(200,120,40,0.2);
}

/* Payment methods */
.dp-pay-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.dp-pay-method {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.dp-pay-method img { height: 40px; object-fit: contain; transition: filter 0.2s; }
.dp-pay-method:hover {
    border-color: rgba(200,120,40,0.5);
    background: rgba(200,120,40,0.07);
}
.dp-pay-method:hover img { filter: brightness(1.2); }
.dp-pay-method.active {
    border-color: rgba(200,120,40,0.8);
    background: rgba(200,120,40,0.12);
    box-shadow: 0 0 14px rgba(200,120,40,0.2);
}

.dp-modal-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.dp-modal-footer .dp-btn { margin-top: 0; }

/* ─── Toast ─── */
.dp-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(15,10,10,0.97);
    border: 1px solid rgba(211,5,29,0.4);
    border-radius: 5px;
    color: #ff8080;
    padding: 10px 22px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
}
.dp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.dp-toast.toast-ok {
    border-color: rgba(80,200,60,0.4);
    color: #80e060;
}