/* SERP */

/* Shared Card */
.serp-input-card,
.serp-preview-card {
    background: var(--white-color);
    border-radius: 16px;
    border: 1px solid var(--gray-color);
    box-shadow: var(--zap-shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Input Card Header */
.serp-input-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-color);
    background: linear-gradient(135deg, var(--primary-color-transparent) 0%, transparent 100%);
}

.serp-input-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.serp-input-card__title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.serp-input-card__subtitle {
    font-size: .78rem;
    color: var(--body-color);
    margin: 0;
    opacity: .75;
}

.serp-input-card__body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* URL fetch row */
.serp-url-row {
    display: flex;
    gap: 0;
    align-items: stretch;
    margin-bottom: 6px;
}

.serp-url-row .serp-input {
    flex: 1;
    min-width: 0;
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.serp-fetch-btn {
    padding: 0 18px;
    border: 1.5px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 0 10px 10px 0;
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: var(--transition);
}

.serp-fetch-btn:hover {
    background: #9a3fc7;
    border-color: #9a3fc7;
}

.serp-fetch-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.serp-fetch-btn .spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: var(--white-color);
    border-radius: 50%;
    animation: serp-spin .7s linear infinite;
}

.serp-fetch-btn.loading .spinner {
    display: block;
}

.serp-fetch-btn.loading .fetch-icon {
    display: none;
}

@keyframes serp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Inputs */
.serp-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--grayTwo-color);
    border-radius: 10px;
    font-size: .84rem;
    color: var(--dark-color);
    background: var(--white-color);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    resize: none;
}

.serp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-transparent);
}

.serp-textarea {
    line-height: 1.6;
}

/* Field group */
.serp-field-group {
    margin-bottom: 16px;
}

.serp-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.serp-label i {
    color: var(--primary-color);
    font-size: .88rem;
}

.serp-optional {
    font-weight: 400;
    color: var(--body-color);
    opacity: .6;
    font-size: .73rem;
}

.serp-char-badge {
    margin-left: auto;
    font-size: .7rem;
    font-weight: 600;
    background: var(--primary-color-transparent);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 20px;
    transition: background .2s, color .2s;
}

.serp-char-badge.over {
    background: var(--danger-color-transparent);
    color: var(--danger-color);
}

/* Progress bar */
.serp-progress-bar {
    height: 4px;
    background: var(--gray-color);
    border-radius: 2px;
    margin: 6px 0 3px;
    overflow: hidden;
}

.serp-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width .3s, background-color .3s;
}

/* Field hint */
.serp-field-hint {
    font-size: .72rem;
    color: var(--body-color);
    opacity: .7;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.serp-hint-error {
    color: var(--danger-color) !important;
    opacity: 1 !important;
}

.serp-hint-success {
    color: var(--success-color) !important;
    opacity: 1 !important;
}

/* Divider */
.serp-divider {
    border: none;
    border-top: 1px dashed var(--grayTwo-color);
    margin: 18px 0;
}

/* Device Toggle */
.serp-device-toggle {
    display: flex;
    gap: 8px;
    background: var(--section-color);
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.serp-device-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--body-color);
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.serp-device-btn.active {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 2px 8px var(--primary-color-transparent);
}

/* Actions */
.serp-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.serp-actions .geex-btn {
    flex: 1 1 160px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
}

@media (max-width: 480px) {
    .serp-actions .geex-btn {
        flex: 1 1 100%;
        font-size: .82rem;
        padding: 11px 14px;
    }
}

@media (max-width: 460px) {
    .serp-google-bar .serp-google-bar__logo {
        display: none;
    }
}

@media (max-width: 400px) {
    .serp-google-bar .serp-google-bar__icons {
        display: none;
    }
}


@media (max-width: 350px) {
    .serp-actions {
        flex-wrap: wrap;
    }
}

/* Preview Card */
.serp-preview-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-color);
}

.serp-preview-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--info-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.serp-preview-card__title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.serp-preview-card__subtitle {
    font-size: .78rem;
    color: var(--body-color);
    margin: 0;
    opacity: .75;
}

/* Score Circle */
.serp-score-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: default;
}

.score-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: var(--gray-color);
    stroke-width: 3;
}

.score-arc {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray .5s ease, stroke .3s;
}

#score-text {
    font-size: .62rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

/* SERP Preview Wrapper */
.serp-preview-wrapper {
    background: var(--white-color);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-color);
    transition: var(--transition);
}

/* Google Bar */
.serp-google-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    border: 1px solid var(--grayTwo-color);
    border-radius: 24px;
    box-shadow: var(--zap-shadow);
    margin-bottom: 20px;
    background: var(--white-color);
}

.serp-google-bar__logo {
    font-size: 1.05rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: -1px;
}

/* Keeping Google brand colors */
.g-blue {
    color: #4285F4;
}

.g-red {
    color: #EA4335;
}

.g-yellow {
    color: #FBBC05;
}

.g-green {
    color: #34A853;
}

.serp-google-bar__input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    color: var(--sec-color);
}

.serp-google-bar__input i {
    color: var(--sec-color);
    font-size: 1rem;
}

.serp-mic {
    margin-left: auto;
}

.serp-google-bar__icons {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--sec-color);
    font-size: 1.1rem;
}

.serp-google-bar__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: .7;
}

/* Result */
.serp-result {
    max-width: 600px;
    padding: 8px 0;
}

.serp-result__source {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.serp-result__favicon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    color: var(--body-color);
    overflow: hidden;
    flex-shrink: 0;
}

.serp-result__favicon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.serp-result__source-text {
    flex: 1;
    line-height: 1.3;
}

.serp-result__site-name {
    font-size: .8rem;
    font-weight: 500;
    color: var(--dark-color);
}

.serp-result__breadcrumb {
    font-size: .72rem;
    color: var(--body-color);
    word-break: break-all;
}

.serp-result__kebab {
    border: none;
    background: none;
    color: var(--sec-color);
    cursor: pointer;
    padding: 0 4px;
    font-size: 1rem;
}

.serp-result__title {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 600px;
    cursor: pointer;
}

.serp-result__title:hover {
    text-decoration: underline;
}

.serp-result__title.over-limit {
    color: var(--sec-color);
}

.serp-result__description {
    font-size: .84rem;
    color: var(--body-color);
    line-height: 1.58;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty state */
.serp-empty-state {
    text-align: center;
    padding: 36px 20px;
    color: var(--body-color);
    opacity: .45;
}

.serp-empty-state i {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 10px;
}

.serp-empty-state p {
    font-size: .84rem;
    margin: 0;
}

/* Ghost placeholders */
.serp-ghost-results {
    margin-top: 16px;
}

.serp-ghost-item {
    padding: 10px 0;
    border-top: 1px solid var(--gray-color);
}

.serp-ghost-source {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.serp-ghost-favicon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gray-color);
    flex-shrink: 0;
}

.serp-ghost-lines {
    flex: 1;
}

.serp-ghost-line {
    height: 9px;
    background: var(--gray-color);
    border-radius: 4px;
    margin-bottom: 5px;
}

.serp-ghost-title {
    height: 13px;
    background: var(--primary-color-transparent);
    border-radius: 4px;
    width: 80%;
    margin-bottom: 8px;
}

/* Checklist */
.serp-checklist {
    padding: 16px 24px;
}

.serp-checklist__title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.serp-checklist__items {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.serp-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .77rem;
    color: var(--body-color);
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--sectionThree-color);
}

.serp-check-item .check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    flex-shrink: 0;
}

.serp-check-item.pass .check-icon {
    background: var(--success-color-transparent);
    color: var(--success-color);
}

.serp-check-item.warn .check-icon {
    background: var(--warning-color-transparent);
    color: var(--warning-color);
}

.serp-check-item.fail .check-icon {
    background: var(--danger-color-transparent);
    color: var(--danger-color);
}

.serp-check-item.pass {
    background: var(--success-color-transparent);
}

.serp-check-item.warn {
    background: var(--warning-color-transparent);
}

.serp-check-item.fail {
    background: var(--danger-color-transparent);
}

.serp-check-item .check-label {
    flex: 1;
}

/* Mobile Frame */
.serp-mobile-frame {
    display: none;
    flex-direction: column;
    width: 300px;
    border-radius: var(--zap-radius);
    overflow: hidden;
    box-shadow: var(--zap-shadow-hover);
    background: var(--white-color);
    margin: 0 auto;
}

.serp-preview-wrapper.mobile-view {
    background: var(--section-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.serp-preview-wrapper.mobile-view .serp-google-bar,
.serp-preview-wrapper.mobile-view #serp-result,
.serp-preview-wrapper.mobile-view .serp-ghost-results,
.serp-preview-wrapper.mobile-view #serp-empty {
    display: none !important;
}

.serp-preview-wrapper.mobile-view .serp-mobile-frame {
    display: flex;
}

.serp-mobile-topbar {
    background: var(--white-color);
    border-bottom: 1px solid var(--gray-color);
    padding: 10px 12px;
}

.serp-mobile-searchbar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--section-color);
    border-radius: 24px;
    padding: 8px 14px;
    font-size: .74rem;
    color: var(--sec-color);
}

.serp-mobile-content {
    padding: 12px;
}

.serp-mobile-result .serp-result {
    max-width: 100%;
}

.serp-mobile-result .serp-result__title {
    font-size: .95rem;
    max-width: 100%;
}

.serp-mobile-result .serp-result__description {
    font-size: .76rem;
}

/* Tips Banner */
.serp-tips-banner {
    background: linear-gradient(135deg, var(--primary-color-transparent), var(--info-color-transparent));
    border: 1px solid var(--primary-color-transparent);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.serp-tips-banner__icon {
    color: var(--primary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.serp-tips-banner__text {
    font-size: .82rem;
    color: var(--body-color);
    line-height: 1.6;
}

.serp-tips-banner__text strong {
    color: var(--dark-color);
}

/* Responsive */
@media (max-width: 767px) {
    .serp-tips-banner {
        flex-direction: column;
        gap: 8px;
    }

    .serp-google-bar {
        gap: 8px;
        padding: 10px 12px;
    }

    .serp-input-card__body {
        padding: 16px;
    }
}


/* ROBOTS */

/* ================================================================
   Robots.txt Generator — Scoped Styles
   ================================================================ */

.robots-card {
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--zap-shadow);
    padding: 24px 24px 18px;
    margin-bottom: 22px;
}

.robots-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.robots-card__title i {
    font-size: 18px;
    color: var(--primary-color);
}

/* Agent group */
.agent-group {
    border: 1px solid var(--gray-color);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}

.agent-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: var(--section-color);
    cursor: pointer;
    user-select: none;
    gap: 8px;
}

.agent-group__header:hover {
    background: var(--sectionTwo-color);
}

.agent-group__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.group-agent-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-group__toggle-icon {
    transition: transform .2s;
}

.agent-group__toggle-icon.open {
    transform: rotate(180deg);
}

.agent-group__body {
    padding: 16px 16px 10px;
}

.agent-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color-transparent);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Section label */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sec-color);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-color);
}

/* Rule row */
.rules-container {
    margin-bottom: 4px;
}

.rule-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--gray-color);
}

.rule-row:last-of-type {
    border-bottom: none;
}

/* Wrapper that holds label + control */
.rule-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rule-field--type {
    width: 130px;
    flex-shrink: 0;
}

.rule-field--path {
    flex: 1;
    min-width: 0;
}

.rl-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--sec-color);
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: 1;
}

/* Shared control style */
.rule-control {
    display: block;
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 12px;
    font-size: 13.5px;
    font-family: inherit;
    line-height: 42px;
    color: var(--dark-color);
    background: var(--section-color);
    border: 1px solid var(--gray-color);
    border-radius: 8px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .2s, box-shadow .2s;
}

/* Custom arrow for select */
.rule-select-wrap {
    position: relative;
    display: block;
}

.rule-select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--sec-color);
    pointer-events: none;
}

.rule-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-transparent);
    background: var(--white-color);
}

/* Delete button */
.rule-delete-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.rule-delete-spacer {
    height: 10px;
    display: block;
}

.btn-icon-danger {
    height: 42px;
    width: 42px;
    min-width: 42px;
    padding: 0;
    box-sizing: border-box;
    background: var(--danger-color-transparent);
    border: 1px solid var(--danger-color-transparent);
    border-radius: 8px;
    color: var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-icon-danger:hover {
    background: var(--danger-color);
    color: var(--white-color);
}

.btn-icon-danger i {
    font-size: 16px;
    line-height: 1;
}

/* Sitemap row */
.sitemap-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.sitemap-row .form-control {
    height: 42px;
    font-size: 13.5px;
    border-radius: 8px;
    border-color: var(--gray-color);
    background: var(--section-color);
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.sitemap-row .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-transparent);
    background: var(--white-color);
}

/* Generic soft buttons */
.btn-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.btn-soft-primary {
    background: var(--primary-color-transparent);
    color: var(--primary-color);
}

.btn-soft-primary:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.btn-soft-green {
    background: var(--success-color-transparent);
    color: var(--success-color);
}

.btn-soft-green:hover {
    background: var(--success-color);
    color: var(--white-color);
}

.btn-soft-amber {
    background: var(--warning-color-transparent);
    color: var(--warning-color);
}

.btn-soft-amber:hover {
    background: var(--warning-color);
    color: var(--dark-color);
}

.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .18s, transform .1s;
    white-space: nowrap;
}

.btn-solid:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.btn-solid-primary {
    background: var(--primary-color);
    color: var(--white-color);
}

.btn-solid-green {
    background: var(--success-color);
    color: var(--white-color);
}

/* Stats bar */
.robots-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.robots-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--sec-color);
}

.stat-badge {
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 9px;
    min-width: 22px;
    text-align: center;
    color: var(--white-color);
}

.stat-badge-blue {
    background: var(--primary-color);
}

.stat-badge-orange {
    background: var(--warning-color);
    color: var(--dark-color);
}

.stat-badge-green {
    background: var(--success-color);
}

/* Code preview */
.robots-output {
    background: var(--dark-color);
    border-radius: 10px;
    padding: 20px 22px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--gray-color);
    min-height: 220px;
    white-space: pre;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 420px;
}

.robots-output .c {
    color: var(--grayThree-color);
}

.robots-output .d {
    color: var(--info-color);
}

.robots-output .v {
    color: var(--success-color);
}

.robots-output .sm .d {
    color: var(--pink-color);
}

.robots-output .sm .v {
    color: var(--warning-color);
}

/* Toast */
.robots-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dark-color);
    color: var(--gray-color);
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
    max-width: calc(100vw - 48px);
}

.robots-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.robots-toast i {
    color: var(--success-color);
    font-size: 17px;
    flex-shrink: 0;
}

.preview-sticky {
    position: sticky;
    top: 16px;
}

/* Global card controls */
.robots-card .form-control,
.robots-card .form-select {
    height: 42px;
    font-size: 13.5px;
    border-radius: 8px;
    border-color: var(--gray-color);
    background: var(--section-color);
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.robots-card .form-control:focus,
.robots-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-transparent);
    background: var(--white-color);
}

/* Responsive */
@media (max-width: 575.98px) {
    .rule-row {
        flex-wrap: wrap;
    }

    .rule-field--type {
        width: 100%;
    }

    .rule-field--path {
        flex: 1 1 calc(100% - 52px);
    }

    .rule-delete-wrap {
        justify-content: flex-end;
    }

    .rule-delete-spacer {
        display: none;
    }

    .robots-card {
        padding: 16px 14px 12px;
    }

    .agent-group__body {
        padding: 12px 12px 6px;
    }

    .robots-stats {
        gap: 10px;
    }

    .btn-solid {
        padding: 9px 16px;
        font-size: 13px;
    }
}

@media (max-width: 767.98px) {
    .preview-sticky {
        position: static;
    }
}

@media (max-width: 440px) {
    #hides {
        display: none;
    }
}