/* ============================================================
   Toda Vida Express — Estilos por Página
   ============================================================ */

/* ======= HOME (track + dashboard) ======= */
.welcome-card {
    background: linear-gradient(135deg, #1A5CDB 0%, #3A7AF0 100%);
    border-radius: var(--radius-lg); padding: 26px 24px;
    margin-bottom: 22px; box-shadow: var(--shadow-blue);
    position: relative; overflow: hidden;
}
.welcome-card::before { content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; background: rgba(255,255,255,0.07); border-radius: 50%; pointer-events: none; }
.welcome-card::after  { content: ''; position: absolute; left: -20px; bottom: -50px; width: 150px; height: 150px; background: rgba(255,255,255,0.05); border-radius: 50%; pointer-events: none; }
.welcome-row { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.welcome-icon { width: 38px; height: 38px; flex-shrink: 0; background: rgba(255,255,255,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.welcome-icon svg { width: 20px; height: 20px; stroke: white; fill: none; }
.welcome-title { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 700; color: white; }
.welcome-text { color: rgba(255,255,255,0.82); font-size: 13px; line-height: 1.65; font-weight: 500; }

.stats-row { display: flex; gap: 12px; margin-bottom: 22px; }
.stat-box {
    flex: 1; background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md); padding: 18px 16px;
    text-align: center; box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.stat-box:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-number { font-family: 'Poppins', sans-serif; font-size: 34px; font-weight: 800; line-height: 1; }
.stat-number.amber { color: var(--amber); }
.stat-number.green { color: var(--success); }
.stat-label { font-size: 11px; color: var(--ink-3); margin-top: 5px; font-weight: 600; letter-spacing: 0.3px; }

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.action-card {
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: var(--radius-md); cursor: pointer;
    transition: all 0.25s ease; overflow: hidden;
    position: relative; box-shadow: var(--shadow-sm);
}
.action-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-glow); transform: translateY(-3px); }
.action-card-inner { padding: 20px 18px; position: relative; z-index: 1; display: flex; justify-content: space-between; }
.card-icon { width: 40px; height: 40px; background: var(--accent-bg); border: 1.5px solid rgba(26,92,219,0.15); border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; }
.card-title { font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.card-arrow { width: 14px; height: 14px; stroke: var(--accent); transition: transform 0.25s; stroke-width: 2.5; fill: none; }
.action-card:hover .card-arrow { transform: translateX(3px); }
.card-desc { font-size: 12px; color: var(--ink-3); font-weight: 500; }

/* ======= RASTREIO (públic) ======= */
.hero-section { padding: 6px 0 24px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--accent-bg); border: 1.5px solid rgba(26,92,219,0.2);
    border-radius: 100px; padding: 5px 14px;
    font-size: 11.5px; font-weight: 600; color: var(--accent);
    font-family: 'Poppins', sans-serif; letter-spacing: 0.2px; margin-bottom: 18px;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.3); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.3); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0.12); } }
.hero-title { font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 800; line-height: 1.15; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.5px; }
.hero-title-accent { color: var(--accent); position: relative; }
.hero-title-accent::after { content: ''; position: absolute; left: 0; bottom: 1px; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; opacity: 0.35; }
.hero-subtitle { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-bottom: 24px; line-height: 1.6; }

.track-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-md); }
.track-card-label { display: flex; align-items: center; gap: 6px; font-family: 'Poppins', sans-serif; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink-3); margin-bottom: 12px; }
.track-input-group { display: flex; gap: 10px; }
.track-hero-input {
    flex: 1; background: var(--bg-card2); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 16px;
    font-family: 'Courier New', monospace; font-size: 14px; color: var(--ink);
    letter-spacing: 0.5px; outline: none; transition: all 0.2s; font-weight: 600;
}
.track-hero-input:focus { border-color: var(--accent); background: white; box-shadow: 0 0 0 3px var(--accent-glow); }
.track-hero-input::placeholder { color: var(--ink-3); opacity: 0.6; font-weight: 400; }
.track-hero-btn {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, #1A5CDB 0%, #3A7AF0 100%);
    border: none; border-radius: var(--radius-sm); padding: 0 18px;
    font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 600;
    color: white; cursor: pointer; transition: all 0.2s;
    box-shadow: var(--shadow-blue); white-space: nowrap; min-height: 50px;
}
.track-hero-btn:hover { opacity: 0.92; transform: translateY(-2px); }
.track-hero-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }

.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.feature-item { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); transition: all 0.2s; }
.feature-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon-wrap { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.feature-icon-wrap svg { width: 16px; height: 16px; }
.feature-blue  { background: var(--accent-bg); }
.feature-blue svg  { stroke: var(--accent); }
.feature-green { background: #dcfce7; }
.feature-green svg { stroke: #16a34a; }
.feature-amber { background: var(--amber-bg); }
.feature-amber svg { stroke: var(--amber); }
.feature-purple { background: #f3e8ff; }
.feature-purple svg { stroke: #7c3aed; }
.feature-title { font-family: 'Poppins', sans-serif; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 3px; line-height: 1.3; }
.feature-desc { font-size: 11px; color: var(--ink-3); font-weight: 500; line-height: 1.4; }

.whatsapp-cta { background: linear-gradient(135deg, #0f5c2e 0%, #1a7a40 100%); border-radius: var(--radius-md); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; box-shadow: 0 4px 18px rgba(22,163,74,0.25); }
.whatsapp-cta-title { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; color: white; margin-bottom: 3px; }
.whatsapp-cta-sub { font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 500; }
.whatsapp-btn-inline { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: white; padding: 11px 18px; border-radius: 100px; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; box-shadow: 0 3px 12px rgba(37,211,102,0.4); white-space: nowrap; flex-shrink: 0; }
.whatsapp-btn-inline:hover { transform: translateY(-2px); }

.agendar-cta { background: linear-gradient(135deg, #1A5CDB 0%, #4A82F0 100%); border-radius: var(--radius-md); padding: 18px 20px; display: flex; align-items: center; gap: 14px; margin-bottom: 14px; box-shadow: var(--shadow-blue); cursor: pointer; user-select: none; transition: transform .15s, box-shadow .15s; }
.agendar-cta:active { transform: scale(.98); }
.agendar-cta-icon { width: 44px; height: 44px; flex-shrink: 0; background: rgba(255,255,255,.18); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.agendar-cta-icon svg { width: 22px; height: 22px; stroke: white; fill: none; stroke-width: 2; }
.agendar-cta-text { flex: 1; }
.agendar-cta-title { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: #fff; }
.agendar-cta-sub { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 2px; font-weight: 500; }
.agendar-cta-arrow svg { width: 20px; height: 20px; stroke: rgba(255,255,255,.8); fill: none; stroke-width: 2.5; }

.recent-scans-row { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.recent-scans-row::-webkit-scrollbar { display: none; }
.recent-scan-chip { display: inline-flex; flex-direction: column; align-items: center; flex-shrink: 0; padding: 8px 14px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s ease; box-shadow: var(--shadow-sm); }
.recent-scan-chip:hover { border-color: var(--accent); background: var(--accent-bg); }
.chip-code { font-family: 'Courier New', monospace; font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: 0.3px; }
.chip-time { font-size: 9.5px; color: var(--ink-3); margin-top: 2px; font-weight: 600; }

/* ======= CADASTRO ======= */
.pre-cadastro-form-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.pre-cadastro-form-title { display: flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.add-pre-cadastro-btn { width: 100%; padding: 12px; background: var(--bg-card2); border: 1.5px dashed var(--border-dark); border-radius: var(--radius-sm); font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.add-pre-cadastro-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.pre-cadastro-section { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.pre-cadastro-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-card2); }
.pre-cadastro-header-title { display: flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700; color: var(--ink); }
.pre-cadastro-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: white; font-size: 11px; font-weight: 800; }
.pre-cadastro-list { max-height: 280px; overflow-y: auto; }
.pre-cadastro-table-header { display: grid; grid-template-columns: 1fr 1fr 32px; align-items: center; gap: 8px; padding: 7px 12px; background: var(--bg-card2); border-bottom: 1px solid var(--border); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-3); }
.pre-cadastro-item { display: grid; grid-template-columns: 1fr 1fr 32px; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.pre-cadastro-item:last-child { border-bottom: none; }
.pre-cadastro-item-codigo { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 11px; font-weight: 700; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre-cadastro-item-nome { font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre-cadastro-remove-btn { flex-shrink: 0; background: rgba(239,68,68,.1); border: none; border-radius: 7px; color: #ef4444; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.pre-cadastro-remove-btn:hover { background: rgba(239,68,68,.22); }
.salvar-pre-cadastro-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .2s; box-shadow: 0 4px 14px rgba(16,185,129,.35); }
.salvar-pre-cadastro-btn:hover { opacity: .9; transform: translateY(-1px); }
.salvar-pre-cadastro-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.pre-cadastro-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; text-align: center; color: var(--ink-3); }

/* ======= LISTA / ENTREGA ======= */
.filter-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.filter-tab { padding: 10px 6px; border-radius: var(--radius-sm); font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600; cursor: pointer; text-align: center; transition: all 0.18s ease; background: var(--bg-card); border: 1.5px solid var(--border); color: var(--ink-3); line-height: 1.4; box-shadow: var(--shadow-sm); }
.filter-tab .tab-icon { display: flex; justify-content: center; margin-bottom: 4px; }
.filter-tab .tab-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.filter-tab.active       { border-color: var(--amber);   color: var(--amber);   background: var(--amber-bg); }
.filter-tab.active-green { border-color: var(--success); color: var(--success); background: var(--success-bg); }
.filter-tab.active-gray  { border-color: var(--accent);  color: var(--accent);  background: var(--accent-bg); }

.list-search-row { display: flex; gap: 10px; margin-bottom: 18px; }
.search-input {
    flex: 1; background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); padding: 11px 15px;
    font-family: 'Courier New', monospace; font-size: 13.5px; color: var(--ink);
    outline: none; transition: all 0.2s ease;
    box-shadow: var(--shadow-sm); font-weight: 600;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-input::placeholder { color: var(--ink-3); font-family: 'Nunito Sans', sans-serif; font-size: 13.5px; opacity: 0.7; font-weight: 500; }

.packet-item { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 10px; transition: all 0.2s ease; box-shadow: var(--shadow-sm); }
.packet-item:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.packet-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.packet-code { font-family: 'Courier New', monospace; font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 0.5px; }
.packet-name { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.packet-address { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; line-height: 1.5; font-weight: 500; }
.packet-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1.5px solid var(--border); }
.packet-date { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.baixa-btn { padding: 8px 16px; background: linear-gradient(135deg, #3B82F6, #60A5FA); border: none; border-radius: 9px; color: white; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.baixa-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.info-btn { padding: 8px 16px; background: var(--bg-card2); border: 1.5px solid var(--border); border-radius: 9px; color: var(--ink-2); font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.info-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ======= AGENDAMENTOS ======= */
.agend-item { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: all 0.2s; }
.agend-item:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.agend-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.agend-nome { font-family: 'Poppins', sans-serif; font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.agend-codigo { font-family: 'Courier New', monospace; font-size: 11.5px; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.agend-data { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.agend-obs { font-size: 12px; color: var(--ink-2); margin-bottom: 12px; font-weight: 500; line-height: 1.5; }
.agend-foto-thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 7px; border: 1.5px solid var(--border); cursor: pointer; transition: all 0.2s; }
.agend-foto-thumb:hover { border-color: var(--accent); transform: scale(1.06); }
.agend-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.agend-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: var(--radius-sm); font-family: 'Poppins', sans-serif; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: all 0.18s; border: 1.5px solid transparent; }
.agend-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.agend-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.agend-btn.registrar { background: var(--accent-bg); border-color: rgba(26,92,219,0.2); color: var(--accent); }
.agend-btn.registrar:hover:not(:disabled) { background: #dce8fd; }
.agend-btn.editar { background: var(--amber-bg); border-color: rgba(184,125,10,0.2); color: var(--amber); }
.agend-btn.editar:hover:not(:disabled) { background: #fde9a0; }
.agend-btn.excluir { background: var(--danger-bg); border-color: rgba(192,57,43,0.2); color: var(--danger); }
.agend-btn.excluir:hover:not(:disabled) { background: #fbcecc; }
.agendar-success-box { background: var(--success-bg); border-radius: var(--radius-sm); padding: 20px 16px; text-align: center; }
.agendar-success-icon { font-size: 40px; margin-bottom: 8px; }
.agendar-success-title { font-family:'Poppins',sans-serif; font-size:15px; font-weight:700; color:#1e40af; }
.agendar-success-sub { font-size:13px; color:#3b82f6; margin-top:4px; }

/* ======= IMPORTAR PDF ======= */
.importar-drop { border: 2px dashed var(--border-dark); border-radius: var(--radius-md); padding: 32px 20px; text-align: center; cursor: pointer; background: var(--bg-card2); transition: all .2s; position: relative; }
.importar-drop:hover { border-color: var(--accent); background: var(--accent-bg); }
.importar-drop input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.importar-drop-icon svg { width:44px; height:44px; stroke: var(--ink-3); fill:none; stroke-width:1.5; }
.importar-preview-list { max-height: 220px; overflow-y: auto; border: 1.5px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; }
.importar-preview-item { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); align-items: center; }
.importar-preview-item:last-child { border-bottom: none; }
.importar-preview-codigo { font-family: 'Courier New', monospace; font-size: 11px; font-weight: 700; color: var(--accent); }
.importar-preview-nome { font-size: 12px; color: var(--ink); font-weight: 500; }
.importar-confirm-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: linear-gradient(135deg, #1A5CDB, #3A7AF0); color: white; border: none; border-radius: var(--radius-sm); font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-blue); margin-bottom: 8px; }
.importar-confirm-btn:hover { opacity: .92; transform: translateY(-1px); }
.importar-confirm-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.importar-cancel-btn { width: 100%; padding: 11px; background: var(--bg-card2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }

/* ======= RELATÓRIO ======= */
.relatorio-btns { display: flex; flex-direction: column; gap: 10px; padding: 20px; }

/* ======= TABELA DE LISTAGEM (desktop) ======= */
.packets-mobile  { display: block; }
.packets-table-wrap { display: none; }

@media (min-width: 860px) {
    .packets-mobile  { display: none !important; }
    .packets-table-wrap {
        display: block;
        width: 100%;
        overflow-x: auto;
        border-radius: var(--radius-md);
        border: 1.5px solid var(--border);
        background: var(--bg-card);
        box-shadow: var(--shadow-sm);
    }
    .packets-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }
    .packets-table thead tr {
        background: var(--bg-card2);
        border-bottom: 2px solid var(--border);
    }
    .packets-table th {
        padding: 12px 16px;
        text-align: left;
        font-family: 'Poppins', sans-serif;
        font-size: 11px;
        font-weight: 700;
        color: var(--ink-3);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    .packets-table tbody tr {
        border-bottom: 1px solid var(--border);
        transition: background 0.15s;
    }
    .packets-table tbody tr:last-child { border-bottom: none; }
    .packets-table tbody tr:hover { background: var(--accent-bg); }
    .packets-table td {
        padding: 12px 10px;
        vertical-align: middle;
        color: var(--ink);
    }
    .tbl-code {
        font-family: 'Courier New', monospace;
        font-size: 12px;
        font-weight: 700;
        color: var(--accent);
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    .tbl-name {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 13px;
        color: var(--ink);
    }
    .tbl-addr {
        font-size: 12px;
        color: var(--ink-2);
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .tbl-date {
        font-size: 12px;
        color: var(--ink-3);
        white-space: nowrap;
    }
}

/* ================================================================
   MENSALIDADE CARD
   ================================================================ */
.mensalidade-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1.5px solid;
    animation: slideDown .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mensalidade-pendente {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fbbf24;
    box-shadow: 0 2px 12px rgba(251,191,36,.25);
}
.mensalidade-vencida {
    background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
    border-color: #f87171;
    box-shadow: 0 2px 12px rgba(248,113,113,.25);
}
.mensalidade-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.mensalidade-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: #92400e;
}
.mensalidade-vencida .mensalidade-card-icon svg { stroke: #dc2626; }
.mensalidade-card-body { flex: 1; min-width: 0; }
.mensalidade-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #78350f;
    line-height: 1.3;
}
.mensalidade-vencida .mensalidade-card-title { color: #991b1b; }
.mensalidade-card-sub {
    font-size: 11.5px;
    color: #92400e;
    margin-top: 3px;
    font-weight: 500;
    line-height: 1.4;
}
.mensalidade-vencida .mensalidade-card-sub { color: #b91c1c; }
.mensalidade-pagar-btn {
    flex-shrink: 0;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 9px 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: transform .15s, box-shadow .15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mensalidade-pagar-btn:hover { transform: scale(1.04); box-shadow: 0 4px 12px rgba(245,158,11,.4); }
.mensalidade-pagar-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.mensalidade-vencida .mensalidade-pagar-btn {
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(220,38,38,.3);
}
.mensalidade-vencida .mensalidade-pagar-btn:hover { box-shadow: 0 4px 14px rgba(220,38,38,.45); }

/* ================================================================
   PÁGINA DE GESTÃO
   ================================================================ */
.gestao-section-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 12px;
    margin-top: 4px;
}
.gestao-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    user-select: none;
}
.gestao-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(26,92,219,.12);
    transform: translateY(-1px);
}
.gestao-card:active { transform: scale(.98); }
.gestao-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gestao-card-icon svg { width: 22px; height: 22px; }
.gestao-icon-blue {
    background: #eff6ff;
    border: 1.5px solid rgba(26,92,219,.18);
}
.gestao-icon-blue svg { stroke: #1A5CDB; }
.gestao-icon-green {
    background: #f0fdf4;
    border: 1.5px solid rgba(22,163,74,.18);
}
.gestao-icon-green svg { stroke: #16a34a; }
.gestao-card-body { flex: 1; min-width: 0; }
.gestao-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 3px;
}
.gestao-card-desc {
    font-size: 12px;
    color: var(--ink-3);
    font-weight: 500;
    line-height: 1.4;
}
.gestao-card-arrow {
    width: 18px;
    height: 18px;
    stroke: var(--ink-3);
    flex-shrink: 0;
    transition: transform .2s, stroke .2s;
}
.gestao-card:hover .gestao-card-arrow {
    stroke: var(--accent);
    transform: translateX(3px);
}

/* ── Histórico Mensalidades ── */
.gestao-historico-empty {
    text-align: center;
    padding: 28px 16px;
    color: var(--ink-3);
    font-size: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-weight: 500;
}
.gestao-historico-list { display: flex; flex-direction: column; gap: 8px; }
.gestao-historico-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}
.gestao-historico-competencia {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--ink);
    min-width: 120px;
}
.gestao-historico-venc {
    font-size: 11px;
    color: var(--ink-3);
    font-weight: 500;
}
.gestao-historico-valor {
    font-weight: 700;
    color: var(--ink-2);
    font-size: 13px;
    margin-left: auto;
}
.gestao-historico-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.badge-pago     { background: #dcfce7; color: #166534; }
.badge-pendente { background: #fef3c7; color: #92400e; }
.badge-cancelado{ background: #fee2e2; color: #991b1b; }
.gestao-historico-datapag {
    width: 100%;
    font-size: 10.5px;
    color: var(--ink-3);
    margin-top: 2px;
}

/* ================================================================
   CHECKOUT MODAL — ajustes do Brick MP
   ================================================================ */
#mp-checkout-container {
    min-height: 80px;
}
#mp-checkout-container iframe {
    border-radius: 10px !important;
}
