.lr-container {
    max-width: 560px;
    margin: 24px auto;
    padding: 20px;
    border: 1px solid #dfe3eb;
    border-radius: 10px;
    background: #fff;
}

.lr-toggle-shell {
    max-width: 620px;
    margin: 14px auto;
}

.lr-toggle-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 auto 12px;
}

.lr-toggle-btn {
    border: 1px solid #cfd5e1;
    background: #f8fafc;
    color: #1f2937;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 180ms ease;
}

.lr-toggle-btn:hover {
    border-color: #93c5fd;
}

.lr-toggle-btn.is-active {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.22);
}

.lr-container h2,
.lr-stats h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.lr-group {
    margin-bottom: 12px;
}

.lr-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.lr-group label[for="lr_first_name"]::before { content: "👤 "; }
.lr-group label[for="lr_last_name"]::before { content: "🪪 "; }
.lr-group label[for="lr_ci"]::before { content: "🆔 "; }
.lr-group label[for="lr_passport"]::before { content: "🛂 "; }
.lr-group label[for="lr_province_code"]::before { content: "🗺️ "; }
.lr-group label[for="lr_municipality_code"]::before { content: "📍 "; }
.lr-group label[for="lr_country_code"]::before { content: "🌍 "; }
.lr-group label[for="lr_city"]::before { content: "🏙️ "; }
.lr-group label[for="lr_phone"]::before { content: "📱 "; }
.lr-group label[for="lr_email"]::before { content: "✉️ "; }
.lr-group label[for="lr_report_municipality_code"]::before { content: "📍 "; }
.lr-group label[for="lr_report_repressor_name"]::before { content: "🕵️ "; }
.lr-group label[for="lr_report_description"]::before { content: "📝 "; }
.lr-group label[for="lr_report_pin"]::before { content: "🔐 "; }
.lr-group label[for="lr_unsubscribe_first_name"]::before { content: "👤 "; }
.lr-group label[for="lr_unsubscribe_last_name"]::before { content: "🪪 "; }
.lr-group label[for="lr_unsubscribe_phone"]::before { content: "📱 "; }
.lr-group label[for="lr_unsubscribe_pin"]::before { content: "🔐 "; }

.lr-group input:not([type="radio"]):not([type="checkbox"]),
.lr-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd5e1;
    border-radius: 8px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.lr-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd5e1;
    border-radius: 8px;
}

.lr-group textarea {
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.lr-group input:not([type="radio"]):not([type="checkbox"]):focus,
.lr-group select:focus,
.lr-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}
    .lr-input.lr-invalid-field,
    .lr-select.lr-invalid-field,
    .lr-textarea.lr-invalid-field {
        border-color: #EF4444;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
    }
    .lr-input.lr-valid-field,
    .lr-select.lr-valid-field,
    .lr-textarea.lr-valid-field {
        border-color: #22C55E;
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
    }

.lr-invalid-field {
    border-color: #d92d20 !important;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.14) !important;
    animation: lrShake 180ms linear;
}

.lr-valid-field {
    border-color: #12b76a !important;
    box-shadow: 0 0 0 2px rgba(18, 183, 106, 0.13) !important;
}

.lr-radio-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.lr-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-weight: 500;
}

.lr-radio-option input[type="radio"],
.lr-group label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.lr-check-option {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 0;
}

.lr-check-option input[type="checkbox"] {
    flex: 0 0 auto;
    width: auto;
    margin: 2px 0 0;
    display: inline-block;
}

.lr-location-cuba,
.lr-location-exterior {
    padding: 10px;
    margin-bottom: 8px;
    border: 1px dashed #d4d9e4;
    border-radius: 8px;
}

.lr-inline-feedback {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ef9a9a;
    background: #fff1f1;
    color: #9b1c1c;
    font-weight: 600;
}

.lr-inline-feedback.is-success {
    border-color: #8fdfac;
    background: #ebf9ef;
    color: #115c2b;
}

.lr-inline-feedback.is-error {
    border-color: #ef9a9a;
    background: #fff1f1;
    color: #9b1c1c;
}

.lr-submit {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 11px 14px;
    cursor: pointer;
    color: #fff;
    background: #1d4ed8;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.lr-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.28);
}

.lr-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lr-form.is-submitting {
    opacity: 0.92;
}

.lr-form.is-submitting .lr-group,
.lr-form.is-submitting .lr-radio-row,
.lr-form.is-submitting .lr-check-option,
.lr-form.is-submitting .lr-location-cuba,
.lr-form.is-submitting .lr-location-exterior {
    pointer-events: none;
}

.lr-submit.is-loading {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
}

.lr-submit.is-loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    vertical-align: -2px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: lrSpin 650ms linear infinite;
}

.lr-pin-warning {
    display: flex;
    align-items: flex-start;
    gap: .45em;
    margin: .75rem 0 1rem;
    padding: .65rem .85rem;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    color: #92400e;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.lr-report-container {
    position: relative;
    overflow: hidden;
}

.lr-report-container::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1d4ed8, #06b6d4);
}

.lr-report-form {
    animation: lrFadeUp 320ms ease;
}

.lr-container .lr-form {
    animation: lrFadeUp 300ms ease;
}

.lr-report-form .lr-group {
    transition: transform 180ms ease;
}

.lr-report-form .lr-group:focus-within {
    transform: translateX(2px);
}

.lr-report-form .lr-submit {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.lr-message {
    margin-bottom: 14px;
    padding: 11px 12px;
    border-radius: 8px;
}

.lr-message.success {
    background: #ebf9ef;
    color: #115c2b;
}

.lr-message.error {
    background: #feecec;
    color: #8a1d1d;
}

.lr-pin {
    margin-top: 8px;
    font-weight: 700;
}

.lr-success-modal[hidden] {
    display: none;
}

.lr-success-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.lr-success-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.6);
    opacity: 0;
    animation: lrFadeIn 220ms ease forwards;
}

@keyframes lrSpin {
    to {
        transform: rotate(360deg);
    }
}

.lr-success-modal__dialog {
    position: relative;
    width: min(92vw, 440px);
    margin: 8vh auto;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dfe3eb;
    padding: 22px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
    transform: translateY(18px) scale(0.97);
    opacity: 0;
    animation: lrPopIn 260ms ease forwards;
}

.lr-success-modal__icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    background: #ebf9ef;
    color: #115c2b;
    font-size: 1.4rem;
    font-weight: 700;
}

.lr-success-modal__dialog h3 {
    margin: 0 0 4px;
}

.lr-success-modal__dialog p {
    margin: 0 0 14px;
    color: #475467;
}

.lr-pin-card {
    border: 1px solid #d6e5dc;
    background: #f5fbf7;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.lr-pin-card span {
    display: block;
    font-size: 0.9rem;
    color: #3d5a47;
}

.lr-pin-card strong {
    font-size: 1.65rem;
    letter-spacing: 0.08em;
    color: #115c2b;
}

.lr-copy-pin-btn,
.lr-success-close {
    width: 100%;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
}

.lr-copy-pin-btn {
    border: 1px solid #c9d3e6;
    background: #f8fbff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lr-copy-pin-btn__icon {
    font-size: 1rem;
}

.lr-success-close {
    border: none;
    color: #fff;
    background: #1d4ed8;
}

@keyframes lrFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes lrPopIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lr-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lr-stats {
    max-width: 1080px;
    margin: 20px auto;
    padding: 24px;
    border: 1px solid #dfe3eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.lr-stats-header {
    margin-bottom: 16px;
}

.lr-stats-header h3 {
    margin: 0 0 4px;
}

.lr-stats-header p {
    margin: 0;
    color: #667085;
}

.lr-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.lr-kpi-grid {
    margin-bottom: 12px;
}

.lr-stats-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.lr-stats-grid article {
    border: 1px solid #dfe3eb;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.lr-kpi-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    min-height: 108px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.lr-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.lr-stats-grid article span {
    display: block;
    margin-bottom: 6px;
    color: #4a5568;
}

.lr-stats-grid article strong {
    font-size: 1.2rem;
}

.lr-stats h4 {
    margin: 16px 0 8px;
}

.lr-stats-section {
    margin-top: 0;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    padding: 14px;
    background: #fcfdff;
    height: 100%;
    min-height: 360px;
}

.lr-stats-empty {
    margin: 0;
    color: #667085;
}

.lr-growth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.lr-growth-item {
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}

.lr-growth-item span {
    display: block;
    color: #667085;
    margin-bottom: 6px;
}

.lr-growth-item strong {
    font-size: 1.2rem;
}

.lr-stats-list {
    margin: 0;
    padding-left: 18px;
}

.lr-stats-list li {
    margin-bottom: 6px;
}

.lr-country-list {
    list-style: none;
    padding: 0;
}

.lr-country-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #edf0f5;
}

.lr-country-list li:last-child {
    border-bottom: 0;
}

.lr-municipality-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

.lr-municipality-item {
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.lr-municipality-item span {
    color: #475467;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .lr-stats-panels {
        grid-template-columns: 1fr;
    }
}

.lr-critical-item {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
}

.lr-critical-item__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.lr-critical-item__top span {
    font-weight: 700;
    color: #1d4ed8;
}

.lr-critical-item__meta {
    margin: 4px 0 8px;
    color: #667085;
    font-size: 0.92rem;
}

.lr-progress {
    height: 8px;
    border-radius: 999px;
    background: #e9edf5;
    overflow: hidden;
}

.lr-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
    animation: lrGrowBar 700ms ease-out;
    transform-origin: left center;
}

@media (max-width: 980px) {
    .lr-municipality-grid {
        grid-template-columns: 1fr;
    }
}

.lr-fade-in-up {
    opacity: 0;
    transform: translateY(8px);
    animation: lrFadeUp 360ms ease forwards;
}

@keyframes lrFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lrGrowBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes lrShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

@media (max-width: 980px) {
    .lr-stats-grid,
    .lr-stats-panels {
        grid-template-columns: 1fr;
    }

    .lr-stats-section {
        min-height: unset;
    }
}
