.prorank-support-page {
    max-width: 1200px;
    margin: 20px 0;

    h1 {
        margin-bottom: 20px;
        color: #1e1e1e;
    }

    .prorank-support-tabs {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        overflow: hidden;

        .components-tab-panel__tabs {
            background: #f5f5f5;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            flex-wrap: wrap;

            .components-tab-panel__tabs-item {
                padding: 12px 20px;
                font-weight: 500;
                color: #555;
                border: none;
                background: transparent;
                cursor: pointer;
                transition: all 0.2s ease;
                white-space: nowrap;

                &:hover:not(.is-active) {
                    background: #ebebeb;
                    color: #333;
                }

                &.is-active {
                    background: #fff;
                    color: #3b82f6;
                    border-bottom: 2px solid #3b82f6;
                    margin-bottom: -1px;
                }
            }
        }

        .components-tab-panel__tab-content {
            padding: 30px;
        }
    }
}

// License Tab Styles
.prorank-license-tab {
    .license-status-box {
        background: #f8f9fa;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        padding: 20px;
        margin-bottom: 20px;

        .status-row {
            display: flex;
            align-items: center;
            margin-bottom: 10px;

            &:last-child {
                margin-bottom: 0;
            }

            .label {
                font-weight: 600;
                margin-right: 10px;
                min-width: 80px;
            }

            .value {
                &.status {
                    font-weight: 600;
                    text-transform: uppercase;
                }

                &.tier {
                    font-weight: 600;
                }
            }
        }

        .license-actions {
            margin-top: 20px;
            display: flex;
            gap: 10px;

            .components-button {
                &.is-destructive {
                    &:hover:not(:disabled) {
                        background: #d63638;
                        border-color: #d63638;
                        color: #fff;
                    }
                }
            }
        }
    }

    .license-activation-box {
        p {
            margin-bottom: 20px;
        }

        .components-text-control {
            margin-bottom: 20px;
        }
    }

    .account-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;

        a {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #3b82f6;
            text-decoration: none;
            font-weight: 500;

            &:hover {
                color: #5548c8;
                text-decoration: underline;
            }

            .link-arrow {
                font-size: 14px;
            }
        }
    }

    .tier-comparison {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin: 20px 0;

        .tier-card {
            background: #f8f9fa;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            padding: 20px;

            h4 {
                margin-top: 0;
                margin-bottom: 15px;
                font-size: 18px;
            }

            ul {
                margin: 0;
                padding-left: 20px;

                li {
                    margin-bottom: 8px;
                }
            }
        }
    }
}

// Documentation Tab Styles
.prorank-documentation-tab {
    .search-box {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;

        .components-text-control,
        input {
            flex: 1;
        }
    }

    .search-hint {
        margin: 0;
        font-size: 13px;
        color: #666;
    }

    // Hero Section
    .prorank-doc-hero {
        text-align: center;
        padding: 40px 30px;
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        border-radius: 8px;
        margin: -20px;
        margin-bottom: 0;

        .prorank-doc-hero-content {
            max-width: 600px;
            margin: 0 auto;

            h2 {
                color: #fff;
                font-size: 28px;
                font-weight: 700;
                margin: 0 0 15px 0;
            }

            p {
                color: rgba(255, 255, 255, 0.9);
                font-size: 16px;
                margin: 0 0 25px 0;
                line-height: 1.6;
            }

            .components-button.is-primary {
                background: #fff;
                color: #3b82f6;
                border: none;
                font-weight: 600;
                padding: 12px 24px;
                height: auto;

                &:hover {
                    background: rgba(255, 255, 255, 0.9);
                    color: #1d4ed8;
                }

                svg {
                    fill: currentColor;
                }
            }
        }
    }

    // Doc Grid
    .prorank-doc-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-bottom: 20px;

        @media (max-width: 1024px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (max-width: 600px) {
            grid-template-columns: 1fr;
        }
    }

    // Category Cards
    .prorank-doc-category {
        .prorank-card-body {
            text-align: center;
            padding: 30px 20px;
        }

        .doc-category-icon {
            width: 64px;
            height: 64px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;

            .doc-emoji {
                font-size: 32px;
                line-height: 1;
            }

            svg {
                width: 32px;
                height: 32px;
            }
        }

        h3 {
            margin: 0 0 10px 0;
            font-size: 18px;
            font-weight: 600;
            color: #1e1e1e;
        }

        p {
            margin: 0 0 20px 0;
            color: #666;
            font-size: 14px;
            line-height: 1.5;
        }

        .components-button {
            width: 100%;
            justify-content: center;
        }
    }

    // Support CTA
    .prorank-support-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        padding: 25px;

        @media (max-width: 600px) {
            flex-direction: column;
            text-align: center;
        }

        .support-content {
            h3 {
                margin: 0 0 8px 0;
                font-size: 18px;
                font-weight: 600;
                color: #1e1e1e;
            }

            p {
                margin: 0;
                color: #666;
                font-size: 14px;
            }
        }

        .support-actions {
            display: flex;
            gap: 15px;
            flex-shrink: 0;

            .components-button.is-link {
                color: #3b82f6;

                &:hover {
                    color: #1d4ed8;
                }
            }
        }
    }

    .quick-links {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;

        .components-button.is-link {
            padding: 0;
            height: auto;
            color: #3b82f6;

            &:hover {
                color: #1d4ed8;
            }
        }
    }
}

// Feedback Tab Styles
.prorank-feedback-tab {
    .components-radio-control {
        margin-bottom: 20px;
    }

    .feature-requests {
        .request-item {
            background: #f8f9fa;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            padding: 15px;
            margin-bottom: 15px;

            h4 {
                margin: 0 0 5px 0;
                font-size: 16px;
            }

            p {
                margin: 0 0 10px 0;
                color: #666;
            }

            .votes {
                color: #3b82f6;
                font-weight: 500;
                font-size: 14px;
            }
        }
    }

    .contact-methods {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;

        .method {
            text-align: center;
            padding: 20px;
            background: #f8f9fa;
            border: 1px solid #e0e0e0;
            border-radius: 4px;

            h4 {
                margin: 0 0 10px 0;
                font-size: 16px;
            }

            p {
                margin: 0 0 15px 0;
                color: #666;
                font-size: 14px;
            }
        }
    }
}

// Changelog Tab Styles
.prorank-changelog-tab {
    .prorank-changelog-loading {
        text-align: center;
        padding: 40px;

        .components-spinner {
            margin: 0 auto 20px;
        }
    }

    .current-version {
        display: flex;
        align-items: center;
        gap: 20px;

        .version-number {
            font-size: 24px;
            font-weight: 600;
            color: #3b82f6;
        }

        .build-info {
            color: #666;
            font-size: 14px;
        }
    }

    .release-card {
        margin-bottom: 20px;

        .release-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;

            h3 {
                margin: 0;
                display: flex;
                align-items: center;
                gap: 10px;

                .version-badge {
                    font-size: 12px;
                    text-transform: uppercase;
                    color: #fff;
                    padding: 2px 8px;
                    border-radius: 3px;
                }
            }

            .release-date {
                color: #666;
            }
        }

        .release-highlights {
            background: #f8f9fa;
            border-left: 4px solid #3b82f6;
            padding: 15px;
            margin-bottom: 20px;

            h4 {
                margin: 0 0 10px 0;
                font-size: 16px;
            }

            ul {
                margin: 0;
                padding-left: 20px;

                li {
                    margin-bottom: 5px;
                }
            }
        }

        .release-changes {
            .change-section {
                margin-bottom: 20px;

                &:last-child {
                    margin-bottom: 0;
                }

                h4 {
                    margin: 0 0 10px 0;
                    font-size: 16px;
                }

                ul {
                    margin: 0;
                    padding: 0;
                    list-style: none;

                    li {
                        margin-bottom: 8px;
                        padding-left: 25px;
                        position: relative;

                        .change-icon {
                            position: absolute;
                            left: 0;
                            font-weight: 600;
                            width: 20px;

                            &.added {
                                color: #4ab866;
                            }

                            &.improved {
                                color: #0099cc;
                            }

                            &.fixed {
                                color: #f0ad4e;
                            }

                            &.removed {
                                color: #d63638;
                            }
                        }
                    }
                }
            }
        }
    }

    .update-options {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
}

// Advanced Settings Tab Styles
.prorank-advanced-settings-tab {
    max-width: 1200px;

    // Section header
    .prorank-section-header {
        margin-bottom: 24px;

        .prorank-section-title {
            font-size: 24px;
            font-weight: 600;
            color: #1e1e1e;
            margin: 0 0 8px 0;
        }

        .prorank-section-description {
            color: #666;
            font-size: 14px;
            margin: 0;
            line-height: 1.5;
        }
    }

    // Warning alert
    .advanced-warning {
        margin-bottom: 24px;
        background: #fff3cd;
        border: 1px solid #ffc107;
        border-radius: 8px;
        padding: 12px 16px;
        color: #856404;
        font-size: 14px;
    }

    // Grid layout for settings cards
    .prorank-support-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-bottom: 24px;

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

    // Settings card styling
    .prorank-card--modern {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        overflow: hidden;
        transition: box-shadow 0.2s ease, transform 0.2s ease;

        &:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .prorank-card-header {
            padding: 16px 20px;
            background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
            border-bottom: 1px solid #e0e0e0;

            .prorank-card-title {
                font-size: 16px;
                font-weight: 600;
                color: #1e1e1e;
                margin: 0;
                display: flex;
                align-items: center;
                gap: 8px;

                &::before {
                    content: '';
                    width: 4px;
                    height: 16px;
                    background: #3b82f6;
                    border-radius: 2px;
                }
            }
        }

        .prorank-card-body {
            padding: 20px;

            // Toggle styling
            .components-toggle-control,
            > div[class*="Toggle"] {
                padding: 12px 0;
                border-bottom: 1px solid #f0f0f0;

                &:last-child {
                    border-bottom: none;
                    padding-bottom: 0;
                }

                &:first-child {
                    padding-top: 0;
                }

                label {
                    font-weight: 500;
                    color: #333;
                }
            }

            // Input fields
            .components-text-control,
            .components-base-control {
                margin-bottom: 16px;

                &:last-child {
                    margin-bottom: 0;
                }

                label {
                    font-weight: 500;
                    color: #333;
                    margin-bottom: 6px;
                }

                input[type="number"],
                input[type="text"] {
                    border: 1px solid #ddd;
                    border-radius: 6px;
                    padding: 10px 12px;
                    font-size: 14px;
                    transition: border-color 0.2s ease, box-shadow 0.2s ease;

                    &:focus {
                        border-color: #3b82f6;
                        box-shadow: 0 0 0 2px rgba(115, 102, 240, 0.15);
                        outline: none;
                    }
                }
            }

            // Select fields
            .components-select-control {
                select {
                    border: 1px solid #ddd;
                    border-radius: 6px;
                    padding: 10px 12px;
                    font-size: 14px;
                    background: #fff;

                    &:focus {
                        border-color: #3b82f6;
                        box-shadow: 0 0 0 2px rgba(115, 102, 240, 0.15);
                        outline: none;
                    }
                }
            }

            // Help text
            .components-base-control__help {
                color: #888;
                font-size: 12px;
                margin-top: 4px;
            }
        }

        // Full width cards
        &.prorank-card--full-width {
            grid-column: 1 / -1;
        }
    }

    // Debug info section
    .prorank-debug-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;

        @media (max-width: 600px) {
            grid-template-columns: 1fr;
        }

        p {
            margin: 0;
            padding: 10px 14px;
            background: #f8f9fa;
            border-radius: 6px;
            font-size: 13px;
            color: #444;

            strong {
                color: #1e1e1e;
                font-weight: 600;
            }
        }
    }

    // Import/Export section
    .import-export-buttons {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 16px;

        .import-button-wrapper {
            display: inline-block;

            input[type="file"] {
                display: none;
            }
        }

        .components-button {
            min-width: 140px;
            justify-content: center;
        }
    }

    // Competitor import section
    .competitor-import-section {
        display: flex;
        gap: 16px;
        align-items: flex-end;
        flex-wrap: wrap;
        margin: 16px 0;

        .components-select-control {
            flex: 1;
            min-width: 200px;
        }

        .competitor-import-button {
            min-width: 120px;
        }
    }

    .import-note {
        color: #666;
        font-size: 13px;
        margin: 12px 0 0 0;
        font-style: italic;
    }

    // Settings actions footer
    .prorank-settings-actions {
        display: flex;
        gap: 12px;
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid #e0e0e0;

        .components-button {
            &.is-primary {
                background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
                border: none;
                padding: 12px 28px;
                font-weight: 600;
                font-size: 14px;
                border-radius: 8px;
                box-shadow: 0 2px 8px rgba(115, 102, 240, 0.3);
                transition: all 0.2s ease;

                &:hover:not(:disabled) {
                    background: linear-gradient(135deg, #1d4ed8 0%, #4A3FC7 100%);
                    box-shadow: 0 4px 12px rgba(115, 102, 240, 0.4);
                    transform: translateY(-1px);
                }

                &:disabled {
                    opacity: 0.6;
                    cursor: not-allowed;
                }
            }

            &.is-tertiary {
                color: #666;

                &:hover {
                    color: #333;
                }
            }
        }
    }

    // Loading state
    &.prorank-loading {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 300px;
        color: #666;
    }
}

// Common Styles
.prorank-support-page {
    .components-card {
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

        h3 {
            margin-top: 0;
            margin-bottom: 20px;
            color: #1e1e1e;
            font-size: 18px;
            font-weight: 600;
        }

        .components-button {
            &.is-primary {
                background: #3b82f6;
                border-color: #3b82f6;

                &:hover:not(:disabled) {
                    background: #1d4ed8;
                    border-color: #1d4ed8;
                }
            }
        }
    }

    .components-base-control {
        margin-bottom: 20px;

        &:last-child {
            margin-bottom: 0;
        }
    }

    .components-external-link {
        &::after {
            content: '↗';
            margin-left: 2px;
            font-size: 12px;
        }
    }
}