/* Shared Modal, Loading & Form Styling across Modern Themes */
#WaitLoading {
    position: fixed;
    inset: 0;
    z-index: 10500;
    background: rgba(8, 12, 20, 0.56);
    display: flex;
    align-items: center;
    justify-content: center;
}
#WaitLoading img {
    display: block;
    background: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.jx-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 24, 0.76);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.jx-modal-backdrop.is-open {
    display: flex;
}
.jx-modal-dialog {
    background: #fdfcf9;
    color: #1e293b;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid var(--jx-modal-border, #a97b2c);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    font-family: "Be Vietnam Pro", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 13.5px;
}
.jx-modal-dialog.jx-modal-sm {
    max-width: 490px;
}
.jx-modal-header {
    background: var(--jx-modal-header-bg, linear-gradient(135deg, #241914 0%, #482117 100%));
    color: #fef3c7;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--jx-modal-border, #c7974a);
}
.jx-modal-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.jx-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(254, 243, 199, 0.4);
    color: #fef3c7;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    font-size: 16px;
    transition: background 0.15s ease;
}
.jx-modal-close:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}
.jx-modal-body {
    padding: 18px 22px;
    overflow-y: auto;
}
.jx-acc-shell {
    display: flex;
    gap: 18px;
    min-height: 360px;
}
.jx-acc-sidebar {
    width: 205px;
    flex: 0 0 205px;
    border-right: 1px solid #e2ddd0;
    padding-right: 14px;
}
.jx-acc-nav-btn {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    margin-bottom: 7px;
    background: #f5f2ea;
    border: 1px solid #dfd8c6;
    border-radius: 6px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.jx-acc-nav-btn:hover,
.jx-acc-nav-btn.is-active {
    background: var(--jx-modal-accent, #8f251b);
    color: #fff;
    border-color: var(--jx-modal-accent, #8f251b);
}
.jx-acc-panel {
    flex: 1 1 auto;
    min-width: 0;
}
.jx-acc-pane {
    display: none;
}
.jx-acc-pane.is-active {
    display: block;
}
.jx-form-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px 12px;
    align-items: center;
}
.jx-input, .jx-select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13.5px;
    color: #0f172a;
    background: #fff;
}
.jx-input:focus, .jx-select:focus {
    outline: none;
    border-color: var(--jx-modal-accent, #b45309);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12);
}
.jx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: transform 0.12s ease, filter 0.15s ease;
}
.jx-btn:hover {
    filter: brightness(1.06);
}
.jx-btn-primary {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
}
.jx-btn-gold {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    color: #fff;
}
.jx-modal-notice {
    padding: 10px 13px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.jx-modal-notice.jx-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.jx-modal-notice.jx-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.jx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.jx-table th, .jx-table td {
    border: 1px solid #e2ddd0;
    padding: 8px 10px;
    text-align: left;
}
.jx-table th {
    background: #f3efe4;
    color: #1e293b;
}
.jx-subtabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e2ddd0;
    margin-bottom: 14px;
    padding-bottom: 10px;
    flex-wrap: wrap;
}
.jx-subtab {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #d4ceb9;
    background: #f5f2ea;
    color: #1e293b;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
}
.jx-subtab.is-active {
    background: var(--jx-modal-accent, #8f251b);
    color: #fff;
    border-color: var(--jx-modal-accent, #8f251b);
}
.jx-captcha-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}
.jx-captcha-inline img {
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    cursor: pointer;
}
.jx-preview-banner {
    position: sticky;
    top: 0;
    z-index: 10200;
    background: #0f172a;
    color: #f8fafc;
    font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
    font-size: 12.5px;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid #334155;
}
.jx-preview-banner a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(251, 191, 36, 0.35);
}
.jx-preview-banner a.is-active {
    background: #fbbf24;
    color: #0f172a;
}
@media (max-width: 720px) {
    .jx-acc-shell { flex-direction: column; }
    .jx-acc-sidebar { width: 100%; flex: none; border-right: 0; border-bottom: 1px solid #e2ddd0; padding-right: 0; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
    .jx-acc-nav-btn { width: auto; flex: 1 1 auto; }
    .jx-form-grid { grid-template-columns: 1fr; }
}
