#wpcontent {
    padding-left: 0 !important;
}
#wpbody-content > .update-nag {
    margin: 20px !important;
}
#wpbody-content > .pubperf-wrap {
    margin: 0 !important;
}

/* Header Banner */
.pubperf-header {
    background: white;
    border-bottom: 1px solid #e8edf2;
}

.pubperf-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pubperf-header__brand {
    display: flex;
    align-items: center;
}

.pubperf-header__logo {
    height: 30px;
    width: auto;
}

/* Navigation Tabs */
.pubperf-nav {
    background: white;
    border-bottom: 1px solid #e8edf2;
    position: sticky;
    top: 0;
    z-index: 100;
}

.pubperf-nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.pubperf-nav__tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.pubperf-nav__tab {
    margin: 0;
}

.pubperf-nav__link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #64748b !important;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.pubperf-nav__link:hover {
    color: #1a1a1a !important;
}

.pubperf-nav__link--active {
    color: #4a9de9 !important;
    border-bottom-color: #4a9de9;
}

.pubperf-nav__link:focus {
    outline: none;
    box-shadow: none;
}

/* Main Content */
.pubperf-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

/* Content Section */
.pubperf-content {
    background: white;
    border-radius: 10px;
    border: 1px solid #e8edf2;
    overflow: hidden;
}

.pubperf-section {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.pubperf-section:last-child {
    border-bottom: none;
}

.pubperf-section__header {
    margin-bottom: 20px;
}

.pubperf-section__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 1.3;
}

.pubperf-section__subtitle {
    color: #64748b;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Form Elements */
.pubperf-form-group {
    margin-bottom: 20px;
}

.pubperf-form-group:last-child {
    margin-bottom: 0;
}

.pubperf-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.pubperf-input {
    width: 100%;
    padding: 10px 14px !important;
    border: 1px solid #e8edf2 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    color: #1a1a1a !important;
    line-height: normal !important;
    background: white !important;
}

.pubperf-input:focus {
    outline: none !important;
    border-color: #4a9de9 !important;
    box-shadow: 0 0 0 3px rgba(74, 157, 233, 0.1) !important;
}

.pubperf-description {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.pubperf-description a {
    color: #4a9de9;
    text-decoration: none;
}

.pubperf-description a:hover {
    color: #3b7dd8;
    text-decoration: underline;
}

.pubperf-dashboard-link {
    display: inline-block;
    color: #4a9de9;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.pubperf-dashboard-link:hover {
    color: #3b7dd8;
    text-decoration: underline;
}

/* Sidebar */
.pubperf-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Upgrade Card */
.pubperf-upgrade {
    background: white;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #e8edf2;
}

.pubperf-upgrade__title {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 16px;
}

.pubperf-upgrade__features {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}

.pubperf-upgrade__feature {
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #444;
}

.pubperf-upgrade__feature::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    min-width: 14px;
    margin-top: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ada81' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.pubperf-upgrade__cta {
    background: linear-gradient(135deg, #4a9de9, #3b7dd8);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(74, 157, 233, 0.25);
    transition: all 0.2s ease;
    margin-top: 16px;
    display: block;
    text-decoration: none;
}

.pubperf-upgrade__cta:hover {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #3b8fd9, #2d6ec5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 157, 233, 0.35);
}

.pubperf-upgrade__cta:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(74, 157, 233, 0.2);
}

/* Promo Card */
.pubperf-promo {
    background: white;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #e8edf2;
}

.pubperf-promo__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pubperf-promo__description {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.pubperf-promo__cta {
    background: linear-gradient(135deg, #4a9de9, #3b7dd8);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(74, 157, 233, 0.25);
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
}

.pubperf-promo__cta:hover {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #3b8fd9, #2d6ec5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 157, 233, 0.35);
}

.pubperf-promo__cta:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(74, 157, 233, 0.2);
}

/* Tab Content */
.pubperf-tab-content {
    display: none;
}

.pubperf-tab-content--active {
    display: block;
}

/* Notice Styles */
.pubperf-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e8edf2;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
}

.pubperf-notice--warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.pubperf-notice__icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pubperf-notice__content {
    flex: 1;
}

.pubperf-notice__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.pubperf-notice__message {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Support Content Styles */
.pubperf-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.pubperf-support-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #e8edf2;
    transition: all 0.2s ease;
}

.pubperf-support-card:hover {
    box-shadow: 0 4px 16px rgba(74, 157, 233, 0.12);
    border-color: #4a9de9;
    transform: translateY(-2px);
}

.pubperf-support-card__icon {
    width: 40px;
    height: 40px;
    background: #f0f7ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a9de9;
    font-size: 20px;
    margin-bottom: 16px;
}

.pubperf-support-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    margin-top: 0;
}

.pubperf-support-card__description {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 13px;
}

.pubperf-support-card__link {
    color: #4a9de9;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pubperf-support-card__link:hover {
    color: #3b7dd8;
    gap: 8px;
}

.pubperf-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pubperf-faq__item {
    background: white;
    border-radius: 10px;
    border: 1px solid #e8edf2;
    overflow: hidden;
    transition: all 0.2s ease;
}

.pubperf-faq__item:hover {
    border-color: #4a9de9;
    box-shadow: 0 2px 8px rgba(74, 157, 233, 0.1);
}

.pubperf-faq__question {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.pubperf-faq__question:hover {
    background: #f8fafc;
}

.pubperf-faq__question::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a9de9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: transform 0.2s ease;
}

.pubperf-faq__question--active::after {
    transform: rotate(180deg);
}

.pubperf-faq__answer {
    padding: 0 20px 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    display: none;
}

.pubperf-faq__answer a {
    color: #4a9de9;
    text-decoration: none;
}

.pubperf-faq__answer a:hover {
    color: #3b7dd8;
    text-decoration: underline;
}

.pubperf-faq__answer--active {
    display: block;
}

/* Save Button Styles */
.pubperf-save-button {
    background: linear-gradient(135deg, #4a9de9, #3b7dd8);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(74, 157, 233, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    min-width: 140px;
    justify-content: center;
}

.pubperf-save-button:hover {
    background: linear-gradient(135deg, #3b8fd9, #2d6ec5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 157, 233, 0.35);
}

.pubperf-save-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(74, 157, 233, 0.2);
}

.pubperf-save-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pubperf-save-button--loading {
    pointer-events: none;
}

.pubperf-save-button__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.pubperf-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #10b981;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    z-index: 1000000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.pubperf-toast--show {
    transform: translateX(0);
    opacity: 1;
}

.pubperf-toast--error {
    border-left-color: #ef4444;
}

.pubperf-toast--success {
    border-left-color: #10b981;
}

.pubperf-toast__icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.pubperf-toast--success .pubperf-toast__icon {
    background: #10b981;
}

.pubperf-toast--error .pubperf-toast__icon {
    background: #ef4444;
}

.pubperf-toast__content {
    flex: 1;
}

.pubperf-toast__title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.pubperf-toast__message {
    color: #64748b;
    font-size: 14px;
}

.pubperf-toast__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    text-align: center;
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pubperf-toast__close:hover {
    background: #f1f5f9;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .pubperf-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 16px;
    }

    .pubperf-header__container {
        padding: 16px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .pubperf-nav__container {
        flex-direction: column;
        gap: 16px;
    }

    .pubperf-nav__tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pubperf-support-grid {
        grid-template-columns: 1fr;
    }
}
