/* ===========================
   Wallet System Frontend Styles
   Fully Responsive + Animated
   =========================== */

/* Base Dashboard */
.wallet-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

/* Header */
.wallet-header {
    background: linear-gradient(135deg, #4e54c8, #3498db);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.wallet-header h1 {
    font-size: clamp(24px, 2.5vw, 32px);
    margin-bottom: 10px;
}

/* Root variables */
:root {
  --primary: #007bff;
  --surface: #f8f9fa;
  --border: #ddd;
  --primary-light: #3498db;
  --text-secondary: #666;
}

/* FAB container (default hidden) */
#qr-fab-container {
  display: none;
}

/* Balance Card */
.wallet-balance-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}
.balance-label {
    font-size: 16px;
    color: #95a5a6;
    margin-bottom: 5px;
}
.balance-amount {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Pending Rewards */
.pending-rewards-amount {
    color: #ff9800;
    font-weight: bold;
    font-size: 18px;
}

/* Cap Progress Enhancement */
.cap-progress { margin: 20px 0; width: 100%; }
.cap-progress-bar-container {
    background: #e0e0e0;
    border-radius: 6px;
    height: 12px;
    overflow: hidden;
}
.cap-progress-bar {
    height: 12px;
    width: 0%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 6px;
    transition: width 0.6s ease, box-shadow 0.6s ease;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.4);
}
.cap-progress-bar.animated { animation: fillProgress 1s forwards; }
@keyframes fillProgress { from { width: 0%; } to { width: var(--progress-percent); } }
.cap-progress-text {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
    text-align: right;
    font-weight: 500;
}

/* Stats Grid */
.wallet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.stat-card h3 {
    font-size: 15px;
    color: #95a5a6;
    margin-bottom: 8px;
}
.stat-value { font-size: 24px; font-weight: bold; color: #2C3E50; }

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    gap: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.badge:hover { transform: scale(1.05); box-shadow: 0 0 10px rgba(0,0,0,0.15); }
.badge.platinum { background-color: #e5e4e2; color: #666; }
.badge.gold { background-color: #ffd700; color: #666; }
.badge.silver { background-color: #c0c0c0; color: #333; }
.badge.bronze { background-color: #cd7f32; color: #fff; }
.badge.member { background-color: #ecf0f1; color: #2C3E50; }

/* Action Buttons */
.wallet-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.action-button {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}
.action-button.primary { background: linear-gradient(135deg, #2C3E50, #3498db); color: white; }
.action-button:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.action-icon { font-size: 32px; margin-bottom: 10px; }

/* Transactions Section */
.transactions-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-header h2 { font-size: 22px; color: #2C3E50; }

/* Transaction List */
.transaction-list { max-height: 400px; overflow-y: auto; }
.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}
.transaction-item:hover { background: #f8f9fa; }
.transaction-info { display: flex; flex-direction: column; }
.transaction-type { font-weight: bold; margin-bottom: 5px; }
.transaction-details { font-size: 14px; color: #95a5a6; }
.transaction-amount { font-weight: bold; font-size: 18px; }
.transaction-amount.credit { color: #27ae60; }
.transaction-amount.debit { color: #e74c3c; }

/* Contribution Animation */
.contribution-animation {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px; font-weight: bold;
    color: #27ae60;
    z-index: 999;
    opacity: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 15px 30px;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: contribution-fade 2s forwards;
}
@keyframes contribution-fade {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -100%) scale(1.2); }
}

/* Leaderboard */
.wallet-leaderboard {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.wallet-leaderboard-table {
    width: 100%; border-collapse: collapse; margin-top: 15px;
}
.wallet-leaderboard-table th, .wallet-leaderboard-table td {
    padding: 12px; border-bottom: 1px solid #eee; text-align: left;
}
.wallet-leaderboard-table th { background: #f8f9fa; font-weight: bold; color: #2C3E50; }
.wallet-leaderboard-table tr:hover { background-color: #f8f9fa; }
.wallet-leaderboard-table .rank { font-weight: bold; color: #5D6D7E; text-align: center; width: 60px; }
.wallet-leaderboard-table .user { font-weight: 500; }
.wallet-leaderboard-table .contribution { font-weight: bold; color: #27ae60; text-align: right; }
.wallet-leaderboard-table .badge-cell { text-align: center; width: 120px; }

/* Responsive */
@media (max-width: 768px) {
    .wallet-stats, .wallet-actions { grid-template-columns: 1fr; }
    .balance-amount { font-size: 32px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .wallet-leaderboard-table, .wallet-leaderboard-table tr, .wallet-leaderboard-table td {
        display: block; width: 100%; text-align: right;
    }
    .wallet-leaderboard-table thead { display: none; }
    .wallet-leaderboard-table td::before {
        content: attr(data-label);
        position: absolute; left: 12px;
        font-weight: bold; text-align: left;
    }
}

/* Loading Spinner */
.wallet-loading {
    display: none;
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
}
.wallet-loading .spinner {
    width: 40px; height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Notifications */
.wallet-notification {
    position: fixed;
    top: 20px; right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0; transform: translateX(100%);
    transition: all 0.3s ease;
}
.wallet-notification.show { opacity: 1; transform: translateX(0); }
.wallet-notification.success { background-color: #27ae60; }
.wallet-notification.error { background-color: #e74c3c; }

/* Forms & Buttons */
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px;
    border-radius: 6px; border: 1px solid #ddd; font-size: 16px;
}
.btn { border-radius: 6px; font-weight: 500; border: none; cursor: pointer; transition: all 0.3s; padding: 8px 16px; }
.btn-primary { background: #4e54c8; color: white; }
.btn-secondary { background: #f0f0f0; color: #333; }
.btn:hover { opacity: 0.9; }

/* Misc */
.no-transactions {
  text-align: center; color: #95a5a6; padding: 40px 0; font-style: italic;
}

/* Progress bar styling */
.progress-bar {
  position: relative;
  width: 100%; background: #eee;
  border-radius: 6px; overflow: visible; height: 8px; margin: 8px 0 4px;
}
.progress-bar-inner {
  height: 100%; background: #4caf50; transition: width 0.3s ease; width: 0%;
}
.progress-bar-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2; color: #fff; font-size: 12px; font-weight: bold; pointer-events: none; white-space: nowrap;
  text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* ---------------------------------------------------
   Wallet Referral Share Icons (merged clean)
--------------------------------------------------- */
.wallet-referral-icons {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem;
  font-size: 0.9rem; color: var(--text-secondary);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.wallet-referral-icons span { margin-right: 0.5rem; font-weight: 500; }
.wallet-referral-icons.is-visible { opacity: 1; transform: translateY(0); }

/* Share Icon reset */
.wallet-referral-icons .share-icon {
  all: unset; box-sizing: border-box;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: 28px !important; height: 28px !important;
  background: var(--surface) !important; border-radius: 50% !important;
  border: 1px solid var(--border) !important; color: var(--primary) !important;
  cursor: pointer !important; transition: background 0.2s, color 0.2s !important;
}
.wallet-referral-icons .share-icon:hover { background: var(--primary-light) !important; color: #fff !important; }
.wallet-referral-icons i { font-size: 14px !important; }

/* Hide label on small devices */
@media (max-width: 480px) { .wallet-referral-icons span { display: none !important; } }

/* Copy-link tooltip */
.copy-tooltip {
  position: fixed; bottom: 20px; right: 20px;
  background: rgba(0, 0, 0, 0.85); color: #fff;
  padding: 6px 10px; border-radius: 4px; font-size: 0.85rem;
  z-index: 9999; animation: fadeInOut 1.5s ease forwards;
}
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* Show FAB only on mobile (<768px) */
@media (max-width: 768px) {
  #qr-fab-container {
    display: flex; position: fixed; bottom: 20px; right: 20px;
    z-index: 9999; flex-direction: column-reverse; align-items: center;
  }
  .qr-fab-main {
    width: 56px; height: 56px;
    background: var(--primary); color: #fff;
    border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 24px; border: none; cursor: pointer;
    transition: transform 0.2s;
  }
  .qr-fab-actions { display: flex; flex-direction: column; margin-bottom: 12px; }
  .qr-fab-action {
    width: 44px; height: 44px; background: var(--surface); color: var(--primary);
    border-radius: 50%; font-size: 20px; margin-bottom: 12px;
    border: none; opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .qr-fab-container.open .qr-fab-main { transform: rotate(45deg); }
  .qr-fab-container.open .qr-fab-action { opacity: 1; transform: translateY(0); pointer-events: auto; }
}

/* QR Modals */
.wallet-qr-modal { display: none; position: fixed; inset: 0; align-items: center; justify-content: center; z-index: 9998; }
.wallet-qr-modal.is-open { display: flex; }
.wallet-qr-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.wallet-qr-content {
  position: relative; background: #fff; padding: 1.5rem; border-radius: 8px;
  max-width: 90%; width: 300px; text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.wallet-qr-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* QR code sizing */
#walletQrCode {
  width: 200px;
  height: 200px;
  margin: 1rem auto;
}

.fab-action-label {
  display: block;
  font-size: 10px;
  text-align: center;
  margin-top: 2px;
  color: #333;
}

/* Video container */
.wallet-qr-content { position: relative; }

/* Loading state for scanner */
.qr-scanner-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #666;
  font-size: 16px;
}

/* Camera permission prompt */
.camera-permission-prompt {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
}
.camera-permission-prompt button { margin-top: 10px; }

/* Error message */
#qr-scan-error {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: red;
}

/* Confirm button wrapper */
.qr-scan-actions { text-align: center; margin-top: 15px; }

/* QR Generator & Scanner styles */
#wallet-qr-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-around;
  margin-top: 30px;
}
.qr-generator, .qr-scanner {
  position: relative;
  width: 250px;
  padding: 20px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
}
.qr-generator input, .qr-scanner input {
  width: 80%;
  margin: 10px 0;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}
.qr-generator button, .qr-scanner button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
.qr-generator button:hover, .qr-scanner button:hover { background: #0056b3; }

/* Canvas & Logo positioning */
#qr-canvas {
  margin-top: 15px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
#qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  pointer-events: none;
}

/* Pulse animation */
.pulse-animation {
  position: absolute;
  top: 50%; left: 50%;
  width: 220px; height: 220px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,123,255,0.3);
  animation: pulse 1.5s infinite;
  pointer-events: none;
  z-index: -1;
}
.pulse-animation.active { display: block; }
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.7; }
}

/* Slide-in for transfer modal */
#modal-transfer.slide-in-up { animation: slideUp 0.4s ease-out; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Flash animation */
.highlight-flash { animation: flashBorder 1.2s ease-out; }
@keyframes flashBorder { 0% { box-shadow: 0 0 8px 2px #4caf50; } 100% { box-shadow: none; } }

/* Scan success checkmark */
.scan-success-check {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: #4caf50;
  font-weight: bold;
  z-index: 9999;
  animation: popIn 0.9s ease-out;
}
@keyframes popIn {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}


/* Fullscreen QR Scanner */
#modal-qr-scan.is-open {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #000;
  display: flex; justify-content: center; align-items: center;
  z-index: 10000;
}
#modal-qr-scan video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.qr-scan-frame {
  position: absolute;
  top: 50%; left: 50%;
  width: 250px; height: 250px;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(0, 255, 0, 0.6);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,255,0,0.5);
  animation: pulseFrame 1.5s infinite;
}
@keyframes pulseFrame {
  0% { box-shadow: 0 0 10px rgba(0,255,0,0.5); }
  50% { box-shadow: 0 0 25px rgba(0,255,0,0.8); }
  100% { box-shadow: 0 0 10px rgba(0,255,0,0.5); }
}

/* QR Scan Close Button */
.qr-scan-close {
  position: absolute;
  top: 20px; left: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff; border: none;
  font-size: 20px; padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer; z-index: 10001;
}

/* Flash effect when QR success */
.qr-flash-success {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,255,0,0.3);
  z-index: 10002;
  animation: qrFlashAnim 0.4s ease-out forwards;
}
@keyframes qrFlashAnim { from { opacity: 1; } to { opacity: 0; } }

/* Bottom Bar */
.wallet-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
}

.wallet-bottom-bar .fab-action {
  background: none;
  border: none;
  font-size: 22px;
  color: #333;
  cursor: pointer;
}

.wallet-bottom-bar .fab-main {
  background: #007bff;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: translateY(-20px);
}

/* Bottom Sheet */
.qr-options-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transition: bottom 0.3s ease;
  z-index: 10000;
}

.qr-options-sheet.active {
  bottom: 0;
}

.qr-options-content {
  padding: 20px;
  text-align: center;
}

.qr-option-btn {
  display: block;
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  font-size: 18px;
  border-radius: 12px;
  border: none;
  background: #f8f9fa;
  cursor: pointer;
  transition: background 0.2s;
}

.qr-option-btn:hover {
  background: #007bff;
  color: #fff;
}

.qr-option-close {
  margin-top: 10px;
  background: none;
  border: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
}

/* Hide bottom bar on desktop */
.wallet-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .wallet-bottom-bar {
    display: flex;
  }
}

/* Fix QR sheet: hide when not active */
.qr-options-sheet.hidden {
  display: none;
}

/* Ensure transactions section is visible when active */
#giva-standalone-transactions {
    display: block !important;
    width: 100%;
}

/* Mobile full-screen transactions */
@media (max-width: 768px) {
    #giva-standalone-transactions {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        z-index: 10000;
        overflow-y: auto;
        padding: 20px;
        margin: 0;
    }


/* Loading state */
#transactions-loading-container {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.wallet-error {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
}

}
/* -------------------------
   Receipt Modal Styles (merged & cleaned)
------------------------- */
/* Receipt Modal Fullscreen & Scrollable */
#receipt-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 10001; /* higher than transactions modal */
  display: flex;
  justify-content: center;   /* horizontal centering only */
  align-items: flex-start;   /* allow content to start at top */
  overflow-y: auto;          /* enable scrolling if content exceeds viewport */
  padding: 20px 0;           /* optional spacing from top/bottom */
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  box-sizing: border-box;
}

#receipt-modal.hidden {
  display: none;
}
#receipt-modal .receipt-content {
  position: absolute;
  width: 100%;
  max-width: 400px;
  max-height: calc(100% - 40px); /* ensure scrollable within viewport */
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  overflow-y: auto; /* critical for scrolling */
}
.receipt-header { margin-bottom: 20px; }
.receipt-logo { max-width: 80px; margin: 0 auto 10px; display: block; }
.receipt-tagline { font-size: 12px; font-style: italic; color: #555; margin-bottom: 15px; }
#receipt-modal .receipt-close {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 24px;
  border: none; background: transparent;
  cursor: pointer; z-index: 10;
}
.receipt-close:hover { color: #000; }
.receipt-amount { font-size: 20px; font-weight: bold; color: #2C3E50; margin: 10px 0; }
.receipt-status { font-size: 14px; color: #27ae60; margin-bottom: 8px; }
.receipt-ref { font-size: 13px; margin-top: 8px; }
.copy-ref-btn { margin-left: 8px; font-size: 12px; cursor: pointer; }
.verified-seal {
  font-size: 20px; color: #27ae60; font-weight: bold; margin-top: 15px;
  opacity: 0; transform: scale(0.5);
}
.verified-seal.pop-in { animation: popSeal 0.9s forwards; }
@keyframes popSeal {
  0% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}
.receipt-qr { margin: 15px auto; }
.receipt-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.receipt-actions .btn { padding: 10px 18px; border-radius: 12px; font-weight: 600; transition: 0.3s; }
.receipt-actions .btn-primary { background: linear-gradient(135deg, #2C3E50, #3498db); color: #fff; }
.receipt-actions .btn-secondary { background: #f0f0f0; color: #333; }
.receipt-actions .btn:hover { opacity: 0.9; }

/* Mobile responsiveness */
@media (max-width: 480px) {
  .receipt-content { padding: 15px; max-width: 95%; }
  .receipt-logo { max-width: 60px; }
  .receipt-actions { flex-direction: column; gap: 8px; }
}

/* Animation for modal */
@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Mobile specific fix */
@media (max-width: 768px) {
  #receipt-modal .receipt-content {
    max-width: 95%;
    max-height: 85vh;
  }
}