*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1351b4;
    --primary-dark: #0c326f;
    --primary-light: #2670e8;
    --secondary: #168821;
    --danger: #c4161c;
    --warning: #ffcd07;
    --warning-text: #7a5900;
    --info: #155bcb;
    --bg: #f8f9fa;
    --bg-alt: #eef1f6;
    --card: #ffffff;
    --text: #333333;
    --text-muted: #636363;
    --border: #dee2e6;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Gov Bar */
.gov-bar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

.gov-bar-short {
    display: none;
}

/* Header */
.main-header {
    background: var(--card);
    border-bottom: 3px solid var(--secondary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.logo:hover { text-decoration: none; }

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.logo-img {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--bg-alt);
    color: var(--primary);
    text-decoration: none;
}

.btn-nav {
    background: var(--primary) !important;
    color: #fff !important;
}

.btn-nav:hover {
    background: var(--primary-dark) !important;
}

.btn-nav-outline {
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-success {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 4rem 0;
}

.hero-content {
    max-width: 680px;
    margin-bottom: 3rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn-outline {
    color: #fff;
    border-color: #fff;
}

.hero-actions .btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

.hero-login-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    flex: 1;
    min-width: 280px;
    max-width: 420px;
}

.hero-login-form input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
}

.hero-login-form input:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.hero-login-form .btn {
    white-space: nowrap;
}

.hero-login-form .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.hero-login-form .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #fff;
    color: var(--primary-dark);
}

.hero-alert {
    margin-top: 1rem;
    max-width: 680px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-card span {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Sections */
.section {
    padding: 3.5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.page-header {
    background: var(--primary-dark);
    color: #fff;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.page-header p {
    opacity: 0.85;
}

.back-link {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.back-link:hover { color: #fff; }

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Compare */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.compare-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 4px solid;
}

.compare-bad { border-color: var(--danger); }
.compare-good { border-color: var(--secondary); }

.compare-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.compare-icon { font-size: 1.5rem; }

.compare-card h3 {
    font-size: 1.1rem;
}

.compare-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.compare-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.compare-card li:last-child { border-bottom: none; }

/* Example */
.example-box {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.example-breakdown {
    margin: 1.5rem 0;
}

.example-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* CTA */
.cta-section {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 3.5rem 0;
}

.cta-section h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.75;
}

.cta-hint code {
    background: rgba(255,255,255,0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* Cards */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card.package-card {
    overflow: visible;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.card-body {
    padding: 1.5rem;
}

.card-highlight {
    border: 2px solid var(--primary);
}

.card-success {
    border: 2px solid var(--secondary);
}

.card-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Breakdown rows */
.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.breakdown-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: none;
    border-top: 2px solid var(--primary);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    color: var(--primary-dark);
}

/* Auth */
.auth-section {
    padding: 3rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.auth-icon svg {
    width: 28px;
    height: 28px;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-demo {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.auth-demo h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.auth-warning {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff8e1;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--warning-text);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 0.25rem;
    width: auto;
}

.checkbox-confirm-box {
    background: #fff8e1;
    border: 2px solid var(--warning);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin: 1.25rem 0 1.5rem;
    box-shadow: 0 2px 8px rgba(122, 89, 0, 0.12);
}

.checkbox-confirm-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--warning-text);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.checkbox-label--confirm {
    margin-bottom: 0;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #fff;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, background 0.2s;
}

.checkbox-label--confirm:has(input:checked) {
    border-color: var(--secondary);
    background: #f1f8f2;
}

.checkbox-confirm-input {
    appearance: none;
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    margin: 0;
    border: 3px solid var(--primary);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
}

.checkbox-confirm-input:checked {
    background: var(--secondary);
    border-color: var(--secondary);
}

.checkbox-confirm-input:checked::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 3px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-confirm-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(19, 81, 180, 0.25);
}

.checkbox-confirm-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    font-weight: 600;
    flex: 1;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-card.selected,
.radio-card:has(input:checked) {
    border-color: var(--primary);
    background: #f0f5ff;
}

.radio-card input { margin-top: 0.25rem; width: auto; }

.radio-card strong {
    display: block;
    font-size: 0.95rem;
}

.radio-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-error {
    background: #fde8e8;
    color: var(--danger);
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff8e1;
    color: var(--warning-text);
    border: 1px solid #ffe082;
}

.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.alert-info {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

/* Dashboard */
.card-bulk-regularizacao {
    margin-bottom: 2rem;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.card-bulk-regularizacao h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.bulk-regularizacao-grid {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 320px);
    gap: 2rem;
    align-items: start;
}

.bulk-regularizacao-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.bulk-regularizacao-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.bulk-regularizacao-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.bulk-regularizacao-list li:last-child {
    border-bottom: none;
}

.bulk-regularizacao-pricing {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.bulk-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.bulk-price-original {
    text-decoration: line-through;
    color: var(--text-muted);
}

.bulk-price-economia {
    color: var(--secondary);
    font-weight: 600;
}

.bulk-price-total {
    border-top: 2px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.bulk-price-total strong {
    color: var(--primary);
    font-size: 1.35rem;
}

.bulk-regularizacao-single {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.bulk-lote-table-wrap {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.bulk-lote-table {
    margin-bottom: 0;
}

.breakdown-desconto {
    color: var(--secondary);
    font-weight: 600;
}

.payment-total-note {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
}

.summary-warning { border-color: var(--warning); }
.summary-info { border-color: var(--info); }
.summary-success { border-color: var(--secondary); }

.summary-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tables */
.table-container {
    overflow-x: auto;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: var(--bg-alt);
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-dark);
    white-space: nowrap;
}

.data-table td {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:hover {
    background: #f8f9ff;
}

.empty-row {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem !important;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Lista mobile de encomendas */
.encomendas-mobile {
    display: none;
}

.empty-message {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.enc-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 1rem;
}

.enc-card-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.65rem;
}

.enc-card-thumb {
    flex: 0 0 auto;
}

.enc-card-header-text {
    flex: 1;
    min-width: 0;
}

.enc-pacote-thumb,
.td-pacote-thumb-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    display: block;
}

.th-pacote {
    width: 72px;
}

.td-pacote-thumb {
    width: 72px;
    padding-right: 0.5rem !important;
}

.enc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.enc-rastreio {
    font-size: 0.8rem;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.enc-desc {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.enc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.enc-loja {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    line-height: 1.4;
}

.enc-card-foot {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.enc-valor-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
}

.enc-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.enc-actions .btn {
    width: 100%;
    min-height: 44px;
}

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

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

.rules-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.rules-table th,
.rules-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    text-align: center;
}

.rules-table th {
    background: var(--bg-alt);
    font-weight: 600;
}

.highlight-row {
    background: #fff3e0;
}

.rules-list {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.rules-list li {
    margin-bottom: 0.5rem;
}

.formula-box {
    background: var(--bg-alt);
    padding: 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

.formula {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--bg);
    border-radius: 4px;
}

/* Badges & Status */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-danger { background: #fde8e8; color: var(--danger); }
.badge-info { background: #e3f2fd; color: var(--info); }

.badge-transportadora {
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
    line-height: 1.3;
}
.badge-entregas { background: #fff3e0; color: #e65100; }
.badge-jadlogbr { background: #fde8e8; color: #c4161c; }
.badge-jaadll { background: #e8eaf6; color: #283593; }
.badge-jtexpres { background: #fce4ec; color: #ad1457; }

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-warning { background: #fff8e1; color: var(--warning-text); }
.status-info { background: #e3f2fd; color: var(--info); }
.status-success { background: #e8f5e9; color: #2e7d32; }
.status-danger { background: #fde8e8; color: var(--danger); }

.text-danger { color: var(--danger); }
.text-success { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.small-text { font-size: 0.85rem; color: var(--text-muted); }

code {
    background: var(--bg-alt);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Detail page */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

.detail-list {
    display: grid;
    gap: 0;
}

.detail-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-item dt {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-item dd {
    font-size: 0.95rem;
}

.regime-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* Timeline */
.timeline {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.timeline h3 {
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item.done::before { background: var(--secondary); }

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    margin-top: 3px;
    position: relative;
    z-index: 1;
}

.timeline-item.done .timeline-dot { background: var(--secondary); }
.timeline-item.active .timeline-dot {
    background: var(--warning);
    box-shadow: 0 0 0 4px rgba(255, 205, 7, 0.3);
}

.timeline-content strong {
    display: block;
    font-size: 0.95rem;
}

.timeline-content span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Payment */
.payment-wizard {
    max-width: 800px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.wizard-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.wizard-step.active .wizard-num {
    background: var(--primary);
    color: #fff;
}

.wizard-step.done .wizard-num {
    background: var(--secondary);
    color: #fff;
}

.payment-summary {
    background: var(--bg);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

/* Opções de regularização / entrega */
.opcoes-entrega {
    margin: 1.25rem 0;
}

.opcoes-entrega-titulo {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.opcao-entrega-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--card);
}

.opcao-entrega-link {
    text-decoration: none;
    color: inherit;
}

.opcao-entrega-link:hover {
    text-decoration: none;
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.opcao-entrega-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.opcao-entrega-card.selected,
.opcao-entrega-card:has(input:checked) {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 81, 180, 0.12);
}

.opcao-entrega-card--express.selected,
.opcao-entrega-card--express:has(input:checked) {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(22, 136, 33, 0.12);
}

.opcao-entrega-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    margin-top: 3px;
    position: relative;
}

.opcao-entrega-card.selected .opcao-entrega-radio,
.opcao-entrega-card:has(input:checked) .opcao-entrega-radio {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px #fff;
}

.opcao-entrega-card--express.selected .opcao-entrega-radio,
.opcao-entrega-card--express:has(input:checked) .opcao-entrega-radio {
    border-color: var(--secondary);
    background: var(--secondary);
}

.opcao-entrega-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.opcao-entrega-body strong {
    font-size: 1rem;
    color: var(--primary-dark);
}

.opcao-entrega-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.opcao-entrega-extra {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 700;
}

.opcao-entrega-valor {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 0.25rem;
}

.opcoes-entrega--detalhes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.breakdown-row--express span:first-child {
    color: var(--secondary);
    font-weight: 600;
}

.tipo-entrega-selecionada {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: center;
}

/* Penalidades — detalhes da encomenda */
.card-penalidades {
    border: 2px solid #f5c6cb;
}

.card-penalidades .card-header {
    background: #fff5f5;
}

.penalidades-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.penalidades-list,
.consequencias-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.penalidades-list li,
.consequencias-list li {
    position: relative;
    padding: 0.85rem 0.85rem 0.85rem 2.75rem;
    margin-bottom: 0.65rem;
    background: var(--bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.consequencias-list li {
    border-left-color: var(--danger);
}

.penalidades-list li::before {
    content: '§';
    position: absolute;
    left: 0.85rem;
    top: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.consequencias-list li::before {
    content: '!';
    position: absolute;
    left: 0.95rem;
    top: 0.85rem;
    font-weight: 700;
    color: var(--danger);
}

.penalidades-nota {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 1rem;
    background: #fff8e1;
    border-radius: var(--radius);
    border: 1px solid var(--warning);
    margin-bottom: 1.25rem;
}

.consequencias-box {
    background: #fde8e8;
    border: 1px solid #f5c6cb;
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
}

.consequencias-box h3 {
    font-size: 1rem;
    color: var(--danger);
    margin: 0 0 0.75rem;
}

.penalidades-acao {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.penalidades-acao p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.payment-total {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.payment-method-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
}

.payment-method-card:hover {
    border-color: var(--primary);
}

.method-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.pix-icon {
    background: #32bcad;
    color: #fff;
}

.boleto-icon {
    background: var(--bg-alt);
    font-size: 1.5rem;
}

.payment-method-card h3 {
    margin-bottom: 0.5rem;
}

.payment-method-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.payment-method-single {
    max-width: 520px;
    margin: 0 auto;
}

.pix-payment-body {
    max-width: 520px;
    margin: 0 auto;
}

.pix-qr-wrap {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.pix-qr-image {
    max-width: 220px;
    height: auto;
    display: block;
}

.pix-qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    min-width: 220px;
}

.pix-qr-container img,
.pix-qr-container canvas {
    display: block;
    max-width: 220px;
    height: auto;
}

.pix-copy-block {
    margin-bottom: 1.5rem;
}

.pix-copy-block label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.pix-copy-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

#payment-status {
    margin-top: 1rem;
}

.form-group-contato {
    margin: 1.25rem 0;
    text-align: left;
}

.form-group-contato label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-group-contato .small-text {
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.required-mark {
    color: var(--danger);
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.payment-method-single .form-group-contato {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.demo-payment-info {
    background: var(--bg);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    text-align: left;
}

.demo-payment-info h4 {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.pix-demo, .boleto-demo {
    margin-bottom: 1rem;
}

.copy-code {
    display: block;
    word-break: break-all;
    margin: 0.5rem 0;
    font-size: 0.75rem;
}

/* Calculator */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Footer */
.main-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-col p,
.footer-col li {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255,255,255,0.75);
}

.footer-col a:hover {
    color: #fff;
}

.footer-links--static .footer-link-static {
    color: rgba(255, 255, 255, 0.75);
    cursor: default;
    pointer-events: none;
}

.disclaimer {
    font-size: 0.85rem !important;
    opacity: 0.75;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.content-page {
    max-width: 900px;
}

/* Package photo — igual jadlogbr / entregas */
.package-card .card-body {
    text-align: center;
}

.shipping-label-card {
    margin: 0 auto;
    max-width: 620px;
}

.shipping-label-container {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    padding: 12px;
    background-color: #d1b499;
}

.pacote-frame {
    position: relative;
    width: 100%;
    overflow: visible;
    line-height: normal;
}

.pacote-overlay-root {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible;
}

.pacote-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.shipping-label-container > img,
.shipping-label-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.imagem-pacote {
    position: relative;
    margin: 0 auto;
    max-width: 620px;
    border-radius: 10px;
    overflow: visible;
    border: 1px solid #e5e7eb;
    background: #fff;
    line-height: normal;
}

.imagem-pacote img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.label-data-overlay {
    position: absolute;
    text-align: left;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
    padding: 0;
    transform: none;
}

.label-data-overlay p {
    font-family: 'Roboto', var(--font);
    margin: 0;
    line-height: 1.2;
    color: #000;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.label-data-overlay .label-name {
    font-weight: 700;
    font-size: 11px;
}

.label-data-overlay .label-cpf {
    font-weight: 700;
    font-size: 10px;
}

.nome-overlay,
.cpf-overlay {
    position: absolute;
    margin: 0;
    color: #1f2937;
    background: transparent;
    font-weight: 700;
    text-align: left;
    line-height: 1.2;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.imagem-pacote--jadlog .nome-overlay,
.imagem-pacote--jadlog .cpf-overlay {
    font-size: 12px;
}

.delivery-box-container {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: visible;
    line-height: normal;
}

.delivery-box-container .recipient-label {
    position: absolute;
    text-align: left;
    pointer-events: none;
    z-index: 2;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.delivery-box-container .delivery-box {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.delivery-box-container .recipient-name,
.delivery-box-container .recipient-cpf {
    margin: 0;
    color: #111;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Arial, sans-serif;
}

.delivery-box-container .recipient-name {
    font-size: 12px;
}

.delivery-box-container .recipient-cpf {
    font-size: 11px;
}

.package-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.pacote-sem-overlay {
    max-width: 620px;
    margin: 0 auto;
}

.package-destinatario-info {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.5;
}

.package-destinatario-info p {
    margin: 0.25rem 0;
}

.package-destinatario-info strong {
    color: var(--primary-dark);
}

/* J&T Express — imagemprinci */
.imagem-pacote--jtexpres .jtex-data-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
    padding: 3px 5px;
    background: #ffffff;
    z-index: 2;
    line-height: 1.15;
    box-sizing: border-box;
}

.imagem-pacote--jtexpres .jtex-name,
.imagem-pacote--jtexpres .jtex-cpf {
    margin: 0;
    color: #111;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Arial, sans-serif;
}

.imagem-pacote--jtexpres .jtex-name {
    font-size: 11px;
}

.imagem-pacote--jtexpres .jtex-cpf {
    font-weight: 600;
    font-size: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: 1fr; }
    .compare-grid { grid-template-columns: 1fr; }
    .bulk-regularizacao-grid { grid-template-columns: 1fr; }
    .dashboard-summary { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .calc-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 1rem;
    }

    /* Gov bar */
    .gov-bar {
        font-size: 0.72rem;
        text-align: center;
    }

    .gov-bar-full { display: none; }
    .gov-bar-short { display: inline; }

    /* Header & nav */
    .menu-toggle {
        display: flex;
        margin-left: auto;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .menu-toggle span {
        transition: transform 0.2s, opacity 0.2s;
    }

    .main-header .header-wrap {
        position: relative;
        flex-wrap: nowrap;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .main-header .header-inner {
        width: auto;
        flex: 1;
        padding: 0;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card);
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
        max-height: calc(100dvh - 60px);
        overflow-y: auto;
        z-index: 200;
    }

    .main-nav.open { display: flex; }

    .main-nav a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .logo {
        min-width: 0;
        flex: 1;
    }

    .logo-img {
        height: 40px;
        max-width: 100px;
    }

    .logo-text strong {
        font-size: 1rem;
    }

    .logo-text span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }

    body.nav-open {
        overflow: hidden;
    }

    /* Encomendas: cards no mobile, tabela no desktop */
    .encomendas-mobile {
        display: block;
    }

    .table-desktop {
        display: none;
    }

    /* Hero & sections */
    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .hero-login-form {
        width: 100%;
        max-width: none;
    }

    .hero-login-form {
        flex-direction: column;
    }

    .hero-login-form .btn {
        width: 100%;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .page-header {
        padding: 1.5rem 0;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .page-header p {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .steps-grid { grid-template-columns: 1fr; }

    .compare-card {
        padding: 1.25rem;
    }

    /* Cards */
    .card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.85rem 1rem;
    }

    .card-header h2 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .card-body {
        padding: 1rem;
    }

    /* Dashboard */
    .dashboard-summary {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .summary-card {
        padding: 1rem 0.75rem;
    }

    .summary-value {
        font-size: 1.5rem;
    }

    .summary-label {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* Pacotes mobile */
    .package-card .card-body {
        padding: 0.75rem 0.25rem;
    }

    .shipping-label-container {
        padding: 6px;
    }

    .shipping-label-card,
    .imagem-pacote,
    .delivery-box-container {
        max-width: 100%;
    }

    .imagem-pacote {
        border: none;
    }

    .imagem-pacote img,
    .delivery-box-container .delivery-box,
    .pacote-frame img {
        border-radius: 6px;
    }

    .package-note {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }

    .detail-grid {
        gap: 1rem;
    }

    .card-header h2 {
        font-size: 0.95rem;
    }
    .form-row { grid-template-columns: 1fr; }

    .detail-item {
        grid-template-columns: 1fr;
        gap: 0.2rem;
        padding: 0.65rem 0;
    }

    .detail-item dt {
        font-size: 0.8rem;
    }

    .breakdown-row {
        flex-wrap: wrap;
        gap: 0.25rem;
        font-size: 0.875rem;
    }

    .breakdown-row span:last-child {
        text-align: right;
        margin-left: auto;
    }

    /* Pagamento */
    .payment-methods {
        grid-template-columns: 1fr;
    }

    .wizard-steps {
        margin-bottom: 1.5rem;
    }

    .wizard-step span:not(.wizard-num) {
        display: none;
    }

    .wizard-num {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .payment-method-card {
        padding: 1.25rem;
    }

    /* Pacotes */
    .shipping-label-container {
        padding: 8px;
    }

    .package-card .card-body {
        padding: 0.75rem 0.5rem;
    }

    .package-note {
        font-size: 0.8rem;
        padding: 0 0.25rem;
    }

    /* Auth */
    .auth-section {
        padding: 1.5rem 0;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
        margin: 0 0.25rem;
    }

    .auth-header h1 {
        font-size: 1.25rem;
    }

    /* Regras — tabela com scroll */
    .rules-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rules-table {
        min-width: 520px;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .main-footer {
        padding-top: 2rem;
    }

    /* Botões touch-friendly */
    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 40px;
        padding: 0.5rem 0.85rem;
    }

    .alert {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo-text span {
        display: none;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .dashboard-summary {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.45rem;
    }

    .stat-card strong {
        font-size: 1.5rem;
    }

    .compare-header {
        flex-wrap: wrap;
    }

    .timeline {
        padding: 1rem;
    }

    .shipping-label-card,
    .imagem-pacote,
    .delivery-box-container {
        max-width: 100%;
    }
}
