/**
 * 🛒 Mercadinho Pro - Estilos Globais & Mobile-First Design
 */

:root {
    --primary-color: #4338ca;
    --primary-hover: #3730a3;
    --primary-subtle: #e0e7ff;
    --primary-gradient: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    
    --success-color: #059669;
    --success-hover: #047857;
    --success-subtle: #d1fae5;
    --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    
    --danger-color: #e11d48;
    --danger-hover: #be123c;
    --danger-subtle: #ffe4e6;
    --danger-gradient: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    
    --warning-color: #d97706;
    --warning-hover: #b45309;
    --warning-subtle: #fef3c7;
    --warning-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    
    --dark-color: #0f172a;
    --bg-main: #f8fafc;
    --surface-color: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --card-radius: 18px;
    --button-radius: 12px;
    --bottom-bar-height: 64px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* ======================================================== */
/* 1. LAYOUT PRINCIPAL: SIDEBAR DESKTOP & CONTEÚDO          */
/* ======================================================== */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-link {
    color: var(--text-muted);
    padding: 12px 18px;
    border-radius: var(--button-radius);
    margin: 3px 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    background: #f1f5f9;
    color: var(--primary-color);
    transform: translateX(3px);
}

.nav-link.active {
    background: var(--primary-gradient);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* ======================================================== */
/* 2. CABEÇALHOS (DESKTOP E MOBILE)                         */
/* ======================================================== */
.top-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 1010;
}

.mobile-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* ======================================================== */
/* 3. BOTÕES DE AÇÕES RÁPIDAS NO TOPO (SALES HUB)           */
/* ======================================================== */
.action-chip {
    padding: 8px 16px;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-chip:hover {
    transform: translateY(-1px);
}

.action-chip:active {
    transform: scale(0.96);
}

.action-chip-venda {
    background: var(--success-gradient);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.action-chip-venda:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.action-chip-receber {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #c7d2fe;
}

.action-chip-receber:hover {
    background: #f5f3ff;
    color: #3730a3;
}

.action-chip-cliente {
    background: #ffffff;
    color: #334155;
    border-color: var(--border-color);
}

.action-chip-cliente:hover {
    background: #f8fafc;
}

.action-chip-cobranca {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.action-chip-cobranca:hover {
    background: #d1fae5;
}

/* ======================================================== */
/* 4. BARRA INFERIOR MOBILE (NATIVE APP FEEL)               */
/* ======================================================== */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-bar-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary-color);
}

/* Botão Central Flutuante: + VENDA */
.btn-floating-venda {
    background: var(--success-gradient);
    color: #ffffff !important;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.45);
    margin-top: -24px;
    border: 3px solid #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    animation: pulse-venda 2.5s infinite;
}

.btn-floating-venda:active {
    transform: scale(0.92);
}

.btn-floating-venda i {
    font-size: 1.35rem;
}

@keyframes pulse-venda {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ======================================================== */
/* 5. CARDS, BOTÕES & ELEMENTOS VISUAIS                     */
/* ======================================================== */
.card {
    border: none;
    border-radius: var(--card-radius);
    background-color: var(--surface-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.btn {
    border-radius: var(--button-radius);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
}

.btn-success {
    background: var(--success-gradient);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-danger {
    background: var(--danger-gradient);
    border: none;
}

.store-logo-header {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

/* Sales Action Hero Cards on Dashboard */
.sales-action-card {
    border-radius: var(--card-radius);
    padding: 18px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.sales-action-card:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.sales-action-card:active {
    transform: scale(0.97);
}

.sales-card-venda {
    background: var(--success-gradient);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.sales-card-receber {
    background: var(--primary-gradient);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.sales-card-cliente {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

.sales-card-cobranca {
    background: var(--warning-gradient);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

/* Responsividade Mobile */
@media (max-width: 991.98px) {
    .main-content-wrapper {
        padding-bottom: 90px !important;
    }
    .sidebar {
        display: none !important;
    }
    .fs-mobile-title {
        font-size: 1.25rem !important;
    }
}

.sales-card-normal {
    background: #ffffff !important;
    color: #065f46 !important;
    border: 2px solid #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.sales-card-normal .btn-quick-icon {
    color: #059669 !important;
}

.sales-card-normal .btn-quick-title {
    color: #065f46 !important;
    font-weight: 700;
}

.sales-card-normal .btn-quick-arrow {
    color: #059669 !important;
    opacity: 0.8;
}

.sales-card-normal:hover {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #059669 !important;
}

/* Quick Action Buttons (100% largura no mobile, conteúdo em 1 linha só) */
.btn-quick-action {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    box-sizing: border-box;
    border: none;
}

.btn-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.btn-quick-action:active {
    transform: scale(0.98);
}

.btn-quick-action i.btn-quick-icon {
    width: 24px;
    font-size: 1.15rem;
    text-align: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.btn-quick-action .btn-quick-title {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-quick-action .btn-quick-arrow {
    opacity: 0.7;
    margin-left: auto;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.quick-action-btn:active {
    transform: scale(0.94);
}

.quick-action-btn i {
    font-size: 1.25rem;
    margin-bottom: 3px;
}

.quick-action-btn .btn-text {
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

.quick-action-btn .btn-sub {
    font-size: 0.65rem;
    opacity: 0.85;
    font-weight: 500;
    line-height: 1;
    margin-top: 2px;
}

.quick-action-venda {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.quick-action-receber {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.quick-action-cliente {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.quick-action-cobranca {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

@media (min-width: 768px) {
    .quick-action-btn {
        min-height: 72px;
        flex-direction: row;
        gap: 12px;
        padding: 14px 18px;
        justify-content: flex-start;
        text-align: left;
    }
    .quick-action-btn i {
        font-size: 1.6rem;
        margin-bottom: 0;
    }
    .quick-action-btn .btn-text {
        font-size: 0.95rem;
    }
    .quick-action-btn .btn-sub {
        font-size: 0.75rem;
        display: block !important;
    }
}

/* ======================================================== */
/* 5.2 OFFCANVAS DRAWER MOBILE REFINADO                     */
/* ======================================================== */
.offcanvas-start {
    width: 320px !important;
    max-width: 85vw !important;
    border-right: none !important;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.12) !important;
}

.offcanvas-header-custom {
    padding: 18px 18px 14px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.drawer-store-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.25);
}

.drawer-store-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-drawer-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.drawer-actions-box {
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.btn-drawer-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    cursor: pointer;
}

.btn-drawer-action:active {
    transform: scale(0.96);
}

.btn-drawer-venda {
    background: var(--success-gradient);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    color: #ffffff !important;
}

.btn-drawer-receber {
    background: var(--primary-gradient);
    box-shadow: 0 4px 14px rgba(67, 56, 202, 0.3);
    color: #ffffff !important;
}

.btn-drawer-outline-success {
    background: #ffffff !important;
    color: #059669 !important;
    border: 1.5px solid #10b981 !important;
}

.btn-drawer-outline-primary {
    background: #ffffff !important;
    color: #4338ca !important;
    border: 1.5px solid #6366f1 !important;
}

.drawer-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 14px 16px 6px;
    margin: 0;
}

.drawer-menu-list {
    list-style: none;
    padding: 0 10px;
    margin: 0;
}

.drawer-menu-item {
    margin-bottom: 3px;
}

.drawer-menu-link {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.15s ease;
}

.drawer-menu-link:hover {
    background: #f1f5f9;
    color: var(--primary-color);
    transform: translateX(2px);
}

.drawer-menu-link.active {
    background: #eef2ff;
    color: #4338ca !important;
    font-weight: 700;
}

.drawer-icon-box {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.drawer-menu-link.active .drawer-icon-box {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(67, 56, 202, 0.35);
}

.drawer-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    color: #cbd5e1;
    transition: transform 0.15s ease;
}

.drawer-menu-link:hover .drawer-chevron {
    color: var(--primary-color);
    transform: translateX(2px);
}

.drawer-footer {
    padding: 14px 16px;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.btn-drawer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border-radius: 12px;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    color: #e11d48;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-drawer-logout:hover {
    background: #ffe4e6;
    color: #be123c;
    border-color: #fecdd3;
}

.btn-drawer-logout:active {
    transform: scale(0.98);
}

/* ======================================================== */
/* 6. TELAS DE AUTENTICAÇÃO (LOGIN / REGISTRO)              */
/* ======================================================== */
body.auth-page { 
    background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%); 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 15px; 
    margin: 0;
    box-sizing: border-box;
}

.login-card { 
    background: #ffffff; 
    border-radius: 24px; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); 
    width: 100%; 
    max-width: 420px; 
    padding: 36px 28px; 
    box-sizing: border-box;
}

.register-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 500px;
    padding: 36px 28px;
    box-sizing: border-box;
}

.store-option { 
    cursor: pointer; 
    border: 1px solid #e2e8f0; 
    border-radius: 14px; 
    padding: 14px; 
    margin-bottom: 10px; 
    transition: 0.2s; 
}

.store-option:hover { 
    background: #f8fafc; 
    border-color: #4338ca; 
}

@media (max-width: 480px) {
    .login-card,
    .register-card {
        padding: 28px 20px;
        border-radius: 20px;
    }
}

/* Badges flexíveis com quebra de linha permitida */
.badge.text-wrap,
.badge-wrap {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

/* ============================================== */
/* CALCULADORA GRANDONA & VENDA RÁPIDA (PDV)      */
/* ============================================== */
/* ============================================== */
/* CALCULADORA GRANDONA & VENDA RÁPIDA (PDV)      */
/* ============================================== */
.pos-calc-box {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 14px;
    color: #ffffff;
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.pos-display-screen {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 10px;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pos-calc-tape {
    color: #38bdf8;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    min-height: 20px;
    text-align: right;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-calc-value {
    color: #10b981;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    font-size: clamp(2.1rem, 6vw, 3rem);
    line-height: 1.1;
    text-align: right;
    letter-spacing: 1px;
    text-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
}

.pos-keypad-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

/* Base de todos os botões da calculadora com relevo 3D tátil */
.btn-pos-key,
.btn-pos-op,
.btn-pos-fn,
.btn-pos-quick,
.btn-pos-equals,
.btn-pos-clear-action {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
    outline: none;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: transform 0.06s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.06s cubic-bezier(0.4, 0, 0.2, 1), filter 0.1s ease;
}

/* 1. TECLAS NUMÉRICAS (0-9, 00, vírgula) — Relevo Tátil Grafite Premium */
.btn-pos-key {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    color: #f8fafc;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 0 #090d16, 0 8px 12px rgba(0, 0, 0, 0.35);
}

.btn-pos-key:hover {
    filter: brightness(1.1);
    color: #ffffff;
}

.btn-pos-key:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #090d16, 0 2px 4px rgba(0, 0, 0, 0.25);
    background: #1e293b;
}

/* 2. OPERADORES MATEMÁTICOS (+, -, ×) — Relevo Azul Vibrante */
.btn-pos-op {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 0 #1d4ed8, 0 8px 12px rgba(37, 99, 235, 0.35);
}

.btn-pos-op:hover {
    filter: brightness(1.1);
    color: #ffffff;
}

.btn-pos-op:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #1d4ed8, 0 2px 4px rgba(0, 0, 0, 0.25);
    background: #1d4ed8;
}

/* 3. BOTÃO IGUAL (=) — Relevo Verde Esmeralda Caixa */
.btn-pos-equals {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 0 #047857, 0 8px 12px rgba(5, 150, 105, 0.35);
}

.btn-pos-equals:hover {
    filter: brightness(1.1);
    color: #ffffff;
}

.btn-pos-equals:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #047857, 0 2px 4px rgba(0, 0, 0, 0.25);
    background: #047857;
}

/* 4. TECLA BACKSPACE (Apagar) — Relevo Tátil Grafite com Ícone */
.btn-pos-fn {
    background: linear-gradient(180deg, #475569 0%, #334155 100%);
    color: #f1f5f9;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 0 #1e293b, 0 8px 12px rgba(0, 0, 0, 0.35);
}

.btn-pos-fn:hover {
    filter: brightness(1.1);
    color: #ffffff;
}

.btn-pos-fn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #1e293b, 0 2px 4px rgba(0, 0, 0, 0.25);
    background: #334155;
}

/* 5. TECLA C (Limpar Tudo) — Relevo Vermelho Intenso */
.btn-pos-clear {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 5px 0 #991b1b, 0 8px 12px rgba(220, 38, 38, 0.35) !important;
}

.btn-pos-clear:hover {
    filter: brightness(1.1);
}

.btn-pos-clear:active {
    transform: translateY(4px) !important;
    box-shadow: 0 1px 0 #991b1b, 0 2px 4px rgba(0, 0, 0, 0.25) !important;
    background: #b91c1c !important;
}

/* 6. CHIPS DE VALORES RÁPIDOS (+R$ 5, +10, +20, +50, +100) — Relevo Azul Ciano Sólido */
.btn-pos-quick {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 0 #075985, 0 8px 12px rgba(3, 105, 161, 0.3);
}

.btn-pos-quick:hover {
    filter: brightness(1.1);
    color: #ffffff;
}

.btn-pos-quick:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #075985, 0 2px 4px rgba(0, 0, 0, 0.25);
    background: #075985;
}

/* 7. BOTÃO ZERAR INFERIOR — Relevo Vermelho Elegante */
.btn-pos-clear-action {
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    height: 42px;
    padding: 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 0 #7f1d1d, 0 6px 10px rgba(185, 28, 28, 0.3);
    border-radius: 12px;
}

.btn-pos-clear-action:hover {
    filter: brightness(1.1);
    color: #ffffff;
}

.btn-pos-clear-action:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #7f1d1d, 0 2px 4px rgba(0, 0, 0, 0.25);
    background: #991b1b;
}

/* 8. BOTÃO AVANÇAR FECHAMENTO NO MOBILE */
.btn-pos-checkout {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    height: 48px;
    border-radius: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 0 #047857, 0 6px 10px rgba(5, 150, 105, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
    transition: transform 0.06s ease, box-shadow 0.06s ease;
}

.btn-pos-checkout:hover {
    filter: brightness(1.1);
    color: #ffffff;
}

.btn-pos-checkout:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #047857;
}

@media (max-width: 576px) {
    .pos-keypad-grid {
        gap: 6px;
    }
    .btn-pos-key,
    .btn-pos-op,
    .btn-pos-fn,
    .btn-pos-quick,
    .btn-pos-equals {
        height: 50px;
        font-size: 1.25rem;
        border-radius: 12px;
    }
    .btn-pos-quick {
        font-size: 0.85rem;
    }
    .pos-calc-box {
        padding: 12px;
    }
    .pos-display-screen {
        padding: 10px 14px;
        margin-bottom: 10px;
    }
}


