/* Custom SweetAlert2 Styles */

/* ==========================================
   GLOBAL SWEETALERT2 DARK THEME OVERRIDES
   ========================================== */

/* 1. Global Popup Container */
div:where(.swal2-container) div:where(.swal2-popup) {
    background: #0b0f19 !important; /* Premium deep dark background */
    border: 1px solid rgba(255, 255, 255, 0.08) !important; /* Elegant subtle border */
    border-radius: 24px !important;
    padding: 35px 28px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(14, 165, 233, 0.05) !important;
    font-family: 'Inter', sans-serif !important;
}

/* 2. Global Title */
div:where(.swal2-container) div:where(.swal2-title) {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.5px !important;
}

/* 3. Global Content Text */
div:where(.swal2-container) div:where(.swal2-html-container) {
    color: #94a3b8 !important; /* Muted slate text */
    font-size: 14.5px !important;
    line-height: 1.6 !important;
}

/* 4. Global Action Buttons Container */
div:where(.swal2-container) div:where(.swal2-actions) {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
    padding: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 5. Global Confirm Button */
div:where(.swal2-container) .swal2-actions button.swal2-confirm {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3) !important;
    transition: all 0.3s ease !important;
    min-width: 110px !important;
    margin: 0 !important;
}

div:where(.swal2-container) .swal2-actions button.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4) !important;
    filter: brightness(1.1) !important;
}

/* 6. Global Cancel Button */
div:where(.swal2-container) .swal2-actions button.swal2-cancel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(148, 163, 184, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #cbd5e1 !important;
    transition: all 0.3s ease !important;
    min-width: 110px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

div:where(.swal2-container) .swal2-actions button.swal2-cancel:hover {
    background: rgba(148, 163, 184, 0.15) !important;
    color: #ffffff !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
}

/* 7. Global Inputs styling (for prompt dialogs) */
div:where(.swal2-container) input.swal2-input,
div:where(.swal2-container) textarea.swal2-textarea,
div:where(.swal2-container) select.swal2-select {
    background-color: #020617 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: #38bdf8 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    margin: 15px auto !important;
}

div:where(.swal2-container) input.swal2-input:focus,
div:where(.swal2-container) textarea.swal2-textarea:focus,
div:where(.swal2-container) select.swal2-select:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2) !important;
}

/* 8. Success Icon styling globally */
div:where(.swal2-container) div:where(.swal2-icon).swal2-success {
    border-color: #10b981 !important;
}
div:where(.swal2-container) div:where(.swal2-icon).swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
}
div:where(.swal2-container) div:where(.swal2-icon).swal2-success .swal2-success-ring {
    border: 4px solid rgba(16, 185, 129, 0.2) !important;
}

/* 9. Error Icon styling globally */
div:where(.swal2-container) div:where(.swal2-icon).swal2-error {
    border-color: #ef4444 !important;
}
div:where(.swal2-container) div:where(.swal2-icon).swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

/* 10. Warning Icon styling globally */
div:where(.swal2-container) div:where(.swal2-icon).swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

/* 11. Info Icon styling globally */
div:where(.swal2-container) div:where(.swal2-icon).swal2-info {
    border-color: #0ea5e9 !important;
    color: #0ea5e9 !important;
}

/* Base Popup */
.custom-swal-popup {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 2px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: 20px !important;
    padding: 32px !important;
}

.custom-swal-popup .swal2-title {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

.custom-swal-popup .swal2-html-container {
    color: #cbd5e1 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* ===== EXTEND TIME POPUP ===== */
.extend-popup {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 2px solid rgba(56, 189, 248, 0.5) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    max-width: 500px !important;
}

.extend-popup .swal2-title {
    color: #38bdf8 !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 0 !important;
}

.extend-input {
    background: rgba(56, 189, 248, 0.1) !important;
    border: 2px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    color: #38bdf8 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    margin-top: 20px !important;
}

.extend-input:focus {
    outline: none !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2) !important;
    background: rgba(56, 189, 248, 0.15) !important;
}

.extend-confirm-btn {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 36px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4) !important;
    transition: all 0.3s ease !important;
}

.extend-confirm-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.5) !important;
}

.extend-cancel-btn {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 2px solid rgba(239, 68, 68, 0.4) !important;
    border-radius: 12px !important;
    padding: 14px 36px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #ef4444 !important;
    transition: all 0.3s ease !important;
}

.extend-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
}

/* ===== ACTIVE KEY POPUP ===== */
.active-key-popup {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 2px solid rgba(16, 185, 129, 0.5) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    max-width: 550px !important;
}

.active-key-popup .swal2-title {
    color: #10b981 !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 0 !important;
}

.active-key-input {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 2px solid rgba(16, 185, 129, 0.4) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    color: #10b981 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
    margin-top: 20px !important;
}

.active-key-input:focus {
    outline: none !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2) !important;
    background: rgba(16, 185, 129, 0.15) !important;
}

.active-key-confirm-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 36px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.3s ease !important;
}

.active-key-confirm-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5) !important;
}

.active-key-cancel-btn {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 2px solid rgba(239, 68, 68, 0.4) !important;
    border-radius: 12px !important;
    padding: 14px 36px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #ef4444 !important;
    transition: all 0.3s ease !important;
}

.active-key-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
}

/* Actions spacing */
.extend-popup .swal2-actions,
.active-key-popup .swal2-actions {
    gap: 16px !important;
    margin-top: 28px !important;
}

/* Pulse Animation for Active Key Icon */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
    }
}

/* Shake Animation for Delete Icon */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ===== DELETE POPUP ===== */
.delete-popup {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 2px solid rgba(239, 68, 68, 0.5) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    max-width: 550px !important;
}

.delete-popup .swal2-title {
    color: #ef4444 !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 0 !important;
}

.delete-confirm-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 36px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
    transition: all 0.3s ease !important;
}

.delete-confirm-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5) !important;
}

.delete-cancel-btn {
    background: rgba(148, 163, 184, 0.15) !important;
    border: 2px solid rgba(148, 163, 184, 0.4) !important;
    border-radius: 12px !important;
    padding: 14px 36px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #cbd5e1 !important;
    transition: all 0.3s ease !important;
}

.delete-cancel-btn:hover {
    background: rgba(148, 163, 184, 0.25) !important;
    border-color: rgba(148, 163, 184, 0.6) !important;
}

.delete-popup .swal2-actions {
    gap: 16px !important;
    margin-top: 28px !important;
}

/* Validation Message */
.custom-swal-popup .swal2-validation-message,
.extend-popup .swal2-validation-message,
.active-key-popup .swal2-validation-message {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #ef4444 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-top: 12px !important;
}

/* Loading Spinner */
.custom-swal-popup .swal2-loader,
.extend-popup .swal2-loader {
    border-color: #38bdf8 transparent #38bdf8 transparent !important;
}
.active-key-popup .swal2-loader {
    border-color: #10b981 transparent #10b981 transparent !important;
}

/* Ẩn các nút bấm trong container khi đang hiển thị loader */
.swal2-actions.swal2-loading button.swal2-confirm,
.swal2-actions.swal2-loading button.swal2-cancel,
.swal2-actions.swal2-loading .ak-confirm-btn,
.swal2-actions.swal2-loading .ak-cancel-btn,
.swal2-actions.swal2-loading .extend-confirm-btn,
.swal2-actions.swal2-loading .extend-cancel-btn,
.swal2-actions.swal2-loading .delete-confirm-btn,
.swal2-actions.swal2-loading .delete-cancel-btn {
    display: none !important;
}

/* Icon Styles */
.custom-swal-popup .swal2-icon {
    border: none !important;
    margin: 20px auto !important;
}

.custom-swal-popup .swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.custom-swal-popup .swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.custom-swal-popup .swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.custom-swal-popup .swal2-icon.swal2-info {
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}

/* ===== REDESIGNED GPM LICENSE POPUP ===== */
.gpm-license-popup {
    background: #0f172a !important; /* Deep Slate Background */
    border: 1px solid rgba(16, 185, 129, 0.25) !important; /* Green Accent border */
    border-radius: 24px !important;
    padding: 35px 28px !important;
    max-width: 450px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 30px rgba(16, 185, 129, 0.15) !important;
}

/* Base title override for SweetAlert when popup is active */
.gpm-license-popup .swal2-title {
    display: none !important; /* Hide original title to use our custom nested HTML title */
}

/* Header container */
.gpm-badge-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.gpm-badge-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 36px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    animation: iconZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconZoomIn {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Title & Subtitle */
.gpm-modal-title {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 0 6px !important;
    letter-spacing: -0.5px !important;
}

.gpm-modal-subtitle {
    color: #94a3b8 !important;
    font-size: 13px !important;
    margin: 0 0 24px !important;
}

/* Key container - Flex row */
.gpm-key-wrapper {
    display: flex;
    align-items: center;
    background: #020617 !important; /* Darker navy */
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    border-radius: 14px !important;
    padding: 6px 6px 6px 16px !important;
    margin-bottom: 20px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s ease;
}

.gpm-key-wrapper:hover {
    border-color: #10b981 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 12px rgba(16, 185, 129, 0.25) !important;
}

.gpm-key-wrapper input {
    flex: 1 !important;
    min-width: 0 !important; /* Allow the input to shrink so the button doesn't wrap */
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #34d399 !important; /* Emerald green key */
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gpm-copy-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important; /* Prevent text wrapping inside the button */
    flex-shrink: 0 !important; /* Prevent button from shrinking */
}

.gpm-copy-btn:hover {
    filter: brightness(1.1) !important;
    transform: translateY(-1px) !important;
}

.gpm-copy-btn:active {
    transform: translateY(0) !important;
}

/* Instructions card */
.gpm-instructions-box {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-bottom: 24px !important;
    text-align: left !important;
}

.gpm-instruction-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.gpm-instruction-item:last-child {
    margin-bottom: 0 !important;
}

.gpm-instruction-item .step-badge {
    width: 20px !important;
    height: 20px !important;
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #34d399 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

.gpm-instruction-item .step-text {
    color: #94a3b8 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* Action button area override */
.gpm-license-popup .swal2-actions {
    margin-top: 0 !important;
    padding: 0 !important;
}

/* Confirm Action Button */
.gpm-close-btn {
    background: rgba(148, 163, 184, 0.1) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    border-radius: 12px !important;
    padding: 12px 36px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #cbd5e1 !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    min-width: 140px !important;
    box-shadow: none !important;
}

.gpm-close-btn:hover {
    background: #ff4d4f !important; /* Red hover for close button */
    border-color: #ff4d4f !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 77, 79, 0.3) !important;
}

/* ===== MKT USER POPUP ===== */
.user-popup-dark {
    background: #0b0f19 !important; /* Premium deep dark background */
    border: 1px solid rgba(56, 189, 248, 0.2) !important; /* Glowing cyan border outline */
    border-radius: 24px !important;
    padding: 35px 28px !important;
    max-width: 460px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.1) !important;
    font-family: 'Inter', sans-serif !important;
}

/* Header Section */
.mkt-popup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.mkt-popup-icon-container {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.mkt-popup-icon-container i {
    font-size: 32px;
    color: #ffffff;
}

.mkt-popup-title {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
    letter-spacing: -0.5px !important;
}

.mkt-popup-subtitle {
    color: #64748b !important;
    font-size: 13px !important;
    margin: 0 !important;
}

/* Input & Copy Row */
.mkt-form-group {
    text-align: left;
    margin-bottom: 24px;
}

.mkt-form-label {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mkt-input-wrapper {
    display: flex;
    gap: 8px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    transition: all 0.3s ease;
}

.mkt-input-wrapper:focus-within {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.mkt-input {
    flex: 1;
    min-width: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #38bdf8 !important; /* Cyber cyan text */
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 6px 10px !important;
}

.mkt-input:disabled {
    color: #64748b !important;
    cursor: not-allowed;
}

.mkt-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 165, 233, 0.1) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mkt-copy-btn:hover {
    background: rgba(14, 165, 233, 0.2) !important;
    border-color: #38bdf8 !important;
    transform: translateY(-1px);
}

.mkt-copy-btn:active {
    transform: translateY(0);
}

.mkt-random-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(168, 85, 247, 0.1) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mkt-random-btn:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    border-color: #a855f7 !important;
    transform: translateY(-1px);
}

.mkt-random-btn:active {
    transform: translateY(0);
}

/* Danger Zone for Reset Key */
.mkt-danger-zone {
    background: rgba(239, 68, 68, 0.03);
    border: 1px dashed rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 16px;
    text-align: left;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mkt-danger-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mkt-danger-header i {
    color: #ef4444;
    font-size: 18px;
}

.mkt-danger-title {
    color: #fca5a5 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-transform: uppercase;
}

.mkt-danger-desc {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.mkt-reset-btn {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mkt-reset-btn:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
}

/* Blocked state indicator */
.mkt-blocked-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 20px;
    text-align: left;
}

.mkt-blocked-warning i {
    color: #f59e0b;
    font-size: 16px;
    flex-shrink: 0;
}

.mkt-blocked-warning span {
    color: #f59e0b;
    font-size: 12px;
    font-weight: 500;
}

/* SweetAlert Action Buttons spacing override */
.user-popup-dark .swal2-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Save / Confirm Button styling */
.mkt-save-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3) !important;
    transition: all 0.3s ease !important;
    min-width: 110px !important;
    margin: 0 !important;
}

.mkt-save-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4) !important;
    filter: brightness(1.1) !important;
}

/* Cancel Button styling */
.mkt-cancel-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(148, 163, 184, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #cbd5e1 !important;
    transition: all 0.3s ease !important;
    min-width: 110px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.mkt-cancel-btn:hover {
    background: rgba(148, 163, 184, 0.15) !important;
    color: #ffffff !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
}

/* ===== ACTIVE KEY POPUP ===== */
.active-key-popup {
    background: #0b0f19 !important; /* Deep dark theme */
    border: 1px solid rgba(16, 185, 129, 0.2) !important; /* Glowing green border outline */
    border-radius: 24px !important;
    padding: 35px 28px !important;
    max-width: 460px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.1) !important;
    font-family: 'Inter', sans-serif !important;
}

/* Header Section */
.ak-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.ak-icon-container {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.ak-icon-container i {
    font-size: 32px;
    color: #ffffff;
}

.ak-title {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
    letter-spacing: -0.5px !important;
}

.ak-subtitle {
    color: #64748b !important;
    font-size: 13px !important;
    margin: 0 !important;
}

/* Steps List styling */
.ak-steps-container {
    text-align: left;
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid #10b981;
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ak-step-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ak-step-badge {
    background: #10b981;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.ak-step-text {
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
}

/* SweetAlert Input override inside active key popup */
.active-key-popup .swal2-input {
    background-color: #020617 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: #10b981 !important; /* Green text for active key */
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    height: 48px !important;
    box-shadow: none !important;
    text-align: center !important;
    margin: 0 0 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

.active-key-popup .swal2-input:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* Action Buttons Container spacing override */
.active-key-popup .swal2-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Confirm / Active Key Button */
.ak-confirm-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s ease !important;
    min-width: 110px !important;
    margin: 0 !important;
}

.ak-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    filter: brightness(1.1) !important;
}

/* Cancel / Back Button */
.ak-cancel-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(148, 163, 184, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #cbd5e1 !important;
    transition: all 0.3s ease !important;
    min-width: 110px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.ak-cancel-btn:hover {
    background: rgba(148, 163, 184, 0.15) !important;
    color: #ffffff !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
}

/* ===== DELETE / DANGER CONFIRMATION POPUP ===== */
.delete-popup {
    background: #0b0f19 !important; /* Deep dark background */
    border: 1px solid rgba(239, 68, 68, 0.2) !important; /* Red glow outline */
    border-radius: 24px !important;
    padding: 30px 24px !important;
    max-width: 420px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(239, 68, 68, 0.1) !important;
    font-family: 'Inter', sans-serif !important;
}

.delete-popup .swal2-title {
    color: #fca5a5 !important; /* Red text for title */
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.delete-popup .swal2-html-container {
    color: #94a3b8 !important; /* Muted text for content */
    font-size: 13.5px !important;
    line-height: 1.5 !important;
}

/* Icons override inside Swal */
.delete-popup .swal2-icon.swal2-warning {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    margin-top: 10px !important;
}

/* Confirm Button (Delete/Reset Action) */
.delete-confirm-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
    transition: all 0.3s ease !important;
    min-width: 110px !important;
    margin: 0 !important;
}

.delete-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
    filter: brightness(1.1) !important;
}

/* Cancel Button */
.delete-cancel-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(148, 163, 184, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #cbd5e1 !important;
    transition: all 0.3s ease !important;
    min-width: 110px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.delete-cancel-btn:hover {
    background: rgba(148, 163, 184, 0.15) !important;
    color: #ffffff !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
}

/* Actions Wrapper centering override for delete-popup */
.delete-popup .swal2-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: 15px !important;
    padding: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ===== WARNING POPUP ===== */
.warning-popup {
    background: #0b0f19 !important; /* Deep dark background */
    border: 1px solid rgba(245, 158, 11, 0.2) !important; /* Orange/Yellow glow outline */
    border-radius: 24px !important;
    padding: 30px 24px !important;
    max-width: 420px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.1) !important;
    font-family: 'Inter', sans-serif !important;
}

.warning-popup .swal2-title {
    color: #fef08a !important; /* Light yellow title */
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.warning-popup .swal2-html-container {
    color: #94a3b8 !important; /* Muted content */
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Warning icon adjustment */
.warning-popup .swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    margin-top: 10px !important;
}

/* Warning Close Button */
.warning-close-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 12px !important;
    padding: 12px 36px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 110px !important;
    margin: 0 !important;
}

.warning-close-btn:hover {
    background: #f59e0b !important;
    color: #ffffff !important;
    border-color: #f59e0b !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Actions centering for warning-popup */
.warning-popup .swal2-actions {
    display: flex !important;
    margin-top: 15px !important;
    padding: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ===== RESULT POPUP (SUCCESS, ERROR, INFO) ===== */
.result-popup {
    background: #0b0f19 !important; /* Deep dark background */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    padding: 35px 28px !important;
    max-width: 420px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.05) !important;
    font-family: 'Inter', sans-serif !important;
}

.result-popup .swal2-title {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.result-popup .swal2-html-container {
    color: #94a3b8 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Success icon styling */
.result-popup .swal2-icon.swal2-success {
    border-color: #10b981 !important;
}
.result-popup .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
}
.result-popup .swal2-icon.swal2-success .swal2-success-ring {
    border: 4px solid rgba(16, 185, 129, 0.2) !important;
}

/* Error icon styling */
.result-popup .swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}
.result-popup .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

/* Confirm Button inside result popup */
.result-confirm-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    padding: 12px 36px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3) !important;
    transition: all 0.3s ease !important;
    min-width: 110px !important;
    margin: 0 !important;
}

.result-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4) !important;
    filter: brightness(1.1) !important;
}

.result-popup .swal2-actions {
    display: flex !important;
    margin-top: 15px !important;
    padding: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ===================================================
   AUTH REQUIRED MODAL (UI/UX PRO MAX - CYBER PREMIUM)
   =================================================== */
.auth-required-popup {
    background: linear-gradient(180deg, #0f172a 0%, #090d16 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 26px !important;
    padding: 34px 28px 24px !important;
    max-width: 450px !important;
    width: 92% !important;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(14, 165, 233, 0.15) !important;
    font-family: 'Inter', sans-serif !important;
    position: relative !important;
    overflow: hidden !important;
}

.auth-required-popup.swal2-show {
    animation: authModalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.auth-required-popup.swal2-hide {
    animation: authModalFadeOut 0.2s ease-in forwards !important;
}

.auth-required-popup .swal2-title,
.auth-required-popup .swal2-icon {
    display: none !important; /* Dùng header tùy biến của HTML */
}

/* Close button X */
.auth-required-popup .swal2-close {
    display: none !important;
}

/* Subtle top ambient glow */
.auth-required-popup::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0) 70%);
    pointer-events: none;
}

@keyframes authModalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes authModalFadeOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.92) translateY(-10px);
    }
}

.auth-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auth-modal-badge {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.25), inset 0 0 12px rgba(56, 189, 248, 0.15);
    animation: badgePulse 3s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(14, 165, 233, 0.4);
    }
}

.auth-modal-badge i {
    font-size: 32px;
    color: #38bdf8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.auth-modal-title {
    color: #ffffff !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.4px !important;
}

.auth-modal-desc {
    color: #94a3b8 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.auth-modal-desc strong {
    color: #38bdf8;
    font-weight: 600;
}

/* Feature Perks list */
.auth-modal-perks {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 18px 0 6px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
}

.auth-perk-item i {
    color: #10b981;
    font-size: 16px;
    flex-shrink: 0;
}

/* Custom buttons */
.auth-btn-confirm {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 44px !important;
    padding: 0 24px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}

.auth-btn-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.5) !important;
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
}

.auth-btn-cancel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    padding: 0 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.auth-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.auth-required-popup .swal2-actions {
    margin-top: 20px !important;
    gap: 12px !important;
}

/* Footer link to register */
.auth-modal-footer {
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.auth-modal-footer a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.auth-modal-footer a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}



