/* --- Main Container --- */
.v26-game-wrapper { 
    position: relative; 
    padding: 10px 0; 
    font-family: var(--font-primary); 
    box-sizing: border-box; 
}
.v26-game-wrapper * { box-sizing: border-box; }

.game-balance-label { font-size: 14px; margin-bottom: 10px; }
.game-balance-amount { color: #2ecc71; font-family: var(--font-secondary); }

/* --- Sticky Bar --- */
#v26-sticky-bar, .v26-dock {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 550px;
    height: 50px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(5px);
    color: white;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    z-index: 99999999 !important; /* UPDATED: Sticky Ad se zyada power */
    transition: bottom 0.4s ease; /* UPDATED: Smooth sliding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px 0 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
}

#v26-sticky-bar.v26-visible {
    bottom: 20px;
    visibility: visible;
    opacity: 1;
    pointer-events: all !important;
}

.v26-sticky-left { display: flex; flex-direction: column; line-height: 1; }
.v26-label { font-size: 8px; text-transform: uppercase; color: #94a3b8; margin-bottom: 2px; letter-spacing: 0.5px; font-weight: 700; }
#v26-balance-display { font-size: 16px; font-weight: 700; color: #2ecc71; font-family: var(--font-secondary); }
.v26-sticky-right { display: flex; gap: 8px; align-items: center; }

/* --- Sticky Buttons (With Font Awesome Support) --- */
.v26-btn-invoice {
    background: var(--color-brand);
    color: white !important; 
    border: none;
    padding: 8px 18px; 
    border-radius: 30px; 
    font-weight: 700; 
    font-size: 13px; 
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 57, 106, 0.4);
    transition: 0.2s;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 6px; /* Icon aur text ke beech gap */
}
.v26-btn-invoice i { font-size: 14px; } /* Icon size */
.v26-btn-invoice:hover { background: #e62e5c; transform: translateY(-1px); }
.v26-btn-invoice:disabled { background: #334155; opacity: 0.7; box-shadow: none; transform: none; color: #94a3b8 !important; }

.v26-btn-reset {
    background: transparent; color: #cbd5e1; border: 1px solid #475569;
    padding: 6px 12px; border-radius: 20px; font-size: 11px; cursor: pointer; height: 32px;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}
.v26-btn-reset:hover { border-color: var(--color-brand); color: var(--color-brand); }

/* --- Products Grid --- */
.v26-grid {
    display: grid;
    gap: 15px; 
    margin-top: 20px;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    padding: 10px; /* Thori padding taake edges se chipke na */
}
@media(min-width: 480px) { .v26-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 768px) { .v26-grid { grid-template-columns: repeat(4, 1fr); } }
@media(min-width: 1200px) { .v26-grid { grid-template-columns: repeat(4, 2fr); } }

/* --- Product Card --- */
.v26-card { 
    background: #fff; 
    border: 1px solid #f1f5f9; 
    border-radius: 12px; 
    padding: 8px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: transform 0.2s;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.v26-card:hover { border-color: var(--color-brand); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.v26-img-box { 
    height: 80px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 6px; 
    background: #ffffff; 
    border-radius: 8px;
    padding: 5px;
}
.v26-img-box img { max-height: 100%; max-width: 100%; object-fit: contain; }

.v26-info { margin-bottom: 8px; }
.v26-info-title { 
    font-size: 12px; 
    font-weight: 700; 
    color: #1e293b; 
    line-height: 1.2; 
    height: 28px; 
    overflow: hidden; 
    margin: 0; 
    font-family: var(--font-primary);
}
.v26-price { font-weight: 700; color: #2ecc71; margin: 2px 0 0; font-size: 12px; font-family: var(--font-secondary); }

.v26-controls { display: flex; justify-content: center; gap: 4px; align-items: center; }
.v26-btn { border: none; padding: 0; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }

.v26-buy { background: var(--color-brand); color: white; }
.v26-buy:hover { background: #d61c4e; }

.v26-sell { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.v26-sell:disabled { opacity: 0.4; cursor: not-allowed; background: #fff; border-color: #f1f5f9; }

.v26-qty { 
    width: 32px; 
    height: 26px;
    text-align: center; 
    border: 1px solid #e2e8f0; 
    border-radius: 6px; 
    font-weight: 700; 
    font-size: 13px; 
    color: #334155; 
    background: #fff; 
    padding: 0;
    font-family: var(--font-secondary);
}

/* --- CTA Section --- */
.v26-cta-container { 
    margin-top: 25px; 
    padding: 15px 20px; 
    background: #fff; 
    border: 1px solid #f1f5f9;
    border-radius: 12px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
@media(min-width: 768px) {
    .v26-cta-container { flex-direction: row; justify-content: center; gap: 30px; padding: 12px 20px; }
}

.v26-cta-title { font-size: 16px; font-weight: 800; color: #1e293b; margin: 0; font-family: var(--font-secondary); }
.v26-cta-btn { 
    display: inline-flex; /* Flex for icon alignment */
    align-items: center;
    gap: 8px;
    background: var(--color-brand); 
    color: #ffffff !important; 
    padding: 10px 24px; 
    border-radius: 30px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 14px;
    transition: 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(255, 57, 106, 0.3);
    font-family: var(--font-primary);
}
.v26-cta-btn:hover { background: #d61c4e; transform: translateY(-2px); color: #fff !important; }

/* --- Modal --- */
#v26-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999999; display: none; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
#v26-modal.v26-open { display: flex !important; }
.v26-modal-content { background: white; padding: 25px; border-radius: 16px; width: 90%; max-width: 380px; text-align: center; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.v26-close-icon { position: absolute; top: 12px; right: 12px; border: none; background: #f1f5f9; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; color: #64748b; font-weight: bold; line-height: 28px; padding: 0; }

.v26-invoice-title { margin: 0 0 5px 0; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; font-weight:800; color: var(--color-brand); font-family: var(--font-secondary); }
#v26-receipt-area { background: #fffcf5; padding: 15px; border: 1px dashed #cbd5e1; margin-bottom: 15px; font-family: 'Courier New', monospace; max-height: 250px; overflow-y: auto; text-align: left; border-radius: 6px; }
.v26-receipt-item { display: flex; justify-content: space-between; border-bottom: 1px dotted #e2e8f0; padding: 6px 0; font-size: 12px; color: #334155; }
.v26-receipt-total { border-top: 2px solid #333; margin-top: 10px; padding-top: 10px; display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; }
.v26-btn-download { width: 100%; background: #1e293b; color: white; padding: 12px; border: none; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 13px; font-family: var(--font-primary); display: flex; align-items: center; justify-content: center; gap: 8px; }
.v26-btn-download:hover { background: #0f172a; }