/**
 * License Page Styles for YOOAdmin
 *
 * @package YOOAdmin
 * @since 1.3.0
 */

.yooadmin-license-page {
    max-width: 1200px;
}

.yooadmin-license-page > h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: var(--yp-text);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f1;
}

/* License Status Card */
.yooadmin-license-status-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.license-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #f0f0f1;
}

.license-status-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--yp-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.license-status-header h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--yp-primary);
    border-radius: 2px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.status-badge.active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.inactive {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.suspended {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.revoked {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.expired {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #b45309;
    border: 1px solid #eda934;
}

.status-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* License action button: icon aligned with text */
.yooadmin-license-action {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    height: auto !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(232, 158, 67, 0.2) !important;
}

.yooadmin-license-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(232, 158, 67, 0.3) !important;
}

.yooadmin-license-action .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin: 0 !important;
}

/* OTP popup */
#yooadmin-otp-popup.yooadmin-otp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#yooadmin-otp-popup.yooadmin-otp-overlay.yooadmin-otp-visible {
    display: flex;
}

#yooadmin-otp-popup .yooadmin-otp-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 480px;
    width: 90%;
    margin: auto;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 1000000000;
}

#yooadmin-otp-popup .yooadmin-otp-modal h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
}

#yooadmin-otp-popup .yooadmin-otp-modes {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    overflow: hidden;
}

#yooadmin-otp-popup .yooadmin-otp-mode {
    flex: 1;
    background: #f9fafa;
    border: none;
    border-right: 1px solid #dcdcde;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 600;
    color: #1f2937;
}

#yooadmin-otp-popup .yooadmin-otp-mode:last-child {
    border-right: none;
}

#yooadmin-otp-popup .yooadmin-otp-mode-active {
    background: rgba(var(--_yp-primary-rgb, 255,168,0), 0.12);
    color: var(--_yp-primary, #d38b01);
    box-shadow: inset 0 -2px 0 var(--_yp-primary, #d38b01);
}

#yooadmin-otp-popup .yooadmin-otp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

#yooadmin-otp-popup .yooadmin-otp-steps .field {
    margin-bottom: 12px;
}

#yooadmin-otp-popup .yooadmin-otp-steps label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

#yooadmin-otp-popup .yooadmin-otp-steps input[type="text"],
#yooadmin-otp-popup .yooadmin-otp-steps input[type="email"],
#yooadmin-otp-popup .yooadmin-otp-steps input[type="password"] {
    width: 100%;
    box-sizing: border-box;
}

#yooadmin-otp-popup .yooadmin-otp-code {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

#yooadmin-otp-popup .yooadmin-otp-code .otp-digit {
    width: 56px;
    height: 48px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
}

#yooadmin-otp-popup .yooadmin-otp-steps .actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#yooadmin-otp-popup .yooadmin-otp-note {
    color: #555;
    margin: 0 0 12px 0;
}

#yooadmin-otp-popup .yooadmin-otp-status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}

#yooadmin-otp-popup .yooadmin-otp-status.ok {
    background: #e8f5e9;
    color: #2e7d32;
}

#yooadmin-otp-popup .yooadmin-otp-status.err {
    background: #fff5f5;
    color: #c62828;
}

.yooadmin-otp-forgot-wrap {
    margin-top: 6px;
    text-align: right;
}

.yooadmin-otp-forgot {
    font-size: 13px;
    color: #2271b1;
    text-decoration: none;
}

.yooadmin-otp-forgot:hover {
    text-decoration: underline;
}

.status-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* License Details */
.license-status-body {
    padding: 20px;
}

.license-details-container {
    position: relative;
    margin-bottom: 0;
    padding: 28px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.license-details {
    position: relative;
    margin-bottom: 0;
    max-width: 700px;
    width: 100%;
    background: linear-gradient(135deg, #fffcf7 0%, #ffffff 50%, #fffcf7 100%);
    border: 2px solid rgba(232, 158, 67, 0.25);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(232, 158, 67, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
}

.license-details::before {
    content: 'YOOAdmin';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 80px;
    font-weight: 900;
    color: rgba(139, 115, 85, 0.02);
    pointer-events: none;
    z-index: 0;
    letter-spacing: 5px;
}

.license-details > * {
    position: relative;
    z-index: 1;
}

/* Suspended/Revoked License Overlay */
.license-details.license-suspended {
    filter: none;
    opacity: 0.95;
    pointer-events: none;
    user-select: none;
}

.license-details-container.has-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 99;
    pointer-events: none;
}

.license-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: all;
}

.overlay-content {
    text-align: center;
    padding: 30px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.overlay-content .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #d63638;
    margin-bottom: 15px;
}

.overlay-content h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #d63638;
}

.overlay-reason {
    font-size: 16px;
    line-height: 1.6;
    color: #50575e;
    margin: 0 0 25px 0;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

.overlay-support-btn {
    display: inline-block !important;
    font-size: 16px;
    padding: 12px 24px !important;
    height: auto !important;
    line-height: normal !important;
}

.license-detail-item {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.license-detail-item:hover {
    background: rgba(232, 158, 67, 0.03);
    margin: 0 -32px;
    padding-left: 32px;
    padding-right: 32px;
    border-radius: 8px;
}

.license-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    flex: 0 0 180px;
    font-weight: 600;
    color: #8b7355;
    font-size: 12px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    flex: 1;
    color: var(--yp-text);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.activation-code {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #8b7355;
    border: 1.5px solid rgba(139, 115, 85, 0.2);
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-code-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(139, 115, 85, 0.08);
    color: #8b7355;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.view-code-link:hover {
    background: rgba(139, 115, 85, 0.15);
    color: var(--yp-primary);
    transform: translateY(-1px);
}

.view-code-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.license-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
}

/* License Actions */
.license-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 24px 28px;
    background: #fafbfc;
    border-top: 2px solid #f0f0f1;
}

.license-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 10px 20px !important;
    height: auto !important;
    line-height: 1.4 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.license-actions .button-secondary {
    background: #fff !important;
    border-color: var(--yp-primary) !important;
    color: var(--yp-primary) !important;
}

.license-actions .button-secondary:hover {
    background: var(--yp-primary) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
}

.license-actions .button-link-delete {
    background: #fff !important;
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
}

.license-actions .button-link-delete:hover {
    background: #dc3545 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.25) !important;
}

.license-actions .button .dashicons {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

/* Activation Form */
.license-activation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 28px;
    align-items: start;
}

@media (max-width: 1024px) {
    .license-activation-wrapper {
        grid-template-columns: 1fr;
    }
}

.license-activation-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Benefits Sidebar */
.license-benefits-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.benefits-card {
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border: 2px solid var(--yp-primary);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(232, 158, 67, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.benefits-card-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-color: #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.benefits-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.benefits-header .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--yp-primary);
}

.benefits-card-secondary .benefits-header .dashicons {
    color: var(--yp-text-secondary);
}

.benefits-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--yp-text);
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #28a745;
    flex-shrink: 0;
}

.benefits-list span:last-child {
    color: var(--yp-text);
    font-size: 14px;
    font-weight: 500;
}

.benefits-text {
    margin: 0 0 16px 0;
    color: var(--yp-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.benefits-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100%;
    justify-content: center !important;
    padding: 12px 20px !important;
    height: auto !important;
    line-height: 1.4 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.benefits-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.benefits-cta .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    line-height: 1 !important;
}

.license-activation-form .form-card > .description {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--yp-text-secondary);
}

.license-activation-form .form-card {
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border: 2px solid var(--yp-primary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(232, 158, 67, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--yp-text);
    font-size: 14px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #fff;
}

.form-group input[type="text"]:focus {
    border-color: var(--yp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 158, 67, 0.1);
}

.form-group .description {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 12px;
    color: var(--yp-text-secondary);
}

.form-actions {
    margin-top: 20px;
}

.form-actions .button-hero {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 20px !important;
    height: auto !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(232, 158, 67, 0.25) !important;
    width: 100%;
    justify-content: center !important;
}

.form-actions .button-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 158, 67, 0.35) !important;
}

.form-actions .button-hero .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* License Help */
.license-help {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.license-help h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--yp-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-help h3::before {
    content: '\f223';
    font-family: 'dashicons';
    font-size: 20px;
    color: var(--yp-primary);
}

.license-help ul {
    margin: 0;
    padding: 0;
    list-style: none;
    flex-grow: 1;
}

.license-help li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.license-help li:last-child {
    border-bottom: none;
}

.license-help .dashicons {
    color: var(--yp-primary);
    flex-shrink: 0;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.license-help a {
    text-decoration: none;
    color: var(--yp-text);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.license-help a:hover {
    color: var(--yp-primary);
}

/* Features Table */
.yooadmin-license-features {
    margin-top: 30px;
}

.yooadmin-license-features h2 {
    margin-bottom: 15px;
    font-size: 18px;
}

.yooadmin-license-features .text-center {
    text-align: center;
}

.yooadmin-license-features .dashicons-yes {
    color: #46b450;
    font-size: 20px;
}

.yooadmin-license-features .dashicons-no {
    color: #dc3232;
    font-size: 20px;
}

/* Notification */
#license-notification {
    margin: 20px 0;
}

#license-notification p {
    margin: 0.5em 0;
}

/* YOOAdmin Notification Styles */
.yooadmin-notification {
    position: relative;
    margin: 20px 0;
    padding: 15px 20px;
    background: #fff;
    border-left: 4px solid #72aee6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.yooadmin-notification.notice-success {
    border-left-color: #00a32a;
}

.yooadmin-notification.notice-error {
    border-left-color: #d63638;
}

.yooadmin-notification.notice-warning {
    border-left-color: #dba617;
}

.yooadmin-notification.notice-info {
    border-left-color: #72aee6;
}

.yooadmin-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yooadmin-notification .notification-content .dashicons {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.yooadmin-notification.notice-success .dashicons {
    color: #00a32a;
}

.yooadmin-notification.notice-error .dashicons {
    color: #d63638;
}

.yooadmin-notification.notice-warning .dashicons {
    color: #dba617;
}

.yooadmin-notification.notice-info .dashicons {
    color: #72aee6;
}

.yooadmin-notification .notification-content p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: var(--yp-text);
    font-size: 14px;
}

.yooadmin-notification .notice-dismiss {
    position: absolute;
    top: 0;
    right: 0;
    padding: 9px;
    border: none;
    background: none;
    cursor: pointer;
    color: #787c82;
}

.yooadmin-notification .notice-dismiss:hover {
    color: #d63638;
}

.yooadmin-notification .notice-dismiss::before {
    content: '\f153';
    font-family: dashicons;
    font-size: 16px;
    line-height: 20px;
    display: block;
    width: 20px;
    height: 20px;
}

/* Loading Spinner */
.dashicons.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 782px) {
    .license-status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .license-detail-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label {
        flex: none;
    }
    
    .license-actions {
        flex-direction: column;
    }
    
    .license-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   License Feedback Modal (used by license.js showNotification)
   Standalone styles so the modal works wherever license.js is loaded
   (wizard, license page, etc.) without requiring yp-admin-core.css.
   ========================================================================== */

.yp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

.yp-modal-content {
    position: relative;
    background: var(--yp-card-bg, #fff);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: yp-modal-in 0.3s ease;
}

@keyframes yp-modal-in {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

.yp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--_yp-primary, #eda934);
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s ease;
    z-index: 1;
}

.yp-modal-close:hover {
    background: var(--_yp-primary, #eda934);
    opacity: 0.85;
}

.yp-modal-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.yp-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 25px 20px;
    border-bottom: 1px solid var(--yp-border-color, #e5e5e5);
}

.yp-modal-icon {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--yp-primary, #eda934);
    flex-shrink: 0;
}

.yp-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--yp-text-primary, #1a1a1a);
    line-height: 1.3;
}

.yp-modal-body {
    padding: 25px;
    max-height: 50vh;
    overflow-y: auto;
}

.yp-modal-details {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--yp-text-secondary, #666);
}

.yp-modal-footer {
    padding: 15px 25px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--yp-border-color, #e5e5e5);
}

/* RTL - License modal */
[dir="rtl"] .yp-modal .yp-modal-close {
    right: auto;
    left: 15px;
}

[dir="rtl"] .yp-modal .yp-modal-content {
    text-align: right;
}

[dir="rtl"] .yp-modal .yp-modal-header {
    padding-left: 50px;
    padding-right: 25px;
}

[dir="rtl"] .yp-modal .yp-modal-body,
[dir="rtl"] .yp-modal .yp-modal-footer {
    padding-left: 25px;
    padding-right: 25px;
}
