:root {
    font-size: 16px;
    --verde-militar-1: #5A6230;
    --verde-militar-2: #748268;
    --verde-militar-3: #6b8e23;
    --cinza-militar: #708090;
    --white: #ffffff;
    --background-claro: #e2e3e9;
    --text: #2f3323;
    --line: #cfd6bf;
    --panel: #ffffff;
    --ok: #2f7d32;
    --error: #9b2c2c;
}
* { box-sizing: border-box; }
html,
body {
    margin: 0;
    padding: 0;
}
body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background: var(--background-claro);
    color: var(--text);
}
a { color: var(--verde-militar-1); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.header {
    display: flex;
    align-items: center;
    min-height: 56px;
    background-color: var(--verde-militar-1);
    border-bottom: 3px solid var(--verde-militar-2);
}
.nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
}
.brand {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 0 20px;
    text-transform: uppercase;
}
.menu {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}
.menu-toggle {
    display: none;
    width: auto;
    min-height: 40px;
    padding: 6px 10px;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: transparent;
    color: var(--white);
    font-size: 24px;
    line-height: 1;
}
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}
.menu a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 24px;
    color: var(--white);
    background-color: var(--verde-militar-1);
    border: 0;
    border-radius: 0;
}
.menu a:hover {
    background-color: var(--cinza-militar);
    text-decoration: none;
}
.main { padding: 24px 0 48px; }
.acompanhamento-main .container {
    width: calc(100% - 32px);
    max-width: none;
}
.admin-logs-main .container {
    width: calc(100% - 32px);
    max-width: none;
}
.acompanhamento-main {
    overflow-x: hidden;
}
.hero, .panel {
    background: var(--panel);
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.links-panel {
    padding-top: 12px;
    padding-bottom: 12px;
}
.links-submenu-panel {
    padding-top: 10px;
    padding-bottom: 10px;
}
.links-submenu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.submenu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid var(--verde-militar-1);
    border-radius: 6px;
    color: var(--verde-militar-1);
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}
.submenu-link:hover {
    text-decoration: none;
    background: #eef1e4;
}
.submenu-link.active {
    color: #fff;
    background: var(--verde-militar-1);
}
.graph-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.graph-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.graph-grid .card h3 {
    margin: 0 0 10px;
    font-size: 16px;
}
.graph-grid .card canvas {
    width: 100% !important;
    height: 260px !important;
}
.graph-grid .graph-wide {
    grid-column: 1 / -1;
}
.links-panel h2 {
    margin: 0 0 8px;
}
.links-panel .links-filter-row {
    margin-bottom: 6px !important;
}
.links-panel th,
.links-panel td {
    padding-top: 2px;
    padding-bottom: 2px;
    line-height: 1.2;
}
.links-panel .table-wrap {
    margin-top: 0;
}
.links-panel .code {
    padding: 2px 6px;
    font-size: 13px;
}
.links-panel .result-mini-btn {
    min-height: 22px;
    padding: 2px 8px;
    font-size: 12px;
}
.links-panel .icon-btn {
    width: 22px;
    min-width: 22px;
    max-width: 22px;
    height: 22px;
    min-height: 22px;
    font-size: 11px;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
}
.hero h1, .hero h2, .hero p { margin-top: 0; }
label { display: block; font-size: 14px; margin-bottom: 6px; color: #444; }
input, select, textarea, button {
    width: 100%;
    border: 1px solid var(--verde-militar-2);
    border-radius: 6px;
    padding: 12px;
    font: inherit;
    background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
button, .button {
    cursor: pointer;
    background: var(--verde-militar-1);
    color: var(--white);
    border-color: var(--verde-militar-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    font-weight: 700;
}
button:hover, .button:hover { background: var(--verde-militar-2); text-decoration: none; }
button.secondary, .button.secondary {
    background: #fff;
    color: var(--verde-militar-1);
    border-color: var(--verde-militar-1);
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.links-filter-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 2px;
}
.compact-control {
    min-height: 32px;
    padding: 6px 8px;
    width: auto;
    font-size: 13px;
}
.links-filter-row select.compact-control,
.links-filter-row input.compact-control {
    min-width: 130px;
    flex: 1 1 170px;
}
.links-filter-row button.compact-control {
    min-width: 90px;
    flex: 0 1 auto;
}
.table-wrap { overflow: auto; }
.acompanhamento-main .table-wrap { overflow-x: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #e5e5e5; padding: 10px; text-align: left; vertical-align: top; }
th { background: #f5f6f1; }
.admin-logs-table {
    table-layout: fixed;
}
.admin-logs-table th:nth-child(1),
.admin-logs-table td:nth-child(1) { width: 14%; }
.admin-logs-table th:nth-child(2),
.admin-logs-table td:nth-child(2) { width: 12%; }
.admin-logs-table th:nth-child(3),
.admin-logs-table td:nth-child(3) { width: 18%; }
.admin-logs-table th:nth-child(4),
.admin-logs-table td:nth-child(4) { width: 18%; }
.admin-logs-table th:nth-child(5),
.admin-logs-table td:nth-child(5) { width: 38%; }
.admin-logs-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.admin-logs-table .admin-log-details {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.links-table { table-layout: auto; }
.links-table th,
.links-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.links-table .destino-cell {
    width: auto;
    overflow: visible;
}
.links-table {
    width: 100%;
    table-layout: fixed;
}
.links-table th:nth-child(1),
.links-table td:nth-child(1) { width: 9%; }
.links-table th:nth-child(2),
.links-table td:nth-child(2) { width: 27%; }
.links-table th:nth-child(3),
.links-table td:nth-child(3) { width: 9%; }
.links-table th:nth-child(4),
.links-table td:nth-child(4) { width: 7%; }
.links-table th:nth-child(5),
.links-table td:nth-child(5) { width: 12%; }
.links-table th:nth-child(6),
.links-table td:nth-child(6) { width: 10%; }
.links-table th:nth-child(7),
.links-table td:nth-child(7) { width: 11%; }
.links-table th:nth-child(8),
.links-table td:nth-child(8) { width: 5%; text-align: center; }
.links-table th:nth-child(9),
.links-table td:nth-child(9) { width: 10%; }
.stats-links-table {
    width: 100%;
    table-layout: fixed;
}
.stats-links-table th,
.stats-links-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.stats-links-table th:nth-child(1),
.stats-links-table td:nth-child(1) { width: 12%; }
.stats-links-table th:nth-child(2),
.stats-links-table td:nth-child(2) { width: 40%; }
.stats-links-table th:nth-child(3),
.stats-links-table td:nth-child(3) { width: 10%; text-align: right; }
.stats-links-table th:nth-child(4),
.stats-links-table td:nth-child(4) { width: 12%; text-align: right; }
.stats-links-table th:nth-child(5),
.stats-links-table td:nth-child(5) { width: 10%; text-align: right; }
.stats-links-table th:nth-child(6),
.stats-links-table td:nth-child(6) { width: 16%; }
.stats-links-table .destino-cell {
    width: auto;
    overflow: visible;
}
.stats-links-table .destino-cell .cell-link {
    display: block;
    max-width: 100%;
    direction: ltr;
    unicode-bidi: plaintext;
}
.cell-link {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    font: inherit;
}
.links-table .destino-cell .cell-link {
    display: block;
    max-width: 100%;
    direction: ltr;
    unicode-bidi: plaintext;
}
.actions-cell { width: 1%; }
.row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.icon-google {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}
.icon-delete-google {
    font-size: 22px;
}
.details-link-btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 4px 10px !important;
    gap: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px !important;
    border-radius: 8px !important;
    border: 1px solid #2b59d9 !important;
    background: #2b59d9 !important;
    color: #fff !important;
    text-decoration: none !important;
}
.details-link-text {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.details-link-btn .icon-google {
    font-size: 18px;
    color: #fff;
}
.details-link-btn:hover {
    background: #2148b6 !important;
    border-color: #2148b6 !important;
}
.icon-form { margin: 0; }
.hidden-form { display: none; }
.bitly-like-panel {
    border-color: #dbe2f0;
    box-shadow: 0 8px 20px rgba(16, 32, 64, 0.06);
}
.bitly-like-panel h2 {
    font-size: 22px;
    margin-bottom: 12px;
}
.trackable-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.kpi-card {
    border: 1px solid #d7e0f1;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding: 10px 12px;
}
.kpi-label {
    display: block;
    color: #5f6b85;
    font-size: 12px;
    margin-bottom: 4px;
}
.kpi-value {
    display: block;
    color: #0b1736;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.details-panel .detail-link-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.details-panel .detail-link-head .code {
    width: fit-content;
    font-size: 14px;
}
.bitly-like-panel .links-table th {
    background: #f4f7fc;
    color: #334063;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.bitly-like-panel .links-table td {
    border-bottom-color: #e7ecf6;
    padding-top: 8px;
    padding-bottom: 8px;
}
.bitly-like-panel .links-table tbody tr:hover {
    background: #f9fbff;
}
.bitly-like-panel .icon-btn {
    border-color: #c9d5ee;
    background: #fff;
    color: #243963;
}
.bitly-like-panel .icon-btn.danger {
    border-color: #efc4c4;
    color: #8f2424;
}
.details-panel .detail-top-card {
    border: 1px solid #d7e0f1;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    margin-bottom: 8px;
}
.details-panel .detail-hero-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 8px;
}
.details-panel .detail-hero-row .detail-top-card {
    flex: 1.35;
    margin-bottom: 0;
}
.details-panel .detail-kpis-side {
    flex: 1;
    margin-bottom: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.details-panel .detail-top-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
    margin-bottom: 0;
}
.details-panel .detail-delete-inline-btn {
    width: auto;
    min-height: 30px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.1;
}
.details-panel .detail-main h2 {
    margin: 0 0 4px;
    font-size: 30px;
}
.details-panel .detail-short {
    font-weight: 700;
    color: #2b59d9;
    display: inline-block;
    margin-bottom: 4px;
}
.details-panel .detail-destination {
    margin: 0 0 4px;
    color: #22304e;
}
.details-panel .detail-inline-qr {
    margin-top: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    min-height: 100%;
}
.details-panel .detail-inline-qr-title {
    font-size: 12px;
    font-weight: 700;
    color: #5f6b85;
}
.details-panel .detail-inline-qr img {
    width: 132px;
    height: 132px;
    border: 1px solid #d7e0f1;
    border-radius: 8px;
    padding: 4px;
    background: #fff;
}
.details-panel .detail-main-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}
.details-panel .detail-inner-box {
    border: 1px solid #d7e0f1;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
}
.details-panel .detail-main-info {
    min-width: 0;
}
.details-panel .detail-main-split .detail-top-actions {
    grid-column: 1 / -1;
}
.details-panel .detail-dual-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}
.details-panel .mini-panel {
    border: 1px solid #d7e0f1;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    margin-bottom: 8px;
}
.details-panel .mini-panel h3 {
    margin: 0 0 6px;
    font-size: 20px;
}
.details-panel .qr-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.details-panel .qr-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    border: 1px dashed #b8c7e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5f6b85;
}
.details-panel .engagement-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26px, 1fr));
    align-items: end;
    gap: 6px;
    min-height: 130px;
}
.details-panel .bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.details-panel .bar-col .bar {
    width: 100%;
    max-width: 24px;
    background: #12b5c9;
    border-radius: 4px 4px 0 0;
}
.details-panel .bar-col small {
    font-size: 10px;
    color: #5f6b85;
}
.details-panel .location-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.details-panel .location-row {
    display: grid;
    grid-template-columns: 140px 1fr 120px;
    gap: 10px;
    align-items: center;
}
.details-panel .location-track {
    height: 10px;
    border-radius: 999px;
    background: #e7ecf6;
    overflow: hidden;
}
.details-panel .location-track span {
    display: block;
    height: 100%;
    background: #2b59d9;
}
.details-panel .location-value {
    text-align: right;
    font-weight: 700;
    color: #243963;
}
.details-panel .detail-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.details-panel .donut-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.details-panel .donut {
    flex: 0 0 170px;
    width: 170px;
    min-width: 170px;
    height: 170px;
    min-height: 170px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    position: relative;
}
.details-panel .donut::after {
    content: "";
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background: #fff;
}
.details-panel .donut-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    flex: 0 1 auto;
    overflow: hidden;
    margin-left: auto;
}
.details-panel .donut-legend div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.details-panel .donut-legend div span {
    display: block;
    min-width: 40px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}
.details-panel .donut-legend div strong {
    min-width: 24px;
    text-align: right;
    white-space: nowrap;
}
.details-clicks-table th,
.details-clicks-table td {
    font-size: 12px;
}
.details-panel .chart-wrap {
    position: relative;
    width: 100%;
    min-height: 220px;
    height: 220px;
}
.details-panel .chart-wrap-with-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 240px;
    height: auto;
}
.details-panel .chart-wrap-with-legend .chart-canvas-box {
    width: 210px;
    height: 210px;
    flex: 0 0 210px;
}
.details-panel .chart-wrap-with-legend .chart-custom-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 280px;
}
.details-panel .chart-wrap-with-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.details-panel .chart-wrap-with-legend .legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    flex: 0 0 11px;
}
.details-panel .chart-wrap-with-legend .legend-text {
    font-size: 12px;
    color: #334063;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.details-panel .chart-wrap-with-legend.is-stacked {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.details-panel .chart-wrap-with-legend.is-stacked .chart-custom-legend {
    max-width: 100%;
    width: fit-content;
}
.details-panel .chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}
.details-panel .detail-compact-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: auto;
}
.details-panel .detail-compact-filter .compact-control {
    width: auto;
    min-width: 150px;
}
.details-panel .detail-compact-filter input.compact-control {
    min-width: 260px;
}
.details-panel .history-panel {
    border: 1px solid #d7e0f1;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    margin-top: 8px;
}
.details-panel .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.details-clicks-table {
    min-width: 1180px;
}
.icon-btn {
    width: 26px;
    min-width: 26px;
    max-width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.icon-btn.danger {
    background: #9b2c2c;
    border-color: #9b2c2c;
}
.icon-btn.danger:hover { background: #7f1d1d; }
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 12px;
}
.modal-backdrop[hidden] { display: none !important; }
.modal-card {
    width: min(460px, 100%);
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    padding: 16px;
    display: grid;
    gap: 10px;
}
.modal-card h3 {
    margin: 0;
    font-size: 18px;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.modal-close {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
    background: #fff;
    color: #2f3323;
    border: 1px solid #cfd6bf;
}
.modal-close:hover { background: #f5f6f1; }
.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.danger-btn {
    background: #9b2c2c;
    border-color: #9b2c2c;
    color: #fff;
}
.danger-btn:hover { background: #7f1d1d; }
.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; }
.flash.success { background: #e7f4e5; color: var(--ok); }
.flash.error { background: #fbe7e7; color: var(--error); }
.flash.info { background: #eef4fb; color: #234f8b; }
.stat { font-size: 30px; font-weight: 700; margin: 0; color: var(--verde-militar-1); }
.muted { color: #5d6750; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.inline-form > * { flex: 1 1 160px; }
.plan-feature-name {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.plan-feature-form {
    flex-wrap: nowrap;
    align-items: center;
}
.plan-feature-form > * {
    flex: 0 0 auto;
}
.plan-feature-form button {
    width: auto;
    min-width: 130px;
    min-height: 36px;
    padding: 8px 14px;
}
.plan-feature-status {
    white-space: nowrap;
}
.canvas-wrap {
    position: relative;
    min-height: 280px;
    height: 280px;
}
.canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}
.code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #eef1e6;
    padding: 4px 8px;
    border-radius: 6px;
}
.hero-intro { line-height: 1.7; }
.public-charts .card > p { margin-top: 0; font-weight: 700; color: var(--verde-militar-1); }
@media (max-width: 900px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .nav { position: relative; min-height: 56px; }
    .brand { padding-left: 20px; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .menu {
        display: none;
        position: absolute;
        right: 0;
        top: 56px;
        min-width: 220px;
        width: max-content;
        max-width: calc(100vw - 24px);
        flex-direction: column;
        background: var(--verde-militar-1);
        border: 1px solid var(--verde-militar-2);
        border-radius: 8px;
        overflow: hidden;
        z-index: 1300;
    }
    .menu.menu-open { display: flex; }
    .menu a {
        min-height: 44px;
        padding: 0 16px;
        justify-content: flex-start;
        white-space: nowrap;
    }
}

.home-main .container .hero-intro,
.home-main .container .card {
    width: 100%;
}
.hero-intro h1, .hero-intro p{
    text-align: center;
}
.plans-comparison {
    align-items: stretch;
}
.plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.plan-card h3 {
    margin: 0 0 12px;
    color: #1f2430;
}
.plan-price {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--verde-militar-1);
}
.plan-cta {
    width: 100%;
    margin-bottom: 10px;
}
.plan-group {
    margin: 10px 0 8px;
    color: var(--ok);
    font-weight: 700;
}
.plan-list {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}
.plan-list li {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e5e5;
}
.plan-list li:last-child {
    border-bottom: 0;
}
.home-main-logged {
    padding: 14px 0 20px;
}
.home-main-logged .container.grid {
    gap: 12px;
}
.home-main-logged .hero {
    padding: 14px;
}
.home-main-logged .card {
    padding: 14px;
}
.link-form-compact {
    gap: 10px;
}
.link-form-compact .form-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}
.link-form-compact .form-row label {
    margin: 0;
    text-align: right;
    font-weight: 700;
}
.link-form-compact input,
.link-form-compact select {
    padding: 8px 10px;
    min-height: 36px;
}
.link-form-compact .form-actions {
    margin-left: 180px;
}
.link-form-compact .form-actions button {
    width: auto;
    min-width: 220px;
    padding: 8px 14px;
    min-height: 36px;
}
.link-form-compact .form-help {
    margin: -2px 0 2px 180px;
    font-size: 13px;
    color: #8a5a00;
}
@media (max-width: 900px) {
    .link-form-compact .form-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .link-form-compact .form-row label {
        text-align: left;
    }
    .link-form-compact .form-actions {
        margin-left: 0;
    }
    .link-form-compact .form-actions button {
        width: 100%;
        min-width: 0;
    }
    .link-form-compact .form-help {
        margin-left: 0;
    }
}

.result-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 25, 15, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}
.result-modal-overlay[hidden] { display: none !important; }
.result-modal {
    width: min(520px, 100%);
    background: #fff;
    border: 1px solid #d7dbc8;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
    position: relative;
    text-align: center;
}
.result-modal h3 {
    margin: 0 0 10px;
    color: var(--verde-militar-1);
}
.result-modal .result-link {
    margin: 0 0 12px;
    word-break: break-all;
}
.result-modal .result-link-actions {
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.result-modal .destino-actions {
    flex-direction: column;
    align-items: stretch;
}
.result-modal .destino-full-link {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left;
}
.result-modal .result-link-actions .code {
    display: inline-block;
}
.result-mini-btn {
    width: auto;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--verde-militar-1);
    border-radius: 6px;
    background: var(--verde-militar-1);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}
.result-mini-btn:hover {
    background: var(--verde-militar-2);
    border-color: var(--verde-militar-2);
}
.result-modal .result-qr {
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.result-modal .result-qr img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
}
.result-modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccd2ba;
    background: #fff;
    color: #374022;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    min-height: 0;
}

@media (max-width: 980px) {
    .graph-kpis,
    .graph-grid {
        grid-template-columns: 1fr;
    }
    .acompanhamento-main .container {
        width: calc(100% - 12px);
    }
    .links-panel {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .links-panel h2 {
        font-size: clamp(18px, 4vw, 28px);
    }
    .links-panel th,
    .links-panel td {
        font-size: clamp(10px, 1.8vw, 14px);
        padding-top: clamp(1px, 0.5vw, 3px);
        padding-bottom: clamp(1px, 0.5vw, 3px);
        padding-left: clamp(4px, 0.7vw, 8px);
        padding-right: clamp(4px, 0.7vw, 8px);
    }
    .links-panel .code,
    .links-panel .cell-link {
        font-size: clamp(10px, 1.8vw, 14px);
    }
    .links-panel .result-mini-btn {
        min-height: clamp(18px, 2.8vw, 24px);
        padding: clamp(1px, 0.4vw, 3px) clamp(5px, 0.8vw, 9px);
        font-size: clamp(10px, 1.7vw, 12px);
    }
    .links-panel .icon-btn {
        width: clamp(18px, 3vw, 22px);
        min-width: clamp(18px, 3vw, 22px);
        max-width: clamp(18px, 3vw, 22px);
        height: clamp(18px, 3vw, 22px);
        min-height: clamp(18px, 3vw, 22px);
        font-size: clamp(9px, 1.3vw, 11px);
    }
    .row-actions {
        gap: clamp(3px, 0.6vw, 6px);
    }
    .compact-control {
        min-height: clamp(28px, 4.2vw, 32px);
        padding: clamp(4px, 0.7vw, 7px) clamp(6px, 0.9vw, 9px);
        font-size: clamp(11px, 1.8vw, 13px);
    }
    .trackable-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .kpi-value {
        font-size: 18px;
    }
    .details-panel .detail-dual-cards,
    .details-panel .detail-grid-2 {
        grid-template-columns: 1fr;
    }
    .details-panel .detail-main-split {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .details-panel .detail-hero-row {
        flex-direction: column;
    }
    .details-panel .detail-kpis-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .details-panel .location-row {
        grid-template-columns: 90px 1fr 90px;
    }
    .details-panel .donut-wrap {
        grid-template-columns: 1fr;
    }
    .details-panel .donut {
        margin: 0 auto;
    }
}

@media (min-width: 1920px) {
    .details-panel .detail-main h2 { font-size: 34px; }
    .details-panel .detail-top-card { padding: 20px; }
    .details-panel .mini-panel { padding: 18px; }
    .details-panel .mini-panel h3 { font-size: 22px; }
    .details-panel .donut {
        width: 200px;
        height: 200px;
    }
    .details-panel .donut::after { inset: 34px; }
}

@media (max-width: 1280px) {
    .acompanhamento-main {
        overflow-x: visible;
    }
    .acompanhamento-main .container {
        width: calc(100% - 16px);
    }
    .links-panel,
    .details-panel .detail-top-card,
    .details-panel .mini-panel {
        min-width: 0;
    }
    .details-panel .trackable-kpis,
    .details-panel .detail-dual-cards,
    .details-panel .detail-grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    .details-panel .detail-main h2,
    .details-panel .detail-destination,
    .details-panel .detail-short,
    .details-panel .muted {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .details-panel .links-table th,
    .details-panel .links-table td {
        white-space: normal;
    }
    .details-panel .detail-main h2 { font-size: 26px; }
    .details-panel .location-row {
        grid-template-columns: 120px 1fr 105px;
    }
    .details-panel .donut {
        width: 150px;
        height: 150px;
    }
    .details-panel .donut::after { inset: 26px; }
}

@media (max-width: 1024px) {
    .details-panel .detail-hero-row {
        flex-direction: column;
    }
    .details-panel .detail-kpis-side {
        width: 100%;
    }
    .details-panel .trackable-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .details-panel .detail-main h2 { font-size: 22px; }
    .details-panel .detail-top-card,
    .details-panel .mini-panel { padding: 12px; }
    .details-panel .mini-panel h3 { font-size: 18px; }
    .details-panel .qr-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .details-panel .engagement-bars {
        grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
        gap: 4px;
        min-height: 130px;
    }
    .details-panel .location-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .details-panel .location-value {
        text-align: left;
    }
    .details-panel .detail-grid-2,
    .details-panel .detail-dual-cards {
        grid-template-columns: 1fr;
    }
    .details-panel .donut-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .details-panel .donut-legend {
        width: 100%;
    }
    .details-panel .chart-wrap {
        min-height: 190px;
        height: 190px;
    }
    .details-panel .detail-compact-filter {
        display: flex;
        width: 100%;
    }
    .details-panel .detail-compact-filter .compact-control,
    .details-panel .detail-compact-filter input.compact-control {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .details-panel .detail-grid-2 .mini-panel .chart-wrap {
        min-height: 260px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .details-panel .trackable-kpis {
        grid-template-columns: 1fr;
    }
    .kpi-value { font-size: 18px; }
    .details-panel .detail-short,
    .details-panel .detail-destination,
    .details-panel .muted { font-size: 13px; }
    .details-panel .detail-delete-inline-btn {
        min-height: 28px;
        padding: 3px 9px;
        font-size: 11px;
    }
    .details-clicks-table {
        min-width: 980px;
    }
}
