
  .level-progress-container {
    width: 100%;
    margin: 5px 0 15px 0;
    font-family: inherit;
  }
  .level-progress-bar {
    position: relative;
    height: 22px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
  }
  .level-progress-fill {
    height: 100%;
    background: var(--color1, #f54b73);
    width: 65%; /* Placeholder */
    border-radius: 12px;
    box-shadow: 0 0 15px var(--color1, #f54b73);
    position: relative;
    transition: width 0.5s ease-out;
  }
  /* Striped texture overlay */
  .level-progress-fill::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.15) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.15) 75%,
      transparent 75%,
      transparent
    );
    background-size: 20px 20px;
    opacity: 0.6;
  }
  .level-info {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    letter-spacing: 0.02em;
    z-index: 2;
  }


  		/* Hide scrollbars for horizontal scroll containers */
		.companion-scroll-container {
			-ms-overflow-style: none;
			scrollbar-width: none;
		}

		.companion-scroll-container::-webkit-scrollbar {
			display: none;
		}

		/* Enable cursor grab when not dragging */
		.companion-scroll-container {
			cursor: grab;
		}

		/* Cursor grab when actively dragging */
		.companion-scroll-container.dragging {
			cursor: grabbing;
		}

		/* Bubble pop animation for message avatars */
		@keyframes bubblePop {
			0% {
				transform: scale(0);
				opacity: 0;
			}

			70% {
				transform: scale(1.1);
			}

			/* Overshoot for "pop" effect */
			100% {
				transform: scale(1);
				opacity: 1;
			}
		}

		.pop-animation {
			animation: bubblePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
			transform-origin: center;
		}

		.style-option:hover {
			transform: translateY(-2px);
			opacity: 0.9 !important;
		}

		.style-option.active:hover {
			transform: none !important;
			opacity: 1 !important;
		}

		/* Heart animation for image loading */
		.heart {
			position: relative;
			margin: 20px auto;
			background-color: pink;
			height: 25px;
			width: 25px;
			transform: rotate(-45deg);
			animation: beat 1s infinite;
		}

		.heart:after {
			background-color: pink;
			content: "";
			border-radius: 50%;
			position: absolute;
			width: 25px;
			height: 25px;
			top: 0px;
			left: 12.5px;
		}

		.heart:before {
			background-color: pink;
			content: "";
			border-radius: 50%;
			position: absolute;
			width: 25px;
			height: 25px;
			top: -12.5px;
			left: 0px;
		}

		@keyframes beat {
			0% {
				transform: scale(1) rotate(-45deg);
			}

			50% {
				transform: scale(0.6) rotate(-45deg);
			}

			100% {
				transform: scale(1) rotate(-45deg);
			}
		}

		.chat-messages {
			padding-bottom: 50px !important;
		}

		/* Enhanced Reveal Animation */
		/* Smooth Top-Down Blur Reveal */
		@keyframes revealMessage {
			0% {
				opacity: 0;
				transform: translateY(-30px);
				filter: blur(10px);
			}

			100% {
				opacity: 1;
				transform: translateY(0);
				filter: blur(0px);
			}
		}

		.message-reveal {
			animation: revealMessage 0.6s ease-out forwards;
			will-change: transform, opacity, filter;
		}

		/* Modal Styles */
		.modal-overlay {
			position: fixed;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: rgba(0, 0, 0, 0.7);
			backdrop-filter: blur(5px);
			display: none;
			justify-content: center;
			align-items: center;
			z-index: 10000;
			opacity: 0;
			transition: opacity 0.3s ease;
		}

		.modal-overlay.active {
			display: flex;
			opacity: 1;
		}

		.modal-container {
			background: #1a1a1a;
			border: 1px solid rgba(255, 255, 255, 0.1);
			border-radius: 16px;
			padding: 24px;
			width: 90%;
			max-width: 500px;
			position: relative;
			transform: scale(0.9);
			transition: transform 0.3s ease;
			color: white;
		}

		.modal-overlay.active .modal-container {
			transform: scale(1);
		}

		.modal-header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 20px;
		}

		.modal-close {
			cursor: pointer;
			font-size: 24px;
			color: #888;
			transition: color 0.2s;
		}

		.modal-close:hover {
			color: white;
		}

		.modal-body {
			min-height: 100px;
		}


        .quick-actions-modal {
            position: fixed;
            z-index: 10001; /* Above almost everything */
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.6);
            backdrop-filter: blur(5px);
            display: flex; /* Flex to center */
            align-items: center;
            justify-content: center;
        }

        .quick-actions-content {
            background-color: #1e1e1e;
            color: #fff;
            margin: auto;
            padding: 20px;
            border: 1px solid #333;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.5);
            animation: fadeIn 0.3s;
        }

        @keyframes fadeIn {
            from {opacity: 0; transform: scale(0.9);}
            to {opacity: 1; transform: scale(1);}
        }

        .quick-actions-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #333;
            padding-bottom: 10px;
            margin-bottom: 15px;
        }

        .quick-actions-header h3 {
            margin: 0;
            font-size: 1.2rem;
            color: #eee;
        }

        .close-modal {
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.2s;
        }

        .close-modal:hover,
        .close-modal:focus {
            color: #fff;
            text-decoration: none;
        }

        .quick-actions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 15px;
            /* max-height removed to allow filling container */
            overflow-y: auto;
            padding-right: 5px; 
            height: 100%; /* Ensure it takes full height */
        }

        

        /* Scrollbar styling */
        .quick-actions-grid::-webkit-scrollbar {
            width: 6px;
        }
        .quick-actions-grid::-webkit-scrollbar-track {
            background: #2a2a2a; 
            border-radius: 3px;
        }
        .quick-actions-grid::-webkit-scrollbar-thumb {
            background: #555; 
            border-radius: 3px;
        }

        .action-card {
            background-color: #2a2a2a;
            border-radius: 8px;
            padding: 10px;
            text-align: center;
            cursor: pointer;
            transition: background-color 0.2s, transform 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            border: 1px solid transparent;
        }

        .qaCard {
            background-color: #2a2a2a;
            border-radius: 8px;
            padding: 10px;
            text-align: center;
            cursor: pointer;
            transition: background-color 0.2s, transform 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            border: 1px solid transparent;
            min-width: 80px; /* Ensure they have some width */
        }

        .qaCard.active {
            background-color: var(--color1, #f54b73);
            color: white;
            border-color: rgba(255,255,255,0.3);
            box-shadow: 0 0 10px rgba(245, 75, 115, 0.4);
        }

        .qaCard:hover:not(.active) {
             background-color: #333;
        }

        .action-card:hover {
            background-color: #333;
            transform: translateY(-2px);
            border-color: var(--color1, #ff0055);
        }

    
        
        /* Fallback icon style if image fails or is missing */
        .action-icon.fallback {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #666;
        }

        .action-name {
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .action-karma {
            font-size: 0.75rem;
            color: #aaa;
            background: rgba(0,0,0,0.3);
            padding: 2px 6px;
            border-radius: 4px;
        }

        .shop-item-xp {
            font-size: 12px;
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.4);
            box-shadow: 0 0 12px rgba(59, 130, 246, 0.3), inset 0 0 8px rgba(59, 130, 246, 0.1);
            text-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
            animation-delay: 0.1s;
            padding: 2px 5px;
            min-width: 60px;
            border-radius: 3px;
        }

        .shop-item-karma {
            font-size: 12px;
            background: linear-gradient(135deg, rgba(246, 215, 59, 0.086) 0%, rgba(235, 232, 37, 0.153) 100%);
            color: #fad360;
            border: 1px solid rgba(240, 196, 19, 0.315);
            box-shadow: 0 0 12px rgba(240, 196, 19, 0.312), inset 0 0 8px rgba(240, 196, 19, 0.1);
            text-shadow: 0 0 8px rgba(240, 196, 19, 0.6);
            animation-delay: 0.1s;
            padding: 2px 5px;
            min-width: 60px;
            border-radius: 3px;
        }

        /* --- Quick Actions Specific Styles --- */

        .quick-actions-modal-container {
            width: 95%;
            max-width: 950px;
            height: 90vh; /* Taller on mobile by default */
            max-height: 97vh;
            display: flex;
            flex-direction: column;
            padding: 0; /* Remove default padding to control layout better */
            overflow: hidden; /* Prevent container scroll */
            position: relative;
        }

        /* Fix close button position */
        .quick-actions-modal-container .modal-close {
            top: 15px;
            right: 15px;
            z-index: 100;
            background: rgba(0, 0, 0, 0);
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex; /* Centering */
            align-items: center; /* Centering */
            justify-content: center; /* Centering */
            color: white;
            font-size: 16px;
        }


        .quick-actions-modal-container .modal-header {
            flex: 0 0 auto; /* Don't shrink */
            margin-bottom: 0;
            padding: 15px;
            background: rgba(0,0,0,0.2);
            border-bottom: 1px solid rgba(255,255,255,0.05);
            /* Ensure tabs are centered if few, or scrollable if many */
            overflow: hidden; 
        }

        .qa-tabs-scroll-container {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding-bottom: 5px; /* Space for scrollbar if visible */
            width: 100%;
            /* Hide scrollbar */
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none;  /* IE 10+ */
            /* Center tabs if they fit */
            margin: 0 auto;
            
            /* Add padding to ends so first/last items aren't cut off */
            padding-left: 5px; 
            padding-right: 5px;
        }
        
        .qa-tabs-scroll-container::-webkit-scrollbar {
            display: none; /* Chrome/Safari/Webkit */
        }

        .qaCard {
            flex: 0 0 auto; /* Prevent shrinking */
            min-width: 70px; /* Consistent width */
            padding: 10px 8px; /* Compact padding */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border-radius: 12px;
            font-size: 0.75rem; /* Smaller text */
            font-weight: 600;
            letter-spacing: 0.02em;
            transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
            background-color: rgba(255,255,255,0.03); 
            border: 1px solid rgba(255,255,255,0.05);
        }

        .small {
            font-size: 0.65rem; /* Smaller text */
        }

        .qaCard i {
            font-size: 1.4rem; /* Icon size */
            margin-bottom: 2px;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .qaCard span {
            /* Text ellipsis if too long */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        /* Active State Enhancements */
        .qaCard.active {
            background-color: var(--color1, #f54b73);
            border-color: transparent;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(245, 75, 115, 0.3);
        }
        
        .qaCard.active i {
            opacity: 1;
            transform: scale(1.1);
        }

        /* Hover State */
        .qaCard:hover:not(.active) {
            background-color: rgba(255,255,255,0.08);
            transform: translateY(-1px);
        }

        /* Grid Body Area (redefined to ensure full height) */
        .quick-actions-grid {
            /* display: grid; is inherited from above or default block if not flex */
            /* But wait, above it was display: grid. Here I had flex: 1 1 auto. */
            /* Flex item can happen even if display is grid. */
            flex: 1 1 auto; /* Grow to fill space in flex container */
            overflow-y: auto; /* Scrollable */
            padding: 20px;
            padding-bottom: 0px; /* Remove bottom padding as requested */
            /* Update grid columns for responsiveness */
             grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
             gap: 12px;
             /* Ensure grid display is active if flex item behavior allows layout */
             display: grid; 
             align-content: start; /* Contents align to top, no space between rows if sparse */
             align-items: stretch; /* Ensure cards stretch to match fullest height */
        }

        .quick-actions-modal-container .quick-actions-grid {
            align-items: stretch;
            grid-auto-rows: max-content;
            min-height: 0;
            height: auto;
        }

        .quick-actions-modal-container .quick-actions-grid.actions-mode {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .action-text-card {
            background: #151515;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            padding: 12px 16px;
            width: 100%;
            text-align: left;
            cursor: pointer;
            transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
        }

        .action-text-card:hover {
            background: #1f1f1f;
            transform: translateY(-2px);
            border-color: var(--color1, #ff0055);
        }

        .action-text-name {
            font-size: 0.95rem;
            line-height: 1.3;
            font-weight: 500;
            color: #e8e8e8;
            white-space: normal;
            word-break: break-word;
        }

        .quick-actions-modal-container .action-card {
            height: 100%;
            min-height: 0;
            overflow: hidden;
        }

        .quick-actions-modal-container .action-card .action-name {
            white-space: normal;
            text-align: center;
            display: block;
            overflow: visible;
            height: auto;
            max-height: none;
            font-size: 0.85rem;
            margin: 8px 0;
            flex-grow: 0;
        }

        /* Ensure S-Tier cards always clip the holo sheen */
        .action-card.tier-s {
            overflow: hidden;
        }

        /* Action Card inside Modal */
        .action-card {
            background-color: #1a1a1a; /* Solid dark base */
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            padding: 12px 10px;
            position: relative;
            overflow: hidden;
            z-index: 1;
            /* Force card shape */
            min-height: 140px; 
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* Distribute space */
            align-items: center;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .action-card:hover {
            transform: translateY(-3px);
            z-index: 5; /* Pop over neighbors */
        }

        /* --- Tiers --- */

        /* Tier C: Standard */
        .action-card.tier-c:hover {
            border-color: rgba(255,255,255,0.3);
            box-shadow: 0 4px 12px rgba(0,0,0,0.5);
        }

        /* Tier B: Premium (100-500) - Metallic/Silver Hints */
        .action-card.tier-b {
            background: linear-gradient(160deg, #242424 0%, #1a1a1a 100%);
            border: 1px solid rgba(180, 200, 220, 0.2);
        }
        .action-card.tier-b:hover {
            box-shadow: 0 0 15px rgba(180, 200, 220, 0.15);
            border-color: rgba(180, 200, 220, 0.5);
        }



        /* Tier A: Epic (500-1000) - Gold/Amber Glow */
        .action-card.tier-a {
            background: linear-gradient(160deg, #2a2518 0%, #151000 100%); /* very subtle gold tint */
            border: 1px solid rgba(255, 200, 0, 0.3);
            box-shadow: inset 0 0 20px rgba(255, 200, 0, 0.05); /* Inner warm glow */
            border-width: 3px;
        }
        .action-card.tier-a:hover {
            box-shadow: 0 0 15px rgba(255, 200, 0, 0.3), inset 0 0 10px rgba(255, 200, 0, 0.1);
            border-color: rgba(255, 200, 0, 0.8);
        }
        .action-card.tier-a .action-name {
            color: #ffe082; /* Soft gold text */
            font-weight: 600;
        }

        /* Tier S: Legendary (>1000) - Prismatic/Holo */
        .action-card.tier-s {
            background: #111;
            border: 1px solid rgba(255, 255, 255, 0.2);
            /* subtle shifting aura */
            box-shadow: 0 0 15px rgba(180, 100, 255, 0.296);
            border-width: 5px;
        }

        #input-container2 span:hover {
            color: var(--color1) !important;
            cursor: pointer;
            font-weight: bold;
        }
        
        /* Holo sheen effect */
        .action-card.tier-s::before {
            content: "";
            position: absolute;
            top: 0; left: -100%;
            width: 200%;
            height: 100%;
            background: linear-gradient(
                115deg, 
                transparent 30%, 
                rgba(255, 255, 255, 0.05) 45%, 
                rgba(255, 255, 255, 0.2) 50%, 
                rgba(255, 255, 255, 0.05) 55%, 
                transparent 70%
            );
            transform: skewX(-25deg);
            animation: holo-sheen 6s infinite;
            pointer-events: none;
        }

           @keyframes holo-sheen {
            0% { left: -100%; opacity: 0; }
            5% { opacity: 1; }
            40% { left: 100%; opacity: 0; }
            100% { left: 100%; opacity: 0; }
        }
        
        /* Rainbow border effect via pseudoelement */
        .action-card.tier-s::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 12px;
            padding: 1px; /* border width */
            background: linear-gradient(45deg, #ff0055, #00ddff, #ff0055); 
            -webkit-mask: 
               linear-gradient(#fff 0 0) content-box, 
               linear-gradient(#fff 0 0);
            mask: 
               linear-gradient(#fff 0 0) content-box, 
               linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            opacity: 0.5;
        }

     

        .action-card.tier-s:hover {
            box-shadow: 0 0 20px rgba(180, 100, 255, 0.4);
            transform: scale(1.02) translateY(-3px);
        }
        
        .action-card.tier-s .action-name {
            background: linear-gradient(90deg, #fff, #b4d2ff, #e7b4ff);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 700;
        }

        .giftItemImage {
            width: 90px; height: 90px; object-fit: contain; background: transparent; border: none; box-shadow: none;
        }

            .action-icon {
            width: 70px;
            height: 70px;
            object-fit: contain;
            border-radius: 8px;
            background-color: #00000000; /* Fallback */
        }

           .action-icon.market {
            width: 98px;
            height: 98px;
        }

        .action-name {
            font-size: 0.8rem;
            line-height: 1.2;
            margin-bottom: 4px;
            white-space: normal;
            text-align: center;
            display: flex;
            overflow: visible;
            height: auto;
            max-height: none;
            flex-grow: 1;
            align-items: center;
            justify-content: center;
        }

        .action-karma {
            font-size: 0.65rem;
            padding: 2px 5px;
        }

   
        /* Mobile Optimization */
        @media (max-width: 600px) {

            .quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    overflow-y: auto;
    height: auto;
            }

              /*MOBILE CARDS are taller! */
        .action-card {
            overflow: hidden;
            z-index: 1;
            /* Force card shape */
            min-height: 170px; 
            height: auto;
        }
            .quick-actions-modal-container {
                width: 100vw;
                height: 100%; /* Full screen on mobile */
                max-height: none;
                border-radius: 0; /* No rounded corners on full screen */
            }

            .quick-actions-modal-container .modal-header {
                padding-top: 50px; /* More space for visual breathing room */
                padding: 15px 0px;
            }

            .qa-tabs-scroll-container {
                gap: 8px;
            }
            
            .qaCard {
                min-width: 65px;
                padding: 8px 4px;
                font-size: 0.7rem;
            }
            
             .quick-actions-grid {
                 padding: 15px; /* Side padding */
                 padding-bottom: 20px; 
                 grid-template-columns: repeat(2, 1fr); /* Force 2 columns on mobile */
                 align-content: start; /* Key to avoid space between rows stretching */
                 grid-column: auto !important;
                 grid-row: auto !important;
             }
        }

             @media (max-width: 550px) {
              .qa-tabs-scroll-container {
                gap: 3px;
            }
            .qaCard {
                min-width: 57px;
                padding: 8px 4px;
                font-size: 0.5rem;
            }

.user-info {
    display: none !important;
}


#settingsBtn {
    margin-right: 0px;
}

        }

        /* Tier Dividers */
        .tier-divider {
            grid-column: 1 / -1;
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 20px 0 10px 0;
            padding: 0 5px;
            width: 100%;
        }

        .tier-divider::before,
        .tier-divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        }

        .tier-divider span {
            font-size: 0.8rem;
            font-weight: 800;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            white-space: nowrap;
        }
        
        /* Tier Specific Divider Colors */
        .tier-divider.tier-s span { color: #e7b4ff; text-shadow: 0 0 10px rgba(180, 100, 255, 0.5); }
        .tier-divider.tier-a span { color: #ffe082; }
        .tier-divider.tier-b span { color: #b4c8dc; }
        
        .tier-divider.tier-s::before, .tier-divider.tier-s::after { background: linear-gradient(90deg, transparent, rgba(180, 100, 255, 0.3), transparent); }
        .tier-divider.tier-a::before, .tier-divider.tier-a::after { background: linear-gradient(90deg, transparent, rgba(255, 200, 0, 0.3), transparent); }

		/* Gift Animations */
		@keyframes giftPulse {
			0% { transform: scale(1); }
			50% { transform: scale(1.1) rotate(5deg); }
			100% { transform: scale(1); }
		}

		@keyframes giftFall {
			0% { 
				transform: translate(0, 0) scale(1) rotate(0); 
				opacity: 1;
			}
			30% {
				transform: translate(0, -20px) scale(1.1);
			}
			100% { 
				transform: translate(0, 400px) scale(0.2) rotate(25deg); 
				opacity: 0;
			}
		}

		.gift-pulsing {
			animation: giftPulse 0.5s ease-in-out infinite;
			z-index: 100;
		}

		.gift-falling {
			animation: giftFall 0.8s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
			pointer-events: none;
		}

		/* Gift Reward Badges */
		.gift-rewards-container {
			display: flex;
			gap: 8px;
			margin-top: 8px;
			justify-content: center;
			flex-wrap: wrap;
		}

		.reward-badge {
			display: inline-flex;
			align-items: center;
			gap: 4px;
			padding: 4px 10px;
			border-radius: 20px;
			font-size: 0.75rem;
			font-weight: 700;
			letter-spacing: 0.02em;
			animation: rewardPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
			opacity: 0;
			transform: scale(0.5);
		}

		.reward-badge.xp-badge {
			background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.35) 100%);
			color: #60a5fa;
			border: 1px solid rgba(59, 130, 246, 0.4);
			box-shadow: 0 0 12px rgba(59, 130, 246, 0.3), inset 0 0 8px rgba(59, 130, 246, 0.1);
			text-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
			animation-delay: 0.1s;
		}

		.reward-badge.affinity-badge {
			background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(219, 39, 119, 0.35) 100%);
			color: #f472b6;
			border: 1px solid rgba(236, 72, 153, 0.4);
			box-shadow: 0 0 12px rgba(236, 72, 153, 0.3), inset 0 0 8px rgba(236, 72, 153, 0.1);
			text-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
			animation-delay: 0.25s;
		}

		@keyframes rewardPop {
			0% {
				opacity: 0;
				transform: scale(0.5) translateY(10px);
			}
			60% {
				opacity: 1;
				transform: scale(1.15) translateY(-2px);
			}
			100% {
				opacity: 1;
				transform: scale(1) translateY(0);
			}
		}

		/* Subtle continuous glow animation */
		.reward-badge.xp-badge::after,
		.reward-badge.affinity-badge::after {
			content: '';
			position: absolute;
			inset: -1px;
			border-radius: 20px;
			opacity: 0;
			animation: badgeGlow 2s ease-in-out infinite;
		}

		.reward-badge.xp-badge::after {
			box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
			animation-delay: 0.5s;
		}

		.reward-badge.affinity-badge::after {
			box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
			animation-delay: 0.75s;
		}

		@keyframes badgeGlow {
			0%, 100% { opacity: 0.3; }
			50% { opacity: 0.7; }
		}

		/* Icon styling for badges */
		.reward-badge i {
			font-size: 0.7rem;
		}

		/* Gift message bubble enhancements */
		.gift-message-bubble {
			background: linear-gradient(145deg, rgba(40, 40, 50, 0.95) 0%, rgba(25, 25, 35, 0.98) 100%) !important;
			border: 1px solid rgba(255, 255, 255, 0.1);
			box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
		}


        button.qaCard {
            max-width: 300px;
            font-size: 1em;

        }

          a.qaCard {
            max-width: 300px;
            font-size: 1em;
        }

        .quick-actions-modal-container {
            max-width: 800px;

        }