/**
 * AutoSocial ISV
 * Main Stylesheet
 *
 * @package AutoSocial\ISV
 * @since 2.0.0
 */

/* Variables */




/* Result Section */
.simulador-isv-result-section {
    position: sticky;
    top: 1rem;
}

.simulador-isv-result-card {
    background: var(--autosocial-card);
    border: 1px solid var(--autosocial-border);
    overflow: hidden;
}

.simulador-isv-result-panel {
    animation: isv-result-fade-in 0.35s ease-out;
}

@keyframes isv-result-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.simulador-isv-result-panel__title {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 600;
    color: var(--autosocial-text);
    margin: 0 0 clamp(1rem, 2vw, 1.5rem);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--autosocial-border);
}

.simulador-isv-result-panel__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    background: var(--autosocial-card);
    border: 1px solid var(--autosocial-border);
    border-radius: 12px;
    box-shadow: var(--autosocial-shadow);
}

.simulador-isv-result-panel__hero-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--autosocial-text-muted);
    margin-bottom: 0.75rem;
}

.simulador-isv-result-panel__hero-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--autosocial-red);
}

.simulador-isv-result-panel__breakdown {
    margin-bottom: 1.5rem;
}

.simulador-isv-result-panel__breakdown-title {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--autosocial-text-muted);
    margin: 0 0 1rem;
}

.simulador-isv-result-panel__rows {
    margin: 0;
    padding: 0;
    border: 1px solid var(--autosocial-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--autosocial-card);
}

.simulador-isv-result-panel__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1rem, 2vw, 1.25rem);
    border-bottom: 1px solid var(--autosocial-border);
}

.simulador-isv-result-panel__row:last-child {
    border-bottom: none;
}

.simulador-isv-result-panel__row-label {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--autosocial-text);
}

.simulador-isv-result-panel__row-value {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--autosocial-text);
    text-align: right;
    white-space: nowrap;
}

.simulador-isv-result-panel__row-value.is-reduction {
    color: var(--autosocial-red);
}

.simulador-isv-result-panel__row-value.is-reduction::before {
    content: 'âˆ’';
}

.simulador-isv-result-panel__final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    background: var(--autosocial-card);
    border: 2px solid var(--autosocial-red);
    border-radius: 12px;
    box-shadow: var(--autosocial-shadow);
}

.simulador-isv-result-panel__final-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--autosocial-text);
}

.simulador-isv-result-panel__final-value {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--autosocial-red);
}

.simulador-isv-disclaimer {
    font-size: clamp(0.75rem, 1.2vw, 0.8125rem);
    line-height: 1.5;
    color: var(--autosocial-text-muted);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.25rem);
    background: var(--autosocial-bg);
    border-radius: 10px;
    border-left: 3px solid var(--autosocial-red);
}

/* Empty State */
.simulador-isv-empty-result {
    text-align: center;
    padding: 3rem 2rem;
}

.simulador-isv-empty-icon svg {
    width: 80px;
    height: 80px;
    stroke: var(--autosocial-red-light);
    margin-bottom: 1.5rem;
}

.simulador-isv-empty-result h2 {
    font-size: 1.5rem;
    color: var(--autosocial-red);
    margin-bottom: 0.75rem;
}

.simulador-isv-empty-result p {
    color: var(--autosocial-text-muted);
    margin-bottom: 1.5rem;
}

.simulador-isv-info-list {
    list-style: none;
    text-align: left;
    display: inline-block;
    padding: 0;
    margin: 0;
}

.simulador-isv-info-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--autosocial-text-muted);
    font-size: 0.9rem;
}

.simulador-isv-info-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--autosocial-green);
    font-weight: 700;
}

/* Info Section */
.simulador-isv-info-section {
    margin-top: 2rem;
}

.simulador-isv-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.simulador-isv-table-info h3 {
    font-size: 1rem;
    color: var(--autosocial-red);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--autosocial-border);
}

.simulador-isv-table-info table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.simulador-isv-table-info th,
.simulador-isv-table-info td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--autosocial-border);
}

.simulador-isv-table-info th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--autosocial-text);
}

.simulador-isv-table-info td {
    color: var(--autosocial-text-muted);
}

.simulador-isv-discount-grid {
    display: grid;
    gap: 0.5rem;
}

.simulador-isv-discount-grid>div {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.85rem;
}

.simulador-isv-discount-grid span:first-child {
    color: var(--autosocial-text-muted);
}

.simulador-isv-discount-grid span:last-child {
    font-weight: 600;
    color: var(--autosocial-green);
}

.simulador-isv-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simulador-isv-benefits-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--autosocial-border);
    font-size: 0.85rem;
    color: var(--autosocial-text-muted);
}

.simulador-isv-benefits-list li:last-child {
    border-bottom: none;
}

.simulador-isv-benefits-list strong {
    color: var(--autosocial-red);
}

/* Footer */
.simulador-isv-footer {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 2rem;
}

.simulador-isv-footer p {
    font-size: 0.85rem;
    color: var(--autosocial-text-muted);
    margin-bottom: 0.5rem;
}

.simulador-isv-footer p:last-child {
    margin-bottom: 0;
}

.simulador-isv-source a {
    color: var(--autosocial-red);
    text-decoration: none;
}

.simulador-isv-source a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .simulador-isv-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Vehicle Type Selector (Segmented Tabs)
   ========================================================================== */

.isv-type-selector {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--autosocial-bg);
    border-radius: 12px;
    padding: 6px;
    gap: 6px;
    margin-bottom: 2rem;
    width: 80%;
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    box-sizing: border-box;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

.isv-type-selector::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari/Webkit */
}

/* Tab Segment Button */
.isv-vehicle-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0%;
    min-width: max-content;
    padding: 0.8rem 1.2rem;
    background: #f1f3f5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--autosocial-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    white-space: nowrap;
}

.isv-vehicle-tab:hover {
    color: var(--autosocial-red);
}

.isv-vehicle-tab:focus-visible {
    box-shadow: 0 0 0 2px var(--autosocial-red-light);
}

/* Active Segment State */
.isv-vehicle-tab.isv-vehicle-tab--active {
    background-color: var(--autosocial-card);
    color: var(--autosocial-red);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Icon (only visible when tab is active) */
.isv-vehicle-tab__icon {
    display: none;
    /* Controlled via active class */
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 0.6rem;
    flex-shrink: 0;
}

.isv-vehicle-tab__icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--autosocial-red);
    stroke-width: 1.8;
}

.isv-vehicle-tab--active .isv-vehicle-tab__icon {
    display: inline-flex;
}

/* Title text size */
.isv-vehicle-tab__title {
    line-height: 1;
}

/* Animate active tab entry slightly */
@keyframes tab-active-pulse {
    0% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

.isv-vehicle-tab--active {
    animation: tab-active-pulse 0.2s ease-out;
}

/* ============================================================
   TASK-009: Live Summary Card
   ============================================================ */

.simulador-isv-summary-card {
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--autosocial-red);
    transition: box-shadow 0.3s ease;
}

.isv-summary-list {
    margin: 0;
    padding: 0;
}

.isv-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--autosocial-border);
    transition: background-color 0.2s ease;
}

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

.isv-summary-row:hover {
    background-color: #FA2B2D;
}

.isv-summary-label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--autosocial-text-muted);
}

.isv-summary-value {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--autosocial-text-muted);
    text-align: right;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.isv-summary-value.has-value {
    color: var(--autosocial-text);
}

.isv-summary-empty {
    text-align: center;
    font-size: 0.85rem;
    color: var(--autosocial-text-muted);
    font-style: italic;
    padding: 1rem 0 0.5rem;
    margin: 0;
}

.isv-summary-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: #FA2B2D;
    color: var(--autosocial-red);
}

/* ============================================================
   TASK-010: Enhanced Loading State
   ============================================================ */

.isv-submit-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    pointer-events: none;
}

.isv-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: isv-spinner-rotate 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes isv-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.isv-submit-text {
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================================
   TASK-010: Field Validation
   ============================================================ */

.isv-field-error input,
.isv-field-error select {
    border-color: var(--autosocial-error) !important;
    background-color: rgba(220, 53, 69, 0.04);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.isv-field-error-msg {
    display: block;
    font-size: 0.8rem;
    color: var(--autosocial-error);
    margin-top: 0.35rem;
    animation: isv-fade-in 0.25s ease-out;
}

.isv-inline-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    margin-top: 1rem;
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    color: var(--autosocial-error);
    font-size: 0.875rem;
    font-weight: 500;
}

.isv-inline-alert__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ============================================================
   TASK-010: Enhanced Empty State
   ============================================================ */

.isv-empty-premium .simulador-isv-empty-icon svg {
    width: 96px;
    height: 96px;
    stroke: var(--autosocial-red-light);
    animation: isv-float 3s ease-in-out infinite;
}

.isv-empty-premium h2 {
    font-size: 1.625rem;
    letter-spacing: -0.01em;
}

.isv-empty-premium p {
    font-size: 1rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================================
   TASK-010: Animations (CSS only, no libraries)
   ============================================================ */

@keyframes isv-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes isv-slide-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes isv-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.isv-animate-fade {
    animation: isv-fade-in 0.35s ease-out;
}

.isv-animate-slide {
    animation: isv-slide-up 0.35s ease-out;
}

/* ============================================================
   TASK-010: Result Actions (Copy + Print)
   ============================================================ */

.isv-result-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--autosocial-border);
}

.isv-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--autosocial-text-muted);
    background: transparent;
    border: 1.5px solid var(--autosocial-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.isv-action-btn:hover {
    color: var(--autosocial-red);
    border-color: var(--autosocial-red);
    background: rgba(255, 51, 51, 0.04);
}

.isv-action-btn:focus-visible {
    outline: 2px solid var(--autosocial-red);
    outline-offset: 2px;
}

.isv-action-btn:active {
    transform: scale(0.97);
}

.isv-action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.isv-copy-feedback {
    color: var(--autosocial-green);
    border-color: var(--autosocial-green);
    background: rgba(40, 167, 69, 0.06);
}

/* ============================================================
   TASK-010: Accessibility
   ============================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.simulador-isv-form-group input:focus-visible,
.simulador-isv-form-group select:focus-visible {
    outline: 2px solid var(--autosocial-red);
    outline-offset: 2px;
    border-color: var(--autosocial-red);
}



/* ============================================================
   TASK-010: Print Styles
   ============================================================ */

@media print {

    .simulador-isv-form-section,
    .simulador-isv-summary-card,
    .simulador-isv-empty-result,
    .isv-result-actions,
    .simulador-isv-info-section,
    .simulador-isv-footer,
    .isv-type-selector,


    .simulador-isv-container {
        padding: 0;
        max-width: 100%;
    }

    .simulador-isv-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .simulador-isv-result-section {
        position: static;
    }

    .simulador-isv-card,
    .simulador-isv-result-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .simulador-isv-result-panel__hero {
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .simulador-isv-result-panel__rows {
        border: 1px solid #ccc;
    }

    .simulador-isv-result-panel__final {
        border: 2px solid #333;
        box-shadow: none;
    }

    .simulador-isv-disclaimer {
        background: none;
        border-left: 2px solid #999;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   TASK-Sprint 4: Auto URL Import UI
   ========================================================================== */

.isv-import-section {
    background: #F1F3F5;
    border: 1px solid #F1F3F5;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.isv-import-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: #F1F3F5;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #6B7280;
    transition: background-color 0.2s ease;
}

.isv-import-toggle:hover,
.isv-import-toggle:focus-visible {
    background: #f1f5f9;
    outline: none;
}

.isv-import-toggle:focus-visible {
    box-shadow: inset 0 0 0 2px #F92A2D;
}

.isv-import-toggle svg {
    margin-right: 12px;
    color: #F92A2D;
}

.isv-import-chevron {
    margin-left: auto;
    font-size: 1.5rem;
    line-height: 1;
    color: #F1F3F5;
    transition: transform 0.3s ease;
}

.isv-import-toggle[aria-expanded="true"] .isv-import-chevron {
    transform: rotate(90deg);
}

.isv-import-body {
    padding: 20px;
    border-top: 1px solid #F1F3F5;
}

.isv-import-body[hidden] {
    display: none;
}

.isv-import-input-group {
    display: flex;
    gap: 12px;
}

#isv-import-url {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #F1F3F5;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#isv-import-url:focus {
    border-color: #F92A2D;
    box-shadow: 0 0 0 3px #F92A2D33;
    outline: none;
}

.isv-import-btn {
    background: #F92A2D;
    color: #F1F3F5;
    border: none;
    padding: 0 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.isv-import-btn:hover {
    background: #000000;
}

.isv-import-btn:disabled {
    background: #F1F3F5;
    cursor: not-allowed;
}

.isv-import-status {
    margin-top: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
}

.isv-import-status--loading {
    color: #64748b;
}

.isv-import-status--success {
    color: #16a34a;
}

.isv-import-status--error {
    color: #dc2626;
}

.isv-import-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: isv-spinner-rotate 0.75s linear infinite;
}

/* Sprint 5: Subcategories */
.isv-subcategories-container {
    margin-bottom: 1.5rem;
}

.isv-subcategory-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.isv-subcategory-btn {
    background: #f1f3f5;
    border: 1px solid var(--autosocial-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--autosocial-text);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.isv-subcategory-btn:hover {
    border-color: var(--autosocial-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.isv-subcategory-btn.isv-subcategory-btn--active {
    background: var(--autosocial-red);
    color: white;
    border-color: var(--autosocial-red);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.isv-subcategory-btn.isv-subcategory-btn--error {
    border-color: var(--autosocial-error);
    background-color: rgba(220, 53, 69, 0.04);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    color: var(--autosocial-error);
}

/* Sprint 5: Date Inputs */
.isv-date-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.isv-date-inputs input {
    width: 4rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: #f1f3f5;
}

.isv-date-inputs input#reg_yyyy {
    width: 5.5rem;
    background: #f1f3f5;
}

.isv-date-sep {
    font-size: 1.25rem;
    color: var(--autosocial-text-muted);
}

/* Sprint 5: Segmented Controls */








/* =======================================================
   SPRINT 6 - History and Action Buttons
   ======================================================= */
.isv-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--autosocial-border);
}

.isv-action-btn {
    flex: 1 1 auto;
    text-align: center;
    background: var(--simulador-isv-bg-soft);
    color: var(--autosocial-red);
    border: 1px solid var(--autosocial-border);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.isv-action-btn:hover {
    background: var(--autosocial-red);
    color: white;
    border-color: var(--autosocial-red);
}

.isv-history-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--autosocial-red);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s;
}

.isv-history-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 95, 122, 0.4);
}

.isv-history-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.isv-history-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--autosocial-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.isv-history-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--autosocial-text-dark);
}

.isv-history-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--autosocial-text);
}

.isv-history-list {
    padding: 15px 20px;
    overflow-y: auto;
}

.isv-history-item {
    padding: 12px;
    border: 1px solid var(--autosocial-border);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.isv-history-actions button {
    margin-left: 8px;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--autosocial-red);
    background: transparent;
    color: var(--autosocial-red);
    cursor: pointer;
}

.isv-history-actions button.isv-hist-del {
    border-color: #dc3545;
    color: #dc3545;
}

.isv-history-actions button:hover {
    background: var(--simulador-isv-bg-soft);
}

/* =======================================================
   TOAST NOTIFICATIONS
   ======================================================= */
.isv-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.isv-toast {
    background: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.isv-toast.isv-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.isv-toast--success {
    border-left: 4px solid #28a745;
    color: #1e7e34;
}

.isv-toast--error {
    border-left: 4px solid #dc3545;
    color: #bd2130;
}

.isv-toast--warning {
    border-left: 4px solid #ffc107;
    color: #d39e00;
}

.isv-toast--info {
    border-left: 4px solid #17a2b8;
    color: #117a8b;
}

/* ==========================================================================
   SPRINT 6.2 & 6.3 - PREMIUM IMPORT EXPERIENCE
   ========================================================================== */

/* Premium Preview Card */
.isv-import-preview-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--autosocial-border);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.isv-import-preview-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.isv-import-preview-image {
    width: 100%;
    height: 200px;
    background-color: #f1f3f5;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.isv-import-preview-image-fallback {
    width: 48px;
    height: 48px;
    color: #ced4da;
}

.isv-import-preview-content {
    padding: clamp(16px, 3vw, 24px);
    flex: 1;
    position: relative;
}

.isv-import-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(12px, 2vw, 16px);
    gap: clamp(12px, 2vw, 16px);
}

.isv-import-preview-title {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 600;
    color: var(--autosocial-text);
    margin: 0 0 clamp(4px, 1vw, 8px) 0;
    line-height: 1.3;
}

.isv-import-preview-price {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: var(--autosocial-red);
    white-space: nowrap;
}

/* Provider Badge */
.isv-provider-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #166534;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
}

/* Modern Chips */
.isv-import-preview-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.isv-import-preview-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--autosocial-text);
    background: #f1f3f5;
    padding: 6px 12px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.isv-import-preview-spec.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Confidence Score */
.isv-import-quality {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 4px solid transparent;
}

.isv-import-quality.is-high {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.isv-import-quality.is-mid {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.isv-import-quality.is-low {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.isv-import-quality-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--autosocial-text);
}

.isv-import-quality-desc {
    font-size: 13px;
    color: var(--autosocial-text-light);
}

/* Success Banner */
.isv-import-success-banner {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: #22c55e;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 1;
    transition: opacity 1s ease;
}

.isv-import-success-banner.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Buttons */
.isv-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--autosocial-red);
    background: transparent;
    border: 1px solid var(--autosocial-red);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.isv-btn-outline:hover {
    background: var(--autosocial-red);
    color: #ffffff;
}

/* Import Details Accordion */
.isv-import-details {
    border-top: 1px solid var(--autosocial-border);
}

.isv-import-details-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--autosocial-text-light);
    cursor: pointer;
}

.isv-import-details-trigger:hover {
    background: #f8f9fa;
}

.isv-import-details-panel {
    padding: 0 20px 16px;
    font-size: 13px;
    color: var(--autosocial-text-light);
}

.isv-import-details-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed var(--autosocial-border);
}

.isv-import-details-row:last-child {
    border-bottom: none;
}

/* Skeletons */
@keyframes skeleton-pulse {
    0% {
        background-color: #f1f3f5;
    }

    50% {
        background-color: #e9ecef;
    }

    100% {
        background-color: #f1f3f5;
    }
}

.isv-skeleton {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.isv-skeleton-img {
    width: 100%;
    height: 100%;
}

.isv-skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 8px;
}

.isv-skeleton-text {
    height: 16px;
    width: 40%;
    margin-bottom: 16px;
}

.isv-skeleton-chip {
    height: 32px;
    width: 80px;
    border-radius: 16px;
}

.isv-skeleton-box {
    height: 60px;
    width: 100%;
    border-radius: 8px;
}

/* Tooltips */
.isv-tooltip-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.isv-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #1f2937;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 50;
}

.isv-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.isv-tooltip.is-warning {
    background: #f59e0b;
    color: #fff;
}

.isv-tooltip.is-warning::after {
    border-top-color: #f59e0b;
}

.simulador-isv-form-control:focus+.isv-tooltip,
.simulador-isv-form-control:hover+.isv-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Field Highlight Animation */
@keyframes highlight-fade {
    0% {
        background-color: #dcfce7;
        border-color: #22c55e;
    }

    80% {
        background-color: #dcfce7;
        border-color: #22c55e;
    }

    100% {
        background-color: var(--simulador-isv-input-bg);
        border-color: var(--autosocial-border);
    }
}

.isv-imported-highlight {
    animation: highlight-fade 2s ease-out forwards !important;
}

/* Desktop Side-by-side */
@media (min-width: 768px) {
    .isv-import-preview-card {
        flex-direction: row;
    }

    .isv-import-preview-image {
        width: 280px;
        height: auto;
        border-right: 1px solid var(--autosocial-border);
    }
}

/* ==========================================================================
   SPRINT 6.5 â€” PREMIUM UI POLISH (SINGLE SOURCE OF TRUTH)
   ========================================================================== */

/* Highlight Animation */
@keyframes isv-result-highlight-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
        border-color: transparent;
    }

    50% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
        border-color: #22c55e;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        border-color: transparent;
    }
}

.isv-result-highlight {
    animation: isv-result-highlight-glow 1.5s ease-out forwards;
    border: 2px solid transparent;
    border-radius: 12px;
}

/* ------------------------------------------------------------------
   SEGMENTED CONTROLS (unified for Origin, State, Fuel, Homologation, Propulsion)
   ------------------------------------------------------------------ */








/* ------------------------------------------------------------------
   PREMIUM CALCULATE BUTTON
   ------------------------------------------------------------------ */
@keyframes isv-btn-shine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.isv-btn-premium {
    background: var(--autosocial-red);
    color: #fff !important;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.2s ease;
    cursor: pointer;
}

.isv-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: #d62828;
}

.isv-btn-premium:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.isv-btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.15) 40%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.15) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: isv-btn-shine 3s ease-in-out infinite;
}

.isv-btn-success-anim {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4) !important;
}

/* ------------------------------------------------------------------
   SIDEBAR CARDS (above Result Panel)
   ------------------------------------------------------------------ */
.isv-sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.isv-sidebar-card {
    background: #fff;
    border: 1px solid var(--autosocial-border);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.5rem);
    box-shadow: var(--autosocial-shadow);
    transition: box-shadow 0.3s ease;
}

.isv-sidebar-card:hover {
    box-shadow: var(--autosocial-shadow-lg);
}

.isv-sidebar-card--premium {
    background: #fff;
    border: 1px solid var(--autosocial-border);
    color: #fff;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.isv-sidebar-card--premium:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.isv-sidebar-card__title {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 700;
    margin: 0 0 clamp(0.5rem, 1vw, 0.75rem) 0;
    line-height: 1.3;
}

.isv-sidebar-card--premium .isv-sidebar-card__title {
    color: #000000e3;
}

.isv-sidebar-card__text {
    font-size: clamp(0.85rem, 1.2vw, 0.9rem);
    line-height: 1.6;
    margin: 0 0 clamp(1rem, 2vw, 1.25rem) 0;
    color: var(--autosocial-text-muted, #6b7280);
}

.isv-sidebar-card--premium .isv-sidebar-card__text {
    color: #9ca3af;
}

.isv-sidebar-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--autosocial-red);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.isv-sidebar-card__link:hover {
    gap: 8px;
    text-decoration: none;
}

.isv-sidebar-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    padding: 0 clamp(1rem, 2vw, 1.5rem);
    height: clamp(44px, 5vw, 48px);
    border-radius: 12px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.isv-btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.isv-btn-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* ------------------------------------------------------------------
   PREMIUM RESULT MODAL â€” BACKDROP & SHELL
   ------------------------------------------------------------------ */
.isv-modal-open {
    overflow: hidden;
}

.isv-premium-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.isv-premium-modal-backdrop.is-visible {
    display: flex;
}

.isv-premium-modal-backdrop.is-open {
    opacity: 1;
}

.isv-premium-modal {
    background: #fff;
    width: fit-content;
    max-width: 600px;
    max-height: 94vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    transform: scale(0.93) translateY(10px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.isv-premium-modal-backdrop.is-open .isv-premium-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close */
.isv-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--autosocial-text-muted, #6b7280);
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}

.isv-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: var(--autosocial-text);
}

/* ------------------------------------------------------------------
   MODAL â€” HERO
   ------------------------------------------------------------------ */
.isv-modal-hero {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa, #eef2ff);
    padding: clamp(20px, 3vw, 28px) clamp(16px, 3vw, 24px) clamp(16px, 2.5vw, 24px);
    text-align: center;
    border-bottom: 1px solid var(--autosocial-border);
    border-radius: 20px 20px 0 0;
}

.isv-modal-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
    border-radius: 20px 20px 0 0;
}

.isv-modal-hero-content {
    position: relative;
    z-index: 1;
}

.isv-modal-success {
    color: #166534;
    background: #dcfce7;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.isv-modal-title {
    font-size: clamp(1.1rem, 2.5vw, 20px);
    font-weight: 700;
    color: var(--autosocial-text);
    margin: 0 0 4px;
    line-height: 1.3;
}

.isv-modal-provider {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #166534;
    background: #dcfce7;
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 8px;
}

/* ------------------------------------------------------------------
   MODAL â€” BODY / TWO-COLUMN LAYOUT
   ------------------------------------------------------------------ */
.isv-modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* Summary Chips */
.isv-modal-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}

.isv-modal-summary-chip {
    background: #f1f3f5;
    color: var(--autosocial-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Columns */
.isv-modal-columns {
    display: flex;
    justify-content: center;
}

.isv-modal-col-right {
    width: 100%;
    padding: 0 28px;
    box-sizing: border-box;
}

/* Left column â€” Breakdown Grid */
.isv-modal-col-left {
    display: none !important;
}

/* ------------------------------------------------------------------
   MODAL â€” RIGHT COLUMN / PREMIUM DARK CARD
   ------------------------------------------------------------------ */
.isv-modal-premium-card {
    background: linear-gradient(160deg, #0f172a, #1e293b);
    border-radius: 16px;
    padding: 34px 30px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 0;
    width: calc(100% - 60px);
    max-width: none;
    margin: 0 auto;
    padding: 40px;
}

.isv-modal-premium-card-title {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 8px;
}

.isv-modal-total {
    font-size: 58px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.isv-modal-secondary-price {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 28px;
}

.isv-modal-secondary-price span {
    color: #e2e8f0;
    font-weight: 600;
}

/* CTA Buttons */
.isv-modal-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
}

.isv-modal-cta-btn {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 22px;
    font-size: 18px;
    border-radius: 14px;
    height: clamp(48px, 6vw, 56px);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.isv-modal-cta-primary {
    background: var(--autosocial-red) !important;
    background-color: var(--autosocial-red) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 51, 51, 0.3);
}

.isv-modal-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 51, 51, 0.4);
}

.isv-modal-cta-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.isv-modal-cta-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ------------------------------------------------------------------
   MODAL â€” FOOTER ACTIONS
   ------------------------------------------------------------------ */
.isv-modal-footer-actions {
    display: none !important;
}

/* ------------------------------------------------------------------
   RESPONSIVE â€” MODAL
   ------------------------------------------------------------------ */
@media (max-width: 860px) {
    .isv-modal-columns {
        grid-template-columns: 1fr;
    }

    .isv-modal-premium-card {
        position: static;
        order: -1;
        /* Put the premium card on top on tablet */
    }

    .isv-premium-modal {
        max-width: 560px;
    }
}

@media (max-width: 600px) {
    .isv-premium-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }

    .isv-modal-hero {
        border-radius: 16px 16px 0 0;
    }

    .isv-modal-body {
        padding: 20px 16px;
    }

    .isv-modal-grid {
        grid-template-columns: 1fr;
    }

    .isv-modal-total {
        font-size: 38px;
    }

    .isv-modal-footer-actions {
        padding: 14px 16px;
        border-radius: 0;
    }

    .isv-modal-footer-btn {
        flex: 1;
        min-width: 44%;
        justify-content: center;
    }

    .isv-modal-cta-btn {
        padding: 14px;
    }
}

/* Sprint 6.5.8: Premium CTA Banner */
.isv-premium-cta-banner {
    background: linear-gradient(135deg, var(--autosocial-red) 0%, #d62828 45%, #7f1d1d 100%);
    border-radius: 16px;
    /* MudÃ¡mos de 0 para 16px para ficar com cantos redondos */
    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);
    padding: clamp(20px, 3vw, 32px) clamp(28px, 4vw, 40px);
    margin-top: clamp(24px, 4vw, 40px);
    margin-bottom: clamp(24px, 4vw, 40px);

    /* O truque do 100vw foi removido e substituÃ­do por 100% normal */
    width: 100%;
    box-sizing: border-box;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
}

.isv-premium-cta-content {
    flex: 1 1 min(100%, 600px);
}

.isv-premium-cta-title {
    color: #ffffff;
    font-size: clamp(1.625rem, 4vw, 2.125rem);
    font-weight: 700;
    margin: 0 0 clamp(0.25rem, 1vw, 0.5rem) 0;
    line-height: 1.2;
}

.isv-premium-cta-desc {
    color: #ffffff;
    opacity: 0.85;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    margin: 0;
    line-height: 1.4;
    max-width: 600px;
}

.isv-premium-cta-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(12px, 2vw, 16px);
    align-items: center;
    flex-shrink: 0;
}

.isv-premium-cta-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--autosocial-red-light);
    color: #ffffff;
    padding: 0 clamp(1.5rem, 3vw, 2rem);
    height: clamp(44px, 5vw, 48px);
    border-radius: 999px;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    text-decoration: none;
    transition: background 0.25s ease;
    border: none;
}

.isv-premium-cta-btn-primary:hover {
    background: var(--autosocial-red);
    color: #ffffff;
    text-decoration: none;
}

.isv-premium-cta-btn-primary svg {
    flex-shrink: 0;
}

.isv-premium-cta-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffffff;
    padding: 0 clamp(1.5rem, 3vw, 2rem);
    height: clamp(44px, 5vw, 48px);
    border-radius: 999px;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    text-decoration: none;
    border: 1px solid #ffffff;
    transition: background 0.25s ease;
}

.isv-premium-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
}

/* Media queries eliminated for CTA Banner due to fluid flex-wrap and clamp */

/* ==========================================================================
   Premium Subcategory Rules Box
   ========================================================================== */
.isv-subcategory-rules-box {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    animation: isvFadeIn 0.3s ease-out;
}

.isv-rules-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: 12px 16px;
}

.isv-rules-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.isv-rules-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.isv-rule-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.isv-rule-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #64748b;
}

.isv-rule-application-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F92A2D;
    line-height: 1;
}

.isv-rules-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.isv-rules-list li {
    font-size: 0.875rem;
    color: #334155;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.isv-rules-list li svg {
    flex-shrink: 0;
    margin-right: 8px;
    margin-top: 2px;
    color: #10b981;
}

.isv-rule-legal-val {
    font-size: 0.875rem;
    color: #475569;
    font-style: italic;
}

/* ==========================================================================
   jQuery UI Datepicker Overrides (Modern & Elegant)
   ========================================================================== */

#reg_datepicker_trigger:hover {
    transform: scale(1.1);
}

.ui-datepicker {
    background: var(--autosocial-card) !important;
    border: 1px solid var(--autosocial-border) !important;
    border-radius: 12px !important;
    box-shadow: var(--autosocial-shadow-lg) !important;
    padding: 16px !important;
    font-family: inherit !important;
    width: 320px !important;
    max-width: 90vw !important;
    z-index: 9999 !important;
    animation: isvFadeIn 0.2s ease-out;
}

@keyframes isvFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.ui-datepicker .ui-datepicker-header {
    position: relative !important;
    padding: 4px 0 16px 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    color: var(--autosocial-text) !important;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute !important;
    top: 2px !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    background: var(--autosocial-bg) !important;
    border-radius: 8px !important;
    transition: background 0.2s, transform 0.1s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: #e5e7eb !important;
    transform: scale(1.05) !important;
}

.ui-datepicker .ui-datepicker-prev {
    left: 0 !important;
}

.ui-datepicker .ui-datepicker-next {
    right: 0 !important;
}

/* Hide default icons inside buttons */
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: block !important;
    text-indent: -99999px !important;
    overflow: hidden !important;
    position: relative !important;
    width: 10px !important;
    height: 10px !important;
    border-top: 2px solid var(--autosocial-text) !important;
    border-right: 2px solid var(--autosocial-text) !important;
    background: transparent !important;
    margin: 0 !important;
    left: auto !important;
    top: auto !important;
}

.ui-datepicker .ui-datepicker-prev span {
    transform: rotate(-135deg) !important;
    margin-left: 4px !important;
}

.ui-datepicker .ui-datepicker-next span {
    transform: rotate(45deg) !important;
    margin-right: 4px !important;
}

/* Select Dropdowns */
.ui-datepicker .ui-datepicker-title {
    margin: 0 40px !important;
    line-height: 32px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
}

.ui-datepicker .ui-datepicker-title select {
    background: var(--autosocial-card) !important;
    border: 1px solid var(--autosocial-border) !important;
    border-radius: 6px !important;
    padding: 4px 24px 4px 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--autosocial-text) !important;
    cursor: pointer !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px top 50%;
    background-size: 10px auto;
}

.ui-datepicker .ui-datepicker-title select:focus {
    border-color: var(--autosocial-red) !important;
}

/* Calendar Table */
.ui-datepicker table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 4px !important;
    margin: 0 !important;
}

.ui-datepicker th {
    padding: 8px 0 !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: var(--autosocial-text-muted) !important;
    border: 0 !important;
}

.ui-datepicker td {
    padding: 0 !important;
    border: 0 !important;
}

.ui-datepicker td span,
.ui-datepicker td a.ui-state-default {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--autosocial-text) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
    margin: 0 auto !important;
}

/* Day Hover */
.ui-datepicker td a.ui-state-default:hover {
    background: var(--autosocial-bg) !important;
    color: var(--autosocial-text) !important;
    transform: scale(1.05) !important;
}

/* Today */
.ui-datepicker td.ui-datepicker-today a.ui-state-default {
    background: transparent !important;
    border: 1px solid #e5e7eb !important;
    color: var(--autosocial-text) !important;
}

/* Selected */
.ui-datepicker td.ui-datepicker-current-day a.ui-state-active,
.ui-datepicker td.ui-datepicker-current-day a.ui-state-active:hover {
    background: var(--autosocial-red) !important;
    color: #fff !important;
    border-color: var(--autosocial-red) !important;
    box-shadow: 0 4px 10px rgba(250, 43, 45, 0.3) !important;
    transform: scale(1.05) !important;
}

/* Disabled */
.ui-datepicker td.ui-datepicker-unselectable span {
    color: #cbd5e1 !important;
    background: transparent !important;
}