/* ========================================
   DISCORD ORDER MODAL (prefixed to avoid
   conflicts with order-system.css)
   ======================================== */
.dm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dm-overlay.active {
    display: flex;
    opacity: 1;
}

.dm-box {
    background: linear-gradient(145deg, #111111, #0a0a0a);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 2rem 2rem 1.8rem;
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.08);
    animation: dmSlideIn 0.35s ease;
}

.dm-box::-webkit-scrollbar {
    width: 6px;
}

.dm-box::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.2);
    border-radius: 3px;
}

@keyframes dmSlideIn {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.dm-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #aaa;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.dm-close:hover {
    background: rgba(255, 70, 70, 0.15);
    border-color: rgba(255, 70, 70, 0.3);
    color: #ff6b6b;
}

.dm-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.25);
}

.dm-icon svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.dm-box h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.dm-subtitle {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

/* Plan Summary */
.dm-summary {
    background: rgba(255, 215, 0, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 1rem;
}

.dm-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.dm-summary-game {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.08));
    color: #FFD700;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dm-summary-plan {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.dm-summary-price {
    color: #FFD700;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.dm-summary-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.dm-summary-features span {
    color: #bbb;
    font-size: 0.78rem;
    line-height: 1.6;
}

/* Extras */
.dm-extras {
    margin-bottom: 1rem;
}

.dm-extras-title {
    color: #ccc;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.dm-extras-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.dm-extra-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dm-extra-btn:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.15);
}

.dm-extra-btn.selected {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.08);
}

.dm-extra-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.dm-extra-name {
    color: #ddd;
    font-size: 0.72rem;
    font-weight: 600;
    flex: 1;
    line-height: 1.3;
}

.dm-extra-price {
    color: #FFD700;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Copy Box */
.dm-copybox {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 1rem;
    position: relative;
}

.dm-copytext {
    color: #ccc;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.dm-copytext::-webkit-scrollbar {
    width: 4px;
}

.dm-copytext::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.15);
    border-radius: 2px;
}

.dm-copybtn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 8px;
    color: #FFD700;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dm-copybtn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

.dm-copybtn.copied {
    background: rgba(0, 200, 80, 0.15);
    border-color: rgba(0, 200, 80, 0.3);
    color: #00c850;
}

.dm-copybtn svg {
    width: 12px;
    height: 12px;
}

/* Steps */
.dm-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.dm-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: center;
}

.dm-step-num {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #FFD700;
}

.dm-step span:last-child {
    color: #aaa;
    font-size: 0.7rem;
    line-height: 1.3;
}

/* Discord CTA */
.dm-cta {
    display: flex;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3);
}

.dm-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.45);
    background: linear-gradient(135deg, #6873F5, #5865F2);
}

.dm-cta svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Mobile */
@media (max-width: 500px) {
    .dm-box {
        padding: 1.5rem 1.2rem;
        border-radius: 16px;
        max-height: 85vh;
    }

    .dm-box h3 {
        font-size: 1.1rem;
    }

    .dm-extras-grid {
        grid-template-columns: 1fr;
    }

    .dm-steps {
        flex-direction: column;
    }

    .dm-step {
        flex-direction: row;
        text-align: left;
    }
}