/* Modern Modals - Dark Cool Theme */
/* This file MUST be loaded AFTER main.css to override old styles */

/* ULTIMATE OVERRIDE: Force dark theme for ALL elements inside #new-profile */
/* EXCLUDE new JavaScript modals */
#new-profile *:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *) {
    color: inherit !important;
}

#new-profile {
    background: rgba(0, 0, 0, 0.75) !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
}

/* CRITICAL: Override ALL old modal styles - Force dark theme with maximum specificity */
/* Target ALL possible selectors with highest priority */
/* EXCLUDE new JavaScript modals */
body #new-profile .profileBox:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
body #new-profile .profileBox.relative:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
body #new-profile div.profileBox:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
body #new-profile div.profileBox.relative:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
body .profileBox:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
body .profileBox.relative:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
body div.profileBox:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
body div.profileBox.relative:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
#new-profile .profileBox:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
#new-profile .profileBox.relative:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
#new-profile div.profileBox:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
#new-profile div.profileBox.relative:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
.profileBox:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
.profileBox.relative:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
div.profileBox:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
div.profileBox.relative:not(#ppf-modal-box-new):not(#ppf-modal-box-delete) {
    background-color: #111116 !important;
    background: #111116 !important;
    background-image: none !important;
    border: 1px solid #1a1a1f !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    padding: 40px !important;
    color: #ffffff !important;
    position: relative !important;
    text-align: center !important;
}

#new-profile .profileBox .relative,
.profileBox .relative {
    padding: 0 !important;
    position: relative !important;
    background: transparent !important;
}

.modal-header,
.modal-header-upg {
    position: static !important;
    top: auto !important;
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    border: none !important;
}

.modal-text {
    margin: 0 0 32px 0 !important;
    text-align: center !important;
    margin-left: 0 !important;
    color: #a0a0a0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.profileBox .modal-text {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

.modal-input {
    width: 100% !important;
    margin: 0 !important;
}

.modal-input input {
    border: 1px solid #1a1a1f !important;
    background: #0a0a0f !important;
    color: #ffffff !important;
}

.modal-input input:focus {
    border-color: #77beff !important;
    box-shadow: 0 0 0 3px rgba(119, 190, 255, 0.1) !important;
}

.create-profile,
.profileBox .create-profile {
    background: linear-gradient(135deg, #77beff 0%, #5fb2ff 100%) !important;
    box-shadow: 0 6px 25px rgba(119, 190, 255, 0.4) !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    width: auto !important;
    min-width: 140px !important;
    margin: 0 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

.create-profile:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 35px rgba(119, 190, 255, 0.5) !important;
}

.create-profile.bg-red {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff3333 100%) !important;
    box-shadow: 0 6px 25px rgba(255, 77, 77, 0.4) !important;
}

.create-profile.bg-red:hover {
    box-shadow: 0 10px 35px rgba(255, 77, 77, 0.5) !important;
}

.modal-image,
.profileBox .modal-image {
    width: 120px !important;
    height: 120px !important;
    margin: 24px auto 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #1a1a1f !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
    justify-content: center !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

#closeButton,
#closeButton-upg {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #888 !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#closeButton:hover,
#closeButton-upg:hover {
    background: rgba(255, 77, 77, 0.1) !important;
    border-color: rgba(255, 77, 77, 0.3) !important;
    color: #ff4d4d !important;
    transform: rotate(90deg) !important;
}

#closeButton span,
#closeButton-upg span {
    display: none !important;
}

.input-group-text,
.profileBox .input-group-text {
    background-color: #111116 !important;
    color: #77beff !important;
    border: 1px solid #1a1a1f !important;
    border-right: none !important;
    font-weight: 500 !important;
}

.profileBox .input-group {
    background: #0a0a0f !important;
    border: 1px solid #1a1a1f !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.profileBox .input-group:focus-within {
    border-color: #77beff !important;
    box-shadow: 0 0 0 3px rgba(119, 190, 255, 0.1) !important;
}

.profileBox .form-control {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 14px 18px !important;
}

.profileBox .form-control::placeholder {
    color: #666 !important;
}

.profileBox .form-control:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.text-red,
.profileBox .text-red {
    color: #ff9999 !important;
}

.profileBox .mb-4 {
    margin-bottom: 24px !important;
}

.profileBox .ml-3 {
    margin-left: 12px !important;
}

/* Old modal structure support */
.profileBox p {
    color: #ffffff !important;
}

.profileBox .font-bold {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Support for old modal structure with icons */
.profileBox .modal-text i,
.profileBox .modal-text .fi {
    color: #ff9999 !important;
    margin-right: 8px !important;
}

/* Close button icon styling */
.close {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #888 !important;
    opacity: 1 !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.close:hover {
    background: rgba(255, 77, 77, 0.1) !important;
    border-color: rgba(255, 77, 77, 0.3) !important;
    color: #ff4d4d !important;
    transform: rotate(90deg) !important;
}

.close span[aria-hidden="true"] {
    font-size: 20px !important;
    line-height: 1 !important;
}

/* Ensure all text in modal is visible */
.profileBox {
    text-align: center !important;
}

.profileBox * {
    color: inherit !important;
}

.profileBox .text-red,
.profileBox .text-red * {
    color: #ff9999 !important;
}

/* Button container for old structure */
.profileBox .relative {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
}

/* Old modal button layout */
.profileBox .create-profile + .create-profile {
    margin-left: 12px !important;
}

/* Ensure modal content is centered */
.profileBox .relative > * {
    width: 100% !important;
    max-width: 100% !important;
}

.profileBox .relative > p {
    text-align: center !important;
}

.profileBox .relative > img {
    margin: 0 auto !important;
    display: block !important;
}

/* Force dark theme for all modal elements */
#new-profile .profileBox,
#new-profile .profileBox * {
    background-color: transparent !important;
}

#new-profile .profileBox {
    background-color: #111116 !important;
}

/* Override Bootstrap form controls in modals */
#new-profile .form-control {
    background-color: #0a0a0f !important;
    border-color: #1a1a1f !important;
    color: #ffffff !important;
}

#new-profile .form-control:focus {
    background-color: #0f0f15 !important;
    border-color: #77beff !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(119, 190, 255, 0.1) !important;
}

/* Input group in modals */
#new-profile .input-group {
    background: transparent !important;
}

#new-profile .input-group-prepend {
    background: transparent !important;
}

/* Make sure all buttons are styled */
#new-profile button,
#new-profile input[type="button"],
#new-profile input[type="submit"],
#new-profile .create-profile,
#new-profile .create-profile * {
    color: #ffffff !important;
    background: linear-gradient(135deg, #77beff 0%, #5fb2ff 100%) !important;
    border: none !important;
    box-shadow: 0 6px 25px rgba(119, 190, 255, 0.4) !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#new-profile .create-profile.bg-red,
#new-profile .create-profile.bg-red * {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff3333 100%) !important;
    box-shadow: 0 6px 25px rgba(255, 77, 77, 0.4) !important;
    color: #ffffff !important;
}

#new-profile .create-profile:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 35px rgba(119, 190, 255, 0.5) !important;
}

#new-profile .create-profile.bg-red:hover {
    box-shadow: 0 10px 35px rgba(255, 77, 77, 0.5) !important;
}

/* Modal text colors - FORCE WHITE */
/* EXCLUDE new JavaScript modals */
#new-profile p:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
#new-profile span:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
#new-profile div:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
#new-profile label:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
#new-profile h1:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
#new-profile h2:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
#new-profile h3:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
#new-profile h4:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
#new-profile h5:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
#new-profile h6:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *) {
    color: #ffffff !important;
}

#new-profile .text-red,
#new-profile .text-red *,
#new-profile .text-red i,
#new-profile .text-red .fi {
    color: #ff9999 !important;
}

/* Force all text in profileBox to be white */
#new-profile .profileBox p,
#new-profile .profileBox span,
#new-profile .profileBox div,
#new-profile .profileBox * {
    color: #ffffff !important;
}

#new-profile .profileBox .text-red,
#new-profile .profileBox .text-red * {
    color: #ff9999 !important;
}

/* Modal Overlay - MUST BE FIRST */
#new-profile {
    backdrop-filter: blur(8px) !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    background: rgba(0, 0, 0, 0.75) !important;
    display: none;
    height: 100%;
    left: 0;
    overflow: auto;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1100;
    animation: fadeIn 0.3s ease;
}

/* Force dark background for overlay */
#new-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Box - FORCE DARK THEME - MAXIMUM PRIORITY */
/* EXCLUDE new JavaScript-created modals with specific IDs */
div.modal-box-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
#new-profile div.modal-box-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
body #new-profile div.modal-box-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
body div#new-profile div.modal-box-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
.modal-box-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
#new-profile .modal-box-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete),
body #new-profile .modal-box-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete) {
    background: #111116 !important;
    background-color: #111116 !important;
    background-image: none !important;
    border: 1px solid #1a1a1f !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    display: table !important;
    left: 50% !important;
    margin: auto !important;
    padding: 0 !important;
    position: absolute !important;
    text-align: center !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 500px !important;
    max-width: 90vw !important;
    animation: slideUp 0.4s ease !important;
    overflow: hidden !important;
    z-index: 1101 !important;
}

/* Override for new JavaScript modals - let JavaScript handle styling */
#ppf-modal-box-new,
#ppf-modal-box-delete {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    display: block !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-box-modern.modal-delete,
#new-profile .modal-box-modern.modal-delete {
    width: 480px !important;
}

/* Modal Content - FORCE DARK THEME - MAXIMUM PRIORITY */
/* EXCLUDE new JavaScript modals */
div.modal-content-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
#new-profile div.modal-content-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
body #new-profile div.modal-content-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
body div#new-profile div.modal-content-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
.modal-content-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
#new-profile .modal-content-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *),
body #new-profile .modal-content-modern:not(#ppf-modal-box-new):not(#ppf-modal-box-delete):not(#ppf-modal-box-new *):not(#ppf-modal-box-delete *) {
    padding: 40px !important;
    position: relative !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #ffffff !important;
}

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
    transform: rotate(90deg);
}

.modal-close-btn i {
    font-size: 16px;
}

/* Modal Icon */
.modal-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, #77beff 0%, #5fb2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(119, 190, 255, 0.3);
}

.modal-icon-modern i {
    font-size: 36px;
    color: #ffffff;
}

.modal-icon-modern.modal-icon-danger {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff3333 100%);
    box-shadow: 0 8px 25px rgba(255, 77, 77, 0.3);
}

/* Modal Title - FORCE WHITE */
.modal-title-modern,
#new-profile .modal-title-modern {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 12px 0;
}

/* Modal Description - FORCE COLORS */
.modal-description,
#new-profile .modal-description {
    font-size: 15px !important;
    color: #a0a0a0 !important;
    margin: 0 0 32px 0 !important;
    line-height: 1.6 !important;
}

.modal-description-danger,
#new-profile .modal-description-danger {
    color: #ff9999 !important;
}

.modal-description strong,
#new-profile .modal-description strong {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Modal Image */
.modal-image-wrapper {
    margin: 24px 0 32px;
}

.modal-image-modern {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a1a1f;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Modal Form */
.modal-form-group {
    margin-bottom: 24px;
    text-align: left;
}

.modal-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.modal-label i {
    color: #77beff;
    font-size: 16px;
}

.modal-input-modern,
#new-profile .modal-input-modern {
    width: 100% !important;
    padding: 14px 18px !important;
    background: #0a0a0f !important;
    background-color: #0a0a0f !important;
    border: 1px solid #1a1a1f !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.modal-input-modern:focus,
#new-profile .modal-input-modern:focus {
    border-color: #77beff !important;
    box-shadow: 0 0 0 3px rgba(119, 190, 255, 0.1) !important;
    background: #0f0f15 !important;
    background-color: #0f0f15 !important;
}

.modal-input-modern::placeholder,
#new-profile .modal-input-modern::placeholder {
    color: #666 !important;
}

/* Modal Input Group */
.modal-input-group-modern {
    display: flex;
    align-items: center;
    background: #0a0a0f;
    border: 1px solid #1a1a1f;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modal-input-group-modern:focus-within {
    border-color: #77beff;
    box-shadow: 0 0 0 3px rgba(119, 190, 255, 0.1);
}

.modal-input-prefix {
    padding: 14px 18px;
    background: #111116;
    color: #77beff;
    font-weight: 500;
    font-size: 14px;
    border-right: 1px solid #1a1a1f;
    white-space: nowrap;
}

.modal-input-group-modern .modal-input-modern {
    border: none;
    border-radius: 0;
    flex: 1;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

/* Modal Submit Button - FORCE STYLES */
.modal-submit-btn,
#new-profile .modal-submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 32px !important;
    background: linear-gradient(135deg, #77beff 0%, #5fb2ff 100%) !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 25px rgba(119, 190, 255, 0.4) !important;
}

.modal-submit-btn:hover,
#new-profile .modal-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 35px rgba(119, 190, 255, 0.5) !important;
}

.modal-submit-btn:disabled,
#new-profile .modal-submit-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.modal-submit-btn i,
#new-profile .modal-submit-btn i {
    font-size: 16px !important;
    color: #ffffff !important;
}

/* Danger Button - FORCE STYLES */
.modal-submit-btn.modal-btn-danger,
#new-profile .modal-submit-btn.modal-btn-danger {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff3333 100%) !important;
    box-shadow: 0 6px 25px rgba(255, 77, 77, 0.4) !important;
    color: #ffffff !important;
}

.modal-submit-btn.modal-btn-danger:hover {
    box-shadow: 0 10px 35px rgba(255, 77, 77, 0.5);
}

/* Secondary Button - FORCE STYLES */
.modal-submit-btn.modal-btn-secondary,
#new-profile .modal-submit-btn.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.modal-submit-btn.modal-btn-secondary:hover,
#new-profile .modal-submit-btn.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.modal-submit-btn.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-box-modern {
        width: 95vw !important;
        max-width: 95vw;
    }
    
    .modal-content-modern {
        padding: 32px 24px;
    }
    
    .modal-title-modern {
        font-size: 24px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   OVERRIDE FOR NEW JAVASCRIPT MODALS
   These rules have MAXIMUM priority to prevent CSS conflicts
   ============================================ */

/* Exclude new modals from all general #new-profile rules */
/* Reset only problematic properties that conflict with JavaScript styling */
/* Use maximum specificity to override ALL other rules */
/* Also target by data attribute for extra specificity */
body #new-profile[data-ppf-modal] #ppf-modal-box-new,
body #new-profile[data-ppf-modal] #ppf-modal-box-delete,
html body #new-profile[data-ppf-modal] #ppf-modal-box-new,
html body #new-profile[data-ppf-modal] #ppf-modal-box-delete,
body #new-profile #ppf-modal-box-new,
body #new-profile #ppf-modal-box-delete,
html body #new-profile #ppf-modal-box-new,
html body #new-profile #ppf-modal-box-delete {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 500px !important;
    background: #111116 !important;
    border: 1px solid #1a1a1f !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    padding: 0 !important;
    text-align: left !important;
    float: none !important;
    clear: both !important;
}

#new-profile #ppf-modal-box-delete {
    max-width: 480px !important;
}

/* Ensure child elements inherit properly */
#new-profile #ppf-modal-box-new *,
#new-profile #ppf-modal-box-delete * {
    color: inherit;
    background: transparent;
}

