/* ============================================================
   SWEETALERT2 — Obsidian & Gold Reskin
   ============================================================ */


/* ── BACKDROP ── */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); }

/* ── POPUP FRAME ── */
.swal2-popup {
  display: none;
  position: relative;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  width: 32em;
  max-width: 100%;
  padding: 2em 1.5em 1.5em;
  border: 1px solid rgba(197,160,89,0.2);
  border-radius: 14px;
  background: #111111;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.03) inset; }

/* ── TITLE ── */
.swal2-title {
  position: relative;
  max-width: 100%;
  margin: 0 0 0.4em;
  padding: 0;
  color: #F5F5F5;
  font-size: 1.3em;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
  text-align: center;
  text-transform: none;
  word-wrap: break-word; }

/* ── CONTENT / MESSAGE ── */
.swal2-content,
.swal2-html-container {
  z-index: 1;
  justify-content: center;
  margin: 0;
  padding: 0 1.6em;
  color: rgba(255,255,255,0.55);
  font-size: 0.95em;
  font-weight: normal;
  line-height: 1.65;
  text-align: center;
  word-wrap: break-word; }

/* ── ICONS — reskinned per type ── */
.swal2-icon.swal2-success {
    border-color: rgba(46,204,113,0.3) !important;
    color: #2ECC71 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(46,204,113,0.25) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #2ECC71 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-circular-line'],
.swal2-icon.swal2-success .swal2-success-fix {
    background: #111111 !important;
}

.swal2-icon.swal2-error {
    border-color: rgba(231,76,60,0.35) !important;
    color: #E74C3C !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #E74C3C !important;
}

.swal2-icon.swal2-warning {
    border-color: rgba(197,160,89,0.35) !important;
    color: #C5A059 !important;
}

.swal2-icon.swal2-info {
    border-color: rgba(52,152,219,0.35) !important;
    color: #3498DB !important;
}

.swal2-icon.swal2-question {
    border-color: rgba(197,160,89,0.3) !important;
    color: #C5A059 !important;
}

/* ── CONFIRM BUTTON — gold ── */
.swal2-styled.swal2-confirm {
    background: linear-gradient(135deg, #D4AF37, #C5A059, #9E7E3A) !important;
    background-color: transparent !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 0.7em 1.8em !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(197,160,89,0.25) !important;
    transition: all 0.2s ease !important;
}

.swal2-styled.swal2-confirm:hover {
    background: linear-gradient(135deg, #D4AF37, #C5A059, #9E7E3A) !important;
    opacity: 0.88 !important;
    box-shadow: 0 6px 22px rgba(197,160,89,0.35) !important;
    transform: translateY(-1px) !important;
    background-image: none !important;
}

.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(197,160,89,0.35) !important;
}

/* ── DENY BUTTON ── */
.swal2-styled.swal2-deny {
    background: rgba(231,76,60,0.15) !important;
    background-color: transparent !important;
    color: #E74C3C !important;
    border: 1px solid rgba(231,76,60,0.25) !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 0.7em 1.8em !important;
    transition: all 0.2s ease !important;
}

.swal2-styled.swal2-deny:hover {
    background: rgba(231,76,60,0.22) !important;
    background-image: none !important;
    transform: translateY(-1px) !important;
}

/* ── CANCEL BUTTON — glass ── */
.swal2-styled.swal2-cancel {
    background: rgba(255,255,255,0.06) !important;
    background-color: transparent !important;
    color: rgba(255,255,255,0.5) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 0.7em 1.8em !important;
    transition: all 0.2s ease !important;
}

.swal2-styled.swal2-cancel:hover {
    background: rgba(255,255,255,0.1) !important;
    background-image: none !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.2) !important;
    transform: translateY(-1px) !important;
}

/* ── CLOSE BUTTON ── */
.swal2-close {
    color: rgba(255,255,255,0.3) !important;
    font-size: 1.8em !important;
    width: 2em !important;
    height: 2em !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
    top: 10px !important;
    right: 10px !important;
}

.swal2-close:hover {
    color: var(--lp-accent) !important;
    background: rgba(197,160,89,0.1) !important;
    transform: none !important;
}

/* ── FOOTER ── */
.swal2-footer {
    border-top-color: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.35) !important;
    font-size: 0.85em !important;
}

/* ── INPUTS inside alert ── */
.swal2-input,
.swal2-textarea,
.swal2-file {
    background: #1a1a1a !important;
    border: 1px solid rgba(197,160,89,0.2) !important;
    border-radius: 8px !important;
    color: #F5F5F5 !important;
    box-shadow: none !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
    border-color: var(--lp-accent) !important;
    box-shadow: 0 0 0 3px rgba(197,160,89,0.15) !important;
    outline: none !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder {
    color: rgba(255,255,255,0.2) !important;
}

/* ── TIMER PROGRESS BAR ── */
.swal2-timer-progress-bar {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, #C5A059); }

.swal2-timer-progress-bar-container {
    border-radius: 0 0 14px 14px !important;
}

/* ── VALIDATION MESSAGE ── */
.swal2-validation-message {
    background: rgba(231,76,60,0.1) !important;
    color: #E74C3C !important;
    border-radius: 6px !important;
    margin: 0.5em 0 0 !important;
}

.swal2-validation-message::before {
    background-color: #E74C3C !important;
}

/* ══════════════════════════════════════
   TOAST VARIANT
   ══════════════════════════════════════ */
.swal2-popup.swal2-toast {
    background: #141414 !important;
    border-radius: 10px !important;
    box-shadow:
        0 16px 48px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.04) inset !important;
    padding: 0.8em 1em !important;
    border-left: 3px solid var(--lp-accent) !important;
}

.swal2-popup.swal2-toast .swal2-title {
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.9em !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.swal2-popup.swal2-toast .swal2-icon {
    border-color: transparent !important;
    margin: 0 !important;
}

.swal2-popup.swal2-toast.swal2-icon-success {
    border-left-color: #2ECC71 !important;
}

.swal2-popup.swal2-toast.swal2-icon-error {
    border-left-color: #E74C3C !important;
}

.swal2-popup.swal2-toast.swal2-icon-warning {
    border-left-color: #C5A059 !important;
}

.swal2-popup.swal2-toast.swal2-icon-info {
    border-left-color: #3498DB !important;
}

.swal2-popup.swal2-toast .swal2-styled.swal2-confirm {
    font-size: 11px !important;
    padding: 0.4em 1em !important;
}

/* ══════════════════════════════════════
   LIGHT MODE
   ══════════════════════════════════════ */
html.lp-light .swal2-popup {
    background: #ffffff !important;
    border-color: rgba(166,137,74,0.2) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.12) !important;
}

html.lp-light .swal2-title {
    color: #1a1a1a !important;
}

html.lp-light .swal2-content,
html.lp-light .swal2-html-container {
    color: #666 !important;
}

html.lp-light .swal2-close {
    color: #aaa !important;
}

html.lp-light .swal2-close:hover {
    color: var(--lp-accent) !important;
    background: rgba(166,137,74,0.08) !important;
}

html.lp-light .swal2-styled.swal2-cancel {
    background: rgba(0,0,0,0.04) !important;
    color: #666 !important;
    border-color: rgba(0,0,0,0.1) !important;
}

html.lp-light .swal2-styled.swal2-cancel:hover {
    background: rgba(0,0,0,0.08) !important;
    color: #333 !important;
}

html.lp-light .swal2-footer {
    border-top-color: rgba(0,0,0,0.07) !important;
    color: #999 !important;
}

html.lp-light .swal2-input,
html.lp-light .swal2-textarea {
    background: #f5f5f5 !important;
    border-color: rgba(166,137,74,0.2) !important;
    color: #1a1a1a !important;
}

html.lp-light .swal2-popup.swal2-toast {
    background: #fff !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
}

html.lp-light .swal2-popup.swal2-toast .swal2-title {
    color: #333 !important;
}

html.lp-light .swal2-icon.swal2-success [class^='swal2-success-circular-line'],
html.lp-light .swal2-icon.swal2-success .swal2-success-fix {
    background: #ffffff !important;
}

/* ── BACKDROP ── */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

/* ── POPUP FRAME ── */
.swal2-popup {
    background: #111111 !important;
    border: 1px solid rgba(197,160,89,0.2) !important;
    border-radius: 14px !important;
    box-shadow:
        0 32px 80px rgba(0,0,0,0.8),
        0 0 0 1px rgba(255,255,255,0.03) inset !important;
    padding: 2em 1.5em 1.5em !important;
    font-family: 'Inter', sans-serif !important;
}

/* ── TITLE ── */
.swal2-title {
    color: #F5F5F5 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.3em !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    margin-bottom: 0.2em !important;
}

/* ── CONTENT / MESSAGE ── */
.swal2-content,
.swal2-html-container {
    color: rgba(255,255,255,0.55) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95em !important;
    line-height: 1.65 !important;
}

/* ── ICONS — reskinned per type ── */
.swal2-icon.swal2-success {
    border-color: rgba(46,204,113,0.3) !important;
    color: #2ECC71 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(46,204,113,0.25) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #2ECC71 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-circular-line'],
.swal2-icon.swal2-success .swal2-success-fix {
    background: #111111 !important;
}

.swal2-icon.swal2-error {
    border-color: rgba(231,76,60,0.35) !important;
    color: #E74C3C !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #E74C3C !important;
}

.swal2-icon.swal2-warning {
    border-color: rgba(197,160,89,0.35) !important;
    color: #C5A059 !important;
}

.swal2-icon.swal2-info {
    border-color: rgba(52,152,219,0.35) !important;
    color: #3498DB !important;
}

.swal2-icon.swal2-question {
    border-color: rgba(197,160,89,0.3) !important;
    color: #C5A059 !important;
}

/* ── CONFIRM BUTTON — gold ── */
.swal2-styled.swal2-confirm {
    background: linear-gradient(135deg, #D4AF37, #C5A059, #9E7E3A) !important;
    background-color: transparent !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 0.7em 1.8em !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(197,160,89,0.25) !important;
    transition: all 0.2s ease !important;
}

.swal2-styled.swal2-confirm:hover {
    background: linear-gradient(135deg, #D4AF37, #C5A059, #9E7E3A) !important;
    opacity: 0.88 !important;
    box-shadow: 0 6px 22px rgba(197,160,89,0.35) !important;
    transform: translateY(-1px) !important;
    background-image: none !important;
}

.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(197,160,89,0.35) !important;
}

/* ── DENY BUTTON ── */
.swal2-styled.swal2-deny {
    background: rgba(231,76,60,0.15) !important;
    background-color: transparent !important;
    color: #E74C3C !important;
    border: 1px solid rgba(231,76,60,0.25) !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 0.7em 1.8em !important;
    transition: all 0.2s ease !important;
}

.swal2-styled.swal2-deny:hover {
    background: rgba(231,76,60,0.22) !important;
    background-image: none !important;
    transform: translateY(-1px) !important;
}

/* ── CANCEL BUTTON — glass ── */
.swal2-styled.swal2-cancel {
    background: rgba(255,255,255,0.06) !important;
    background-color: transparent !important;
    color: rgba(255,255,255,0.5) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 0.7em 1.8em !important;
    transition: all 0.2s ease !important;
}

.swal2-styled.swal2-cancel:hover {
    background: rgba(255,255,255,0.1) !important;
    background-image: none !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.2) !important;
    transform: translateY(-1px) !important;
}

/* ── CLOSE BUTTON ── */
.swal2-close {
    color: rgba(255,255,255,0.3) !important;
    font-size: 1.8em !important;
    width: 2em !important;
    height: 2em !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
    top: 10px !important;
    right: 10px !important;
}

.swal2-close:hover {
    color: var(--lp-accent) !important;
    background: rgba(197,160,89,0.1) !important;
    transform: none !important;
}

/* ── FOOTER ── */
.swal2-footer {
    border-top-color: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.35) !important;
    font-size: 0.85em !important;
}

/* ── INPUTS inside alert ── */
.swal2-input,
.swal2-textarea,
.swal2-file {
    background: #1a1a1a !important;
    border: 1px solid rgba(197,160,89,0.2) !important;
    border-radius: 8px !important;
    color: #F5F5F5 !important;
    box-shadow: none !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
    border-color: var(--lp-accent) !important;
    box-shadow: 0 0 0 3px rgba(197,160,89,0.15) !important;
    outline: none !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder {
    color: rgba(255,255,255,0.2) !important;
}

/* ── TIMER PROGRESS BAR ── */
.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #D4AF37, #C5A059) !important;
    height: 3px !important;
}

.swal2-timer-progress-bar-container {
    border-radius: 0 0 14px 14px !important;
}

/* ── VALIDATION MESSAGE ── */
.swal2-validation-message {
    background: rgba(231,76,60,0.1) !important;
    color: #E74C3C !important;
    border-radius: 6px !important;
    margin: 0.5em 0 0 !important;
}

.swal2-validation-message::before {
    background-color: #E74C3C !important;
}

/* ══════════════════════════════════════
   TOAST VARIANT
   ══════════════════════════════════════ */
.swal2-popup.swal2-toast {
    background: #141414 !important;
    border-radius: 10px !important;
    box-shadow:
        0 16px 48px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.04) inset !important;
    padding: 0.8em 1em !important;
    border-left: 3px solid var(--lp-accent) !important;
}

.swal2-popup.swal2-toast .swal2-title {
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.9em !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.swal2-popup.swal2-toast .swal2-icon {
    border-color: transparent !important;
    margin: 0 !important;
}

.swal2-popup.swal2-toast.swal2-icon-success {
    border-left-color: #2ECC71 !important;
}

.swal2-popup.swal2-toast.swal2-icon-error {
    border-left-color: #E74C3C !important;
}

.swal2-popup.swal2-toast.swal2-icon-warning {
    border-left-color: #C5A059 !important;
}

.swal2-popup.swal2-toast.swal2-icon-info {
    border-left-color: #3498DB !important;
}

.swal2-popup.swal2-toast .swal2-styled.swal2-confirm {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #D4AF37, #C5A059, #9E7E3A);
    background-color: transparent;
    color: #fff;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 0.7em 1.8em;
    box-shadow: 0 4px 16px rgba(197,160,89,0.25); }
/* ══════════════════════════════════════
   LIGHT MODE
   ══════════════════════════════════════ */
html.lp-light .swal2-popup {
    background: #ffffff !important;
    border-color: rgba(166,137,74,0.2) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.12) !important;
}

html.lp-light .swal2-title {
    color: #1a1a1a !important;
}

html.lp-light .swal2-content,
html.lp-light .swal2-html-container {
    color: #666 !important;
}

html.lp-light .swal2-close {
    color: #aaa !important;
}

html.lp-light .swal2-close:hover {
    color: var(--lp-accent) !important;
    background: rgba(166,137,74,0.08) !important;
}

html.lp-light .swal2-styled.swal2-cancel {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    background-color: transparent;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 0.7em 1.8em; }

html.lp-light .swal2-styled.swal2-cancel:hover {
    background: rgba(0,0,0,0.08) !important;
    color: #333 !important;
}

html.lp-light .swal2-footer {
    border-top-color: rgba(0,0,0,0.07) !important;
    color: #999 !important;
}

html.lp-light .swal2-input,
html.lp-light .swal2-textarea {
    background: #f5f5f5 !important;
    border-color: rgba(166,137,74,0.2) !important;
    color: #1a1a1a !important;
}

html.lp-light .swal2-popup.swal2-toast {
    background: #fff !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
}

html.lp-light .swal2-popup.swal2-toast .swal2-title {
    color: #333 !important;
}

html.lp-light .swal2-icon.swal2-success [class^='swal2-success-circular-line'],
html.lp-light .swal2-icon.swal2-success .swal2-success-fix {
    background: #ffffff !important;
}