/* SERP Preview Tool v2 */

/* Theme Tokens */
:root {
    --serp-preview-bg: #1f1f1f;
    --serp-preview-site-name: #bdc1c6;
    --serp-preview-title: #99c3ff;
    --serp-preview-url: #bdc1c6;
    --serp-preview-description: #bfbfbf;
    --meta-code-text-color: #00e5a0;
    --meta-code-bg-color: #1a1a2e;
    --social-card-border: rgba(171, 168, 172, 0.08);
    --tag-status-prominent-color: var(--primary-dark);
    --serp2-hero-gradient: linear-gradient(135deg, rgba(22, 66, 60, 0.94), rgba(59, 117, 100, 0.88), rgba(106, 156, 137, 0.82));
    --meta-main-layout-bg: var(--card-bg);
}

.light-mode {
    --serp-preview-bg: #fff;
    --serp-preview-site-name: #202124;
    --serp-preview-title: #1a0dab;
    --serp-preview-url: #4d5156;
    --serp-preview-description: #474747;
    --meta-code-text-color: #16423c;
    --meta-code-bg-color: #d6d9d80d;
    --social-card-border: rgba(65, 62, 67, 0.08);
    --tag-status-prominent-color: #16a34a;
    --serp2-hero-gradient: linear-gradient(135deg, rgba(59, 117, 100, 0.96), rgba(106, 156, 137, 0.94), rgba(196, 218, 210, 0.96));
    --meta-main-layout-bg: rgba(255, 255, 255, 0.95);
}


/* ── Google SERP Preview: Realistic Desktop Simulation ── */
/* Shared Preview Pieces */
.google-favicon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.google-favicon-container i.global-fallback-icon {
    font-size: 14px;
    color: #4d5156;
}

.google-site-name-text {
    font-size: 14px;
    color: var(--serp-preview-site-name);
    line-height: normal;
    white-space: nowrap;
}

.google-site-name-text:empty:before {
    content: attr(data-placeholder);
    opacity: 0.5;
    font-style: italic;
}

.google-url-link-row {
    margin-bottom: 4px;
}

.serp-url-text {
    color: var(--serp-preview-url);
    font-size: 12px;
    line-height: normal;
}

.serp-title-link {
    color: var(--serp-preview-title);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}



.serp-description-text {
    color: var(--serp-preview-description);
    font-size: 14px;
    line-height: 1.58;
    margin-top: 4px;
}


/* Validation Summary */
/* Result Grid */
/* Shared Result Cards And Tables */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.result-item {
    background: var(--home-tool-card-bg);
    border: var(--home-tool-card-border);
    border-radius: 8px;
    padding: 1.25rem;
    transition: var(--transition);
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.result-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.result-value {
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    word-break: break-word;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.tag-length {
    color: var(--primary-medium);
    background: rgba(106, 156, 137, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.tag-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-valid {
    background: rgba(74, 222, 128, 0.15);
    color: #16a34a;
}

.status-warning {
    background: rgba(234, 179, 8, 0.15);
    color: #ca8a04;
}

.status-error {
    background: rgba(248, 113, 113, 0.15);
    color: #dc2626;
}

.status-none {
    background: rgba(148, 163, 184, 0.15);
    color: #16a34a;
}

/* Result Tables */
.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--home-tool-card-bg);
    border: var(--home-tool-card-border);
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    /* background: var(--section-header-gradient);*/
    color: white;
}

.table-header .table-cell {
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.table-row {
    border-bottom: 1px solid var(--dropdown-divider);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 1rem 1.5rem;
    text-align: left;
    color: var(--primary-medium);
}

.table-responsive {
    width: 100%;
}

@media (max-width: 768px) {

    .result-table,
    .result-table tbody,
    .result-table tr {
        display: block;
        width: 100%;
    }

    .result-table thead {
        display: none;
    }

    .result-table {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .result-table tr.table-row {
        margin-bottom: 1.5rem;
        background: var(--home-tool-card-bg);
        border: var(--home-tool-card-border);
        border-radius: 8px;
        overflow: hidden;
    }

    .result-table td.table-cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem !important;
        border-bottom: 1px solid var(--dropdown-divider);
        text-align: right;
    }

    .result-table td.table-cell:last-child {
        border-bottom: none;
    }

    /* Feature Heading (first cell) */
    .result-table td.table-cell:first-child {
        background: rgba(106, 156, 137, 0.06);
        font-size: 1.05rem;
        justify-content: center;
        text-align: center;
        color: var(--primary-color);
        border-bottom: 1px solid rgba(106, 156, 137, 0.15);
    }

    .result-table td.table-cell:not(:first-child)::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 1rem;
        color: var(--dark-text);
        text-align: left;
    }
}

/* ── Social Previews ─────────────────────────────────── */
/* Facebook card */
/* Social Preview Cards */
.fb-card {

    border-radius: 8px;
    overflow: hidden;

    background: var(--serp-preview-bg);
}

.fb-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.fb-placeholder {
    height: 200px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #bcc0c4;
    font-size: 1rem;
}

.fb-content {
    padding: 12px 14px;
}

.fb-domain {
    font-size: 12px;
    color: #606770;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 3px;
}

.fb-title {
    font-size: 16px;
    font-weight: 700;

    margin: 4px 0;
    line-height: 1.3;
}

.fb-desc {
    font-size: 14px;
    color: #606770;
    line-height: 1.4;
}

/* Twitter card */
.twitter-card {
    border: 1px solid #cfd9de;
    border-radius: 12px;
    overflow: hidden;
    max-width: 500px;
    background: #fff;
}

.twitter-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.twitter-content {
    padding: 12px 14px;
}

.twitter-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f1419;
    margin-bottom: 4px;
}

.twitter-desc {
    font-size: 14px;
    color: #536471;
    line-height: 1.4;
}

.twitter-domain {
    font-size: 13px;
    color: #536471;
    margin-top: 6px;
}


/* ── Live Meta Editor ─────────────────────────────────── */
/* Legacy Shared Editor Rules */
.meta-editor-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* ── Compact form groups: label left, input right ── */
/* Emphasize Primary Labels (SEO Title, Meta Description) */
.meta-editor .form-group:not(.url-fetch-row) label {
    color: var(--primary-dark);
    font-weight: 700;
    opacity: 1;
}

/* De-emphasize Page URL Label */
.url-fetch-row label {
    opacity: 0.6;
    font-weight: 500;
}

/* ── Inline URL Fetch Row ──────────────────────────────────────────── */
.url-input-wrapper:focus-within {
    border-color: var(--primary-medium);
    box-shadow: 0 0 0 3px rgba(106, 156, 137, 0.12);
    background: rgba(106, 156, 137, 0.04);
}

.inline-fetch-btn:hover {
    background: var(--primary-medium);
    color: #fff;
    box-shadow: 0 2px 8px rgba(106, 156, 137, 0.3);
}

.inline-fetch-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Generated Output Block ───────────────────────── */
.copy-button-group .btn-sm {
    padding: 5px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.meta-code-container {
    background: var(--meta-code-bg-color);
    border-radius: 8px;
    border: 1px solid rgba(0, 229, 160, 0.15);
    margin-top: 10px;
    overflow: hidden;
}

.meta-code-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}



#metaOutputCode {
    background: transparent;
    color: var(--dark-accent);
    padding: 16px 18px;
    border-radius: 0;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 80px;
    border: none;
    margin: 0;
}


/* Smaller copy button */
.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

/* ── Skeleton: Split Layout ──────────────────────────── */
/* Legacy Layout Foundations */
.tool-layout-container {
    max-width: 1540px !important;

}

.meta-edit-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.meta-preview-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.meta-editor-section {
    background: var(--benefit-bg);
    border: var(--home-tool-card-border);
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--tool-card-shadow);
}

.social-editor-section {
    box-shadow: none;
    border: 1px solid var(--social-card-border);
}

.meta-editor-section-header {
    padding: 1rem 1.5rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.meta-editor-section-header:hover {
    background: rgba(106, 156, 137, 0.08);
}

.meta-editor-section-header.no-toggle {
    cursor: default;
}

.meta-editor-section-header.no-toggle:hover {
    background: rgba(255, 255, 255, 0.03);
}

.meta-editor-section-content {
    padding: 0.65rem 1rem;
}


.toggle-icon {
    font-size: 0.9rem;
    color: var(--primary-medium);
    transition: var(--transition);
}





.google-site-name-text:empty:before {
    content: attr(data-placeholder);
    opacity: 0.5;
    font-style: italic;
}

.editable-field:empty:before {
    content: attr(data-placeholder);
    color: #aaa;
    opacity: 0.5;
    pointer-events: none;
    display: inline;
    font-style: italic;
}

.editable-field {
    cursor: text;
    transition: var(--transition);
    border-radius: 3px;
}

.editable-field:hover {
    background: rgba(106, 156, 137, 0.05);
    outline: 1px solid var(--primary-medium);
}

.editable-field:focus {
    background: rgba(106, 156, 137, 0.1);
    outline: 2px solid var(--primary-medium);
}

/* Word-level Diff Highlighting */

/* Compare Mode Styling */
/* Compare Mode Controls */
.original-column {
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

.original-column:hover {
    opacity: 0.85;
}

/* Custom Toggle Switch for Compare Mode */
.compare-toggle-container.disabled {
    opacity: 0.65;
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--dropdown-divider);
    cursor: not-allowed;
}

.compare-toggle-container.disabled .compare-slider {
    cursor: not-allowed;
}



.compare-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-accent);
}

.compare-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.compare-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.compare-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--tool-card-bg);
    transition: .4s;
    border: 1px solid var(--dropdown-divider);
}

.compare-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: var(--dark-accent);
    transition: .4s;
}

input:checked+.compare-slider {

    border-color: var(--primary-dark);
}

input:checked+.compare-slider:before {
    transform: translateX(14px);
    background-color: var(--primary-dark);
}

.compare-slider.round {
    border-radius: 34px;
}

.compare-slider.round:before {
    border-radius: 50%;
}

/* ── Responsiveness ────────────────────────────────────────── */


/* Remove dashed underlines from social media previews */
.fb-card [contenteditable],
.twitter-card [contenteditable] {
    border-bottom: none !important;
}

/* ── SERP visual truncation (mirrors Google rendering) ─────────────── */
/* SERP Truncation */
#serpTitle {

    max-width: 100%;
    display: block;
}

#serpDescription {
    min-height: 85px !important;
    overflow: hidden;
    max-width: 100%;
}

/* ── Inline field validation ───────────────────────────────────────── */
/* Validation Helpers */
.field-validation:empty {
    display: none;
}

.fv-status {
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-validation.fv-ok .fv-status {
    color: #16a34a;
}

.field-validation.fv-warn .fv-status {
    color: #d97706;
}

.field-validation.fv-error .fv-status {
    color: #dc2626;
}

/* ── Image URL input row ───────────────────────────────────────────── */
/* Image URL input — matches meta-editor-input theme */
/* Shared Placeholder Styling */
.img-url-input::placeholder {
    color: var(--light-text);
    opacity: 0.55;
    font-style: italic;
}

/* ── Preview Tab Navigation ─────────────────────────────── */
.preview-tab-btn:hover {
    color: var(--primary-medium);
    background: rgba(106, 156, 137, 0.05);
}

/* Fade-in when a panel becomes visible */
@keyframes previewFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Diff Highlighting ───────────────────────────────────── */
/* Diff Highlighting */
.diff-added {
    background: rgba(22, 163, 74, 0.12);
    border-radius: 3px;
    padding: 0 2px;
    text-decoration: underline;
    text-decoration-color: rgba(22, 163, 74, 0.45);
    text-underline-offset: 2px;
}

.diff-removed {
    background: rgba(220, 38, 38, 0.07);
    color: #dc2626;
    text-decoration: line-through;
    opacity: 0.6;
    border-radius: 3px;
    padding: 0 2px;
}

/* ── Inline Edit UX — editing state ─────────────────────── */

/* Smooth transition on the preview box itself */
/* Active editing field glow (uses theme primary color) */
.optimized-column [contenteditable].is-editing {
    border-bottom: 2px solid var(--primary-medium) !important;
    background: rgba(106, 156, 137, 0.06) !important;
    box-shadow: 0 2px 8px rgba(106, 156, 137, 0.15);
    border-radius: 3px;
    outline: none;
}


/* Hint tooltip shown above the SERP box while editing */
/* ── SEO Section Containers (Inherited Pattern) ── */
/* SEO Content Blocks */
.seo-section {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;

}

.seo-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;

    border-bottom: 1px solid var(--dropdown-divider);
}

.seo-section-header .section-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.seo-section-content {
    padding: 1.5rem;
}

/* ── Specific SEO Layout Enhancements ── */
.seo-section-desc {
    font-size: 1.05rem;
    color: var(--primary-medium);
    margin-bottom: 1.5rem;
}

.feature-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.description-text {
    font-size: 1.05rem;
}

.table-col-highlight {
    background-color: rgba(106, 156, 137, 0.06);
}

.th-serp-accent {
    font-size: 1.1rem;
}

.table-row-padded .table-cell {
    padding: 1.25rem 1.5rem !important;
}

/* SERP Preview Tool v2 sample-aligned UI
   Reuses existing functionality while matching the sample structure
   with site theme colors and shared tokens. */

/* V2 Hero And Shell */
.tool-page {
    overflow-x: clip;
    padding-top: 0;
}

.tool-section {
    max-width: none !important;
    width: 100%;
    gap: 0;
    overflow: visible;
}

.serp2-hero {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin: -40px 0 2rem calc(50% - 50vw);
    padding: 8.5rem 1.25rem 4.5rem;
    border-radius: 0;
    background: transparent;
    text-align: center;
    box-shadow: none;
}

.serp2-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--serp2-hero-gradient);
    z-index: 0;
}

.serp2-hero-bg {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0.32;
    filter: blur(56px);
}

.serp2-hero-bg-1 {
    top: 1rem;
    left: 18%;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 60%);
}

.serp2-hero-bg-2 {
    right: 10%;
    bottom: 0.5rem;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 60%);
}

.serp2-hero-content {
    position: relative;
    z-index: 1;
    max-width: 54rem;
    margin: 0 auto;
}

.serp2-hero-subtitle {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.serp2-hero-title {
    margin-bottom: 1rem;
    background: none;
    color: #fff;
    -webkit-text-fill-color: initial;
    justify-content: center;
}

.serp2-hero-title .tool-title-text {
    color: #fff;
}

.serp2-hero .token-display-wrapper {
    position: static;
    transform: none;
}

.serp2-hero-desc {
    max-width: 42rem;
    margin: 0 auto 1.8rem;
    color: rgba(255, 255, 255, 0.76);
}

.serp2-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.serp2-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.6rem;
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.serp2-btn:hover {
    transform: translateY(-2px);
}

.serp2-btn-primary {
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-dark);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.serp2-btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.26);
    opacity: 0.88;
}

.serp2-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.72);
    opacity: 1;
}

.tool-results {
    margin-top: 0;
    padding: 1.5rem;
}



/* V2 Main Workspace */
.meta-main-layout {
    gap: 2rem;
    align-items: flex-start;
    max-width: 64rem;
    margin: -5.5rem auto 0;
    padding: 1.8rem 2.2rem 2.2rem;
    border-radius: 24px;
    background: var(--meta-main-layout-bg);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
    position: relative;
    z-index: 2;
}

.serp-google-shell {
    margin-bottom: 1.5rem;
}

.serp-google-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
}

.serp-google-logo {
    font-size: 1.55rem;
    font-weight: 700;
    white-space: nowrap;
}

.serp-search-shell {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    min-height: 46px;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    color: #64748b;
    background: var(--contact-input-bg);
}

.serp-google-top-tabs {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.7rem;
    margin-bottom: 1.6rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.85rem;
    color: #64748b;
}

.serp-google-top-tabs span {
    padding-bottom: 0.45rem;
}

.serp-google-top-tabs .active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

.serp-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 2rem;
}

/* V2 Editor */
.meta-editor {
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.meta-edit-panel .meta-editor>.meta-editor-section {
    padding: 0;
    background: transparent;
    border: none;
}

.meta-edit-panel .meta-editor>.meta-editor-section>.meta-editor-section-content {
    display: block !important;
    padding: 0;
}

.meta-edit-panel .meta-editor>.meta-editor-section>.meta-editor-section-header {
    display: none;
}

.meta-editor .form-group,
.compact-group {
    display: block;
    margin-bottom: 1.15rem;
}

.meta-editor .form-group label,
.compact-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    padding-top: 0;
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 700;
    user-select: none;
}

.meta-editor-input,
.img-url-input {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--contact-input-bg);
    color: var(--dark-text);
    box-sizing: border-box;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.meta-editor-input:focus {
    outline: none;
    border-color: var(--primary-medium);
    border-left-color: var(--primary-medium);
    box-shadow: 0 0 0 3px rgba(106, 156, 137, 0.12);
    background: rgba(106, 156, 137, 0.04);
}



.url-fetch-row {
    margin-bottom: 1.15rem;
}

.url-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--contact-input-bg);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.url-input-wrapper:hover {
    background: rgba(106, 156, 137, 0.05);
    outline: 1px solid var(--primary-medium);
}

.url-editable {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0.55rem 0.7rem;
    background: transparent !important;
}

.url-editable:hover {
    background: transparent !important;
    outline: none;
}

.inline-fetch-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 0.72rem 1rem;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    margin-left: 5px;
}

.field-validation {
    display: flex;
    align-items: center;
    margin-top: 0.45rem;
    justify-content: space-between;
    align-items: baseline;
}

.fv-metrics {
    font-size: 0.72rem;
    opacity: 0.6;
    margin-top: 0.3rem;
}

.char-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.06);
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
}

.char-count-badge.badge-ok {
    background: rgba(74, 222, 128, 0.16);
    color: #15803d;
}

.char-count-badge.badge-warn {
    background: rgba(234, 179, 8, 0.16);
    color: #b45309;
}

.char-count-badge.badge-error {
    background: rgba(248, 113, 113, 0.16);
    color: #b91c1c;
}

/* V2 Preview Controls */
.preview-tabs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.preview-tabs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: -1px;
    z-index: 10;
    padding-top: 8px;
}

.preview-tab-btn {
    padding: 0.35rem 0.8rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-tab-btn.active {
    background: rgba(106, 156, 137, 0.16);
    color: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-bottom: none;
    z-index: 12;
}

.preview-actions {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 4px 0;
    margin-left: auto;
}

.compare-toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #64748b;
    background: var(--background-dark);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid var(--dropdown-divider);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.split-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 25px;
    width: 100%;
}

.single-preview-active .split-container {
    grid-template-columns: 1fr;
}

.meta-preview-panel:not(.single-preview-active) .split-container {
    grid-template-columns: 1fr 1fr;
}

/* V2 Preview Panels */
.column {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
    background: var(--serp-preview-bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--tool-card-shadow);
}

.column h3,
.preview-context-hint {
    display: none;
}



.google-serp-preview {
    max-width: none;
    margin: 0;
    font-family: arial, sans-serif;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.google-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.35rem;
}

.google-favicon-container {
    width: 30px;
    height: 30px;
    background: #eef2f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}


.copy-button-group {
    display: flex;
    gap: 6px;

}



.generated-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    margin-top: 1.35rem;
}

.serp-social-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.2rem;
}


.serp-social-panels .toggle-icon {
    color: var(--primary-medium);
}

/* V2 Output And Content Cards */


.serp-benefit-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.serp-benefit-card {
    background: var(--home-tool-card-bg);
    border: 1px solid var(--social-card-border);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.serp-benefit-card-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 700;
}

.serp-benefit-card-desc {
    margin: 0;
    color: var(--dark-text);
    font-size: 0.98rem;
    line-height: 1.65;
}





.tag-status-prominent {
    font-weight: 700;
    background: rgba(106, 156, 137, 0.16);
    color: var(--tag-status-prominent-color);
    border: 1px solid rgba(22, 66, 60, 0.12);
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

.serp-icon-box {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--primary-color);
    color: white;
    flex-shrink: 0;
}

.best-practices-grid {
    gap: 1.35rem;
}

.best-practice-card {
    padding: 1.75rem !important;
    border-radius: 20px;
    border: var(--benefit-card-border);
    background: var(--home-tool-card-bg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.best-practice-card .result-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem !important;
    color: var(--primary-light);
    font-size: 1.02rem;
    line-height: 1.45;
    font-weight: 700;
}

.best-practice-card .result-label i {
    width: 2.3rem;
    height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: var(--primary-color);
    color: white !important;
    flex: 0 0 2.3rem;
    margin-right: 0 !important;
}

.best-practice-card .description-text {
    margin: 0;
    color: var(--dark-accent) !important;
    font-size: 0.97rem;
    line-height: 1.75;
}

.best-practice-card .description-text strong,
.best-practice-card .description-text .text-dark {
    color: var(--primary-dark) !important;
    font-weight: 700;
}


/* V2 Responsive Overrides */
@media (max-width: 991px) {
    .meta-main-layout {
        padding: 1.25rem;
    }

    .serp-main-grid,
    .meta-preview-panel:not(.single-preview-active) .split-container,
    .serp-social-panels,
    .serp-benefit-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .serp2-hero {
        margin-top: -40px;
        padding: 7.5rem 1rem 3.25rem;
        border-radius: 0;
    }

    .serp2-hero-title {
        font-size: 2.1rem;
        gap: 0.8rem;
    }

    .meta-main-layout {
        margin-top: -1.4rem;
        padding: 1rem;
        border-radius: 18px;
    }

    .serp-google-bar,
    .preview-tabs-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .preview-actions {
        margin-left: 0;
    }

    .serp-search-shell {
        width: 100%;
    }

    .serp-google-top-tabs {
        gap: 0.75rem;
        overflow-x: auto;
        white-space: nowrap;
    }
}