.tpsm-guide-me-button {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    border: 1px solid #ddd;
    border-right: 0;
    padding: 15px 7px;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    color: #303030;
    font-weight: 500;
    background-color: #f1eef9;
}

.tpsm-guide-me-button a {
    text-decoration: none;
    color: #814bfe;
}

.tpsm-guide-me-button a:focus {
    box-shadow: none;
    outline: none;
}

.tpsa-topbar-info-area a {
    display: inline-block;
    padding: 10px 25px;
    cursor: pointer;
    border-radius: 4px;
    color: #814bfe;
    border: 1px solid #814bfe;
    font-weight: 500;
    font-size: 14px;
}

.tpsa-titles h1 {
    font-size: 24px;
    font-weight: 500;
    padding: 0;
}

.tpsa-icons img {
    width: 48px;
    height: 48px;
    margin-right: 10px;
}

.tpsa-logo-title-area {
    display: flex;
    align-items: center;
}

.tpsa-plugin-topbar-wrapper {
    background-color: #fff;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5;
}

.tp-secure-admin_container {
    background-color: #fff;
    display: flex;
}

.tpsa-siderbar-wrapper {
    padding: 20px 10px;
    width: 200px;
    background-color: #f6f9f9;
}

.tpsa-siderbar-wrapper ul li a,
.tpsa-siderbar-wrapper ul li a:active,
.tpsa-siderbar-wrapper ul li a:focus,
.tpsa-siderbar-wrapper ul li a:focus-visible,
.tpsa-siderbar-wrapper ul li a:visited {
    text-decoration: none;
    display: flex;
    font-weight: 500;
    border-radius: 3px;
    transition: 0.3s all ease;
    color: #3d444b;
    outline: 0;
    padding: 10px 10px;
    font-size: 15px;
    box-shadow: none;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background-color: #F1F5F9;
    line-height: 1.6;
    cursor: pointer;
}

.tpsa-siderbar-wrapper ul li a.active {
    color: #814bfe;
    border: none;
}

.tpsa-siderbar-wrapper ul li a span {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);

}

.tpsa-siderbar-wrapper ul li a.active span {
    color: white;
    background-image: linear-gradient(to bottom right,
            #3b82f6,
            #06b6d4);
}

.tpsa-main-wrapper {
    padding: 50px;
    padding-bottom: 100px;
    padding-top: 30px;
    width: calc(100% - 320px);
    position: relative;
}

.tpsa-setting-wrapper h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #1d2327;
    margin-bottom: 35px;
    border-bottom: 1px solid #e2d8fb;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tpsa-setting-wrapper h2 span a {
    text-decoration: none;
    color: #814bfe;
}

.tpsa-setting-wrapper h2 span a:hover,
.tpsa-setting-wrapper h2 span a:active,
.tpsa-setting-wrapper h2 span a:focus {
    text-decoration: underline;
    outline: 0;
    box-shadow: none;
}

.tpsa-setting-row {
    margin-bottom: 35px;
}

.tpsa-setting-wrapper .tpsa-save-button {
    margin-top: 50px;
}

.tpsa-setting-wrapper .tpsa-save-button button {
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 4px;
    background-color: #814bfe;
    color: #fff;
    border: none;
    font-weight: 500;
}

.tpsa-rating-message {
    font-size: 12px;
    font-weight: 300;
    text-align: center;
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: #814bfe;
}

.tpsa-rating-message .tpsa-stars {
    color: #ffb900;
    font-size: 14px;
    margin: 0 5px;
    font-weight: 500;
}

/*Tooltip style*/
.tp-feature {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.tp-help-icon {
    border: 1px solid #814bfe;
    background-color: transparent;
    color: #814bfe;
    font-size: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tooltip styles */
.tp-tooltip {
    visibility: hidden;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ece6f9;
    color: #1d2327;
    padding: 5px 10px;
    border-radius: 5px;
    width: 150px;
    font-size: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show tooltip when hovering over the help icon */
.tp-feature:hover .tp-tooltip {
    visibility: visible;
    opacity: 1;
}

.tp-site-url-input {
    display: flex;
    align-items: center;
    gap: 2px;
}

.tp-field .tp-field-input .tp-site-url-input input[type="text"] {
    width: 50%;
}


/***Popup style for pro plugin ****/

/* Overlay */
.tpsa-pro-popup-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 10, 30, 0.55);
    backdrop-filter: blur(3px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

/* Popup Box */
.tpsa-pro-popup-box {
    position: absolute;
    left: 50%;
    top: 150px;
    transform: translateX(-50%);
    background: #ffffff;
    width: 420px;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.20);
}

.tpsa-pro-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tpsa-pro-popup-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1d2327;
}

.tpsa-pro-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 20px;
}

/* Icon */
.tpsa-pro-icon-box {
    text-align: center;
    margin: 20px 0;
}

.tpsa-pro-icon-box img {
    width: 70px;
    opacity: 0.9;
}

/* Buttons */
.tpsa-pro-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.tpsa-pro-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.tpsa-pro-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.purchase-btn {
    background: #814bfe;
}

.license-btn {
    background: #3d444b;
}

/* Small link */
.tpsa-pro-small-link {
    margin-top: 15px;
    text-align: center;
}

.tpsa-pro-small-link a {
    text-decoration: none;
    font-size: 14px;
    color: #814bfe;
    font-weight: 500;
}


/* start Security Score */
.asg-ss_wrapper {
    margin-top: 20px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Gradient Border */
.asg-ss_gradient-border {
    position: relative;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg,
            #a855f7,
            #ec4899,
            #f97316);
}

/* Card */
.asg-ss_card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
}

/* Header */
.asg-ss_card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.asg-ss_shield-icon {
    width: 20px;
    height: 20px;
    color: #9333ea;
}

.asg-ss_card-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

/* Score */
.asg-ss_score {
    display: block;
    gap: 8px;
    margin-bottom: 12px;
}

.asg-ss_score-value {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(90deg, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.asg-ss_score-total {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

/* Progress Bar */
.asg-ss_progress-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}

.asg-ss_progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9333ea, #ec4899);
    border-radius: 9999px;
}

/* Status Text */
.asg-ss_status-text {
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
}

/* end security score */
/* --- "View issues" trigger on the score card ---------------------------- */
.asg-ss_view {
    display: inline-block;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: #814bfe;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.asg-ss_view:hover { color: #6d28d9; }

/* --- Issues dialog ------------------------------------------------------- */
.asg-issues {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(15, 23, 42, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.asg-issues[hidden] { display: none; }

.asg-issues_panel {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 720px;
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
}

.asg-issues_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #e2d8fb;
}
.asg-issues_title { margin: 0; font-size: 17px; font-weight: 700; color: #1d2327; }
.asg-issues_sub { margin: 4px 0 0; font-size: 13px; color: #9e8cca; }
.asg-issues_close {
    background: none; border: 0; font-size: 26px; line-height: 1;
    cursor: pointer; color: #9e8cca; padding: 0 4px;
}
.asg-issues_close:hover { color: #1d2327; }

.asg-issues_body { overflow: auto; padding: 8px 24px 20px; }

.asg-issues_item {
    padding: 14px 0;
    border-bottom: 1px solid #f3f1ff;
}
.asg-issues_item:last-of-type { border-bottom: 0; }

.asg-issues_itemHead {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.asg-issues_name { font-size: 14px; color: #1d2327; font-weight: 600; }
.asg-issues_points { margin-left: auto; font-size: 12px; color: #9e8cca; white-space: nowrap; }

.asg-issues_badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.asg-issues_badge.is-critical { background: #fdf0f0; color: #c62828; }
.asg-issues_badge.is-high     { background: #fff4e6; color: #b8730a; }
.asg-issues_badge.is-medium   { background: #fffbe6; color: #8a6d00; }
.asg-issues_badge.is-low      { background: #f3f1ff; color: #6d4fd0; }

.asg-issues_fix {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.asg-issues_action {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #814bfe;
    text-decoration: none;
}
.asg-issues_action:hover { text-decoration: underline; }

.asg-issues_passed {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #ece6f9;
    font-size: 13px;
}
.asg-issues_passed summary { cursor: pointer; color: #1f7a45; font-weight: 600; }
.asg-issues_passed ul { margin: 10px 0 0 18px; color: #64748b; list-style: disc; }
.asg-issues_passed li { margin-bottom: 4px; }

@media (max-width: 600px) {
    .asg-issues_panel { max-height: 92vh; }
    .asg-issues_points { margin-left: 0; }
}

/* ===================================================================
   Support screen
   =================================================================== */
.tpsa-support { margin-top: 20px; }

.tpsa-support__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 960px) {
    .tpsa-support__grid { grid-template-columns: 1fr; }
}

.tpsa-support__main,
.tpsa-support__card,
.tpsa-support__done {
    background: #fff;
    border: 1px solid #e2d8fb;
    border-radius: 12px;
    padding: 26px 28px;
}

.tpsa-support__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #1d2327; }
.tpsa-support__intro { margin: 0 0 22px; font-size: 13px; color: #64748b; max-width: 62ch; }

/* --- fields --- */
.tpsa-support__field { margin-bottom: 20px; }
.tpsa-support__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}
.tpsa-support__req { color: #dc2626; margin-left: 2px; }
.tpsa-support__opt {
    margin-left: 6px;
    font-weight: 400;
    font-size: 11px;
    color: #9e8cca;
}

.tpsa-support__field input,
.tpsa-support__field textarea {
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid #bba8e7;
    border-radius: 6px;
    font-size: 13px;
    color: #1d2327;
    box-sizing: border-box;
}
.tpsa-support__field input:focus,
.tpsa-support__field textarea:focus {
    outline: none;
    border-color: #814bfe;
    box-shadow: 0 0 0 2px #ece6f9;
}
.tpsa-support__field textarea { resize: vertical; min-height: 130px; }

.tpsa-support__field.has-error input,
.tpsa-support__field.has-error textarea { border-color: #dc2626; }

.tpsa-support__hint { margin: 6px 0 0; font-size: 11px; color: #9e8cca; }
.tpsa-support__err { margin: 6px 0 0; font-size: 12px; color: #c62828; font-weight: 500; }

/* --- alerts --- */
.tpsa-support__alert {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}
.tpsa-support__alert.is-error {
    background: #fdf0f0;
    border: 1px solid #f5b5b5;
    color: #8a1f22;
}
.tpsa-support__alert a { color: #814bfe; font-weight: 600; }

/* --- consent --- */
.tpsa-support__consent {
    padding: 14px 16px;
    background: #faf8ff;
    border: 1px solid #ece6f9;
    border-radius: 8px;
    margin-bottom: 22px;
}
.tpsa-support__consent > label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #3d444b;
    margin: 0;
}
.tpsa-support__consent details { margin-top: 8px; font-size: 12px; }
.tpsa-support__consent summary { cursor: pointer; color: #814bfe; }
.tpsa-support__consent ul { margin: 8px 0 6px 18px; color: #64748b; list-style: disc; }
.tpsa-support__consent p { margin: 0; color: #9e8cca; font-size: 11px; }

/* --- actions --- */
.tpsa-support__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.tpsa-support__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #814bfe, #9c5bff);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(129, 75, 254, .22);
}
.tpsa-support__btn:hover { filter: brightness(1.05); }
.tpsa-support__btn:disabled { opacity: .7; cursor: default; filter: none; }

.tpsa-support__spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tpsa-support-spin .7s linear infinite;
}
.tpsa-support__btn.is-sending .tpsa-support__spinner { display: inline-block; }
@keyframes tpsa-support-spin { to { transform: rotate(360deg); } }

.tpsa-support__reply { font-size: 12px; color: #9e8cca; }

/* --- aside --- */
.tpsa-support__aside { display: flex; flex-direction: column; gap: 16px; }
.tpsa-support__card h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #1d2327; }
.tpsa-support__card p { margin: 0; font-size: 12px; line-height: 1.7; color: #64748b; }
.tpsa-support__card.is-tip { background: #fffdf7; border-color: #ffd88a; }

.tpsa-support__links { list-style: none; margin: 0; padding: 0; }
.tpsa-support__links li { margin-bottom: 9px; }
.tpsa-support__links a { font-size: 13px; color: #814bfe; text-decoration: none; font-weight: 500; }
.tpsa-support__links a:hover { text-decoration: underline; }

/* --- success --- */
.tpsa-support__done { text-align: center; max-width: 560px; margin: 0 auto; padding: 44px 32px; }
.tpsa-support__doneIcon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eafaf0;
    color: #1f7a45;
}
.tpsa-support__doneIcon svg { width: 26px; height: 26px; }
.tpsa-support__done h2 { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: #1d2327; }
.tpsa-support__doneLead { margin: 0 0 24px; font-size: 13px; line-height: 1.7; color: #64748b; }
.tpsa-support__doneActions { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.tpsa-support__link { font-size: 13px; color: #814bfe; text-decoration: none; }
.tpsa-support__link:hover { text-decoration: underline; }

/* --- Sidebar-less screens ------------------------------------------------
   .tpsa-main-wrapper reserves 320px for the settings sidebar. Screens that do
   not render one (the Pro license page) opt out, so the content fills the
   page instead of leaving that space blank. */
.tp-secure-admin_container.is-full .tpsa-main-wrapper {
    width: 100%;
}
