/* ═══ Custom Confirm Dialog ═══ */
.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background 0.25s ease, backdrop-filter 0.25s ease;
    padding: 16px;
}

.cc-overlay.cc-active {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
}

.cc-overlay.cc-closing {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
}

.cc-card {
    background: linear-gradient(145deg, #1e1240, #2a1a5e, #1a0f38);
    border: 1px solid rgba(140, 120, 255, 0.3);
    border-radius: 20px;
    padding: 28px 24px 20px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(120, 80, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.cc-active .cc-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.cc-closing .cc-card {
    transform: scale(0.9) translateY(10px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.15s ease;
}

.cc-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 12px rgba(255, 200, 100, 0.3));
    animation: ccIconPulse 2s ease-in-out infinite;
}

@keyframes ccIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.cc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.cc-message {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 22px;
    word-break: break-word;
}

.cc-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cc-btn {
    flex: 1;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
    max-width: 160px;
}

.cc-btn:active {
    transform: scale(0.96);
}

.cc-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cc-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.cc-btn-confirm {
    background: linear-gradient(135deg, #6c5ce7, #a78bfa);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.cc-btn-confirm:hover {
    background: linear-gradient(135deg, #7c6cf7, #b79cff);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
    transform: translateY(-1px);
}

.cc-btn-confirm:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

.cc-btn-danger {
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.cc-btn-danger:hover {
    background: linear-gradient(135deg, #ff5e4e, #ff7b7b);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

/* ═══ Prompt Input ═══ */
.cc-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(140, 120, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    margin-bottom: 18px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.cc-input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.3);
}

.cc-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.cc-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.cc-input[type="number"]::-webkit-inner-spin-button,
.cc-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
