/* Spam Monitor Shortcode Styles */

body.td-sm2-modal-open {
    overflow: hidden;
}

.td-sm2-shell,
.td-sm2-shell * {
    box-sizing: border-box;
}

.td-sm2-shell {
    --td-sm2-bg: #15191f;
    --td-sm2-bg-soft: #181d24;
    --td-sm2-surface: #1d232b;
    --td-sm2-surface-2: #222933;
    --td-sm2-border: #2c3440;
    --td-sm2-border-strong: #3a4552;
    --td-sm2-text: #f4f6f8;
    --td-sm2-muted: #a8b0bb;
    --td-sm2-muted-2: #7f8997;
    --td-sm2-primary: #ff8426;
    --td-sm2-primary-2: #ff6f1f;
    --td-sm2-primary-dark: #211814;
    --td-sm2-success: #5ed28d;
    --td-sm2-warning: #e9c75c;
    --td-sm2-danger: #ef6657;
    --td-sm2-info: #66a7ff;
    --td-sm2-radius: 12px;
    --td-sm2-shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px -12px rgba(0, 0, 0, 0.55);
    --td-sm2-shadow-glow: 0 0 0 1px rgba(255, 132, 38, 0.22), 0 8px 28px -8px rgba(255, 132, 38, 0.62);
    color: var(--td-sm2-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.td-sm2-shell button,
.td-sm2-shell input,
.td-sm2-shell select,
.td-sm2-shell textarea {
    font: inherit;
}

.td-sm2-hero-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: min(680px, 100%);
    margin: 28px 0 0;
}

.td-sm2-hero-field {
    display: flex;
    flex: 1 1 320px;
    align-items: center;
    gap: 0px;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--td-sm2-border);
    border-radius: 10px;
    background: var(--td-sm2-text) !important;
    color: var(--td-sm2-muted) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.td-sm2-hero-field span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    font-size: 0;
}

.td-sm2-hero-field span::before,
.td-sm2-hero-field span::after {
    content: "";
    position: absolute;
}

.td-sm2-hero-field span::before {
    width: 8px;
    height: 1.5px;
    background: currentColor;
}

.td-sm2-hero-input {
    width: 100%;
    min-width: 0;
    border: 1px !important;
    outline: 0;
    background: var(--td-sm2-text) !important;
    color: var(--td-sm2-surface) !important ;
    font-size: 14px;
}

.td-sm2-hero-input::placeholder {
    color: var(--td-sm2-muted-2);
    opacity: 1;
}

.td-sm2-hero-submit,
.td-sm2-button.primary,
.td-sm2-run {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid rgba(255, 132, 38, 0.65);
    border-radius: 10px;
    background: rgba(255, 132, 38, 0.2) !important;
    color: var(--td-sm2-primary);
    box-shadow: var(--td-sm2-shadow-glow);
    font-weight: 600 !important;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    margin: 0px;
}

.td-sm2-hero-submit:hover,
.td-sm2-button.primary:hover,
.td-sm2-run:hover {
    background: var(--td-sm2-primary-2) !important;
    color: var(--td-sm2-text) !important;
    transform: translateY(-1px);
}

.td-sm2-hero-submit:disabled,
.td-sm2-button:disabled,
.td-sm2-run:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.td-sm2-hero-form > p {
    flex-basis: 100%;
    margin: -2px 0 0;
    color: var(--td-sm2-muted);
    font-size: 12px;
}

.td-sm2-modal,
.td-sm2-success {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.td-sm2-modal.is-open,
.td-sm2-success.is-open {
    display: flex;
}

.td-sm2-bg {
    border-radius: 0 !important;
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(4, 7, 10, 0.72) !important;
    cursor: pointer;
    margin: 0px !important;
}

.td-sm2-widget,
.td-sm2-success-card {
    position: relative;
    z-index: 1;
    width: min(900px, calc(100vw - 40px));
    max-height: min(720px, calc(100vh - 40px));
    border: 1px solid var(--td-sm2-border);
    border-radius: 12px;
    background: var(--td-sm2-bg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
    overflow: hidden;
}

.td-sm2-widget {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
}

.td-sm2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 36px 36px 22px;
    border-bottom: 1px solid transparent;
}

.td-sm2-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.td-sm2-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--td-sm2-primary);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.td-sm2-header h3,
.td-sm2-success-card h3 {
    margin: 0;
    color: var(--td-sm2-text) !important;
    font-size: 20px;
    font-weight: 600 !important;
    letter-spacing: 0;
}

.td-sm2-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--td-sm2-muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.td-sm2-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--td-sm2-text);
}

.td-sm2-progress {
    display: grid;
    grid-template-columns: repeat(7, minmax(28px, 1fr)) auto;
    align-items: center;
    gap: 8px;
    padding: 0 36px 34px;
    border-bottom: 1px solid var(--td-sm2-border);
}

.td-sm2-progress-bar {
    height: 6px;
    border-radius: 999px;
    background: #2a313b;
}

.td-sm2-progress-bar.is-active {
    background: var(--td-sm2-primary);
}

.td-sm2-count {
    min-width: 42px;
    padding-left: 10px;
    color: var(--td-sm2-muted);
    font-size: 14px;
    text-align: right;
}

.td-sm2-step {
    display: none;
    min-height: 0;
    padding: 32px 36px 34px;
    overflow: auto;
    scrollbar-color: var(--td-sm2-border-strong) transparent;
}

.td-sm2-step.is-active {
    display: block;
}

.td-sm2-step h4 {
    margin: 0;
    color: var(--td-sm2-text) !important;
    font-size: 28px;
    font-weight: 600 !important;
    line-height: 1.16;
    letter-spacing: 0;
}

.td-sm2-subcopy {
    margin: 8px 0 26px;
    color: var(--td-sm2-muted);
    font-size: 16px;
}

.td-sm2-step label {
    display: block;
    margin: 0 0 16px;
    color: var(--td-sm2-text);
    font-size: 14px;
    font-weight: 500 !important;
}

.td-sm2-step em {
    color: var(--td-sm2-primary);
    font-style: normal;
}

.td-sm2-step input[type="text"],
.td-sm2-step input[type="email"],
.td-sm2-step select,
.td-sm2-step textarea {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border: 1px solid var(--td-sm2-border);
    border-radius: 10px;
    background: var(--td-sm2-surface);
    color: var(--td-sm2-text);
    padding: 11px 13px;
    outline: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    font-weight: 400 !important;
}

.td-sm2-step textarea {
    min-height: 96px;
    resize: vertical;
}

.td-sm2-step input:focus,
.td-sm2-step select:focus,
.td-sm2-step textarea:focus {
    border-color: rgba(255, 132, 38, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 132, 38, 0.13);
}

.td-sm2-step small,
.td-sm2-rule-editor p,
.td-sm2-serp-depth p,
.td-sm2-scanning-wrap p,
.td-sm2-success-card p {
    color: var(--td-sm2-muted);
    font-size: 13px;
}

.td-sm2-filter-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.td-sm2-search {
    margin: 0 !important;
}

.td-sm2-search span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.td-sm2-search input {
    margin: 0 !important;
}

.td-sm2-filter-row button,
.td-sm2-suggestion,
.td-sm2-reset,
.td-sm2-foot-btn,
.td-sm2-button {
    margin: 0px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--td-sm2-text);
    font-size: 14px;
    font-weight: 500 !important;
    cursor: pointer;
}

.td-sm2-filter-row button {
    padding: 10px 4px;
    margin: 0px;
}

.td-sm2-filter-row button:hover,
.td-sm2-foot-btn:hover,
.td-sm2-reset:hover,
.td-sm2-suggestion:hover {
    color: var(--td-sm2-surface) !important;
}

.td-sm2-filter-row button:focus,
.td-sm2-foot-btn:focus,
.td-sm2-reset:focus,
.td-sm2-suggestion:focus {
    background-color: var(--td-sm2-primary) !important;
    color: var(--td-sm2-text) !important;
}

.td-sm2-pill-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-height: 330px;
    padding-right: 4px;
    overflow: auto;
    margin-bottom: 20px;
}

.td-sm2-pill-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--td-sm2-border);
    border-radius: 10px;
    background: var(--td-sm2-surface);
    color: var(--td-sm2-muted);
    font-weight: 500 !important;
    cursor: pointer;
}

.td-sm2-pill-grid label.is-checked {
    border-color: rgba(255, 132, 38, 0.7);
    background: rgba(255, 132, 38, 0.08);
    color: var(--td-sm2-text);
    box-shadow: var(--td-sm2-shadow-card);
}

.td-sm2-pill-grid input,
.td-sm2-card-grid input,
.td-sm2-monitor-list input,
.td-sm2-sensitivity-grid input {
    accent-color: var(--td-sm2-primary);
}

.td-sm2-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.td-sm2-category-card {
    position: relative;
    display: grid !important;
    grid-template-rows: auto 1fr auto;
    min-height: 164px;
    margin: 0 !important;
    padding: 20px 22px;
    border: 1px solid var(--td-sm2-border);
    border-radius: 12px;
    background: var(--td-sm2-surface);
    box-shadow: var(--td-sm2-shadow-card);
    cursor: pointer;
    overflow: hidden;
}

.td-sm2-category-card.is-checked {
    border-color: var(--td-sm2-primary);
    background: rgba(255, 132, 38, 0.08);
    box-shadow: var(--td-sm2-shadow-glow);
}

.td-sm2-category-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.td-sm2-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: rgba(255, 132, 38, 0.18);
    color: var(--td-sm2-primary);
}

.td-sm2-card-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.td-sm2-card-check {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 18px;
    height: 18px;
}

.td-sm2-card-check::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 6px;
    border: solid var(--td-sm2-primary);
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

.td-sm2-category-card strong {
    display: block;
    color: var(--td-sm2-text);
    font-size: 18px;
    font-weight: 500 !important;
}

.td-sm2-category-card small {
    display: block;
    margin-top: 6px;
    color: var(--td-sm2-muted);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-sm2-rule-editor,
.td-sm2-score-controls,
.td-sm2-serp-depth {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--td-sm2-border);
    border-radius: 12px;
    background: var(--td-sm2-surface);
}

.td-sm2-rule-editor h5,
.td-sm2-serp-depth h5 {
    margin: 0 0 6px;
    color: var(--td-sm2-text);
    font-size: 16px;
    font-weight: 500 !important;
}

.td-sm2-rule-editor label:last-child,
.td-sm2-url-rules label:last-child {
    margin-bottom: 0;
}

.td-sm2-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.td-sm2-suggestion {
    padding: 8px 12px;
    border-color: var(--td-sm2-border);
    background: var(--td-sm2-surface);
    color: var(--td-sm2-muted);
}

.td-sm2-monitor-list label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 12px;
    margin-bottom: 14px !important;
    padding: 14px;
    border: 1px solid var(--td-sm2-border);
    border-radius: 10px;
    background: var(--td-sm2-bg-soft);
    cursor: pointer;
}

.td-sm2-monitor-list input {
    grid-row: span 2;
    margin-top: 3px;
}

.td-sm2-monitor-list strong {
    font-weight: 500 !important;
    color: var(--td-sm2-text);
}

.td-sm2-monitor-list small {
    font-weight: 500 !important;
    grid-column: 2;
}

.td-sm2-sensitivity-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.td-sm2-sensitivity-grid label {
    position: relative;
    min-height: 178px;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--td-sm2-border);
    border-radius: 12px;
    background: var(--td-sm2-surface);
    box-shadow: var(--td-sm2-shadow-card);
    cursor: pointer;
}

.td-sm2-sensitivity-grid label.is-checked {
    border-color: rgba(255, 132, 38, 0.7);
    background: rgba(255, 132, 38, 0.08);
}

.td-sm2-sensitivity-grid input {
    position: absolute;
    top: 16px;
    right: 16px;
}

.td-sm2-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-bottom: 18px;
    border-radius: 999px;
}

.td-sm2-dot.green { background: var(--td-sm2-success); }
.td-sm2-dot.yellow { background: var(--td-sm2-warning); }
.td-sm2-dot.red { background: var(--td-sm2-danger); }
.td-sm2-dot.blue { background: var(--td-sm2-info); }

.td-sm2-sensitivity-grid strong {
    display: block;
    margin-bottom: 10px;
    color: var(--td-sm2-text);
    font-size: 16px;
    font-weight: 500 !important;
}

.td-sm2-sensitivity-grid small {
    display: block;
    line-height: 1.55;
}

.td-sm2-score-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.td-sm2-score-controls label {
    font-weight: 500 !important;
    margin: 0;
}

.td-sm2-score-controls strong {
    float: right;
    color: var(--td-sm2-primary);
}

.td-sm2-score-controls input[type="range"] {
    width: 100%;
    background: #ffffff;
    padding: 1px;
    border-radius: 10px;
    margin-top: 14px;
    accent-color: #000000;
}

.td-sm2-serp-depth {
    display: grid;
    grid-template-columns: 1fr 210px;
    align-items: end;
    gap: 18px;
}

.td-sm2-serp-depth p {
    margin: 0;
}

.td-sm2-serp-depth label {
    font-weight: 500 !important;
    margin: 0;
}

.td-sm2-serp-depth strong {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 132, 38, 0.11);
    color: var(--td-sm2-primary);
    font-size: 13px;
}

.td-sm2-review-list {
    display: grid;
    gap: 10px;
}

.td-sm2-review-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--td-sm2-border);
    border-radius: 10px;
    background: var(--td-sm2-surface);
}

.td-sm2-review-list span {
    display: grid;
    gap: 4px;
    color: var(--td-sm2-muted);
    font-size: 13px;
}

.td-sm2-review-list strong {
    font-weight: 400 !important;
    color: var(--td-sm2-text);
    font-size: 15px;
    word-break: break-word;
}

.td-sm2-edit {
    border: 0;
    background: transparent;
    color: var(--td-sm2-primary);
    font-weight: 700 !important;
    cursor: pointer;
}

.td-sm2-reset {
    margin-top: 18px;
    padding: 10px 12px;
    border-color: var(--td-sm2-border);
    background: var(--td-sm2-surface);
}

.td-sm2-message {
    margin: 0 36px 16px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--td-sm2-border);
    background: var(--td-sm2-surface);
    color: var(--td-sm2-text);
    font-size: 14px;
}

.td-sm2-message.is-error {
    border-color: rgba(239, 102, 87, 0.55);
    background: rgba(239, 102, 87, 0.12);
    color: #ffd4ce;
}

.td-sm2-message.is-success {
    border-color: rgba(94, 210, 141, 0.55);
    background: rgba(94, 210, 141, 0.12);
    color: #c9ffde;
}

.td-sm2-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 22px 36px;
    border-top: 1px solid var(--td-sm2-border);
    background: #12171d;
}

.td-sm2-footer-step {
    color: var(--td-sm2-muted);
    font-size: 14px;
}

.td-sm2-foot-btn {
    justify-self: start;
    padding: 10px 0;
    color: var(--td-sm2-muted);
}

.td-sm2-foot-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.td-sm2-next,
.td-sm2-run {
    justify-self: end;
    min-width: 164px;
}

.td-sm2-run {
    display: none;
}

.td-sm2-widget[data-step="7"] .td-sm2-run {
    display: inline-flex;
}

.td-sm2-widget[data-step="7"] .td-sm2-next {
    display: none !important;
}

.td-sm2-widget[data-step="8"] .td-sm2-footer {
    display: none !important;
}

.td-sm2-scanning-wrap {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 16px 0 10px;
    text-align: center;
}

.td-sm2-scan-meter {
    position: relative;
    display: grid;
    place-items: center;
    width: 146px;
    height: 146px;
    border-radius: 999px;
    background: conic-gradient(var(--td-sm2-primary) calc(var(--progress, 0) * 1%), #2a313b 0);
    box-shadow: var(--td-sm2-shadow-glow);
}

.td-sm2-scan-meter::before {
    content: "";
    position: absolute;
    width: 112px;
    height: 112px;
    border-radius: inherit;
    background: var(--td-sm2-bg);
}

.td-sm2-scan-meter span,
.td-sm2-scan-meter small {
    position: absolute;
    z-index: 1;
}

.td-sm2-scan-percent {
    color: var(--td-sm2-text);
    font-size: 28px;
    font-weight: 800;
}

.td-sm2-scan-meter small {
    margin-top: 42px;
    color: var(--td-sm2-muted);
    font-size: 11px;
    text-transform: uppercase;
}

.td-sm2-scan-status {
    color: var(--td-sm2-text);
    font-size: 17px;
}

.td-sm2-log {
    display: grid;
    gap: 8px;
    max-height: 170px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--td-sm2-border);
    border-radius: 12px;
    background: var(--td-sm2-surface);
    color: var(--td-sm2-success);
    font-size: 13px;
    overflow: auto;
}

.td-sm2-success-card {
    width: min(480px, calc(100vw - 40px));
    padding: 34px;
    text-align: center;
}

.td-sm2-success-card .td-sm2-close {
    position: absolute;
    top: 16px;
    right: 16px;
}

.td-sm2-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 100px;
    background: var(--td-sm2-primary);
    color: var(--td-sm2-primary);
    font-size: 24px;
    font-weight: 600 !important;
}

.td-sm2-success-card p {
    margin: 12px 0 0;
}

.td-sm2-success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.td-sm2-button:not(.primary) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-color: var(--td-sm2-border);
    background: var(--td-sm2-surface);
    color: var(--td-sm2-text);
    text-decoration: none;
}

/* ==========================================================
   UI UPDATES: CUSTOM ROW CARDS (STEP 5 & 6)
========================================================== */

/* Step 5 Checkbox Row Cards */
.srk-custom-row-card {
    display: flex;
    align-items: center;
    background: var(--td-sm2-surface, #1d232b);
    border: 1px solid var(--td-sm2-border, #2c3440);
    border-radius: var(--td-sm2-radius, 12px);
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--td-sm2-shadow-card);
}

.srk-custom-row-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.srk-checkmark-circle {
    width: 24px;
    height: 24px;
    border: 2px solid var(--td-sm2-border-strong, #3a4552);
    border-radius: 50%;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Step 6 Top Horizontal Summary Cards */
.td-sm2-threshold-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.td-sm2-threshold-inline-card {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    background: var(--td-sm2-surface-2, #222933);
    border: 1px solid var(--td-sm2-border, #2c3440);
    border-radius: var(--td-sm2-radius, 12px);
    padding: 12px 16px;
    box-shadow: var(--td-sm2-shadow-card);
}

.td-sm2-threshold-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.td-sm2-threshold-dot.is-clean { background: var(--td-sm2-success, #5ed28d); }
.td-sm2-threshold-dot.is-suspicious { background: var(--td-sm2-info, #66a7ff); }
.td-sm2-threshold-dot.is-spam { background: var(--td-sm2-warning, #e9c75c); }
.td-sm2-threshold-dot.is-critical { background: var(--td-sm2-danger, #ef6657); }

.td-sm2-threshold-inline-card .td-sm2-label {
    color: var(--td-sm2-muted, #a8b0bb);
    font-size: 14px;
    margin-right: auto;
}

.td-sm2-threshold-inline-card strong {
    color: var(--td-sm2-text, #f4f6f8);
    font-size: 14px;
    font-weight: 600 !important;
}

/* Step 6 Bottom 2-Column Profile Configuration Grid */
.td-sm2-profile-two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

@media (max-width: 768px) {
    .td-sm2-profile-two-column-grid {
        grid-template-columns: 1fr;
    }
}

.td-sm2-profile-card {
    display: flex;
    flex-direction: column;
    background: var(--td-sm2-surface, #1d232b);
    border: 1px solid var(--td-sm2-border, #2c3440);
    border-radius: var(--td-sm2-radius, 12px);
    padding: 20px;
    cursor: pointer;
    position: relative;
    box-shadow: var(--td-sm2-shadow-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.td-sm2-profile-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.td-sm2-card-main-content {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

/* Radio Control Context Rows */
.td-sm2-radio-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid var(--td-sm2-border-strong, #3a4552);
    border-radius: 50%;
    margin-right: 14px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.td-sm2-radio-indicator::after {
    content: "";
    width: 8px;
    height: 8px;
    background: transparent;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

/* Structural Text Configurations */
.srk-card-text-block {
    display: flex;
    flex-direction: column;
}

.srk-card-text-block strong,
.td-sm2-text-group strong {
    color: var(--td-sm2-text, #f4f6f8);
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.srk-card-text-block small,
.td-sm2-text-group p {
    color: var(--td-sm2-muted, #a8b0bb);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Grid Breakdown Box inside Footer */
.td-sm2-card-footer-ranges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    border-top: 1px solid var(--td-sm2-border, #2c3440);
    padding-top: 14px;
    margin-top: auto;
}

.td-sm2-card-footer-ranges span {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--td-sm2-muted-2, #7f8997);
}

.td-sm2-card-footer-ranges strong {
    color: var(--td-sm2-muted, #a8b0bb);
    font-weight: 500 !important;
}

/* Active Selected Row States (Orange Profile Finish) */
.srk-custom-row-card.is-active-selected,
.td-sm2-profile-card.is-checked {
    border-color: var(--td-sm2-primary, #ff8426) !important;
    box-shadow: var(--td-sm2-shadow-glow) !important;
    background: var(--td-sm2-primary-dark, #211814) !important;
}

.srk-custom-row-card.is-active-selected .srk-checkmark-circle {
    background: var(--td-sm2-primary, #ff8426);
    border-color: var(--td-sm2-primary, #ff8426);
    color: #ffffff;
}

.td-sm2-profile-card.is-checked .td-sm2-radio-indicator {
    border-color: var(--td-sm2-primary, #ff8426);
}

.td-sm2-profile-card.is-checked .td-sm2-radio-indicator::after {
    background: var(--td-sm2-primary, #ff8426);
}

.td-sm2-profile-card.is-checked .td-sm2-card-footer-ranges strong {
    color: var(--td-sm2-text, #f4f6f8);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .td-sm2-widget {
        width: min(720px, calc(100vw - 24px));
        max-height: calc(100vh - 24px);
    }

    .td-sm2-header,
    .td-sm2-step,
    .td-sm2-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .td-sm2-progress {
        padding-left: 24px;
        padding-right: 24px;
    }

    .td-sm2-card-grid,
    .td-sm2-pill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .td-sm2-sensitivity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .td-sm2-score-controls,
    .td-sm2-serp-depth {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .td-sm2-modal,
    .td-sm2-success {
        padding: 10px;
    }

    .td-sm2-widget {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 10px;
    }

    .td-sm2-header {
        padding: 22px 18px 16px;
    }

    .td-sm2-header h3 {
        font-size: 17px;
    }

    .td-sm2-progress {
        grid-template-columns: repeat(7, 1fr);
        padding: 0 18px 22px;
        gap: 6px;
    }

    .td-sm2-count {
        grid-column: 1 / -1;
        padding-left: 0;
        text-align: right;
    }

    .td-sm2-step {
        padding: 24px 18px 26px;
    }

    .td-sm2-step h4 {
        font-size: 24px;
    }

    .td-sm2-filter-row,
    .td-sm2-card-grid,
    .td-sm2-pill-grid,
    .td-sm2-sensitivity-grid,
    .td-sm2-score-controls {
        grid-template-columns: 1fr;
    }

    .td-sm2-category-card {
        min-height: 142px;
    }

    .td-sm2-footer {
        grid-template-columns: 1fr 1fr;
        padding: 16px 18px;
    }

    .td-sm2-footer-step {
        display: none;
    }

    .td-sm2-next,
    .td-sm2-run {
        min-width: 0;
        width: 100%;
    }

    .td-sm2-hero-submit {
        width: 100%;
    }

    .td-sm2-success-card {
        padding: 30px 20px;
    }

    .td-sm2-success-actions {
        flex-direction: column;
    }
}