/* ==========================================================================
   GemiCore Design System (v2.0) - miPOS Official Dark Tech & Glassmorphism
   Aligned with Captive Portal Eco-Fintech Corporate Identity
   ========================================================================== */

:root {
    /* Superficies y Fondos Slate & Obsidian */
    --gc-bg-deep: #090d16;
    --gc-bg-surface: #0f172a;
    --gc-bg-card: #1e293b;
    --gc-bg-card-hover: #263346;
    --gc-bg-overlay: rgba(9, 13, 22, 0.82);
    
    /* Bordes Satinados Slate */
    --gc-border-card: #334155;
    --gc-border-card-hover: #475569;
    --gc-border-input: #334155;
    --gc-border-active: #10b981;
    
    /* Acento Esmeralda Fintech de Precision */
    --gc-brand-start: #10b981;
    --gc-brand-end: #059669;
    --gc-brand-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gc-brand-glow: 0 2px 8px rgba(16, 185, 129, 0.25);
    --gc-brand-glow-lg: 0 4px 14px rgba(16, 185, 129, 0.35);
    
    /* Tipografia y Textos */
    --gc-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --gc-text-bright: #f8fafc;
    --gc-text-muted: #94a3b8;
    --gc-text-dim: #64748b;
    
    /* Estados y Acentos Comerciales */
    --gc-status-online: #10b981;
    --gc-status-offline: #ef4444;
    --gc-accent-bcv: #f59e0b;
    --gc-accent-bcv-gold: #fbbf24;
    --gc-action-blue: #3b82f6;
    --gc-danger-red: #ef4444;
    
    /* Sombras y Elevaciones Finas */
    --gc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --gc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    --gc-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.65);
    
    /* Compatibilidad Legacy Variables */
    --primary-dark: var(--gc-bg-surface);
    --brand-accent: var(--gc-brand-start);
    --success-online: var(--gc-status-online);
    --action-blue: var(--gc-action-blue);
    --sandbox-warning: var(--gc-accent-bcv);
    --bg-base: var(--gc-bg-deep);
    --text-dark: var(--gc-text-bright);
    --text-muted: var(--gc-text-muted);
}

/* --------------------------------------------------------------------------
   Reseteo Universal y Contenedor Principal
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--gc-font-sans);
    -webkit-tap-highlight-color: transparent;
}

html, body {
    background-color: var(--gc-bg-deep);
    background-image: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, rgba(9, 13, 22, 1) 75%);
    color: var(--gc-text-bright);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------------------
   Header Flotante Glassmorphism (2 Niveles)
   -------------------------------------------------------------------------- */
.app-header {
    background: rgba(18, 24, 38, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gc-border-card);
    padding: 10px 14px 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--gc-shadow-sm);
    z-index: 100;
    flex: none;
}

/* Fila 1: Logo e Identidad + Botón Hamburguesa */
.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Logo Squircle & Branding */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.logo:hover .logo-icon-box {
    transform: scale(1.05);
}

.logo-sparkle-svg {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
    animation: gcSparkle 3s infinite ease-in-out;
}

@keyframes gcSparkle {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.9)); }
}

.logo-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.logo-main {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

/* Botón Hamburguesa Moderno y Amplio */
.btn-hamburger-pill {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--gc-border-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-hamburger-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.04);
}

.btn-hamburger-pill:active {
    transform: scale(0.94);
}

/* Fila 2: Sub-barra de Estado en Vivo (Fintech Slate Badges) */
.header-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

/* Online / Offline Status Badge */
.network-status {
    font-size: 0.74rem;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
}

.network-status.online {
    border-color: #334155;
    color: #f8fafc;
}

.network-status.offline {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
}

.network-status.offline .status-dot {
    background-color: #ef4444;
}

/* BCV Rate Badge */
.bcv-rate {
    font-size: 0.74rem;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 600;
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.bcv-rate:hover {
    background: #273549 !important;
    border-color: #475569 !important;
}

.bcv-rate:active {
    transform: scale(0.97);
}

.bcv-rate .bcv-label {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.72rem;
}

.bcv-rate .bcv-val {
    font-weight: 700;
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
}

/* Duplicate BCV rate hover cleaned */

/* Dropdown Menu Posicionamiento */
.dropdown-menu {
    position: absolute;
    top: 48px;
    right: 0;
    background: rgba(18, 24, 38, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--gc-border-card);
    padding: 6px;
}

/* Dropdown Sandbox Badge Oficial */
.dropdown-badge-sandbox {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 7px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    user-select: none;
}

.sandbox-warning {
    display: none;
}

.dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--gc-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-weight: 500;
    border-radius: 8px;
}

.dropdown-item svg {
    fill: currentColor;
    opacity: 0.8;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gc-text-bright);
}

.dropdown-item.text-danger {
    color: #f87171;
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* --------------------------------------------------------------------------
   Layout Principal del Punto de Venta
   -------------------------------------------------------------------------- */
.app-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    flex-direction: column;
}

.products-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px;
    overflow: hidden;
}

/* Barra de Búsqueda */
.search-bar {
    flex: none;
    margin-bottom: 10px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 42px 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--gc-border-input);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gc-text-bright);
    font-size: 0.9rem;
    outline: none;
    box-shadow: var(--gc-shadow-sm);
    transition: all 0.3s ease;
}

.search-bar input::placeholder {
    color: var(--gc-text-dim);
}

.search-bar input:focus {
    border-color: var(--gc-brand-start);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.30);
    background: rgba(255, 255, 255, 0.07);
}

#btn-camera {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--gc-text-muted);
    transition: transform 0.2s, color 0.2s;
}

#btn-camera:hover {
    color: var(--gc-brand-start);
    transform: translateY(-50%) scale(1.1);
}

/* Filtro de Categorias Horizontal (Segmented Control Bar Dinamico ETR-MIPOS-CAT-2026-005) */
.category-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 3px 0 8px 0;
    margin-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    flex: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--gc-border-card);
    background: #0f172a;
    color: var(--gc-text-muted);
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    flex-shrink: 0;
}

.cat-pill:hover {
    background: #1e293b;
    border-color: #475569;
    color: var(--gc-text-bright);
}

.cat-pill.active {
    background: #1e293b;
    color: #10b981;
    border-color: #10b981;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 8px rgba(16, 185, 129, 0.15);
}

.cat-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.70rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gc-text-muted);
    line-height: 1.2;
}

.cat-pill.active .cat-pill-count {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Grilla de Productos con Scroll Vertical Invisible y Alto Rendimiento */
.product-grid {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Desplazamiento nativo suave con inercia */
    scrollbar-width: none;             /* Ocultar barra en Firefox */
    -ms-overflow-style: none;          /* Ocultar barra en Edge / IE */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
    align-content: start;
    padding: 10px 10px 115px 10px;     /* Margen inferior para que el dock flotante no tape la última fila */
}

/* Ocultar barra de scroll en Chrome, Safari y navegadores WebKit */
.product-grid::-webkit-scrollbar {
    display: none;
    width: 0px;
    height: 0px;
    background: transparent;
}

/* Tarjetas de Producto Fintech Slate */
.product-card {
    background: var(--gc-bg-card);
    border: 1px solid var(--gc-border-card);
    border-radius: 12px;
    padding: 9px 9px 14px 9px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    user-select: none;
    box-shadow: var(--gc-shadow-sm);
    min-height: 225px;
    content-visibility: auto;          /* Optimización para grandes catálogos */
    contain-intrinsic-size: 230px;
}

.product-card:hover {
    background: var(--gc-bg-card-hover);
    border-color: var(--gc-border-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--gc-shadow-md);
}

.product-card:active {
    transform: scale(0.97);
}

/* Contenedor Cuadrado de Imagen Corporativa (125px fijo, sin colapso flex) */
.product-img-box {
    width: 100%;
    height: 125px;
    min-height: 125px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 10px;
    background: #0b111e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease;
}

.product-card:hover .product-img-box img {
    transform: scale(1.04);
}

.product-img-box svg {
    width: 52px;
    height: 52px;
    max-width: 65%;
    max-height: 65%;
    transition: transform 0.2s ease;
}

.product-card:hover .product-img-box svg {
    transform: scale(1.06);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.product-name {
    font-weight: 600;
    font-size: 0.80rem;
    color: #f8fafc;
    line-height: 1.25;
    height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    word-break: break-word;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.price-ves {
    font-weight: 800;
    font-size: 0.95rem;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ref-usd {
    font-size: 0.72rem;
    color: #10b981;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    padding: 2.5px 7px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Dock Flotante de Cobro en la Parte Inferior (Móvil)
   -------------------------------------------------------------------------- */
.floating-checkout-dock {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 150;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.dock-cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.dock-cart-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
}

.dock-cart-badge span {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #10b981;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.dock-cart-text {
    display: flex;
    flex-direction: column;
}

.dock-label {
    font-size: 0.68rem;
    color: var(--gc-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dock-total {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gc-text-bright);
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
}

.btn-dock-checkout {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-dock-checkout:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-dock-checkout:active {
    transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   Drawer Deslizable (Bottom Sheet en Móvil) y Backdrop
   -------------------------------------------------------------------------- */
.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 180;
}

.cart-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: rgba(18, 24, 38, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid #334155;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.8);
    z-index: 190;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateY(0);
}

.drawer-handle-bar {
    width: 100%;
    padding: 10px 0 6px 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
}

.drawer-handle {
    width: 42px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.2s;
}

.drawer-handle-bar:hover .drawer-handle {
    background: rgba(255, 255, 255, 0.45);
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--gc-border-card);
    color: var(--gc-text-muted);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.cart-badge-pill {
    background: var(--gc-brand-gradient);
    color: #fff;
    border-radius: 50rem;
    padding: 1px 8px;
    font-size: 0.72rem;
    font-weight: 800;
}

.cart-session-info {
    font-size: 0.75rem;
    color: var(--gc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-header {
    flex: none;
    padding: 10px 18px;
    border-bottom: 1px solid var(--gc-border-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 120px;
    max-height: 40vh;
}

.empty-cart {
    text-align: center;
    color: var(--gc-text-dim);
    margin: 30px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    transition: background 0.2s ease;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.item-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gc-text-bright);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid var(--gc-border-card);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    user-select: none;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
}

.qty-btn:active {
    transform: scale(0.92);
}

.item-qty {
    font-size: 0.9rem;
    font-weight: 700;
    width: 22px;
    text-align: center;
    color: var(--gc-text-bright);
}

.item-total {
    font-weight: 800;
    color: var(--gc-brand-start);
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.95rem;
}

.item-unit-price {
    font-size: 0.7rem;
    color: var(--gc-text-dim);
    font-weight: normal;
}

/* Resumen del Carrito y Acciones */
.cart-summary {
    flex: none;
    padding: 12px 18px 25px 18px;
    background: rgba(11, 15, 25, 0.9);
    border-top: 1px solid var(--gc-border-card);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--gc-text-muted);
    font-size: 0.85rem;
}

.total-row {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gc-text-bright);
    margin-top: 8px;
    margin-bottom: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    padding-top: 10px;
}

.total-row span:last-child {
    color: var(--gc-brand-start);
    
}

.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.btn-clear-cart {
    width: 46px;
    flex-shrink: 0;
    padding: 12px;
    border-radius: 12px;
}

.btn-checkout-main {
    flex: 1;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Botones Ergonómicos y Estilos de Acción
   -------------------------------------------------------------------------- */
.btn {
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
}

.btn-primary {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #1e293b;
    color: var(--gc-text-muted);
    border: 1px solid var(--gc-border-card);
}

.btn-secondary:hover {
    background: #273549;
    color: var(--gc-text-bright);
    border-color: var(--gc-border-card-hover);
}

.btn-secondary:active {
    transform: scale(0.97);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    font-size: 0.85rem;
}

.btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
}

.btn-danger:active {
    transform: scale(0.95);
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Modales Fintech Slate & Componentes de Facturacion
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gc-bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 16px;
    animation: gcFadeIn 0.2s ease-out;
}

.modal-content {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--gc-shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    color: var(--gc-text-bright);
    overflow: hidden;
    animation: gcScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    padding: 20px 20px 4px 20px;
    flex-shrink: 0;
}

.modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gc-text-bright);
}

.modal-subtitle {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: var(--gc-text-muted);
}

.modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}

.modal-footer {
    padding: 12px 20px 20px 20px;
    flex-shrink: 0;
}

/* Floating Input Group */
.floating-group {
    position: relative;
    margin-bottom: 1rem;
}

.floating-input {
    width: 100%;
    padding: 18px 14px 6px 14px;
    border: 1px solid var(--gc-border-input);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    background: #1e293b;
    color: var(--gc-text-bright);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.floating-input:focus {
    border-color: var(--gc-border-active);
    background: #243044;
}

.floating-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gc-text-dim);
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.15s ease all;
}

.floating-input:not(:placeholder-shown) ~ .floating-label,
.floating-input.has-value ~ .floating-label {
    top: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
}

.floating-input:focus ~ .floating-label {
    top: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #10b981;
}

/* RIF Input Group Unificado */
.rif-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--gc-border-input);
    border-radius: 10px;
    background: #1e293b;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.rif-input-group:focus-within {
    border-color: var(--gc-border-active);
}

.rif-prefix-select {
    background: #0f172a;
    color: var(--gc-text-bright);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-right: 1px solid var(--gc-border-input);
    padding: 0 10px;
    outline: none;
    cursor: pointer;
}

.rif-floating {
    flex: 1;
    margin-bottom: 0;
}

.rif-input {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.btn-fast-client {
    background: #0f172a;
    color: var(--gc-text-muted);
    border: none;
    border-left: 1px solid var(--gc-border-input);
    padding: 0 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-fast-client:hover {
    background: #1e293b;
    color: #10b981;
}

/* Segmented Controls (Taxpayer & ISLR Chips) - Non-Overflowing Grid */
.field-section-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: var(--gc-text-muted);
    font-weight: 600;
}

.chip-group {
    display: flex;
    background: #090d16;
    border: 1px solid var(--gc-border-input);
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.chip {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 6px 2px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--gc-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.chip-name {
    font-size: 0.71rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

.chip-pct {
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.chip:hover {
    color: var(--gc-text-bright);
    background: rgba(255, 255, 255, 0.04);
}

.chip.active {
    background: #1e293b;
    color: #10b981;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.chip.active .chip-name {
    color: #f8fafc;
}

.chip.active .chip-pct {
    color: #10b981;
}

/* Payment Summary Card (Tarjeta Resumen Fiscal) */
.payment-summary-card {
    background: #090d16;
    border: 1px solid var(--gc-border-input);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.pay-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gc-text-muted);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.pay-summary-label {
    font-weight: 500;
}

.pay-summary-val {
    font-weight: 600;
    color: var(--gc-text-bright);
}

.pay-summary-val .usd-badge {
    font-size: 0.75rem;
    color: var(--gc-text-dim);
    margin-left: 6px;
}

.highlight-retention {
    color: #38bdf8 !important;
}

.highlight-retention .pay-summary-val {
    color: #38bdf8 !important;
}

.highlight-islr {
    color: #fbbf24 !important;
}

.highlight-islr .pay-summary-val {
    color: #fbbf24 !important;
}

.highlight-igtf {
    color: #f87171 !important;
}

.highlight-igtf .pay-summary-val {
    color: #f87171 !important;
}

.pay-summary-divider {
    height: 1px;
    background: var(--gc-border-input);
    margin: 10px 0;
}

.pay-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.pay-total-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gc-text-dim);
    font-weight: 700;
}

.pay-total-bs {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gc-text-bright);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    margin-top: 2px;
}

.pay-total-usd-badge {
    font-size: 0.95rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 10px;
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
}

/* Grilla de Metodos de Pago */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)) !important;
    gap: 10px;
    margin-bottom: 15px;
}

.payment-tile {
    background: #1e293b;
    border: 1px solid var(--gc-border-input);
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
}

.payment-tile svg {
    fill: var(--gc-text-muted);
    transition: fill 0.15s ease, stroke 0.15s ease;
}

.payment-tile .tile-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gc-text-bright);
}

.payment-tile:hover {
    border-color: #475569;
    background: #273549;
}

.payment-tile:active {
    transform: scale(0.97);
}

.payment-tile.active {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.08) !important;
    box-shadow: 0 0 0 1px #10b981;
}

.payment-tile.active svg {
    fill: #10b981 !important;
    stroke: #10b981 !important;
}

.payment-tile.active .tile-label {
    color: #10b981 !important;
}

/* Formularios de Pagos y Bancos */
.form-fintech-select,
.form-fintech-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--gc-border-input);
    border-radius: 8px;
    font-size: 0.92rem;
    background-color: #1e293b;
    color: var(--gc-text-bright);
    outline: none;
    transition: border-color 0.15s ease;
}

.form-fintech-select:focus,
.form-fintech-input:focus {
    border-color: var(--gc-border-active);
}

.change-box-fintech {
    background: #090d16;
    border: 1px solid var(--gc-border-input);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 15px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.change-box-label {
    font-size: 0.78rem;
    color: var(--gc-text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.change-box-bs {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gc-text-bright);
    margin-top: 2px;
}

.change-box-usd {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 700;
}

/* Modales Administrativos (Apertura / Cierre de Caja / Reportes) */
.session-modal-card {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

.session-modal-header {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
    color: #f8fafc !important;
    padding: 16px 20px !important;
}

.session-info-alert {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 8px !important;
    color: #93c5fd !important;
}

.session-stat-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 10px !important;
    padding: 18px !important;
    color: #f8fafc !important;
}

.cash-count-card {
    background: #090d16 !important;
    border: 1px solid #334155 !important;
    border-radius: 10px !important;
    padding: 14px !important;
}

.cash-count-input {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    font-variant-numeric: tabular-nums !important;
}

/* --------------------------------------------------------------------------
   NFC Contactless & Radar Pulse Animation (Verde Esmeralda Corporativo)
   -------------------------------------------------------------------------- */
.nfc-radar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nfc-center-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    border: 2px solid var(--gc-brand-start);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.nfc-center-icon svg {
    stroke: var(--gc-brand-start) !important;
}

.nfc-center-icon.success {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: #86efac !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.50) !important;
}

.nfc-center-icon.processing {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: var(--gc-accent-bcv-gold) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5) !important;
    animation: nfcSpin 1.5s linear infinite;
}

.nfc-pulse-circle {
    position: absolute;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid var(--gc-brand-start);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.30);
    opacity: 0;
    pointer-events: none;
    animation: nfcPulseWave 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.circle-1 { animation-delay: 0s; }
.circle-2 { animation-delay: 0.7s; }
.circle-3 { animation-delay: 1.4s; }

@keyframes nfcPulseWave {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

@keyframes nfcSpin {
    0% { transform: scale(1.06) rotate(0deg); }
    50% { transform: scale(0.95) rotate(180deg); }
    100% { transform: scale(1.06) rotate(360deg); }
}

@keyframes gcPulse {
    0% { transform: scale(0.97); opacity: 0.9; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(0.97); opacity: 0.9; }
}

@keyframes gcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gcScaleUp {
    from { transform: scale(0.93) translateY(12px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Pantallas de Carga y Scrollbars
   -------------------------------------------------------------------------- */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 15, 25, 0.94);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    visibility: visible;
    opacity: 1;
}

.loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(16, 185, 129, 0.20);
    border-top-color: var(--gc-brand-start);
    border-radius: 50%;
    animation: gcSpin 1s linear infinite;
    margin-bottom: 18px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.30);
}

.loading-text {
    font-size: 1.05rem;
    color: var(--gc-text-bright);
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes gcSpin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Satinado */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.30);
}

/* --------------------------------------------------------------------------
   Responsive (Desktop y Tablets)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
    .app-layout {
        flex-direction: row;
    }
    
    .floating-checkout-dock {
        display: none !important;
    }
    
    .cart-backdrop {
        display: none !important;
    }
    
    .cart-drawer {
        position: relative !important;
        transform: none !important;
        width: 380px !important;
        height: 100% !important;
        max-height: none !important;
        border-radius: 0 !important;
        border-top: none !important;
        border-left: 1px solid var(--gc-border-card) !important;
        box-shadow: -8px 0 25px rgba(0, 0, 0, 0.45) !important;
        z-index: 10 !important;
    }
    
    .drawer-handle-bar {
        display: none !important;
    }
    
    .drawer-close-btn {
        display: none !important;
    }
    
    .cart-items {
        max-height: none !important;
        flex: 1;
    }

    .cart-summary {
        padding-bottom: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        padding-bottom: 20px;
    }
}

/* ==========================================================================
   Crypto Hub Launcher & Web3 Modal - Premium Obsidian & Gold Aesthetic
   ========================================================================== */
.crypto-hub-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(26, 34, 52, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.crypto-hub-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.12), transparent);
    transition: left 0.6s ease;
}

.crypto-hub-btn:hover {
    border-color: rgba(245, 158, 11, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.crypto-hub-btn:hover::before {
    left: 100%;
}

.crypto-hub-btn:active {
    transform: translateY(0);
}

.crypto-hub-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.crypto-icons {
    display: flex;
    align-items: center;
}

.crypto-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    margin-right: -8px;
    border: 2px solid #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    background: #1e293b;
    transition: transform 0.2s;
}

.crypto-hub-btn:hover .crypto-icon {
    transform: translateY(-2px);
}

.crypto-icon.btc { background: #2a1f10; color: #f7931a; }
.crypto-icon.eth { background: #1c2237; color: #818cf8; }
.crypto-icon.usdt { background: #112d27; color: #10b981; }
.crypto-icon.binance { background: #2e2613; font-size: 11px; }

.crypto-hub-text {
    display: flex;
    flex-direction: column;
}

.crypto-hub-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.crypto-hub-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

.crypto-hub-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crypto-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.30);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.crypto-chevron {
    color: #94a3b8;
    transition: transform 0.2s, color 0.2s;
}

.crypto-hub-btn:hover .crypto-chevron {
    color: #f59e0b;
    transform: translateX(3px);
}

/* Modal Crypto Hub */
#crypto-hub-modal .modal-content {
    background: var(--gc-bg-surface) !important;
    border: 1px solid var(--gc-border-card) !important;
    border-radius: 16px !important;
    box-shadow: var(--gc-shadow-lg) !important;
    color: var(--gc-text-bright) !important;
    max-width: 440px;
    width: 92%;
}

#crypto-hub-modal .modal-header h3 {
    color: #ffffff !important;
}

.crypto-asset-pill {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.crypto-asset-pill:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #10b981;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.30);
    background: rgba(16, 185, 129, 0.10);
}

.crypto-wallet-card {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gc-border-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #f1f5f9;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.crypto-wallet-card:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.30);
    transform: translateX(4px);
}

/* ==========================================================================
   SweetAlert2 Dark Theme Theme-Harmonization (Obsidian & Eco-Green)
   ========================================================================== */
.swal2-container {
    backdrop-filter: blur(8px) !important;
}

.swal2-popup {
    background: #121826 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75) !important;
    color: #f1f5f9 !important;
    font-family: var(--gc-font-sans) !important;
}

.swal2-popup.swal2-toast {
    background: #151d2e !important;
    border: 1px solid rgba(16, 185, 129, 0.30) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.swal2-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

.swal2-html-container {
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.swal2-input, .swal2-textarea, .swal2-select {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.swal2-input:focus, .swal2-textarea:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.20) !important;
    outline: none !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #10b981 0%, #218838 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35) !important;
}

.swal2-confirm:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
    filter: brightness(1.08) !important;
}

.swal2-cancel {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.swal2-cancel:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}


/* Prevencion de Fondo Blanco por Autofill o Navegador */
.rif-floating,
.rif-floating .floating-input,
.rif-input,
#client-rif {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--gc-text-bright) !important;
    box-shadow: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #f8fafc !important;
    -webkit-box-shadow: 0 0 0px 1000px #1e293b inset !important;
    box-shadow: 0 0 0px 1000px #1e293b inset !important;
    transition: background-color 5000s ease-in-out 0s;
}


/* ==========================================================================
   DESIGN.md Semantic Component Classes (Zero Inline Styles)
   ========================================================================== */

/* NFC Contactless Charging & Voucher Cards */
.nfc-charge-card {
    background: var(--gc-brand-subtle);
    border: 1px solid var(--gc-brand-border);
    border-radius: var(--gc-radius-lg, 14px);
    padding: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.nfc-charge-label {
    font-size: 0.8rem;
    color: var(--gc-text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nfc-charge-ves {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gc-text-bright);
    margin: 4px 0;
    font-variant-numeric: tabular-nums;
}

.nfc-charge-usd {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gc-brand-primary, #10b981);
    font-variant-numeric: tabular-nums;
}

.nfc-voucher-card {
    background: var(--gc-brand-subtle);
    border: 1px solid var(--gc-brand-border);
    border-radius: var(--gc-radius-md, 12px);
    padding: 14px;
    margin-top: 15px;
    text-align: left;
    font-size: 0.85rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    color: #e2e8f0;
}

.nfc-voucher-title {
    font-weight: 800;
    color: var(--gc-brand-primary, #10b981);
    text-align: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.voucher-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.voucher-label {
    color: var(--gc-text-muted);
}

.voucher-value {
    color: var(--gc-text-bright);
    font-weight: 600;
}

/* Modal Headers, Subtitles & Badges */
.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.modal-header-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-icon-badge {
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gc-brand-primary, #10b981);
    flex-shrink: 0;
}

.modal-icon-badge.warning {
    background: var(--gc-accent-bcv-bg, rgba(245, 158, 11, 0.15));
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--gc-accent-bcv-gold, #fbbf24);
}

.modal-title-text {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gc-text-bright);
}

.modal-subtitle-text {
    margin: 2px 0 0 0;
    font-size: 0.78rem;
    color: var(--gc-text-muted);
}

.modal-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--gc-border-card);
    padding-top: 14px;
}

.modal-footer-center {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--gc-border-card);
    padding: 14px 20px;
}
