/* Kevents Profiles Styles - MIDANCE EDITION */

/* ===== General Midance Profile Styles ===== */
.kevents-profile-display {
    margin: 20px 0;
    background-color: #0F0F0F;
    color: #FFFFFF;
}

.kevents-profile-card {
    background: #1A1A1A;
    border: 1px solid #5B5B5B;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.kevents-profile-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ===== Full Layout ===== */
.kevents-profile-full .profile-header {
    display: flex;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid #5B5B5B;
    background: linear-gradient(135deg, #1A1A1A 0%, #0F0F0F 100%);
}

.kevents-profile-full .profile-avatar {
    margin-right: 30px;
    flex-shrink: 0;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EA3323 0%, #d42b1a 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    text-transform: uppercase;
    border: 4px solid #1A1A1A;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-basic-info {
    flex: 1;
    min-width: 0;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.profile-name {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF !important;
    line-height: 1.2;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.profile-job-title {
    font-size: 18px;
    color: #FFFFFF;
    font-weight: 600;
    margin: 0 0 8px 0;
    background: #EA3323;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

.profile-nationality {
    color: #FFFFFF;
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Profile Sections ===== */
.profile-section {
    padding: 25px 30px;
    border-bottom: 1px solid #5B5B5B;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #EA3323;
    position: relative;
}

.profile-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #EA3323 0%, #d42b1a 100%);
}

.profile-text {
    color: #FFFFFF;
    line-height: 1.6;
    margin: 0;
    font-size: 16px;
}

/* ===== Social Links ===== */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.social-layout-vertical .social-links {
    flex-direction: column;
    align-items: flex-start;
}

.social-layout-grid .social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #5B5B5B;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.social-link:hover {
    background: #EA3323;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 51, 35, 0.4);
    text-decoration: none;
}

/* Social Style Variants */
.social-style-rounded .social-link {
    border-radius: 20px;
}

.social-style-square .social-link {
    border-radius: 4px;
}

.social-style-circle .social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
}

.social-style-circle .social-label {
    display: none;
}

.social-style-minimal .social-link {
    background: transparent;
    border: none;
    color: #EA3323;
    padding: 5px 10px;
}

.social-style-minimal .social-link:hover {
    background: rgba(234, 51, 35, 0.1);
    transform: none;
    box-shadow: none;
}

/* Social Platform Colors */
.social-link.social-soundcloud:hover { background: #ff5500; }
.social-link.social-spotify:hover { background: #1ed760; }
.social-link.social-instagram:hover { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-link.social-facebook:hover { background: #1877f2; }
.social-link.social-youtube:hover { background: #ff0000; }
.social-link.social-linkedin:hover { background: #0077b5; }
.social-link.social-website:hover { background: #28a745; }

/* ===== Contact Info ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(234, 51, 35, 0.05);
    border-radius: 8px;
    border-left: 4px solid #EA3323;
}

.contact-item i {
    color: #EA3323;
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.contact-item a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: #EA3323;
    text-decoration: underline;
}

/* ===== QR Code ===== */
.qr-code-container {
    text-align: center;
    padding: 20px;
    background: rgba(234, 51, 35, 0.05);
    border-radius: 12px;
    border: 2px dashed #EA3323;
}

.profile-qr-code {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-description {
    margin: 12px 0 0 0;
    color: #7f8c8d;
    font-size: 14px;
    font-style: italic;
}

/* ===== Card Compact Layout ===== */
.kevents-profile-card-compact .kevents-profile-card {
    max-width: 400px;
    margin: 0 auto;
}

.profile-header-compact {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.profile-avatar-small {
    flex-shrink: 0;
}

.profile-photo-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-info-compact {
    flex: 1;
    min-width: 0;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.kevents-profile-card-compact .profile-name {
    font-size: 16px;
    margin-bottom: 5px;
    color: #FFFFFF !important;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.kevents-profile-card-compact .profile-job-title {
    font-size: 14px;
    padding: 4px 8px;
    margin-bottom: 0;
}

.kevents-profile-card-compact .social-links {
    justify-content: center;
    padding: 0 20px 20px 20px;
}

/* ===== Minimal Layout ===== */
.kevents-profile-minimal {
    text-align: center;
    padding: 20px;
}

.kevents-profile-minimal .profile-name {
    font-size: 16px;
    margin-bottom: 8px;
    color: #FFFFFF;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.kevents-profile-minimal .profile-job-title {
    font-size: 16px;
    margin: 0;
}

/* ===== Business Card Layout ===== */
.kevents-profile-business-card {
    max-width: 350px;
    margin: 0 auto;
}

.business-card-style {
    background: linear-gradient(135deg, #EA3323 0%, #d42b1a 100%);
    color: #FFFFFF;
    border: none;
    position: relative;
    overflow: hidden;
}

.business-card-style::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.business-header {
    padding: 25px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.business-card-style .profile-name {
    color: #FFFFFF !important;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.business-card-style .profile-job-title {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 15px;
    font-size: 14px;
}

.business-card-style .social-links {
    justify-content: center;
    padding: 0 20px 20px 20px;
    position: relative;
    z-index: 2;
}

.business-card-style .social-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.business-card-style .social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
}

/* ===== Error States ===== */
.kevents-error {
    padding: 20px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    text-align: center;
    font-weight: 500;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .kevents-profile-full .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .kevents-profile-full .profile-avatar {
        margin: 0 0 20px 0;
    }
    
    .profile-photo {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 28px;
    }
    
    .profile-name {
        font-size: 16px;
        color: #FFFFFF !important;
    }
    
    .profile-section {
        padding: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-layout-grid .social-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-info {
        align-items: stretch;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .kevents-profile-card {
        border-radius: 8px;
        margin: 10px;
    }
    
    .profile-name {
        font-size: 16px;
        color: #FFFFFF !important;
    }
    
    .profile-job-title {
        font-size: 14px;
    }
    
    .profile-section {
        padding: 15px;
    }
    
    .social-layout-grid .social-links {
        grid-template-columns: 1fr;
    }
    
    .social-link {
        justify-content: center;
        padding: 12px 16px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .kevents-profile-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .social-link {
        color: #333 !important;
        background: #f9f9f9 !important;
    }
    
    .qr-code-container {
        background: none;
        border: 1px solid #ddd;
    }
    
    .business-card-style {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
    
    .business-card-style .profile-name,
    .business-card-style .profile-job-title {
        color: #FFFFFF !important;
    }
}

/* ===== Profile Menu Shortcode ===== */
.kevents-profile-menu {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.kevents-profile-menu .profile-name {
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 16px;
    margin-right: 8px;
    line-height: 1.4;
}

.kevents-profile-menu .profile-menu-avatar {
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.kevents-profile-menu .kevents-menu-edit,
.kevents-profile-menu .kevents-menu-logout {
    color: #EA3323;
    text-decoration: none;
    margin: 0 5px;
}

.kevents-profile-menu .kevents-menu-edit:hover,
.kevents-profile-menu .kevents-menu-logout:hover {
    text-decoration: underline;
}

.kevents-profile-menu .kevents-menu-login {
    background: #EA3323;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.kevents-profile-menu .kevents-menu-login:hover {
    background: #c42d1f;
    color: #FFFFFF;
}

/* ===== Accessibility ===== */
.social-link:focus,
.contact-item a:focus {
    outline: 2px solid #EA3323;
    outline-offset: 2px;
}

.profile-avatar-placeholder {
    font-family: 'Arial', sans-serif; /* Ensure consistent font for initials */
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Profile Form Styles ===== */
.kevents-profile-edit-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #1A1A1A;
    border-radius: 12px;
    border: 1px solid #5B5B5B;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.kevents-profile-edit-form h2 {
    color: #FFFFFF;
    margin-bottom: 25px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
}

.profile-form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #0F0F0F;
    border-radius: 8px;
    border-left: 4px solid #EA3323;
}

.profile-form-section h3 {
    color: #FFFFFF;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.profile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-form-field {
    display: flex;
    flex-direction: column;
}

.profile-form-field label {
    margin-bottom: 5px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
}

.profile-form-field input,
.profile-form-field select,
.profile-form-field textarea {
    padding: 12px 16px;
    border: 2px solid #5B5B5B;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #0F0F0F;
    color: #FFFFFF;
}

.profile-form-field input:focus,
.profile-form-field select:focus,
.profile-form-field textarea:focus {
    outline: none;
    border-color: #EA3323;
    box-shadow: 0 0 0 3px rgba(234, 51, 35, 0.2);
}

.profile-form-field input[type="file"] {
    padding: 8px;
}

.profile-form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #5B5B5B;
}

.profile-form-submit {
    background: linear-gradient(135deg, #EA3323 0%, #d42b1a 100%);
    color: #FFFFFF;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 51, 35, 0.4);
}

.profile-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .profile-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .kevents-profile-edit-form {
        padding: 20px;
        margin: 10px;
    }
    
    .profile-form-section {
        padding: 20px;
    }
}

/* ===== Audio Tracks ===== */
.kevents-audio-section {
    margin-top: 10px;
}

.kevents-audio-help {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin-bottom: 15px;
}

.kevents-audio-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.kevents-audio-track-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 15px;
    background: #0F0F0F;
    border: 1px solid #5B5B5B;
    border-radius: 8px;
}

.kevents-audio-preview-wrap {
    grid-column: 1 / -1;
}

.kevents-audio-title-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #5B5B5B;
    border-radius: 4px;
    background: #1A1A1A;
    color: #FFFFFF;
}

.kevents-audio-filename {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 4px;
}

.kevents-audio-track-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

.kevents-audio-track-listeners {
    flex-basis: 100%;
    opacity: 0.85;
}

.kevents-audio-section-admin .kevents-audio-track-stats {
    color: #50575e;
}

.kevents-audio-preview,
.kevents-audio-player {
    width: 220px;
    max-width: 100%;
    height: 36px;
}

.kevents-audio-upload-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.kevents-audio-field-error {
    flex: 1 0 100%;
    margin: 0;
    color: #EA3323;
    font-size: 14px;
    font-weight: 600;
}

.kevents-audio-new-title {
    flex: 1;
    min-width: 200px;
    padding: 8px 10px;
    border: 1px solid #5B5B5B;
    border-radius: 4px;
    background: #1A1A1A;
    color: #FFFFFF;
}

.kevents-audio-upload-progress .kevents-audio-progress-bar {
    background: #5B5B5B;
    border-radius: 10px;
    overflow: hidden;
    height: 6px;
    margin-bottom: 4px;
}

.kevents-audio-upload-progress .progress-bar {
    height: 6px;
    background: #EA3323;
    width: 0%;
    transition: width 0.3s;
}

.kevents-audio-limit-reached {
    color: #EA3323;
    font-size: 14px;
}

.kevents-profile-audio {
    padding: 20px 30px;
    border-bottom: 1px solid #5B5B5B;
}

.kevents-profile-audio h3 {
    color: #FFFFFF;
    margin-bottom: 15px;
}

.kevents-audio-player-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kevents-audio-player-item {
    padding: 15px;
    background: #1A1A1A;
    border: 1px solid #5B5B5B;
    border-radius: 8px;
}

.kevents-audio-player-title {
    display: block;
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 8px;
}

.kevents-audio-player {
    width: 100%;
}

.kevents-audio-section-admin {
    padding: 10px 0;
}

.kevents-audio-section-admin .kevents-audio-title-input,
.kevents-audio-section-admin .kevents-audio-new-title {
    color: #1d2327;
    background: #fff;
    border: 1px solid #8c8f94;
}

.kevents-audio-section-admin .kevents-audio-help,
.kevents-audio-section-admin .kevents-audio-filename {
    color: #646970;
}

.kevents-elementor-placeholder {
    padding: 20px;
    background: #f0f0f1;
    border: 1px dashed #c3c4c7;
    border-radius: 4px;
    color: #50575e;
    text-align: center;
}

.kevents-is-hidden {
    display: none;
}

.kevents-impersonation-banner {
    background: #c2410c;
    color: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.kevents-impersonation-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.kevents-impersonation-banner h3 {
    margin: 0;
    font-size: 18px;
}

.kevents-impersonation-banner p {
    margin: 5px 0 0;
    font-size: 14px;
}

.kevents-impersonation-meta {
    font-size: 12px;
}

.kevents-impersonation-exit {
    background: #fff;
    color: #c2410c;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    display: inline-block;
}

.kevents-form-col-full {
    flex: 1 1 100%;
}

.kevents-radio-group {
    margin-top: 10px;
}

.kevents-radio-option {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #5B5B5B;
    border-radius: 4px;
    background: #0F0F0F;
    cursor: pointer;
}

.kevents-radio-option.is-selected {
    border-color: #EA3323;
    border-width: 2px;
    padding: 15px;
}

.kevents-radio-option input {
    margin-right: 8px;
}

.kevents-radio-hint,
.kevents-muted-hint {
    color: #FFFFFF;
    opacity: 0.7;
}

.kevents-form-note {
    font-size: 12px;
    color: #FFFFFF;
    margin-top: 8px;
    opacity: 0.8;
}

.kevents-privacy-note {
    font-size: 13px;
    color: #FFFFFF;
    margin-top: 10px;
    opacity: 0.8;
    padding: 10px;
    background: rgba(234, 51, 35, 0.1);
    border-left: 3px solid #EA3323;
    border-radius: 4px;
}

.kevents-newsletter-consent {
    margin-top: 16px;
}

.kevents-newsletter-optin {
    display: block;
    margin: 10px 0;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 1.5;
}

.kevents-newsletter-optin input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

.kevents-newsletter-gdpr {
    margin: 8px 0 4px;
    padding: 10px;
    background: rgba(234, 51, 35, 0.1);
    border-left: 3px solid #EA3323;
    border-radius: 4px;
}

.kevents-newsletter-gdpr a {
    color: #EA3323;
}

.kevents-profile-danger {
    margin: 32px 0 16px;
    padding: 20px;
    border: 1px solid rgba(234, 51, 35, 0.45);
    border-radius: 8px;
    background: rgba(234, 51, 35, 0.08);
    color: #F5F5F5;
}

.kevents-profile-danger h3 {
    margin: 0 0 10px;
    color: #EA3323;
}

.kevents-profile-edit-form .kevents-profile-danger p,
.kevents-profile-edit-form .kevents-profile-danger label,
.kevents-profile-danger-copy {
    color: #F5F5F5;
    opacity: 1;
    font-size: 15px;
    line-height: 1.55;
}

.kevents-delete-flow {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
    margin-top: 4px;
}

.kevents-delete-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.45;
}

.kevents-delete-check input[type="checkbox"] {
    margin: 3px 0 0;
    flex-shrink: 0;
}

.kevents-delete-actions {
    margin: 0;
}

.kevents-profile-edit-form .kevents-profile-danger .button.kevents-btn-danger,
.kevents-profile-danger .button.kevents-btn-danger {
    background: linear-gradient(135deg, #EA3323 0%, #d42b1a 100%);
    border: none;
    color: #FFFFFF;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    opacity: 1;
    cursor: pointer;
}

.kevents-profile-edit-form .kevents-profile-danger .button.kevents-btn-danger:hover,
.kevents-profile-danger .button.kevents-btn-danger:hover {
    color: #FFFFFF;
}

.kevents-profile-edit-form .kevents-profile-danger .button.kevents-btn-danger:disabled,
.kevents-profile-danger .button.kevents-btn-danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.kevents-profile-edit-form .kevents-profile-danger .button.kevents-btn-ghost,
.kevents-profile-danger .button.kevents-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #F5F5F5;
}

.kevents-delete-status {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #F5F5F5;
}

.kevents-delete-status:empty {
    display: none;
}

.kevents-delete-status.is-ok {
    color: #F5F5F5;
}

.kevents-delete-status.is-error {
    color: #FF8A80;
}

.kevents-delete-otp-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.kevents-delete-otp-panel[hidden] {
    display: none !important;
}

.kevents-profile-edit-form .kevents-profile-danger .kevents-delete-otp-label {
    display: block;
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
}

.kevents-profile-edit-form #kevents-delete-otp,
#kevents-delete-otp {
    display: block;
    width: 100%;
    max-width: 220px;
    padding: 12px 16px;
    background: #0F0F0F;
    color: #FFFFFF;
    border: 2px solid #5B5B5B;
    border-radius: 8px;
    font-size: 22px;
    letter-spacing: 0.35em;
    text-align: center;
    box-sizing: border-box;
}

.kevents-profile-edit-form #kevents-delete-otp:focus,
#kevents-delete-otp:focus {
    border-color: #EA3323;
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 51, 35, 0.2);
}

.kevents-profile-edit-form #kevents-delete-otp::placeholder,
#kevents-delete-otp::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 600px) {
    .kevents-profile-edit-form .kevents-profile-danger .button.kevents-btn-danger,
    .kevents-profile-danger .button.kevents-btn-danger,
    #kevents-delete-otp {
        width: 100%;
        max-width: 100%;
    }
}

.kevents-editor-wrap {
    margin-top: 8px;
    width: 100%;
}

.form-row.full-width-editor {
    width: 100%;
    grid-column: 1 / -1;
}

.kevents-readonly-field {
    background: #4b4b4b;
}

.kevents-media-preview {
    margin: 10px 0;
}

.kevents-media-guide {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 8px;
}

.kevents-front-avatar-empty,
.kevents-front-avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.kevents-front-avatar-empty {
    background: #0F0F0F;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #5B5B5B;
    margin: 10px 0;
}

.kevents-front-avatar-preview {
    object-fit: cover;
    border: 3px solid #EA3323;
}

.kevents-front-cover-empty {
    width: 100%;
    height: 100px;
    background: #0F0F0F;
    border-radius: 8px;
    border: 2px dashed #5B5B5B;
    margin: 10px 0;
}

.kevents-front-cover-preview {
    border: 2px solid #EA3323;
    border-radius: 8px;
    width: 100%;
}

.kevents-btn-full {
    width: 100%;
    margin-bottom: 10px;
}

.kevents-upload-progress {
    margin: 10px 0;
}

.kevents-progress-track {
    background: #5B5B5B;
    border-radius: 10px;
    overflow: hidden;
}

.kevents-progress-track .progress-bar {
    height: 6px;
    background: #EA3323;
    width: 0;
    transition: width 0.3s;
}

.kevents-upload-ok {
    background: #1a3d24;
    color: #d4edda;
    padding: 8px;
    border-radius: 4px;
    margin: 10px 0;
}

.kevents-login-msg-ok {
    color: #8f8;
}

.kevents-login-msg-err {
    color: #f88;
}

.kevents-own-profile-notice {
    text-align: center;
    padding: 15px;
    background: #1A1A1A;
    border: 1px solid #5B5B5B;
    border-radius: 8px;
    margin-top: 20px;
    color: #FFFFFF;
}

.kevents-own-profile-notice .button {
    margin-top: 20px;
    display: inline-block;
}

.profile-name-link {
    color: inherit;
    text-decoration: none;
}

#qr-profile-status {
    margin-top: 15px;
}

/* Form modifica profilo (classi HTML reali, non duplicate inline) */
.kevents-profile-edit-form .profile-edit-form {
    background: #1A1A1A;
    padding: 0;
    color: #FFFFFF;
}

.kevents-profile-edit-form .profile-edit-header {
    background: linear-gradient(135deg, #EA3323 0%, #d42b1a 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    color: #FFFFFF;
}

.kevents-profile-edit-form .form-sections .form-section {
    background: #0F0F0F;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #5B5B5B;
    border-left: 4px solid #EA3323;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.kevents-profile-edit-form .form-section h3 {
    color: #FFFFFF;
    border-bottom: 2px solid #EA3323;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.kevents-profile-edit-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.kevents-profile-edit-form .form-col {
    flex: 1;
}

.kevents-profile-edit-form .form-row label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: #FFFFFF;
}

.kevents-profile-edit-form .form-row input,
.kevents-profile-edit-form .form-row select,
.kevents-profile-edit-form .form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #5B5B5B;
    border-radius: 8px;
    font-size: 16px;
    background: #1A1A1A;
    color: #FFFFFF;
    box-sizing: border-box;
}

.kevents-profile-edit-form .form-row input:focus,
.kevents-profile-edit-form .form-row select:focus,
.kevents-profile-edit-form .form-row textarea:focus {
    border-color: #EA3323;
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 51, 35, 0.2);
}

.kevents-profile-edit-form .button,
.kevents-profile-edit-form .button-primary {
    background: linear-gradient(135deg, #EA3323 0%, #d42b1a 100%);
    border: none;
    color: #FFFFFF;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.kevents-profile-edit-form .button:hover,
.kevents-profile-edit-form .button-primary:hover {
    color: #FFFFFF;
}

.kevents-profile-edit-form .button-large {
    padding: 15px 30px;
    font-size: 16px;
}

.kevents-profile-edit-form .notice {
    background: #EA3323;
    color: #FFFFFF;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #d42b1a;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .kevents-profile-edit-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .kevents-audio-track-item {
        grid-template-columns: 1fr;
    }

    .kevents-audio-preview {
        width: 100%;
    }
}
