/* =========================
   LAYOUT BASE UNIFICADO
   ========================= */

/* Container principal - usado por todas as páginas */
.app-page {
    min-height: 100vh;
    color: var(--text);
    padding: 12px 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg-grad);
}

/* =========================
   LAYOUT BASE UNIFICADO
   ========================= */

/* Container principal - usado por todas as páginas */
.app-page,
.customer-page,
.lst-page {
    min-height: 100vh;
    color: var(--text);
    padding: 12px 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg-grad);
}

/* Header padrão */
.app-header,
.header,
.lst-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
}

/* Logo padrão */
.app-logo,
.logo,
.lst-logo-page {
    max-width: 180px;
    margin: 0 auto;
}

/* =========================
   TYPOGRAPHY SYSTEM
   ========================= */

/* Títulos principais */
.app-title,
.title,
.lst-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
}

.app-title.large {
    font-size: 28px;
    font-weight: 900;
}

.app-title.small {
    font-size: 20px;
    font-weight: 700;
}

/* Subtítulos */
.app-subtitle,
.sub,
.lst-sub {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

/* Títulos de seção */
.app-section-title,
.h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* =========================
   HEADER PATTERNS
   ========================= */

/* Header com saudação */
.app-head,
.head {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.app-greeting,
.greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Status badge */
.app-badge,
.status-badge {
    background: var(--panel-soft);
    color: var(--text-soft);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--line);
}

/* Section header */
.app-section-head,
.section-head {
    margin-top: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-section-count,
.section-count {
    background: var(--panel-soft);
    color: var(--text-soft);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--line);
}

/* =========================
   BUTTON SYSTEM
   ========================= */

/* Botão base */
.app-btn,
.btn,
.lst-chip {
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.app-btn:hover,
.btn:hover,
.lst-chip:hover {
    background: var(--panel-soft);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.app-btn:active,
.btn:active,
.lst-chip:active {
    transform: scale(.98);
}

/* Variações de botão */
.app-btn.primary,
.btn-primary {
    background: var(--button-primary-grad);
    color: var(--on-accent);
    border-color: var(--accent);
}

.app-btn.success,
.btn-affirm,
.btn-green {
    background: var(--button-affirm-grad);
    color: var(--on-green);
    border-color: var(--green);
}

.app-btn.accent,
.btn-accent {
    background: var(--button-accent-grad);
    color: var(--on-gold);
    border-color: var(--gold);
}

.app-btn.outline,
.btn-outline {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
}

/* Link-style button */
.btn-link {
    background: transparent;
    border-color: transparent;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Chip ativo */
.app-btn.active,
.lst-chip.is-active {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
}

/* =========================
   CARD SYSTEM  
   ========================= */

/* Card base */
.app-card,
.card,
.lst-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    transition: all 0.2s ease;
}

.app-card:hover,
.card:hover,
.lst-card:hover {
    box-shadow: var(--shadow), 0 0 0 1px var(--accent-2);
    transform: translateY(-2px);
}

/* Card de crédito especial */
.app-credit-card,
.credit-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 20px;
    color: var(--card-fg, var(--text));
    background: var(--card-bg, var(--card-grad));
    border: 1px solid var(--line-card);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
}

.app-credit-card::after,
.credit-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -20% -20%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(90% 60% at 50% 0%, var(--overlay-1), transparent 60%);
    pointer-events: none;
}

/* =========================
   GRID SYSTEMS
   ========================= */

/* Grid de cards */
.app-grid,
.cards,
.lst-chip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 540px) {

    .app-grid,
    .cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* Chips em duas colunas em todas as larguras */
.lst-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lst-chip-grid {
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 900px) {

    .app-grid,
    .cards {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* =========================
   INPUT SYSTEM
   ========================= */

.app-input,
.input {
    background: var(--bg-input);
    color: var(--text-input);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.app-input:focus,
.input:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--ring);
}

.app-input::placeholder,
.input::placeholder {
    color: var(--muted);
}

/* Chips ocupam toda a largura da coluna do grid e não estouram */
.lst-chip {
    width: 100%;
    box-sizing: border-box;
}

.lst-chip:focus {
    outline: none;
}

.lst-chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-2) inset;
}



/* Range input */
.app-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: var(--line);
    border-radius: 999px;
    outline: none;
}

.app-range::-webkit-slider-runnable-track {
    height: 10px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--_filled, 0%), var(--line) var(--_filled, 0%));
    border-radius: 999px;
}

.app-range::-moz-range-track {
    height: 10px;
    background: var(--line);
    border-radius: 999px;
}

.app-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--white);
    box-shadow: var(--shadow-elev);
    margin-top: -5px;
    /* centers thumb on 10px track */
    transition: transform .1s ease, box-shadow .2s ease;
}

.app-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--white);
    box-shadow: var(--shadow-elev);
    transition: transform .1s ease, box-shadow .2s ease;
}

.app-range:active::-webkit-slider-thumb,
.app-range:active::-moz-range-thumb {
    transform: scale(1.05);
}

.range-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

/* Stepper (− input +) */
.input-stepper {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    align-items: center;
}

.btn-round {
    border-radius: 999px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}

.stepper-input {
    text-align: left;
}

/* =========================
   UTILITY CLASSES
   ========================= */

/* Text utilities */
.text-muted {
    color: var(--muted);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.text-primary {
    color: var(--accent);
}

/* Background utilities */
.bg-panel {
    background: var(--panel);
}

.bg-soft {
    background: var(--panel-soft);
}

.bg-accent {
    background: var(--panel-accent);
}

/* Border utilities */
.border {
    border: 1px solid var(--line);
}

.border-strong {
    border: 1px solid var(--line-strong);
}

.rounded {
    border-radius: var(--radius);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

/* Spacing utilities */
.p-2 {
    padding: 8px;
}

.p-3 {
    padding: 12px;
}

.p-4 {
    padding: 16px;
}

.m-2 {
    margin: 8px;
}

.m-3 {
    margin: 12px;
}

.m-4 {
    margin: 16px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

/* Display utilities */
.flex {
    display: flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

/* Layout utilities */
.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.mt-auto {
    margin-top: auto;
}

/* =========================
   MICRO COMPONENTS (Chips, Feature list)
   ========================= */

/* Language/option chip */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .1s ease, box-shadow .1s ease, border-color .1s ease;
}

.chip img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
}

/* Chip com stepper lateral (− valor +) */
.lst-chip.chip-step {
    display: grid;
    grid-template-columns: 0px 1fr 0px;
    /* reduz ligeiramente para caber em telas estreitas */
    align-items: center;
    gap: 8px;
    overflow: hidden;
    /* impede halo de foco ultrapassar o chip */
    align-content: space-evenly;
    justify-items: center;
}

.chip-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    min-width: 0;
    /* permite encolher o conteúdo no grid */
}

.btn-circle {
    border-radius: 999px;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}


.chip:active {
    transform: scale(.97);
}

/* Feature list card */
.feature-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
}

.feature-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--accent);
}

.feature-ico {
    width: 18px;
    height: 18px;
    display: block;
}

.feature-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-title {
    font-weight: 800;
    font-size: 14px;
    color: var(--text);
}

.feature-desc {
    color: var(--muted);
    font-size: 13px;
}

/* =========================
   LOADING & EMPTY STATES
   ========================= */

.app-loading,
.app-empty,
.loading-container,
.empty-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.app-loading-card,
.app-empty-card,
.loading-card,
.empty-card {
    text-align: center;
    color: var(--muted);
    max-width: 300px;
}

.app-spinner,
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.app-empty-title,
.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.app-empty-text,
.empty-subtitle,
.loading-text {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

/* =========================
   FOOTER
   ========================= */

.app-footer,
.footer {
    text-align: center;
    color: var(--muted);
    margin-top: auto;
    padding: 16px 0;
    font-size: 12px;
}

/* =========================
   FORM SYSTEM
   ========================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-group.col-span-2 {
        grid-column: span 2;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
    .form-actions {
        flex-direction: column;
    }
}

/* =========================
   ALERT SYSTEM
   ========================= */

.app-alert {
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid;
}

.app-alert.success {
    background: var(--success-10);
    border-color: var(--success);
    color: var(--success);
}

.app-alert.danger {
    background: var(--danger-10);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-icon {
    font-weight: bold;
    font-size: 16px;
}

/* =========================
   SPINNER ANIMATIONS
   ========================= */

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =========================
   CARD COMPONENTS
   ========================= */

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.card-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--panel-soft);
    padding: 4px;
}

.card-title {
    flex: 1;
    min-width: 0;
}

.card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-category {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    font-weight: 500;
}

.card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--panel-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-action-btn:hover {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
}

.card-icon {
    width: 18px;
    height: 18px;
}

.card-content {
    margin-bottom: 16px;
}

.card-description {
    font-size: 14px;
    color: var(--text-soft);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.card-stats {
    display: flex;
    gap: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* =========================
   BUTTON ICON SUPPORT
   ========================= */

.app-btn-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-btn-icon svg {
    width: 100%;
    height: 100%;
}

/* =========================
   THEME SWITCHING UTILITIES  
   ========================= */

/* JavaScript para trocar temas: 
   document.documentElement.setAttribute('data-theme', 'ocean');
   ou
   document.body.className = 'theme-ocean'; 
*/

/* =========================
   SUMMARY
   ========================= */

/*
BRAZILIAN REWARDS DESIGN SYSTEM v2.0

3 TEMAS DISPONÍVEIS:
• theme-nature (Verde - Padrão)
• theme-ocean (Azul)  
• theme-sunset (Dourado)

COMO USAR:
1. Aplicar tema no elemento raiz: <section class="app-page theme-nature">
2. Trocar tema via JavaScript: element.className = 'app-page theme-ocean'
3. Usar classes padronizadas: app-title, app-btn, app-card, etc.

COMPONENTES PRINCIPAIS:
• Layout: app-page, app-header, app-footer
• Typography: app-title, app-subtitle, app-section-title
• Buttons: app-btn (+ primary, success, accent, outline, active)
• Cards: app-card, app-credit-card
• Forms: app-input, form-grid, form-group
• Grid: app-grid (responsivo)
• States: app-loading, app-empty, app-alert

BENEFÍCIOS:
✓ 3 temas harmoniosos baseados nas cores da marca
✓ Sistema unificado elimina duplicação de CSS
✓ Classes semânticas consistentes em todas as páginas
✓ Responsivo e acessível
✓ Fácil manutenção e extensão
*/

/* =========================
   LEGACY SUPPORT
   ========================= */

/* Mantém compatibilidade com classes existentes */

/* Cartão estilo crédito */
.credit-card {
    position: relative;
    border-radius: 20px;
    padding: 14px;
    color: var(--card-fg, var(--text));
    background: var(--card-bg, var(--card-grad));
    border: 1px solid var(--line-card);
    box-shadow: var(--shadow), inset 0 0 0 1px var(--white-06);
    overflow: hidden;
    cursor: pointer;
}

.credit-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -20% -20%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(90% 60% at 50% 0%, var(--overlay-1), transparent 60%);
    pointer-events: none;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-logo {
    height: 60px;
    width: auto;
    filter: var(--drop-shadow-logo);
}

.tag {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--overlay-1);
    border: 1px solid var(--overlay-2);
    font-size: 11px;
    font-weight: 900;
}

.card-middle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.card-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .12em;
    text-shadow: 0 1px 0 var(--shadow-text);
}

.card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.k {
    font-size: 10px;
    letter-spacing: .08em;
    opacity: .85;
}

.v {
    font-size: 12px;
    font-weight: 900;
}

.card-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 6px;
}

.balance {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.balance-label {
    font-size: 11px;
    opacity: .9;
}

.balance-val {
    font-size: 22px;
    font-weight: 900;
    color: var(--card-accent, var(--gold-accent));
    text-shadow: 0 1px 0 var(--shadow-text);
}

/* Mensagem no cartão */
.message {
    border-radius: 12px;
    padding: 10px;
    background: var(--overlay-1);
    border: 1px dashed var(--overlay-3);
}

.msg-text {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

/* Ações do cartão */
.actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--overlay-2);
    background: var(--overlay-0);
    color: var(--text);
    font-weight: 900;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .06s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
    cursor: pointer;
}

.btn:active {
    transform: scale(.98);
}

.ico {
    width: 18px;
    height: 18px;
}

.btn-green {
    background: var(--button-affirm-grad);
    color: var(--on-green);
    border-color: var(--line-strong);
    box-shadow: var(--button-affirm-shadow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--line-strong);
}

/* Pontos por empresa */
.points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pt-row {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.pt-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pt-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
}

.pt-logo img {
    width: 70%;
    height: auto;
    object-fit: contain;
}

.pt-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pt-text small {
    color: var(--muted);
    font-size: 12px;
}

.pt-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-chip {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    background: var(--overlay-1);
    border: 1px solid var(--line);
}

.caret {
    width: 18px;
    height: 18px;
    color: var(--muted);
}

/* Atividade recente */
.activity {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.act-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px dashed var(--line);
}

.act-row:last-child {
    border-bottom: 0;
}

.act-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.act-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.act-icon.cr {
    background: var(--up-10);
    color: var(--up);
}

.act-icon.dr {
    background: var(--down-10);
    color: var(--down);
}

.act-ico {
    width: 16px;
    height: 16px;
}

.act-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.act-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-date {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.act-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.act-amount {
    font-weight: 800;
    font-size: 14px;
}

.act-amount.cr {
    color: var(--up);
}

.act-amount.dr {
    color: var(--down);
}

.act-type {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.act-type.cr {
    color: var(--up);
}

.act-type.dr {
    color: var(--down);
}

/* Footer */
.footer {
    text-align: center;
    color: var(--muted);
    margin-top: 6px;
}

/* Responsivo */
@media (min-width: 540px) {
    .cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .cards {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* =========================
   CONTACT PAGE STYLES
   ========================= */

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.contact-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--green-10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

.avatar-icon {
    width: 24px;
    height: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.contact-role {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.contact-right {
    display: flex;
    gap: 8px;
}

.contact-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--green-10);
    border: 1px solid var(--green-20);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn:hover {
    background: var(--green-20);
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: var(--panel);
    cursor: pointer;
    transition: background 0.2s ease;
}

.method-row:hover {
    background: var(--panel-soft);
}

.method-row:not(:last-child) {
    border-bottom: 1px solid var(--line);
}

.method-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon.email {
    background: var(--success-10);
    color: var(--success);
}

.method-icon.phone {
    background: var(--info-10);
    color: var(--info);
}

.method-icon.whatsapp {
    background: var(--whatsapp-10);
    color: var(--whatsapp);
}

.method-ico {
    width: 20px;
    height: 20px;
}

.method-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.method-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

.method-detail {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.method-right {
    color: var(--muted);
}

/* Schedule Card */
.schedule-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-day {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.schedule-time {
    font-weight: 700;
    color: var(--green);
    font-size: 14px;
}

/* ===========================================
   TRANSACTIONS PAGE STYLES 
   ========================================= */

/* Loading and Empty States */
.loading-container,
.empty-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.loading-card,
.empty-card {
    text-align: center;
    color: var(--muted);
    max-width: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--line);
    border-top: 3px solid var(--green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.empty-icon {
    margin-bottom: 16px;
}

.empty-ico {
    width: 48px;
    height: 48px;
    color: var(--muted);
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-subtitle,
.loading-text {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.summary-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--text);
}

.summary-value.company {
    color: var(--green);
}

.summary-value.community {
    color: var(--gold-accent);
}

/* Transactions List */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-row {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.transaction-row:hover {
    background: var(--bg-soft);
    border-color: var(--green);
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-icon.cr {
    background: var(--up-10);
    color: var(--up);
}

.transaction-icon.dr {
    background: var(--down-10);
    color: var(--down);
}

.transaction-ico {
    width: 20px;
    height: 20px;
}

.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-company {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-date {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.transaction-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.transaction-points {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.points-company,
.points-community {
    font-size: 12px;
    font-weight: 700;
}

.points-company {
    color: var(--green);
}

.points-community {
    color: var(--gold-accent);
}

.transaction-type {
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-type.cr {
    background: var(--up-10);
    color: var(--up);
}

.transaction-type.dr {
    background: var(--down-10);
    color: var(--down);
}

/* Transaction Details (collapsed content) */
.transaction-details {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-time {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    min-width: 40px;
}

.detail-type {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.detail-right {
    display: flex;
    align-items: center;
}

.detail-points {
    font-size: 14px;
    font-weight: 700;
}

.detail-points.cr {
    color: var(--green);
}

.detail-points.dr {
    color: var(--danger);
}

/* =========================
   HOME MOCK CARD META TWEAKS (global)
   ========================= */
/* Ajusta espaçamento e previne quebra do OWNER em cartões globais */
.card-meta {
    column-gap: 6px;
}

.card-meta>div {
    min-width: 0;
}

.card-meta .v {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RedeemMock styles removed: now using shared design-system classes */