/**
 * 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-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;
}

/* Addons Page */
.pvh-addons-wrap {
    margin-top: 20px;
}

.pvh-addons-description {
    margin-bottom: 20px;
    color: #666;
}

.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;
}

/* 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: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pvh-video-preview {
    flex: 1;
}

.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-field {
    margin-bottom: 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;
    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;
}

.pvh-prefix {
    display: flex;
    align-items: center;
    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;
}

/* 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: #ffffff;
}

/* 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);
    }
}

@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;
    }
}

/* =====================================================
   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-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;
    margin-top: 15px;
}

.pvh-progress-log:empty {
    display: none;
}

.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;
}

/* 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;
}

/* 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;
    }
}

/* Pro Upgrade Card - Settings Sidebar */
.pvh-sidebar-pro-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
}

.pvh-sidebar-pro-card .pvh-pro-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pvh-sidebar-pro-card .pvh-pro-header h3 {
    color: #fff;
}

.pvh-sidebar-pro-card .pvh-pro-header .dashicons {
    color: #ffd700;
}

.pvh-pro-tagline {
    margin: 0 0 15px 0;
    font-size: 14px;
    opacity: 0.9;
}

.pvh-pro-features {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.pvh-pro-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

.pvh-pro-features .dashicons {
    color: #90EE90;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.pvh-pro-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #fff !important;
    color: #764ba2 !important;
    border: none !important;
    font-weight: 600;
    padding: 10px 20px !important;
    height: auto !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pvh-pro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #667eea !important;
}

.pvh-pro-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
	padding-top: 7px;
}

/* Pro Upgrade Card - Import Page */
.pvh-pro-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    margin-top: 20px;
}

.pvh-pro-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pvh-pro-box-header h3 {
    margin: 0;
    color: #fff;
    border: none;
    padding: 0;
}

.pvh-pro-box-header .dashicons {
    color: #ffd700;
}

.pvh-pro-box .pvh-pro-tagline {
    margin: 0 0 15px 0;
}

.pvh-pro-box .pvh-pro-features {
    margin: 0 0 20px 0;
}

.pvh-pro-box .pvh-pro-button {
    margin-top: 10px;
}

/* Upgrade Page Styles */
.pvh-upgrade-wrap {
    max-width: 1200px;
}

.pvh-upgrade-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin: 20px 0;
}

.pvh-upgrade-hero h2 {
    color: #fff;
    margin-top: 0;
}

.pvh-upgrade-hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 0;
}

.pvh-upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pvh-upgrade-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pvh-upgrade-card h3 {
    margin-top: 0;
}

.pvh-upgrade-card p {
    margin-bottom: 0;
    color: #666;
}

.pvh-color-orange { color: #ff6b35; }
.pvh-color-red { color: #e74c3c; }
.pvh-color-blue { color: #3498db; }
.pvh-color-pink { color: #e91e63; }
.pvh-color-purple { color: #9b59b6; }
.pvh-color-teal { color: #1abc9c; }

.pvh-upgrade-cta {
    text-align: center;
    margin: 40px 0;
}

.pvh-upgrade-btn {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    font-size: 18px !important;
    padding: 15px 40px !important;
}

.pvh-upgrade-btn:hover {
    background: #e55a2b !important;
    border-color: #e55a2b !important;
}

.pvh-upgrade-price {
    margin-top: 15px;
    color: #666;
}

/* Admin Menu Pro Link */
#adminmenu .wp-submenu a[href*="pvhl-upgrade"] {
    color: #ff6b35 !important;
}

/* Settings Page Additional Styles */
.pvh-autoplay-note {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}

.pvh-field-row-spaced {
    margin-top: 20px;
}

/* Pro Features Detailed List */
.pvh-pro-features-detailed {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.pvh-pro-features-detailed li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pvh-pro-features-detailed li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pvh-feature-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.pvh-feature-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pvh-feature-content strong {
    font-size: 14px;
    color: #fff;
}

.pvh-feature-content span {
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.4;
}

/* 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-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;
}

/* =====================================================
   UPGRADE PAGE - MODERN YOUTUBE-STYLE DESIGN
   ===================================================== */

.pvh-upgrade-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px 0;
}

/* Hero Section */
.pvh-upgrade-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pvh-upgrade-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.pvh-hero-content {
    position: relative;
    z-index: 1;
}

.pvh-hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.pvh-upgrade-hero h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pvh-hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.pvh-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
}

.pvh-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pvh-stat-number {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.pvh-hero-stats .pvh-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 8px;
}

/* Section Styles */
.pvh-upgrade-section {
    margin-bottom: 50px;
}

.pvh-section-alt {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    margin-left: -20px;
    margin-right: -20px;
    padding: 50px 20px;
}

.pvh-upgrade-section .pvh-section-header {
    text-align: center;
    margin-bottom: 40px;
    flex-direction: column;
    align-items: center;
}

.pvh-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    font-size: 28px;
    margin-bottom: 16px;
}

.pvh-upgrade-section .pvh-section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 12px;
}

.pvh-upgrade-section .pvh-section-header p {
    font-size: 16px;
    color: #646970;
    max-width: 600px;
    margin: 0 auto;
}

/* Upgrade Grid */
.pvh-upgrade-grid {
    display: grid;
    gap: 24px;
}

.pvh-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pvh-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Upgrade Cards */
.pvh-upgrade-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
}

.pvh-upgrade-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.pvh-card-featured {
    border: 2px solid #667eea;
    background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
}

.pvh-card-featured::before {
    content: '⭐ POPULAR';
    position: absolute;
    top: -12px;
    left: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pvh-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 28px;
    margin-bottom: 20px;
}

/* Icon Background Colors */
.pvh-bg-orange { background: linear-gradient(135deg, #ff9a56, #ff6b35); }
.pvh-bg-red { background: linear-gradient(135deg, #ff6b6b, #ee5a5a); }
.pvh-bg-green { background: linear-gradient(135deg, #51cf66, #40c057); }
.pvh-bg-yellow { background: linear-gradient(135deg, #ffd43b, #fab005); }
.pvh-bg-blue { background: linear-gradient(135deg, #4dabf7, #339af0); }
.pvh-bg-pink { background: linear-gradient(135deg, #f783ac, #e64980); }
.pvh-bg-cyan { background: linear-gradient(135deg, #3bc9db, #22b8cf); }
.pvh-bg-purple { background: linear-gradient(135deg, #9775fa, #7950f2); }
.pvh-bg-teal { background: linear-gradient(135deg, #38d9a9, #20c997); }
.pvh-bg-indigo { background: linear-gradient(135deg, #748ffc, #5c7cfa); }
.pvh-bg-violet { background: linear-gradient(135deg, #b197fc, #9775fa); }
.pvh-bg-rose { background: linear-gradient(135deg, #ffa8a8, #ff8787); }
.pvh-bg-slate { background: linear-gradient(135deg, #868e96, #495057); }
.pvh-bg-emerald { background: linear-gradient(135deg, #69db7c, #51cf66); }
.pvh-bg-amber { background: linear-gradient(135deg, #ffc078, #ff922b); }

.pvh-upgrade-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 12px;
}

.pvh-upgrade-card > p {
    font-size: 14px;
    color: #646970;
    line-height: 1.6;
    margin: 0 0 16px;
}

.pvh-card-features {
    list-style: none;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid #f0f0f1;
}

.pvh-card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1d2327;
    padding: 6px 0;
}

.pvh-card-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

/* Comparison Table */
.pvh-comparison-table-wrap {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}

.pvh-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pvh-comparison-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.pvh-comparison-table th {
    padding: 20px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}

.pvh-comparison-table th:first-child {
    text-align: left;
}

.pvh-comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 14px;
}

.pvh-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.pvh-comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.pvh-lite-col,
.pvh-pro-col {
    text-align: center;
    width: 120px;
}

.pvh-check {
    color: #2e7d32;
    font-size: 18px;
    font-weight: 700;
}

.pvh-cross {
    color: #c62828;
    font-size: 18px;
}

/* CTA Section */
.pvh-upgrade-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pvh-upgrade-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.pvh-cta-content {
    position: relative;
    z-index: 1;
}

.pvh-upgrade-cta h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px;
}

.pvh-upgrade-cta > .pvh-cta-content > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin: 0 0 30px;
}

.pvh-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.pvh-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.5);
    color: #fff;
}

.pvh-cta-icon {
    font-size: 24px;
}

.pvh-cta-price {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin: 20px 0 0;
}

.pvh-cta-guarantee {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pvh-cta-guarantee span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .pvh-upgrade-hero h1 {
        font-size: 36px;
    }
    
    .pvh-hero-stats {
        gap: 40px;
    }
    
    .pvh-stat-number {
        font-size: 32px;
    }
    
    .pvh-upgrade-section .pvh-section-header h2 {
        font-size: 26px;
    }
    
    .pvh-grid-3,
    .pvh-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .pvh-upgrade-hero {
        padding: 40px 24px;
    }
    
    .pvh-upgrade-hero h1 {
        font-size: 28px;
    }
    
    .pvh-hero-subtitle {
        font-size: 16px;
    }
    
    .pvh-hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .pvh-grid-3,
    .pvh-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .pvh-upgrade-cta {
        padding: 40px 24px;
    }
    
    .pvh-upgrade-cta h2 {
        font-size: 26px;
    }
    
    .pvh-cta-guarantee {
        flex-direction: column;
        gap: 12px;
    }
    
    .pvh-comparison-table th,
    .pvh-comparison-table td {
        padding: 12px;
        font-size: 13px;
    }
}
