/**
 * Polanger VideoHub Admin Styles
 *
 * @since 1.0.0
 */

/* Settings Page */
.pvh-settings-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.pvh-settings-container {
    flex: 1;
    min-width: 600px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.pvh-is-hidden {
    display: none;
}

.pvh-option-stack {
    display: block;
    margin-bottom: 8px;
}

.pvh-progress-fill {
    width: 0;
}

.pvh-text-success {
    color: #46b450;
}

.pvh-text-danger {
    color: #dc3232;
}

.pvh-code-inline-sm {
    font-size: 11px;
}

/* Dashboard */
.pvh-dashboard-wrap {
    max-width: 1400px;
}

.pvh-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}

.pvh-dashboard-title h1 {
    margin-bottom: 5px;
}

.pvh-dashboard-title-icon {
    font-size: 30px;
    margin-right: 10px;
}

.pvh-readiness-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
}

.pvh-readiness-ready {
    background: rgba(76, 175, 80, 0.12);
    border-color: #4caf50;
}

.pvh-readiness-limited {
    background: rgba(255, 152, 0, 0.12);
    border-color: #ff9800;
}

.pvh-readiness-not_ready {
    background: rgba(244, 67, 54, 0.12);
    border-color: #f44336;
}

.pvh-readiness-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pvh-readiness-pulse 2s infinite;
}

.pvh-readiness-ready .pvh-readiness-dot {
    background: #4caf50;
}

.pvh-readiness-limited .pvh-readiness-dot {
    background: #ff9800;
}

.pvh-readiness-not_ready .pvh-readiness-dot {
    background: #f44336;
}

@keyframes pvh-readiness-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pvh-readiness-label {
    font-size: 14px;
    color: #1d2327;
}

.pvh-readiness-score {
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.1);
    font-size: 12px;
}

.pvh-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.pvh-system-card,
.pvh-dashboard-card,
.pvh-stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.pvh-system-card,
.pvh-dashboard-card {
    overflow: hidden;
}

.pvh-system-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #f6f7f7;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.pvh-system-card-body {
    padding: 16px;
}

.pvh-system-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pvh-system-item:last-child {
    border-bottom: none;
}

.pvh-system-label {
    font-size: 13px;
    color: #646970;
}

.pvh-system-value {
    font-size: 13px;
    font-weight: 500;
}

.pvh-status-ok {
    color: #4caf50;
}

.pvh-status-warning {
    color: #ff9800;
}

.pvh-status-error {
    color: #f44336;
}

.pvh-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.pvh-status-badge.ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.pvh-status-badge.warning {
    background: #fff3e0;
    color: #ef6c00;
}

.pvh-status-badge.error {
    background: #ffebee;
    color: #c62828;
}

.pvh-storage-bar {
    height: 8px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: #e0e0e0;
}

.pvh-storage-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.pvh-storage-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.pvh-storage-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #646970;
}

.pvh-storage-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.pvh-issues-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pvh-issues-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #646970;
}

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

.pvh-issues-list .dashicons {
    width: 16px;
    height: 16px;
    color: #ff9800;
    font-size: 16px;
}

.pvh-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pvh-stat-card {
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.pvh-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pvh-stat-icon {
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 40px;
}

.pvh-stat-icon.videos { color: #e53935; }
.pvh-stat-icon.shorts { color: #ff9800; }
.pvh-stat-icon.views { color: #4caf50; }
.pvh-stat-icon.channels { color: #2196f3; }
.pvh-stat-icon.subscribers { color: #9c27b0; }
.pvh-stat-icon.playlists { color: #00bcd4; }
.pvh-stat-icon.comments { color: #607d8b; }
.pvh-stat-icon.live { color: #f44336; }

.pvh-stat-value {
    margin: 5px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
}

.pvh-stat-label {
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #646970;
}

.pvh-dashboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.pvh-dashboard-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f6f7f7;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.pvh-dashboard-card-header .dashicons {
    color: #646970;
}

.pvh-dashboard-card-body {
    padding: 0;
}

.pvh-dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.pvh-dashboard-table th,
.pvh-dashboard-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.pvh-dashboard-table th {
    background: #fafafa;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #646970;
}

.pvh-dashboard-table tr:last-child td {
    border-bottom: none;
}

.pvh-dashboard-table tr:hover td {
    background: #f9f9f9;
}

.pvh-dashboard-table .pvh-rank {
    width: 40px;
    text-align: center;
    font-weight: 600;
    color: #999;
}

.pvh-dashboard-table .pvh-rank-1 { color: #ffd700; }
.pvh-dashboard-table .pvh-rank-2 { color: #c0c0c0; }
.pvh-dashboard-table .pvh-rank-3 { color: #cd7f32; }

.pvh-video-title {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pvh-video-title a {
    color: #2271b1;
    text-decoration: none;
}

.pvh-video-title a:hover {
    color: #135e96;
    text-decoration: underline;
}

.pvh-channel-avatar {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 50%;
    vertical-align: middle;
}

.pvh-views-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f0f0f0;
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

.pvh-date {
    font-size: 12px;
    color: #999;
}

.pvh-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.pvh-empty-state .dashicons {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    opacity: 0.3;
    font-size: 48px;
}

.pvh-chart-container {
    height: 300px;
    padding: 20px;
}

.pvh-field-hint-inline-note {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}

.pvh-auth-setting-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eef6ff 0%, #f7fbff 100%);
    border: 1px solid #c5d9f6;
}

.pvh-auth-setting-note strong {
    display: block;
    margin-bottom: 4px;
    color: #1d4f91;
    font-size: 13px;
}

.pvh-auth-setting-note p {
    margin: 0;
    color: #35506f;
    font-size: 12px;
    line-height: 1.55;
}

.pvh-auth-setting-note-action {
    margin-top: 10px !important;
}

.pvh-discussion-setting-note,
.pvh-live-chat-setting-note {
    margin: 16px 0 20px;
    padding: 16px 18px;
    border: 1px solid #d5e6ff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f3f8ff 0%, #eefdf6 100%);
}

.pvh-discussion-setting-note strong,
.pvh-live-chat-setting-note strong {
    display: block;
    margin-bottom: 6px;
    color: #17355f;
}

.pvh-discussion-setting-note p,
.pvh-live-chat-setting-note p {
    margin: 0 0 12px;
    color: #3d4a5b;
}

.pvh-chat-warning-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d63638;
    font-weight: 500;
}

.pvh-chat-meta-box-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.pvh-chat-meta-box-description {
    margin-top: 8px;
    color: #646970;
}

.pvh-field-row-spaced {
    margin-top: 20px;
}

.pvh-section-title-spaced {
    margin-top: 20px;
}

.pvh-tip-box-spaced {
    margin-top: 15px;
}

.pvh-field-hint-spaced {
    margin-top: 10px;
}

.pvh-dashboard-note {
    margin-top: 12px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 11px;
    color: #888;
}

.pvh-dashboard-note-icon,
.pvh-dashboard-inline-icon {
    font-size: 12px;
    vertical-align: middle;
}

.pvh-dashboard-empty-inline {
    padding: 20px;
    text-align: center;
}

.pvh-dashboard-empty-inline-tight {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

.pvh-dashboard-empty-title {
    margin-bottom: 8px;
    font-size: 13px;
    color: #999;
}

.pvh-dashboard-empty-title .dashicons {
    display: block;
    margin: 0 auto 8px;
    color: inherit;
}

.pvh-dashboard-empty-title .pvh-dashboard-icon-lg {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.pvh-dashboard-empty-subtext {
    font-size: 11px;
    color: #bbb;
}

.pvh-dashboard-summary {
    margin-bottom: 16px;
    text-align: center;
}

.pvh-dashboard-summary-value {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
}

.pvh-dashboard-summary-value-muted {
    color: #999;
}

.pvh-dashboard-summary-label {
    font-size: 13px;
    color: #646970;
}

.pvh-storage-bar-track {
    display: flex;
    height: 100%;
}

.pvh-storage-bar-fill-videos {
    background: #2196f3;
}

.pvh-storage-bar-fill-hls {
    background: #4caf50;
}

.pvh-storage-bar-fill-temp {
    background: #ff9800;
}

.pvh-storage-legend-dot-videos {
    background: #2196f3;
}

.pvh-storage-legend-dot-hls {
    background: #4caf50;
}

.pvh-storage-legend-dot-temp {
    background: #ff9800;
}

.pvh-dashboard-section-divider {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.pvh-dashboard-section-divider-sm {
    margin-top: 12px;
}

.pvh-dashboard-section-title {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #646970;
}

.pvh-dashboard-section-title-danger {
    color: #c62828;
}

.pvh-dashboard-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pvh-dashboard-user-row:last-child {
    border-bottom: none;
}

.pvh-dashboard-avatar {
    border-radius: 50%;
}

.pvh-dashboard-user-main {
    flex: 1;
    min-width: 0;
}

.pvh-dashboard-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
}

.pvh-dashboard-user-subtext,
.pvh-dashboard-meta-subtext {
    font-size: 10px;
    color: #999;
}

.pvh-dashboard-user-side {
    text-align: right;
}

.pvh-dashboard-user-value {
    font-size: 12px;
    font-weight: 600;
    color: #2196f3;
}

.pvh-dashboard-metric-grid {
    display: grid;
    gap: 12px;
    text-align: center;
}

.pvh-dashboard-metric-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pvh-dashboard-metric-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pvh-dashboard-metric-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.pvh-dashboard-metric-grid-tight {
    margin-bottom: 8px;
}

.pvh-dashboard-metric-card {
    padding: 12px;
    border-radius: 6px;
    background: #f5f5f5;
}

.pvh-dashboard-metric-card-tight {
    padding: 6px;
    border-radius: 4px;
}

.pvh-metric-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.pvh-metric-processing {
    background: #e3f2fd;
    color: #1976d2;
}

.pvh-metric-success {
    background: #e8f5e9;
    color: #388e3c;
}

.pvh-metric-error {
    background: #ffebee;
    color: #c62828;
}

.pvh-metric-neutral {
    background: #fafafa;
    color: #999;
}

.pvh-metric-brand {
    background: #e3f2fd;
    color: #1976d2;
}

.pvh-dashboard-metric-value {
    font-size: 24px;
    font-weight: 700;
    color: inherit;
}

.pvh-dashboard-metric-value-sm {
    font-size: 16px;
    font-weight: 600;
    color: inherit;
}

.pvh-dashboard-metric-label {
    font-size: 11px;
    text-transform: uppercase;
    color: inherit;
}

.pvh-dashboard-metric-label-xs {
    font-size: 9px;
    color: #999;
}

.pvh-empty-state-compact {
    padding: 30px 20px;
}

.pvh-empty-state-success .dashicons {
    color: #4caf50;
    opacity: 1;
}

.pvh-empty-state-success p {
    color: #4caf50;
    font-weight: 500;
}

.pvh-dashboard-errors-list {
    max-height: 120px;
    overflow-y: auto;
}

.pvh-dashboard-error-item {
    margin-bottom: 4px;
    padding: 6px 8px;
    background: #ffebee;
    border-radius: 4px;
    font-size: 11px;
}

.pvh-dashboard-error-title {
    color: #c62828;
    font-weight: 500;
}

.pvh-dashboard-error-text {
    color: #999;
    font-size: 10px;
}

.pvh-dashboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.pvh-dashboard-footer-meta {
    font-size: 11px;
    color: #999;
}

.pvh-dashboard-live-icon {
    color: #f44336;
}

.pvh-dashboard-live-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f44336;
    color: #fff;
    font-size: 11px;
}

.pvh-dashboard-table-bleed {
    margin: -16px;
    width: calc(100% + 32px);
}

.pvh-dashboard-stream-title {
    font-weight: 500;
}

.pvh-dashboard-stream-author {
    font-size: 11px;
    color: #999;
}

.pvh-dashboard-live-viewers {
    color: #f44336;
    font-weight: 600;
}

.pvh-dashboard-empty-action {
    margin-top: 8px;
}

.pvh-health-icon-ok {
    color: #4caf50;
}

.pvh-health-icon-warning {
    color: #ff9800;
}

.pvh-health-badge-ok {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
}

.pvh-health-badge-warning {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 10px;
    background: #fff3e0;
    color: #ef6c00;
    font-size: 11px;
}

.pvh-dashboard-scroll-panel {
    max-height: 400px;
    overflow-y: auto;
}

.pvh-health-warning {
    margin-bottom: 8px;
    border-left: 3px solid #ef6c00;
    border-radius: 6px;
    background: #fff3e0;
}

.pvh-health-warning-error {
    background: #ffebee;
    border-left-color: #c62828;
}

.pvh-health-warning-warning {
    background: #fff3e0;
    border-left-color: #ef6c00;
}

.pvh-health-warning-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    cursor: pointer;
    list-style: none;
}

.pvh-health-warning-icon {
    font-size: 16px;
}

.pvh-health-warning-error .pvh-health-warning-icon,
.pvh-health-warning-error .pvh-health-warning-title {
    color: #c62828;
}

.pvh-health-warning-warning .pvh-health-warning-icon,
.pvh-health-warning-warning .pvh-health-warning-title {
    color: #ef6c00;
}

.pvh-health-warning-body {
    flex: 1;
}

.pvh-health-warning-title {
    font-size: 13px;
    font-weight: 600;
}

.pvh-health-warning-message {
    margin-top: 2px;
    font-size: 11px;
    color: #666;
}

.pvh-health-warning-arrow {
    font-size: 14px;
    color: #999;
}

.pvh-health-warning-content {
    padding: 0 12px 12px;
    border-top: 1px solid #ffe0b2;
}

.pvh-health-warning-error .pvh-health-warning-content {
    border-top-color: #ffcdd2;
}

.pvh-health-group {
    margin-top: 10px;
}

.pvh-health-group-title {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
}

.pvh-health-group-title-success {
    color: #388e3c;
}

.pvh-health-list {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    color: #666;
}

.pvh-health-list-success {
    color: #555;
}

.pvh-health-list li {
    margin-bottom: 3px;
}

.pvh-health-fix-code {
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 11px;
}

.pvh-health-impact {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.03);
}

.pvh-health-impact-label {
    font-size: 11px;
    font-weight: 600;
    color: #c62828;
}

.pvh-health-impact-text {
    font-size: 11px;
    color: #666;
}

.pvh-health-recommendation {
    margin-top: 8px;
    padding: 8px;
    border-left: 3px solid #2196f3;
    border-radius: 4px;
    background: #e3f2fd;
    font-size: 11px;
    font-weight: 600;
    color: #1976d2;
}

.pvh-disk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
    text-align: center;
}

.pvh-disk-card {
    padding: 8px;
    border-radius: 4px;
    background: #f5f5f5;
}

.pvh-disk-card-brand {
    background: #e3f2fd;
}

.pvh-disk-value {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.pvh-disk-value-ok {
    color: #388e3c;
}

.pvh-disk-value-warning {
    color: #ef6c00;
}

.pvh-disk-value-critical {
    color: #c62828;
}

.pvh-disk-value-brand,
.pvh-disk-label-brand {
    color: #1976d2;
}

.pvh-disk-label {
    font-size: 10px;
    color: #999;
}

.pvh-disk-note {
    font-size: 10px;
    color: #bbb;
    text-align: center;
}

.pvh-disk-usage-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: #e0e0e0;
}

.pvh-disk-usage-fill {
    height: 100%;
    border-radius: 3px;
    background: #4caf50;
}

.pvh-disk-usage-fill-warning {
    background: #ef6c00;
}

.pvh-disk-usage-fill-critical {
    background: #c62828;
}

.pvh-dashboard-card-body-padded {
    padding: 20px;
}

.pvh-monetization-grid {
    margin: 0;
    grid-template-columns: repeat(3, 1fr);
}

.pvh-stat-card-compact {
    padding: 16px;
}

.pvh-stat-value-compact {
    font-size: 24px;
}

.pvh-stat-label-compact {
    font-size: 11px;
}

.pvh-monetization-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.pvh-monetization-row-bordered {
    border-bottom: 1px solid #f0f0f0;
}

.pvh-monetization-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
}

.pvh-monetization-meta-title {
    font-size: 13px;
    font-weight: 500;
    color: #1d2327;
}

.pvh-monetization-side {
    text-align: right;
}

.pvh-monetization-value-success {
    font-size: 13px;
    font-weight: 600;
    color: #4caf50;
}

.pvh-monetization-value-primary {
    font-size: 13px;
    font-weight: 600;
    color: #2196f3;
}

.pvh-monetization-meta-subtext {
    font-size: 10px;
    color: #999;
}

.pvh-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pvh-quick-action-button {
    display: block;
    padding: 12px;
    text-align: center;
    line-height: 1.4;
}

.pvh-quick-action-button .dashicons {
    margin-top: 2px;
}

.pvh-quick-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.pvh-quick-links-title {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    text-transform: uppercase;
    color: #646970;
}

.pvh-quick-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 782px) {
    .pvh-dashboard-row {
        grid-template-columns: 1fr;
    }

    .pvh-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pvh-settings-sidebar {
    width: 300px;
}

.pvh-info-box {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.pvh-info-box h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.pvh-info-box h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #1d2327;
}

.pvh-info-box p {
    margin: 0 0 12px;
    color: #50575e;
}

/* Code examples for shortcodes */
.pvh-code-examples {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pvh-code-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f6f7f7;
    border-radius: 4px;
}

.pvh-code-item code {
    background: #2271b1;
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-family: Consolas, Monaco, monospace;
    white-space: nowrap;
}

.pvh-code-item span {
    color: #50575e;
    font-size: 13px;
}

/* Steps list */
.pvh-steps-list {
    margin: 10px 0 0 20px;
    padding: 0;
}

.pvh-steps-list li {
    margin-bottom: 6px;
    color: #50575e;
}

.pvh-steps-list code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* Tip box */
.pvh-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, #fef8e7 0%, #fdf6e3 100%);
    border: 1px solid #f0c674;
    border-radius: 4px;
    padding: 12px 15px;
}

.pvh-tip-box .dashicons {
    color: #dba617;
    flex-shrink: 0;
    margin-top: 2px;
}

.pvh-tip-box p {
    margin: 0;
    font-size: 13px;
    color: #6b5900;
}

/* Info section styling */
.pvh-info-section .pvh-info-box {
    border-radius: 6px;
    border: 1px solid #c3c4c7;
}

/* Addons Page */
.pvh-addons-wrap {
    margin-top: 20px;
}

.pvh-addons-description {
    margin-bottom: 20px;
    color: #666;
}

.pvh-addons-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(135deg, #f0f6fc 0%, #e8f4fd 100%);
    border: 1px solid #c3d9ed;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 25px;
}

.pvh-addons-notice-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #2271b1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pvh-addons-notice-icon .dashicons {
    color: #fff;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.pvh-addons-notice-content {
    flex: 1;
}

.pvh-addons-notice-content strong {
    display: block;
    font-size: 14px;
    color: #1d2327;
    margin-bottom: 6px;
}

.pvh-addons-notice-content p {
    margin: 0;
    color: #50575e;
    font-size: 13px;
    line-height: 1.6;
}

.pvh-addons-notice-content a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.pvh-addons-notice-content a:hover {
    color: #135e96;
    text-decoration: underline;
}

.pvh-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pvh-addon-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.pvh-addon-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pvh-addon-card.active {
    border-color: #2271b1;
}

.pvh-addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f6f7f7;
    border-bottom: 1px solid #ccd0d4;
}

.pvh-addon-header h3 {
    margin: 0;
    font-size: 14px;
}

.pvh-addon-version {
    font-size: 12px;
    color: #666;
}

.pvh-addon-body {
    padding: 15px;
    min-height: 60px;
}

.pvh-addon-body p {
    margin: 0;
    color: #666;
}

.pvh-addon-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.pvh-addon-author {
    font-size: 12px;
    color: #666;
}

.pvh-no-addons {
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px solid #ccd0d4;
}

.pvh-addon-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pvh-addon-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.pvh-badge-core {
    background: #2271b1;
    color: #fff;
}

.pvh-badge-depends {
    background: #f0f0f1;
    color: #50575e;
    font-weight: 500;
}

.pvh-addon-card.has-dependency {
    border-color: #dba617;
}

.pvh-addon-dependency-warning {
    margin-top: 10px !important;
    padding: 8px 12px;
    background: #fcf9e8;
    border-left: 3px solid #dba617;
    color: #826200;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pvh-addon-dependency-warning .dashicons {
    color: #dba617;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.button.button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Channel Status Badges */
.pvh-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.pvh-status-badge.status-publish {
    background: #d4edda;
    color: #155724;
}

.pvh-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.pvh-status-badge.status-draft {
    background: #f8d7da;
    color: #721c24;
}

/* Meta Box Styles */
.pvh-meta-box {
    padding: 10px 0;
}

.pvh-field-group {
    margin-bottom: 20px;
}

.pvh-field-group:last-child {
    margin-bottom: 0;
}

.pvh-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.pvh-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.pvh-radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.pvh-media-upload {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.pvh-media-preview {
    max-width: 100px;
    max-height: 100px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f1;
}

.pvh-media-preview img {
    width: 100%;
    height: 100%;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

.pvh-video-preview {
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.pvh-self-hosted-preview-inner {
    width: 100%;
}

.pvh-video-filename-row {
    margin: 0 0 6px;
}

.pvh-self-hosted-actions {
    margin: 0 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pvh-admin-video-wrap {
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    border-radius: 4px;
    overflow: hidden;
    background: #1d2327;
}

.pvh-admin-video-preview {
    display: block;
    width: 100%;
    max-height: 220px;
    vertical-align: middle;
}

.pvh-video-filename {
    display: inline-block;
    padding: 5px 10px;
    background: #f0f0f1;
    border-radius: 3px;
    font-size: 12px;
}

/* Stats Box */
.pvh-stats-box {
    padding: 10px 0;
}

.pvh-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f6f7f7;
    border-radius: 4px;
    margin-bottom: 10px;
}

.pvh-stat-item:last-child {
    margin-bottom: 0;
}

.pvh-stat-icon {
    font-size: 24px;
    color: #2271b1;
}

.pvh-stat-content {
    display: flex;
    flex-direction: column;
}

.pvh-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.pvh-stat-label {
    font-size: 12px;
    color: #666;
}

/* =====================================================
   SETTINGS PAGE - MODERN DESIGN
   ===================================================== */

.pvh-settings-page {
    max-width: 1400px;
    margin: 20px 20px 20px 0;
}

/* Settings Header */
.pvh-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.pvh-settings-header-left h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1d2327;
}

.pvh-settings-header-left h1 .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #2271b1;
}

.pvh-settings-subtitle {
    margin: 0;
    color: #646970;
    font-size: 14px;
}

.pvh-version-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Settings Layout */
.pvh-settings-layout {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 24px;
}

/* Settings Navigation */
.pvh-settings-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pvh-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #1d2327;
    font-weight: 500;
    transition: all 0.2s;
}

.pvh-nav-item:hover {
    background: #f6f7f7;
    border-color: #c3c4c7;
    color: #1d2327;
}

.pvh-nav-item.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.pvh-nav-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Settings Main Content */
.pvh-settings-main {
    min-width: 0;
}

.pvh-settings-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

/* Settings Section */
.pvh-settings-section {
    padding: 24px;
    border-bottom: 1px solid #f0f0f1;
}

.pvh-settings-section:last-of-type {
    border-bottom: none;
}

.pvh-section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.pvh-section-header > .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2271b1;
    margin-top: 2px;
}

.pvh-section-header h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.pvh-section-header p {
    margin: 0;
    font-size: 13px;
    color: #646970;
}

/* Settings Fields */
.pvh-settings-fields {
    padding-left: 40px;
}

.pvh-field-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pvh-permalink-fields {
    grid-template-columns: 1fr;
}

.pvh-field-row.pvh-php-upload-limits-row {
    grid-template-columns: 1fr;
    margin-top: 4px;
}

.pvh-php-upload-limits {
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid #c3c4c7;
    border-left-width: 4px;
    border-left-color: #72aee6;
    background: #f6f7f7;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.55;
    color: #1d2327;
}

.pvh-php-upload-limits.is-warning {
    border-left-color: #dba617;
    background: #fcf9e8;
}

.pvh-php-upload-limits__title {
    margin: 0 0 8px;
    font-weight: 600;
    font-size: 13px;
}

.pvh-php-upload-limits__subtitle {
    margin: 12px 0 6px;
    font-weight: 600;
    font-size: 13px;
}

.pvh-php-upload-limits__list {
    margin: 0 0 8px 1.2em;
    padding: 0;
    list-style: disc;
}

.pvh-php-upload-limits__list li {
    margin-bottom: 4px;
}

.pvh-php-upload-limits__warn,
.pvh-php-upload-limits__hint {
    margin: 0 0 10px;
}

.pvh-php-upload-limits__link {
    margin: 10px 0 0;
}

.pvh-php-upload-limits__link a {
    text-decoration: none;
}

.pvh-php-upload-limits__link a:hover {
    text-decoration: underline;
}

.pvh-field {
    margin-bottom: 0;
    min-width: 0;
}

.pvh-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1d2327;
    font-size: 13px;
}

.pvh-input-number {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pvh-input-number:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
    outline: none;
}

.pvh-input-text {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pvh-input-text:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
    outline: none;
}

.pvh-input-with-prefix {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.pvh-prefix {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 12px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 13px;
    color: #646970;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pvh-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #646970;
}

.pvh-settings-callout {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #dcdcde;
}

.pvh-settings-callout strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #1d2327;
}

.pvh-settings-callout p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #3c434a;
}

.pvh-settings-callout-warning {
    background: linear-gradient(135deg, #fff8e5 0%, #fff1c2 100%);
    border-color: #e6c15f;
    box-shadow: inset 0 0 0 1px rgba(230, 193, 95, 0.08);
}

.pvh-settings-callout-info {
    background: linear-gradient(135deg, #eef7ff 0%, #dff0ff 100%);
    border-color: #8ec5f5;
    box-shadow: inset 0 0 0 1px rgba(142, 197, 245, 0.12);
}

/* Toggle Switches */
.pvh-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pvh-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: background 0.2s;
}

.pvh-toggle:hover {
    background: #f0f0f1;
}

.pvh-toggle input[type="checkbox"] {
    display: none;
}

.pvh-toggle-slider {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 24px;
    background: #c3c4c7;
    border-radius: 12px;
    transition: background 0.2s;
}

.pvh-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pvh-toggle input:checked + .pvh-toggle-slider {
    background: #2271b1;
}

.pvh-toggle input:checked + .pvh-toggle-slider::after {
    transform: translateX(20px);
}

.pvh-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pvh-toggle-label strong {
    font-size: 14px;
    color: #1d2327;
}

.pvh-toggle-label span {
    font-size: 12px;
    color: #646970;
}

/* Settings Footer */
.pvh-settings-footer {
    padding: 20px 24px;
    background: #f9f9f9;
    border-top: 1px solid #f0f0f1;
}

.pvh-settings-footer .button-primary {
    padding: 8px 24px;
    height: auto;
    font-size: 14px;
}

/* Settings Sidebar */
.pvh-settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pvh-sidebar-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.pvh-sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f1;
}

.pvh-sidebar-card-header .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #2271b1;
}

.pvh-sidebar-card-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.pvh-sidebar-card-body {
    padding: 16px;
}

.pvh-sidebar-card-body p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #646970;
}

/* Quick Links */
.pvh-quick-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pvh-quick-links li {
    margin-bottom: 8px;
}

.pvh-quick-links li:last-child {
    margin-bottom: 0;
}

.pvh-quick-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 6px;
    text-decoration: none;
    color: #1d2327;
    font-size: 13px;
    transition: all 0.2s;
}

.pvh-quick-links a:hover {
    background: #2271b1;
    color: #fff;
}

.pvh-quick-links a .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Sidebar Buttons */
.pvh-sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pvh-sidebar-buttons .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    height: auto;
}

.pvh-sidebar-buttons .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Shortcode List */
.pvh-shortcode-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
}

.pvh-shortcode-list:last-child {
    margin-bottom: 0;
}

.pvh-shortcode-list code {
    background: #1d2327;
    color: #50c878;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}

.pvh-shortcode-list span {
    font-size: 12px;
    color: #646970;
}

/* Sidebar Pro Card */
.pvh-sidebar-pro .pvh-sidebar-card-header {
    background: linear-gradient(135deg, #f0f6fc, #e8f0fe);
}

.pvh-sidebar-pro .pvh-sidebar-card-header .dashicons {
    color: #dba617;
}

/* Settings Page Responsive */
@media screen and (max-width: 1200px) {
    .pvh-settings-layout {
        grid-template-columns: 180px 1fr;
    }

    .pvh-settings-sidebar {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .pvh-permalink-fields {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 992px) {
    .pvh-settings-layout {
        grid-template-columns: 1fr;
    }

    .pvh-settings-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .pvh-nav-item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .pvh-settings-sidebar {
        grid-template-columns: repeat(2, 1fr);
    }

    .pvh-field-row {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .pvh-settings-page {
        margin: 10px 10px 10px 0;
    }

    .pvh-settings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pvh-settings-sidebar {
        grid-template-columns: 1fr;
    }

    .pvh-settings-fields {
        padding-left: 0;
    }

    .pvh-toggle {
        flex-direction: column;
    }

    .pvh-input-with-prefix {
        flex-direction: column;
    }

    .pvh-prefix {
        width: 100%;
        max-width: 100%;
        border-right: 1px solid #c3c4c7;
        border-bottom: none;
        border-radius: 6px 6px 0 0;
    }

    .pvh-input-with-prefix .pvh-input-text {
        width: 100%;
        border-radius: 0 0 6px 6px;
    }
}

/* =====================================================
   API SETTINGS - MODERN DESIGN
   ===================================================== */

.pvh-api-settings-modern {
    padding: 0;
}

/* API Intro */
.pvh-api-intro {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f6fc, #e8f0fe);
    border-bottom: 1px solid #e0e0e0;
    border-radius: 12px 12px 0 0;
}

.pvh-api-intro-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #2271b1;
    border-radius: 12px;
}

.pvh-api-intro-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #fff;
}

.pvh-api-intro-content h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.pvh-api-intro-content p {
    margin: 0;
    font-size: 13px;
    color: #646970;
}

/* Providers Grid */
.pvh-providers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px;
}

/* Provider Card */
.pvh-provider-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.pvh-provider-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pvh-provider-card.configured {
    border-color: #00a32a;
}

.pvh-provider-card-youtube .pvh-provider-card-header {
    border-left-color: #ff0000;
}

.pvh-provider-card-youtube .pvh-provider-icon,
.pvh-help-icon-youtube {
    background: #ff0000;
}

.pvh-provider-card-vimeo .pvh-provider-card-header {
    border-left-color: #1ab7ea;
}

.pvh-provider-card-vimeo .pvh-provider-icon,
.pvh-help-icon-vimeo {
    background: #1ab7ea;
}

.pvh-provider-card-dailymotion .pvh-provider-card-header {
    border-left-color: #0066dc;
}

.pvh-provider-card-dailymotion .pvh-provider-icon {
    background: #0066dc;
}

.pvh-provider-card-self_hosted .pvh-provider-card-header {
    border-left-color: #2271b1;
}

.pvh-provider-card-self_hosted .pvh-provider-icon {
    background: #2271b1;
}

.pvh-provider-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f1;
    border-left: 4px solid #2271b1;
}

.pvh-provider-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.pvh-provider-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #fff;
}

.pvh-provider-info h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

/* Status Badges */
.pvh-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.pvh-status .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.pvh-status-connected {
    color: #00a32a;
}

.pvh-status-disconnected {
    color: #dba617;
}

.pvh-status-ready {
    color: #2271b1;
}

/* Provider Card Body */
.pvh-provider-card-body {
    padding: 16px;
}

.pvh-no-config {
    margin: 0;
    padding: 12px;
    background: #f0f6fc;
    border-radius: 6px;
    font-size: 13px;
    color: #2271b1;
    text-align: center;
}

/* Provider Fields */
.pvh-provider-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pvh-api-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pvh-api-field label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2327;
}

.pvh-required {
    color: #d63638;
}

.pvh-input-wrapper {
    position: relative;
    display: flex;
}

.pvh-api-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pvh-api-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
    outline: none;
}

.pvh-api-input-number {
    width: 100px;
}

.pvh-api-textarea {
    resize: vertical;
    min-height: 80px;
}

.pvh-toggle-visibility {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #646970;
}

.pvh-toggle-visibility:hover {
    color: #2271b1;
}

.pvh-field-description {
    margin: 0;
    font-size: 12px;
    color: #646970;
    line-height: 1.4;
}

.pvh-field-description a {
    color: #2271b1;
}

/* API Help Section */
.pvh-api-help {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pvh-help-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.pvh-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.pvh-help-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #fff;
}

.pvh-help-content {
    flex: 1;
}

.pvh-help-content h4 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

/* Steps */
.pvh-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pvh-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pvh-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.pvh-help-youtube .pvh-step-number {
    background: #ff0000;
}

.pvh-help-vimeo .pvh-step-number {
    background: #1ab7ea;
}

.pvh-step-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.pvh-step-content strong {
    font-size: 13px;
    color: #1d2327;
}

.pvh-step-link {
    font-size: 12px;
    color: #2271b1;
    text-decoration: none;
}

.pvh-step-link:hover {
    text-decoration: underline;
}

.pvh-step-note {
    display: inline-block;
    padding: 4px 8px;
    background: #fff3cd;
    border-radius: 4px;
    font-size: 11px;
    color: #856404;
    margin-top: 4px;
}

/* API Note */
.pvh-api-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: #f0f6fc;
    border-radius: 6px;
    font-size: 12px;
    color: #2271b1;
}

.pvh-api-note .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* API Settings Responsive */
@media screen and (max-width: 992px) {
    .pvh-providers-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .pvh-api-intro {
        flex-direction: column;
        text-align: center;
    }

    .pvh-provider-card-header {
        flex-direction: column;
        text-align: center;
    }

    .pvh-help-card {
        flex-direction: column;
    }

    .pvh-help-icon {
        align-self: flex-start;
    }
}

.pvh-api-settings .pvh-provider-settings h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pvh-api-settings .pvh-provider-settings h3 .dashicons {
    color: #2271b1;
}

/* Import Page */
.pvh-import-wrap {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.pvh-import-container {
    flex: 1;
    min-width: 0;
}

.pvh-import-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.pvh-import-sidebar .pvh-info-box {
    margin-bottom: 20px;
}

.pvh-import-sidebar .pvh-info-box:last-child {
    margin-bottom: 0;
}

.pvh-import-sidebar ul {
    margin: 0;
    padding-left: 20px;
}

.pvh-import-sidebar li {
    margin-bottom: 8px;
}

.pvh-api-status-list {
    list-style: none;
    padding: 0;
}

.pvh-api-status-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.pvh-api-status-list li:last-child {
    border-bottom: none;
}

.pvh-api-status-list .configured .dashicons {
    color: #00a32a;
}

.pvh-api-status-list .not-configured .dashicons {
    color: #d63638;
}

/* Import Tabs */
.pvh-import-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pvh-import-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f0f0f1;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.pvh-import-tab:hover {
    background: #e0e0e0;
}

.pvh-import-tab.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.pvh-import-tab .pvh-not-configured {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #d63638;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
}

/* Import Content */
.pvh-import-content {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
}

.pvh-import-type {
    margin-bottom: 20px;
}

.pvh-url-input-wrap {
    display: flex;
    gap: 10px;
}

.pvh-url-input-wrap input {
    flex: 1;
}

.pvh-url-examples {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.pvh-import-settings {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pvh-settings-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pvh-setting-field {
    flex: 1;
    min-width: 150px;
}

.pvh-setting-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Preview Section */
.pvh-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.pvh-preview-title {
    margin: 0;
    font-size: 16px;
}

.pvh-preview-count {
    color: #666;
    font-size: 13px;
}

.pvh-preview-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.pvh-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.pvh-preview-item:last-child {
    border-bottom: none;
}

.pvh-preview-item:hover {
    background: #f9f9f9;
}

.pvh-preview-item.already-imported {
    opacity: 0.6;
    background: #f5f5f5;
}

.pvh-preview-checkbox {
    flex-shrink: 0;
}

.pvh-preview-thumb {
    position: relative;
    width: 120px;
    flex-shrink: 0;
}

.pvh-preview-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.pvh-preview-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 11px;
}

.pvh-preview-info {
    flex: 1;
    min-width: 0;
}

.pvh-preview-video-title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pvh-preview-channel {
    font-size: 12px;
    color: #666;
}

.pvh-imported-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #2271b1;
    color: #fff;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 8px;
}

/* Import Actions */
.pvh-import-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Progress Section */
.pvh-progress-header {
    text-align: center;
    margin-bottom: 20px;
}

.pvh-progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pvh-progress-bar {
    flex: 1;
    height: 20px;
    background: #f0f0f1;
    border-radius: 10px;
    overflow: hidden;
}

.pvh-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #135e96);
    transition: width 0.3s;
}

.pvh-progress-text {
    font-weight: 600;
    min-width: 40px;
}

.pvh-progress-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.pvh-progress-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pvh-stat-success .dashicons { color: #00a32a; }
.pvh-stat-skipped .dashicons { color: #dba617; }
.pvh-stat-failed .dashicons { color: #d63638; }

.pvh-progress-log {
    max-height: 200px;
    overflow-y: auto;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    font-size: 12px;
}

.pvh-progress-log div {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pvh-log-success { color: #00a32a; }
.pvh-log-skipped { color: #dba617; }
.pvh-log-error { color: #d63638; }

/* Result Section */
.pvh-import-result-section {
    text-align: center;
    padding: 40px 20px;
}

.pvh-result-icon {
    margin-bottom: 20px;
}

.pvh-result-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.pvh-result-message {
    color: #666;
    margin-bottom: 30px;
}

.pvh-result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Playlist Editor */
.pvh-playlist-videos-wrap {
    padding: 10px 0;
}

.pvh-playlist-videos-list {
    min-height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.pvh-playlist-video-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.pvh-playlist-video-item:last-child {
    border-bottom: none;
}

.pvh-drag-handle {
    cursor: move;
    color: #999;
}

.pvh-playlist-video-item img {
    border-radius: 3px;
}

.pvh-playlist-video-item .pvh-video-title {
    flex: 1;
    font-weight: 500;
}

.pvh-playlist-video-item .pvh-video-duration {
    color: #666;
    font-size: 12px;
}

.pvh-playlist-video-item .pvh-remove-video {
    color: #d63638;
}

.pvh-playlist-video-item .pvh-no-thumb {
    width: 60px;
    height: 34px;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.pvh-sortable-placeholder {
    height: 54px;
    background: #f0f6fc;
    border: 2px dashed #2271b1;
    margin: 5px 10px;
}

.pvh-playlist-actions {
    margin-bottom: 10px;
}

/* Modal */
.pvh-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pvh-modal {
    background: #fff;
    border-radius: 8px;
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.pvh-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.pvh-modal-header h3 {
    margin: 0;
}

.pvh-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.pvh-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.pvh-video-search {
    margin-bottom: 15px;
}

.pvh-video-results {
    max-height: 300px;
    overflow-y: auto;
}

.pvh-video-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.pvh-video-result:hover {
    background: #f0f6fc;
    border-color: #2271b1;
}

.pvh-video-result.added {
    opacity: 0.5;
    pointer-events: none;
}

.pvh-video-result img {
    border-radius: 3px;
}

.pvh-result-info {
    flex: 1;
}

.pvh-result-title {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.pvh-result-duration {
    font-size: 12px;
    color: #666;
}

/* Spin Animation */
.dashicons.spin {
    animation: pvh-spin 1s linear infinite;
}

@keyframes pvh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 782px) {
    .pvh-settings-container {
        min-width: 100%;
    }

    .pvh-settings-sidebar {
        width: 100%;
    }

    .pvh-radio-group {
        flex-direction: column;
    }

    .pvh-import-wrap {
        flex-direction: column;
    }

    .pvh-import-sidebar {
        width: 100%;
    }

    .pvh-url-input-wrap {
        flex-direction: column;
    }

    .pvh-settings-row {
        flex-direction: column;
    }
}

/* =====================================================
   PLAYLIST TITLE SECTION (Import Page)
   ===================================================== */

.pvh-playlist-title-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f6fc;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

.pvh-playlist-title-section .pvh-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.pvh-playlist-title-section .pvh-optional {
    font-weight: 400;
    color: #646970;
    font-size: 12px;
}

.pvh-playlist-title-section input[type="text"] {
    margin-bottom: 8px;
}

.pvh-playlist-title-section .description {
    margin: 0;
    color: #646970;
    font-size: 12px;
}

/* =====================================================
   ADDON CARDS - Core Addon Styles
   ===================================================== */

.pvh-addon-card.core {
    border-color: #2271b1;
    background: linear-gradient(135deg, #f0f6fc 0%, #fff 100%);
}

.pvh-addon-card.core .pvh-addon-header {
    background: #f0f6fc;
}

.pvh-addon-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pvh-addon-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.pvh-badge-core {
    background: #2271b1;
    color: #fff;
}

.pvh-addon-status {
    display: inline-block;
    padding: 6px 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* =====================================================
   CHECKBOX GRID - Homepage Settings
   ===================================================== */

.pvh-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.pvh-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pvh-checkbox-item:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.pvh-checkbox-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.pvh-checkbox-item input[type="checkbox"]:checked + .pvh-checkbox-label {
    color: #2271b1;
    font-weight: 500;
}

.pvh-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1d2327;
}

.pvh-category-count {
    font-size: 11px;
    color: #646970;
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 10px;
}

.pvh-no-items {
    padding: 20px;
    text-align: center;
    color: #646970;
    background: #f9f9f9;
    border-radius: 6px;
}

.pvh-category-order-help {
    margin: 8px 0 14px;
}

.pvh-category-order-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    padding: 14px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.pvh-category-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.pvh-category-order-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #1d2327;
    font-weight: 600;
}

.pvh-category-order-name .dashicons {
    color: #2271b1;
}

.pvh-category-order-name span:last-child {
    min-width: 0;
}

.pvh-category-order-name small {
    display: block;
    margin-top: 2px;
    color: #646970;
    font-size: 11px;
    font-weight: 400;
}

.pvh-category-order-input {
    width: 84px;
    flex: 0 0 84px;
    text-align: center;
}

/* Conditional field visibility */
.pvh-conditional-field {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #ddd;
}

/* =====================================================
   URL INPUT WITH FETCH BUTTON
   ===================================================== */

.pvh-url-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pvh-url-input-wrapper input[type="url"] {
    flex: 1;
}

.pvh-url-input-wrapper .button {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 30px;
}

.pvh-url-input-wrapper .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.pvh-url-input-wrapper .button.loading .dashicons {
    animation: pvh-spin 1s linear infinite;
}

@keyframes pvh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fetch Status */
.pvh-fetch-status {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.pvh-fetch-status.success {
    background: #d1e7dd;
    color: #0a3622;
    border-left: 4px solid #198754;
}

.pvh-fetch-status.error {
    background: #f8d7da;
    color: #58151c;
    border-left: 4px solid #dc3545;
}

.pvh-fetch-status.loading {
    background: #e7f1ff;
    color: #084298;
    border-left: 4px solid #0d6efd;
}

/* API Test Button Styles */
.pvh-api-test-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.pvh-test-api-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px !important;
    height: auto !important;
    font-weight: 500;
}

.pvh-test-api-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.pvh-test-api-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.pvh-test-result {
    margin-top: 12px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    display: none;
}

.pvh-test-result:not(:empty) {
    display: block;
}

.pvh-test-success {
    display: block;
    color: #0a3622;
    background: #d1e7dd;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #198754;
}

.pvh-test-success .dashicons {
    color: #198754;
    vertical-align: middle;
    margin-right: 5px;
}

.pvh-test-success small {
    display: block;
    margin-top: 5px;
    opacity: 0.8;
}

.pvh-test-error {
    display: block;
    color: #58151c;
    background: #f8d7da;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

.pvh-test-error .dashicons {
    color: #dc3545;
    vertical-align: middle;
    margin-right: 5px;
}

.pvh-test-loading {
    display: block;
    color: #084298;
    background: #e7f1ff;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #0d6efd;
}

.pvh-test-loading .dashicons {
    color: #0d6efd;
    vertical-align: middle;
    margin-right: 5px;
}

.pvh-test-loading .dashicons.spinning {
    animation: pvh-spin 1s linear infinite;
}

@keyframes pvh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =====================================================
   LAYOUT MODE SELECTOR
   ===================================================== */

.pvh-layout-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.pvh-layout-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.pvh-layout-option {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pvh-layout-option:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
}

.pvh-layout-option.active {
    border-color: #2271b1;
    background: linear-gradient(135deg, #f0f6fc 0%, #fff 100%);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
}

.pvh-layout-option input[type="radio"] {
    display: none;
}

.pvh-layout-preview {
    height: 80px;
    margin-bottom: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

/* Carousel Preview */
.pvh-layout-carousel .pvh-preview-items {
    display: flex;
    gap: 8px;
    height: 100%;
    align-items: center;
}

.pvh-layout-carousel .pvh-preview-items span {
    flex: 0 0 40px;
    height: 100%;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border-radius: 4px;
    opacity: 0.8;
}

.pvh-layout-carousel .pvh-preview-items span:nth-child(2) { opacity: 0.9; }
.pvh-layout-carousel .pvh-preview-items span:nth-child(3) { opacity: 1; }
.pvh-layout-carousel .pvh-preview-items span:nth-child(4) { opacity: 0.7; }

.pvh-layout-carousel .pvh-preview-items .pvh-preview-fade {
    flex: 0 0 30px;
    background: linear-gradient(90deg, rgba(34, 113, 177, 0.5) 0%, transparent 100%);
}

.pvh-layout-carousel .pvh-preview-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    pointer-events: none;
}

.pvh-layout-carousel .pvh-preview-arrows span {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #2271b1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Grid Preview */
.pvh-layout-grid .pvh-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    height: 100%;
}

.pvh-layout-grid .pvh-preview-grid span {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border-radius: 3px;
    opacity: 0.8;
}

.pvh-layout-grid .pvh-preview-grid span:nth-child(odd) { opacity: 0.9; }
.pvh-layout-grid .pvh-preview-grid span:nth-child(3),
.pvh-layout-grid .pvh-preview-grid span:nth-child(6) { opacity: 1; }

/* Layout Info */
.pvh-layout-info {
    text-align: center;
}

.pvh-layout-info strong {
    display: block;
    font-size: 15px;
    color: #1d2327;
    margin-bottom: 4px;
}

.pvh-layout-info span {
    font-size: 12px;
    color: #646970;
}

.pvh-layout-option.active .pvh-layout-info strong {
    color: #2271b1;
}

/* Grid Settings Panel */
.pvh-grid-settings {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 8px;
    animation: pvh-slideDown 0.3s ease;
}

@keyframes pvh-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pvh-grid-settings-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f1;
}

.pvh-grid-settings-header .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #2271b1;
}

.pvh-grid-settings-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.pvh-grid-columns-group,
.pvh-grid-count-group {
    margin-bottom: 24px;
}

.pvh-grid-columns-group:last-child,
.pvh-grid-count-group:last-child {
    margin-bottom: 0;
}

.pvh-grid-columns-group h4,
.pvh-grid-count-group h4 {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.pvh-field-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pvh-field-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pvh-grid-settings .pvh-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d2327;
    font-size: 13px;
}

.pvh-grid-settings .pvh-field label .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #646970;
}

.pvh-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pvh-select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
    outline: none;
}

.pvh-grid-settings .pvh-input-number {
    width: 100%;
}

/* Disabled field style (when Grid mode is active) */
.pvh-field-disabled {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.pvh-field-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.pvh-field-disabled input,
.pvh-field-disabled select {
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
}

/* Duplicate Video Warning Modal */
.pvh-duplicate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pvh-duplicate-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
}

.pvh-duplicate-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #fff8e5;
    border-bottom: 1px solid #f0e6cc;
}

.pvh-duplicate-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1d2327;
}

.pvh-duplicate-modal-icon {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: #dba617;
}

.pvh-duplicate-modal-body {
    padding: 20px;
}

.pvh-duplicate-modal-body p {
    margin: 0 0 10px;
    color: #50575e;
}

.pvh-duplicate-modal-body p:last-child {
    margin-bottom: 0;
}

.pvh-duplicate-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    background: #f6f7f7;
    border-top: 1px solid #dcdcde;
}

.pvh-thumbnail-loading {
    margin: 0;
    padding: 20px;
    text-align: center;
}

.pvh-spinner-inline {
    float: none;
    margin: 0;
}

.pvh-result-dashicon {
    width: 64px;
    height: 64px;
    font-size: 64px;
}

.pvh-result-dashicon-success {
    color: #00a32a;
}

.pvh-result-dashicon-warning {
    color: #dba617;
}

/* Responsive Layout Selector */
@media screen and (max-width: 768px) {
    .pvh-layout-selector {
        grid-template-columns: 1fr;
    }

    .pvh-field-row-3 {
        grid-template-columns: 1fr;
    }

    .pvh-field-row-2 {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   MODERN ADDONS PAGE - Categorized Design
   ===================================================== */

.pvh-addons-modern {
    max-width: 1400px;
}

/* Notice messages in addons page */
.pvh-addons-modern .notice {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 8px;
    background: #fff;
    border-left-width: 4px;
}

.pvh-addons-modern .notice p {
    margin: 0;
    padding: 0;
    color: #1e293b;
    font-size: 14px;
}

.pvh-addons-modern .notice-success {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.pvh-addons-modern .notice-success p {
    color: #166534;
}

.pvh-addons-modern .notice-error {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.pvh-addons-modern .notice-error p {
    color: #991b1b;
}

.pvh-addons-modern .notice-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.pvh-addons-modern .notice-warning p {
    color: #92400e;
}

.pvh-addons-modern .notice-info {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.pvh-addons-modern .notice-info p {
    color: #1e40af;
}

/* Header */
.pvh-addons-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.pvh-addons-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
    padding: 0;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

.pvh-addons-header h1 svg {
    opacity: 0.9;
}

.pvh-addons-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.5;
}

.pvh-addons-stats {
    display: flex;
    gap: 20px;
}

.pvh-stat-item {
    text-align: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.pvh-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.pvh-stat-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pvh-stat-active {
    background: rgba(16, 185, 129, 0.4);
}

/* Info Banner */
.pvh-addons-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    margin-bottom: 30px;
}

.pvh-info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.pvh-info-content strong {
    display: block;
    font-size: 15px;
    color: #0c4a6e;
    margin-bottom: 6px;
}

.pvh-info-content p {
    margin: 0;
    font-size: 13px;
    color: #0369a1;
    line-height: 1.6;
}

.pvh-info-content a {
    color: #0284c7;
    font-weight: 500;
}

/* Official Addon Installer */
.pvh-addon-upload-panel {
    display: grid;
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding: 24px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.pvh-addon-upload-copy {
    min-width: 0;
    max-width: none;
}

.pvh-addon-upload-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 10px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pvh-addon-upload-copy h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.25;
}

.pvh-addon-upload-copy p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.pvh-addon-upload-form {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) auto;
    grid-template-areas:
        "file . action"
        "replace replace replace";
    align-items: end;
    gap: 14px;
    min-width: 0;
}

.pvh-addon-upload-field {
    grid-area: file;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.pvh-addon-upload-field span {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.pvh-addon-upload-field input[type="file"] {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #334155;
    font-size: 12px;
}

.pvh-addon-replace-option {
    display: flex;
    grid-area: replace;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 620px;
    padding: 11px 13px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    color: #1f2937;
}

.pvh-addon-upload-form .pvh-btn-upload {
    grid-area: action;
    min-height: 40px;
    white-space: nowrap;
    justify-self: end;
}

@media screen and (max-width: 1280px) {
    .pvh-addon-upload-panel {
        grid-template-columns: 1fr;
    }

    .pvh-addon-upload-form {
        grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) auto;
        grid-template-areas:
            "file . action"
            "replace replace replace";
    }

    .pvh-addon-upload-form .pvh-btn-upload {
        justify-self: end;
    }
}

.pvh-addon-replace-option input {
    margin-top: 3px;
}

.pvh-addon-replace-option span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pvh-addon-replace-option strong {
    font-size: 12px;
    line-height: 1.35;
}

.pvh-addon-replace-option em {
    font-size: 11px;
    line-height: 1.45;
    color: #64748b;
    font-style: normal;
}

/* Category Section */
.pvh-addon-category {
    margin-bottom: 35px;
}

.pvh-theme-core {
    --category-color: #10b981;
}

.pvh-theme-user {
    --category-color: #6366f1;
}

.pvh-theme-monetization {
    --category-color: #f59e0b;
}

.pvh-theme-content {
    --category-color: #ec4899;
}

.pvh-theme-ui {
    --category-color: #8b5cf6;
}

.pvh-theme-other {
    --category-color: #64748b;
}

.pvh-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--category-color, #6366f1);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pvh-category-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--category-color, #6366f1) 0%, color-mix(in srgb, var(--category-color, #6366f1) 80%, #000) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.pvh-category-icon svg {
    width: 24px;
    height: 24px;
}

.pvh-category-info {
    flex: 1;
}

.pvh-category-info h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.pvh-category-info p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.pvh-category-count {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
}

/* Addons Grid - Modern */
.pvh-addons-modern .pvh-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Addon Card - Modern */
.pvh-addons-modern .pvh-addon-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pvh-addons-modern .pvh-addon-card:hover {
    border-color: var(--category-color, #6366f1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pvh-addons-modern .pvh-addon-card.active {
    border-color: var(--category-color, #10b981);
    background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--category-color, #10b981) 5%, #fff) 100%);
}

.pvh-addons-modern .pvh-addon-card.core {
    border-color: var(--category-color, #10b981);
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

.pvh-addons-modern .pvh-addon-card.not-installed {
    border-style: dashed;
}

/* Card Header */
.pvh-addon-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #f3f4f6;
}

.pvh-addon-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--category-color, #6366f1) 0%, color-mix(in srgb, var(--category-color, #6366f1) 70%, #000) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.pvh-addon-icon svg {
    width: 22px;
    height: 22px;
}

.pvh-addon-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pvh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pvh-badge-core {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.pvh-badge-active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.pvh-badge-installed {
    background: #e0f2fe;
    color: #0369a1;
}

.pvh-badge-plugin {
    background: #ede9fe;
    color: #6d28d9;
}

.pvh-badge-official {
    background: #ecfdf5;
    color: #047857;
}

.pvh-badge-available {
    background: #f3e8ff;
    color: #7e22ce;
}

.pvh-badge-bundle {
    background: #ede9fe;
    color: #6d28d9;
}

.pvh-badge-success {
    background: #dcfce7;
    color: #166534;
}

.pvh-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.pvh-addon-version {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* Card Body */
.pvh-addon-card-body {
    flex: 1;
    padding: 16px 18px;
}

.pvh-addon-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.pvh-addon-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
}

.pvh-addon-title-row .pvh-addon-title {
    margin: 0;
}

.pvh-addon-license-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    color: #2563eb;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s ease;
}

.pvh-addon-license-trigger:hover,
.pvh-addon-license-trigger:focus {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
    outline: none;
}

.pvh-addon-license-modal[hidden] {
    display: none !important;
}

.pvh-addon-license-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pvh-addon-license-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(5px);
}

.pvh-addon-license-dialog {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 20px;
    overflow-y: auto;
    border: 1px solid rgba(147, 197, 253, 0.75);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(219, 234, 254, 0.92), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
    animation: pvh-addon-license-modal-in 0.18s ease-out;
}

.pvh-addon-license-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 16px;
}

.pvh-addon-license-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pvh-addon-license-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.pvh-addon-license-dialog h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pvh-addon-license-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: all 0.16s ease;
}

.pvh-addon-license-close:hover,
.pvh-addon-license-close:focus {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
}

.pvh-addon-license-dialog dl {
    display: grid;
    gap: 9px;
    margin: 0;
}

.pvh-addon-license-dialog dl > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.85fr) minmax(140px, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px 13px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
}

.pvh-addon-license-dialog dt,
.pvh-addon-license-dialog dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
}

.pvh-addon-license-dialog dt {
    color: #64748b;
    font-weight: 800;
}

.pvh-addon-license-dialog dd {
    color: #0f172a;
    font-weight: 800;
    text-align: right;
    word-break: break-word;
}

.pvh-addon-license-note {
    margin: 14px 0;
    padding: 12px 13px;
    border: 1px solid rgba(191, 219, 254, 0.78);
    border-radius: 14px;
    background: rgba(239, 246, 255, 0.82);
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.pvh-addon-license-actions {
    display: flex;
    justify-content: flex-end;
}

.pvh-addon-license-renew {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 190px;
    max-width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.pvh-addon-license-renew:hover,
.pvh-addon-license-renew:focus {
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.26);
    outline: none;
}

body.pvh-addon-license-modal-open {
    overflow: hidden;
}

@keyframes pvh-addon-license-modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pvh-addon-description {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pvh-addon-description::before,
.pvh-addon-description::after {
    content: none !important;
    display: none !important;
}

.pvh-addon-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 7px 10px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: all 0.18s ease;
}

.pvh-addon-price:hover,
.pvh-addon-price:focus {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1e40af;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.14);
    outline: none;
}

.pvh-addon-price span {
    color: #64748b;
    font-weight: 600;
}

.pvh-addon-price strong {
    color: #0f172a;
    font-size: 13px;
}

.pvh-addons-modern p::before,
.pvh-addons-modern p::after,
.pvh-addons-modern .pvh-addon-warning::before,
.pvh-addons-modern .pvh-addon-warning::after,
.pvh-addons-modern .pvh-addon-requires::before,
.pvh-addons-modern .pvh-addon-requires::after {
    content: none !important;
    display: none !important;
}

.pvh-addon-bundle {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f7ff 0%, #eef2ff 100%);
    border: 1px solid #ddd6fe;
    border-radius: 10px;
}

.pvh-addon-bundle-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7c3aed;
    margin-bottom: 4px;
}

.pvh-addon-bundle-name {
    font-size: 14px;
    font-weight: 600;
    color: #312e81;
    margin-bottom: 6px;
}

.pvh-addon-bundle-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #5b21b6;
}

.pvh-addon-requires {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    color: #4b5563;
}

.pvh-addon-requires svg {
    color: #6b7280;
    flex-shrink: 0;
}

.pvh-addon-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    font-size: 12px;
    color: #92400e;
}

.pvh-addon-warning svg {
    color: #d97706;
    flex-shrink: 0;
}

.pvh-addon-bundle-members,
.pvh-addon-supports,
.pvh-addon-platform {
    margin-top: 10px;
}

.pvh-addon-supports {
    background: #ecfeff;
    color: #155e75;
}

.pvh-addon-supports svg {
    color: #0891b2;
}

.pvh-addon-platform {
    background: #eff6ff;
    color: #1d4ed8;
}

.pvh-addon-platform svg {
    color: #2563eb;
}

/* Card Footer */
.pvh-addon-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.pvh-addon-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.pvh-addon-author a {
    color: #4b5563;
    text-decoration: none;
}

.pvh-addon-author a:hover {
    color: var(--category-color, #6366f1);
}

.pvh-addon-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.pvh-addon-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.pvh-status-always {
    color: #059669;
}

/* Buttons */
.pvh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
}

.pvh-btn-activate {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.pvh-btn-activate:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.pvh-btn-deactivate {
    background: #fff;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.pvh-btn-deactivate:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.pvh-btn-purchase {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

.pvh-btn-purchase:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.pvh-btn-upload {
    min-height: 38px;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: #fff;
}

.pvh-btn-upload:hover {
    background: linear-gradient(135deg, #020617 0%, #1e293b 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.25);
}

.pvh-btn-upload-light {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.pvh-btn-upload-light:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

.pvh-btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* No Addons */
.pvh-addons-modern .pvh-no-addons {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
}

.pvh-addons-modern .pvh-no-addons svg {
    color: #9ca3af;
    margin-bottom: 16px;
}

.pvh-addons-modern .pvh-no-addons p {
    margin: 0 0 20px;
    font-size: 15px;
    color: #6b7280;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .pvh-addons-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pvh-addons-stats {
        justify-content: center;
    }

    .pvh-addon-upload-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .pvh-addon-upload-form {
        grid-template-columns: 1fr;
        grid-template-areas:
            "file"
            "replace"
            "action";
        align-items: stretch;
    }

    .pvh-addon-upload-field {
        min-width: 0;
    }

    .pvh-addon-upload-form .pvh-btn-upload {
        justify-self: start;
    }
}

@media screen and (max-width: 782px) {
    .pvh-addon-license-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .pvh-addon-license-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 20px;
        padding: 18px;
    }

    .pvh-addon-license-dialog dl > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .pvh-addon-license-dialog dd {
        text-align: left;
    }

    .pvh-addon-license-actions {
        justify-content: stretch;
    }

    .pvh-addon-license-renew {
        width: 100%;
        min-width: 0;
    }

}

@media screen and (max-width: 768px) {
    .pvh-addons-modern .pvh-addons-grid {
        grid-template-columns: 1fr;
    }
    
    .pvh-category-header {
        flex-wrap: wrap;
    }
    
    .pvh-category-count {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .pvh-addon-card-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .pvh-addon-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

/* =====================================================
   HERO LAYOUT SELECTOR
   ===================================================== */

.pvh-hero-settings {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Override pvh-field-row for hero layout - make it full width single column */
.pvh-hero-settings .pvh-field-row {
    grid-template-columns: 1fr;
}

.pvh-hero-settings .pvh-field.pvh-field-full {
    width: 100%;
    max-width: none;
}

.pvh-hero-layout-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 12px;
    width: 100%;
}

.pvh-hero-layout-option {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pvh-hero-layout-option:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
}

.pvh-hero-layout-option.active {
    border-color: #2271b1;
    background: linear-gradient(135deg, #f0f6fc 0%, #fff 100%);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
}

.pvh-hero-layout-option input[type="radio"] {
    display: none;
}

.pvh-hero-layout-preview {
    height: 80px;
    margin-bottom: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

/* Netflix Preview */
.pvh-hero-preview-netflix {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4px;
    background: #1f2937;
    padding: 4px;
}

.pvh-hero-preview-netflix .pvh-preview-main {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 3px;
}

.pvh-hero-preview-netflix .pvh-preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pvh-hero-preview-netflix .pvh-preview-sidebar span {
    flex: 1;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 3px;
}

/* Magazine Preview */
.pvh-hero-preview-magazine {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #1f2937;
    padding: 4px;
}

.pvh-hero-preview-magazine .pvh-preview-row-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    flex: 2;
}

.pvh-hero-preview-magazine .pvh-preview-row-top .pvh-preview-main {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 3px;
}

.pvh-hero-preview-magazine .pvh-preview-row-top .pvh-preview-medium {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pvh-hero-preview-magazine .pvh-preview-row-top .pvh-preview-medium span {
    flex: 1;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 3px;
}

.pvh-hero-preview-magazine .pvh-preview-row-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    flex: 1;
}

.pvh-hero-preview-magazine .pvh-preview-row-bottom span {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 3px;
}

/* Single Preview */
.pvh-hero-preview-single {
    background: #1f2937;
    padding: 4px;
}

.pvh-hero-preview-single .pvh-preview-full {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 3px;
}

/* Grid Preview */
.pvh-hero-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: #1f2937;
    padding: 4px;
}

.pvh-hero-preview-grid span {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 3px;
}

/* Carousel Preview */
.pvh-hero-preview-carousel {
    display: flex;
    align-items: stretch;
    gap: 5px;
    background: #1f2937;
    padding: 5px;
}

.pvh-hero-preview-carousel span {
    flex: 0 0 34%;
    background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
    border-radius: 4px;
}

.pvh-hero-preview-carousel span:nth-child(2) {
    background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%);
}

.pvh-hero-preview-carousel span:nth-child(3),
.pvh-hero-preview-carousel span:nth-child(4) {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
}

.pvh-hero-carousel-settings {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.pvh-hero-settings .pvh-hero-carousel-settings .pvh-field-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Hero Layout Info */
.pvh-hero-layout-info {
    text-align: center;
}

.pvh-hero-layout-info strong {
    display: block;
    font-size: 13px;
    color: #1f2937;
    margin-bottom: 2px;
}

.pvh-hero-layout-info span {
    font-size: 11px;
    color: #6b7280;
}

/* Responsive Hero Layout Selector */
@media screen and (max-width: 1200px) {
    .pvh-hero-layout-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .pvh-hero-layout-selector {
        grid-template-columns: 1fr;
    }

    .pvh-hero-settings .pvh-hero-carousel-settings .pvh-field-row-3 {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   HERO VIDEO SELECTOR - Simplified
   ===================================================== */

.pvh-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 8px;
}

.pvh-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pvh-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.pvh-radio-option span {
    font-size: 14px;
    color: #1d2327;
}

.pvh-hero-custom-videos {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.pvh-field-description {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 16px 0;
}

.pvh-video-search-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.pvh-video-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pvh-video-search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
    outline: none;
}

.pvh-video-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
}

.pvh-video-search-results.active {
    display: block;
}

.pvh-video-search-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #1d2327;
}

.pvh-video-search-item:last-child {
    border-bottom: none;
}

.pvh-video-search-item:hover {
    background: #f0f6fc;
}

.pvh-video-search-no-results {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

/* Selected Videos List */
.pvh-selected-videos-list {
    min-height: 50px;
    background: #fff;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 8px;
}

.pvh-selected-videos-list:empty::before {
    content: 'No videos selected yet';
    display: block;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 16px;
}

.pvh-selected-video-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f0f6fc;
    border: 1px solid #2271b1;
    border-radius: 6px;
    margin-bottom: 6px;
}

.pvh-selected-video-item:last-child {
    margin-bottom: 0;
}

.pvh-selected-video-item.ui-sortable-helper {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pvh-drag-handle {
    cursor: grab;
    color: #2271b1;
    font-size: 16px;
}

.pvh-drag-handle:active {
    cursor: grabbing;
}

.pvh-selected-video-item .pvh-video-thumb {
    display: none;
}

.pvh-selected-video-item .pvh-video-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
}

.pvh-remove-video {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.15s;
}

.pvh-remove-video:hover {
    color: #ef4444;
}

.pvh-sortable-placeholder {
    height: 44px;
    background: #e5e7eb;
    border: 2px dashed #9ca3af;
    border-radius: 6px;
    margin-bottom: 6px;
}
