@import './theme.css';
:root {
    font-size: 16px;
    /* You can adjust this base size as needed */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-light);
    color: var(--color-dark);
    font-size: 1rem;
}

.page-header {
    color: #000;
    margin-bottom: 2rem;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    height: 18.75rem;
    display: flex;
    align-items: center;
}

.page-header .badge {
    background-color: var(--color-secondary);
}

.rewards-container {
    background-color: #fff;
    padding: 1.5rem;
}

.reward-level {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--color-feature-shadow);
    transition: transform 0.3s ease;
}

.reward-level:hover {
    transform: translateY(-5px);
}

.reward-level h2 {
    color: var(--color-header-gradient-to);
    border-bottom: 2px solid var(--color-modal-header-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.reward-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.reward-level-info h2 {
    margin-bottom: 0.5rem;
}

.reward-level-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.reward-level-rarity {
    background-color: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    color: #495057;
}

.reward-level-drop-rate {
    color: #6c757d;
    display: flex;
    align-items: center;
}

.reward-level-drop-rate:before {
    content: "•";
    margin-right: 0.5rem;
    color: #adb5bd;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;

    margin: 0 auto;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;

    margin: 0 auto;
}

.rewards-list-mobile {
    height: 40vh;
    overflow-y: auto;
}

.reward-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--color-card-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--color-card-shadow-hover);
}

.reward-image-wrapper {
    background-position: center;
    background-size: cover;
}

.reward-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
	
}


.reward-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reward-card:hover .reward-image img {
    transform: scale(1.05);
}

.reward-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-reward-icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-reward-icon);
}

.reward-details {
    text-align: center;
}

.reward-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #343a40;
  min-height: calc(1.2em * 2); /* always reserve space for 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;    /* limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reward-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reward-info {
    display: flex;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--color-reward-value);
    align-items: center;
    font-weight: 500;
}

.reward-value {
    font-weight: 600;
    font-size: 0.85rem;
}

.reward-rarity {
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Reward Card Badges */
.reward-card {
    position: relative;
}

.reward-image {
    position: relative;
    overflow: visible;
}

.reward-level-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    padding: 3px 8px;
    font-size: 0.75rem;
    background-color: var(--color-badge-bg);
    color: var(--color-badge-text);
    border-radius: 4px;
    z-index: 2;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.reward-rarity-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 3px 8px;
    font-size: 0.75rem;
    background-color: var(--color-badge-secondary-bg);
    color: var(--color-badge-secondary-text);
    border-radius: 4px;
    z-index: 2;
}

.back-button {
    background-color: var(--color-btn-back-bg);
    color: var(--color-btn-back-text);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: var(--color-btn-back-hover-bg);
    color: var(--color-btn-back-hover-text);
    transform: translateY(-2px);
}

/* Home page specific styles */
.hero-section {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--color-cta-bg);
    color: var(--color-cta-text);
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--color-cta-hover-bg);
}

.features {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 0 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.home-body {
    min-height: 100vh;
    padding: 2rem 0;
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    /* Account for navbar height */
}

/* Homepage Slideshow Styles (migrated from Blade) */
.homepage-slideshow {
    width: 100%;
}

.homepage-slideshow .carousel-item img {
    object-fit: cover;
    width: 100vw;
    max-height: 60vh;
}

.homepage-slideshow .carousel-control-prev,
.homepage-slideshow .carousel-control-next {
    width: 5vw;
    height: 100%;
    top: 0;
    bottom: 0;
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
    transition: background 0.2s;
}

.homepage-slideshow .carousel-control-prev:hover,
.homepage-slideshow .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.1);
}

.homepage-slideshow .carousel-control-prev-icon,
.homepage-slideshow .carousel-control-next-icon {
    filter: drop-shadow(0 0 2px #fff);
    width: 2.5rem;
    height: 2.5rem;
}

.homepage-slideshow .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #888;
    margin: 0 4px;
    opacity: 0.7;
}

.homepage-slideshow .carousel-indicators .active {
    background: var(--color-yellow);
    opacity: 1;
}

.homepage-slideshow .carousel-caption {
    margin: 8px 0;
}

/* Modal styles */
.reward-modal-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.reward-icon-large {
    width: 120px;
    height: 120px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #2575fc;
    margin: 2rem auto;
}

.reward-description-full {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.reward-specs {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
}

.reward-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.reward-spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #495057;
}

.spec-value {
    color: #6c757d;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 2px solid #f1f1f1;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 2px solid #f1f1f1;
    padding: 1.5rem;
}

/* Make modal a bit prettier */
.modal-title {
    color: var(--color-modal-title);
    font-weight: 600;
}

/* Sticky Draw Footer */
.draw-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #000;
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.draw-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.draw-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.draw-info p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.draw-actions {
    display: flex;
    gap: 0.75rem;
}

.draw-btn {
    background-color: var(--color-draw-btn-bg);
    color: var(--color-draw-btn-text);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.draw-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--color-draw-btn-hover-bg);
    color: var(--color-draw-btn-hover-text);
}

/* Draw Animation Styles */
.draw-animation-container {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.draw-columns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
}

.draw-column {
    width: 120px;
    position: relative;
    background-color: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    flex-grow: 1;
    max-width: 180px;
    min-width: 120px;
}

.slot-container {
    height: 120px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    box-shadow: none;
}

.slot-container::before,
.slot-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 1;
    pointer-events: none;
}

.slot-container::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.slot-container::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.slot-machine {
    position: relative;
    transform: translateY(0);
    will-change: transform;
    /* Optimize for animations */
}

.slot-item {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-bottom: 1px solid #f1f1f1;
}

.slot-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.slot-item.highlighted {
    animation: pulse 1s infinite alternate;
    border: 3px solid #2575fc;
    box-shadow: 0 0 15px rgba(37, 117, 252, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Continuous scrolling animation */
@keyframes continuousScroll {
    0% {
        transform: translateY(0);
        animation-timing-function: ease-in;
    }

    50% {
        transform: translateY(-75%);
        animation-timing-function: ease-in;
    }

    100% {
        transform: translateY(-100%);
        animation-timing-function: ease-out;
    }
}

.slot-machine {
    position: relative;
    transform: translateY(0);
    will-change: transform;
    /* Optimize for animations */
}

/* Update the draw animation styles */
.slot-item.reward-selected {
    border: 3px solid #28a745;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.3);
    position: relative;
}

/* Loading indicator for draw animation */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Error message for draw animation */
.draw-error {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove the previous .reward-result-info styles and replace with this clean version */
.reward-result-info {
    text-align: center;
    margin: 10px 8px 0;
    padding: 12px 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-top: 2px solid #2575fc;
    animation: slideUp 0.3s ease-out forwards;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.reward-result-info h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #343a40;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: auto;
}

.reward-result-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.reward-result-value {
    color: #28a745;
    font-weight: 600;
    font-size: 1rem;
    padding: 3px 8px;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
    width: 100%;
}

.reward-result-level {
    color: #6c757d;
    background-color: #e9ecef;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    display: inline-block;
    width: 100%;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide the reroll button in the modal footer */
#rerollButton {
    display: none !important;
}

/* Error container for draw animation */
.draw-error-container {
    text-align: center;
    padding: 30px;
}

.draw-error {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-out;
    font-size: 1.1rem;
}

.try-again-btn {
    animation: fadeIn 0.5s ease-out;
    padding: 10px 30px;
    border-radius: 30px;
}

/* Ensure the continuous animation is smooth */
.slot-machine {
    position: relative;
    transform: translateY(0);
    will-change: transform;
    /* Optimize for animations */
}

/* Wallet balance and draw price styles */
.wallet-balance {
    font-weight: 700;
    color: var(--color-wallet-balance-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.wallet-add {
    background: var(--color-secondary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wallet-add:hover {
    background: var(--color-secondary-hover);
    color: #fff;
}

.draw-price {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.draw-btn.disabled,
.draw-btn.insufficient-funds {
    opacity: 0.7;
    position: relative;
    overflow: hidden;
}

.draw-btn.insufficient-funds::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: inherit;
}

.draw-result-summary {
    margin-bottom: 1.5rem;
}

.transaction-detail {
    font-size: 0.9rem;
    display: inline-block;
}

.wallet-update {
    font-weight: 600;
}

/* Add Funds button style */
.btn-outline-light {
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- Footer Navigation Styles (moved from Blade) --- */
.simple-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    z-index: 1100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

.simple-footer-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 4px 0;
}

.simple-footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.simple-footer-link i {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.simple-footer-link.active,
.simple-footer-link:hover {
    color: #1a73e8;
}

/* ===================== UTILITY CLASSES ===================== */
/* Utility for max-content width */
.w-max-content {
    width: max-content;
}

/* Utility for margin-top-2 */
.mt-2 {
    margin-top: 0.5rem !important;
}

/* Utility for margin-bottom-2 */
.mb-2 {
    margin-bottom: 0.5rem !important;
}

/* Utility for margin-bottom-4 */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Utility for margin-top--8 */
.mt--8 {
    margin-top: -8px !important;
}

/* Utility for font-weight-bold */
.fw-bold {
    font-weight: 700 !important;
}

/* Utility for text-center */
.text-center {
    text-align: center !important;
}

/* Utility for rounded */
.rounded {
    border-radius: 0.25rem !important;
}

/* Utility for background white */
.bg-white {
    background: #fff !important;
}

/* Utility for box-shadow */
.box-shadow {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07) !important;
}

/* Utility for border-none */
.border-none {
    border: none !important;
}

/* Utility for color-dark */
.color-dark {
    color: var(--color-dark) !important;
}

/* Utility for color-primary */
.color-primary {
    color: var(--color-primary) !important;
}

/* Utility for color-yellow */
.color-yellow {
    color: var(--color-yellow) !important;
}

/* Utility for filter-brightness */
.filter-brightness-08 {
    filter: brightness(0.8);
}

/* Utility for min-width-24 */
.min-width-24 {
    min-width: 24px !important;
}

/* Utility for text-align-center */
.text-align-center {
    text-align: center !important;
}

/* Utility for gap-2 */
.gap-2 {
    gap: 0.5rem !important;
}

/* Utility for gap-4 */
.gap-4 {
    gap: 1.5rem !important;
}

/* Utility for d-inline-flex */
.d-inline-flex {
    display: inline-flex !important;
}

/* Utility for align-items-center */
.align-items-center {
    align-items: center !important;
}

/* Utility for justify-content-center */
.justify-content-center {
    justify-content: center !important;
}

/* Utility for px-3 */
.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Utility for py-2 */
.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Utility for btn-white */
.btn-white {
    background: #fff !important;
    color: #222 !important;
    border: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07) !important;
}

/* Utility for cursor-pointer */
.cursor-pointer {
    cursor: pointer !important;
}

/* Utility for modal max-width */
.modal-dialog-400 {
    max-width: 400px;
}

/* Utility for modal-lg */
.modal-dialog-lg {
    max-width: 800px;
}

/* Utility for modal-xl */
.modal-dialog-xl {
    max-width: 1140px;
}

/* Utility for modal-centered */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

/* Utility for p-3 */
.p-3 {
    padding: 1rem !important;
}

/* Utility for p-4 */
.p-4 {
    padding: 1.5rem !important;
}

/* Utility for col-md-6 */
.col-md-6 {
    width: 50%;
    float: left;
}

/* Utility for row */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* Utility for g-2 */
.g-2 {
    gap: 0.5rem !important;
}

/* Utility for d-grid */
.d-grid {
    display: grid !important;
}

/* Utility for col-8 */
.col-8 {
    grid-column: span 8;
}

/* Utility for mx-auto */
.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Utility for btn-lg */
.btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
}

/* Utility for d-flex */
.d-flex {
    display: flex !important;
}

/* Utility for flex-column */
.flex-column {
    flex-direction: column !important;
}

/* Utility for mt-3 */
.mt-3 {
    margin-top: 1rem !important;
}

/* Utility for mb-0 */
.mb-0 {
    margin-bottom: 0 !important;
}

/* Utility for mx-3 */
.mx-3 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}

/* Utility for mb-1 */
.mb-1 {
    margin-bottom: 0.25rem !important;
}

/* Utility for display-6 */
.display-6 {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.2;
}

/* Utility for p-1 */
.p-1 {
    padding: 0.25rem !important;
}

/* Utility for ms-1 */
.ms-1 {
    margin-left: 0.25rem !important;
}

/* Utility for ms-2 */
.ms-2 {
    margin-left: 0.5rem !important;
}

/* Utility for me-1 */
.me-1 {
    margin-right: 0.25rem !important;
}

/* Utility for me-2 */
.me-2 {
    margin-right: 0.5rem !important;
}

/* Utility for gap-12px */
.gap-12px {
    gap: 12px !important;
}

/* Utility for border-radius-1em */
.border-radius-1em {
    border-radius: 1em !important;
}

/* Utility for box-shadow-4-16 */
.box-shadow-4-16 {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Utility for object-fit-contain */
.object-fit-contain {
    object-fit: contain !important;
}

/* Utility for width-120px */
.width-120px {
    width: 120px !important;
}

/* Utility for height-120px */
.height-120px {
    height: 120px !important;
}

/* Utility for width-180px */
.width-180px {
    width: 180px !important;
}

/* Utility for height-14px */
.height-14px {
    height: 14px !important;
}

/* Utility for background-f8f9fa */
.background-f8f9fa {
    background: #f8f9fa !important;
}

/* Utility for border-radius-48-18 */
.border-radius-48-18 {
    border-radius: 0 0 48px 48px/0 0 18px 18px !important;
}

/* Utility for box-shadow-8-32 */
.box-shadow-8-32 {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.22), 0 1.5px 0 0 #fffbe6 inset !important;
}

/* Utility for backdrop-blur-2 */
.backdrop-blur-2 {
    backdrop-filter: blur(2px) !important;
}

/* Utility for font-size-1-1rem */
.font-size-1-1rem {
    font-size: 1.1rem !important;
}

/* Utility for font-weight-600 */
.font-weight-600 {
    font-weight: 600 !important;
}

/* Utility for align-items-center */
.align-items-center {
    align-items: center !important;
}

/* Utility for justify-content-center */
.justify-content-center {
    justify-content: center !important;
}

/* Utility for d-inline-flex */
.d-inline-flex {
    display: inline-flex !important;
}

/* Utility for gap-0-5em */
.gap-0-5em {
    gap: 0.5em !important;
}

/* Utility for z-index-2 */
.z-index-2 {
    z-index: 2 !important;
}

/* Utility for z-index-1 */
.z-index-1 {
    z-index: 1 !important;
}

/* Utility for position-relative */
.position-relative {
    position: relative !important;
}

/* Utility for margin-top--8px */
.margin-top--8px {
    margin-top: -8px !important;
}

/* Utility for border-radius-1em */
.border-radius-1em {
    border-radius: 1em !important;
}

/* Utility for box-shadow-0-4-16 */
.box-shadow-0-4-16 {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Utility for background-linear-gold */
.background-linear-gold {
    background: linear-gradient(90deg, rgba(224, 179, 90, 0.7) 0%, rgba(255, 251, 230, 0.5) 50%, rgba(224, 179, 90, 0.7) 100%) !important;
}

/* Utility for border-radius-48px-18px */
.border-radius-48px-18px {
    border-radius: 0 0 48px 48px/0 0 18px 18px !important;
}

/* Utility for box-shadow-0-8-32 */
.box-shadow-0-8-32 {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.22), 0 1.5px 0 0 #fffbe6 inset !important;
}

/* Utility for backdrop-filter-blur-2px */
.backdrop-filter-blur-2px {
    backdrop-filter: blur(2px) !important;
}

/* ===================== MEDIA QUERIES ===================== */
@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }

    .m-hidden {
        visibility: hidden;
    }

    .draw-footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
    }

    .draw-info {
        display: block;
        padding: 16px 8px 10px 8px !important;
        margin-bottom: 18px;
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .draw-info .flex>div {
        display: flex;
    }

    .reward-level-indicator {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        font-size: 1rem;
        border-right: none !important;
        padding: 0 4px !important;
        border-bottom: 1px solid #ccc;
    }

    .level-drop-rate {
        font-size: 0.85rem !important;
    }

    .btn-history {
        margin: 10px 0 0 0;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        padding: 8px 10px !important;
    }

    .draw-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        justify-content: space-around;
        width: 100%;
    }

    .draw-btn {
        flex: 1;
        padding: 0.5rem 0.25rem;
        font-size: 0.9rem;
        text-align: center;
        border-radius: 8px;
    }

    .draw-btn span.draw-price {
        display: none;
    }

    .draw-footer {
        padding: 0.75rem 0;
    }

    .draw-info h4 {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }

    .draw-info p {
        font-size: 0.8rem;
    }

    .draw-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .draw-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .draw-footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .draw-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .draw-columns {
        gap: 10px;
    }

    .draw-column {
        min-width: 100px;
        max-width: 140px;
    }

    .reward-result-info {
        padding: 8px 6px;
    }

    .reward-result-info h5 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .reward-result-value,
    .reward-result-level {
        font-size: 0.8rem;
        padding: 2px 6px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .reward-result-info h5 {
        font-size: 0.9rem;
    }

    .reward-result-value,
    .reward-result-level {
        font-size: 0.8rem;
    }

    .level-badge {
        font-size: 1rem;
    }

    .level-drop-rate {
        font-size: 0.85rem;
    }

    .grand-prize-label {
        font-size: 1rem;
    }

    .grand-prize-reward-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 11px;
    }

    body {
        padding-bottom: 65px;
        /* Adjust padding for smaller footer */
    }

    .draw-footer {
        padding: 0.6rem 0;
    }

    .draw-actions {
        gap: 0.35rem;
    }

    .draw-btn {
        font-size: 0.85rem;
        padding: 0.45rem 0.25rem;
        font-weight: 700;
    }

    .rewards-container {
        padding: 1.5em 0;
    }

    .rewards-grid {
        gap: 3px;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .reward-details {
        padding: 6px 8px;
    }

    .reward-name {
        font-size: 0.8rem;
    }

    .reward-info {
        font-size: 1rem;
    }

    .recent-spa-rewards {
        height: 160px !important;
        top: 0% !important;
    }

    .recent-reward-item {
        font-size: 1rem !important;
    }

    .user-stats {
        bottom: 4% !important;
    }

    .trophy-icon-box {
        width: 20px !important;
        height: 20px !important;
    }

    .user-stats-modal-btn {
        font-size: 1rem !important;
    }

    .stage-base {
        width: 94px !important;
    }

    .hot-drop-label {
        font-size: 0.9rem !important;
    }

    .level-badge {
        font-size: 1rem !important;
        min-width: 20px !important;
        height: 20px !important;
        line-height: 20px !important;
    }

    .level-drop-rate {
        font-size: 1rem !important;
    }

    .btn-history {
        font-size: 1rem !important;
        padding: 6px 12px !important;
    }

    .reward-level-badge {
        font-size: 1rem !important;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .reward-result-info h5 {
        font-size: 0.8rem;
    }

    .reward-result-value,
    .reward-result-level {
        font-size: 0.7rem;
    }

    .level-badge {
        font-size: 0.9rem;
    }

    .level-drop-rate {
        font-size: 0.75rem;
    }

    .grand-prize-label {
        font-size: 0.95rem;
    }

    .grand-prize-reward-name {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .draw-column {
        min-width: 140px;
    }
}

@media (min-width: 1200px) {
    .draw-animation-container {
        padding: 30px;
    }

    .draw-columns {
        gap: 25px;
    }

    .draw-column {
        min-width: 150px;
        max-width: 200px;
    }
}

.slot-item.continuous-item {
    animation: none;
    /* Will be animated by the container */
}

.continuous-scroll {
    animation: continuousScroll 3s linear infinite;
}

.draw-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px 20px 16px 20px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.draw-info .draw-n {
    margin-bottom: 16px
}

.draw-info .draw-n h3 {
    width: max-content;
    margin: 0 auto;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--color-secondary);
    color: #f8f9fa;
    /* Light text for contrast */
    padding: 20px;
    border-radius: 20px;
    /* Curved expanded borders */
}

.draw-info .flex {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #e9ecef;
    /* Light background */
    padding: 12px 4px;
}

.reward-level-indicator {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 0 16px;
    font-size: 1.1rem;
}

.reward-level-indicator:not(:last-child) {
    border-right: 1px solid #aaa;
    /* Light dark border */
}

.level-badge {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    font-size: 1.1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    background: var(--color-header-gradient-to);
}

.level-drop-rate {
    color: #555;
    font-size: 1rem;
    font-weight: 500;
}

.btn-history {
    background: var(--color-btn-history-bg);
    color: var(--color-btn-history-text);
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    margin-left: 10px;
}

.btn-history:hover {
    background: var(--color-btn-history-hover-bg);
    color: var(--color-btn-history-hover-text);
}

.history-tab-content {
    max-height: 300px;
    overflow-y: auto;
}

.history-box {
    background:
        radial-gradient(ellipse at top center, black 0%, transparent 80%),
        radial-gradient(ellipse at bottom center,
            rgba(255, 0, 0, 0.8) 0%,
            rgba(255, 0, 0, 0.3) 20%,
            rgba(255, 0, 0, 0.05) 40%,
            transparent 70%);

    color: #fff;
}

.recent-spa-rewards {
    position: absolute;
    left: 0;
    top: -15%;
    height: 200px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    overflow: hidden;
    z-index: 2;
    display: flex;
    align-items: center;
}

.recent-spa-rewards-scroll {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.recent-reward-item {
    font-size: 0.95em;
    color: #fff;
    white-space: nowrap;
}

/* User Stats Modal Button Styles */
.userstats-btn {
    background: #fff;
    color: #222;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    border-radius: 999px;
    font-weight: 500;
    transition: box-shadow 0.15s;
}

.userstats-btn:hover,
.userstats-btn:focus {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background: #f8f9fa;
    color: #111;
}

.trophy-icon-box {
    background: var(--color-yellow);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trophy-icon-box i.fas.fa-trophy {
    color: #111;
    font-size: 1.1em;
}

#onlineUsersCount {
    min-width: 20px;
    text-align: center;
    font-size: 1.1em;
    color: #222;
}

.user-stats {
    position: absolute;
    bottom: -15%;
    left: 0;
}

.draw-footer {
    position: sticky;
    bottom: 0;
}

.congrats-scroll::-webkit-scrollbar {
    height: 8px;
}

.congrats-scroll {
    scrollbar-width: thin;
}

.congrats-card {
    background: #fffde7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    min-width: 340px;
    max-width: 340px;
    display: flex;
    align-items: center;
    padding: 12px 18px;
    gap: 12px;
}

.congrats-user-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.congrats-user-initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #bbb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

.congrats-user-info {
    flex: 1;
    min-width: 0;
}

.congrats-user-name {
    font-weight: bold;
    font-size: 1.1em;
}

.congrats-user-level {
    font-size: 0.95em;
    color: #888;
    margin-left: 6px;
}

.congrats-time {
    font-size: 0.95em;
    color: #888;
}

.congrats-reward-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f5f5;
}

.congrats-reward-info {
    text-align: right;
    min-width: 80px;
}

.congrats-reward-level {
    display: inline-block;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.95em;
    margin-bottom: 2px;
}

.congrats-reward-price {
    font-size: 0.98em;
    color: #333;
}

.all-rewards-modal table {
    border-collapse: collapse;
    width: 100%;
}

.all-rewards-modal thead,
.all-rewards-modal tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
    /* keeps column widths aligned */
}

.all-rewards-modal tbody {
    display: block;
    max-height: 320px;
    /* set your fixed height */
    overflow-y: auto;
}

.grand-prize-column {
    box-shadow: 0 0 24px 6px rgba(255, 215, 0, 0.25), 0 2px 16px 0 rgba(255, 215, 0, 0.15);
    border: 3px solid #FFD700;
    background: linear-gradient(135deg, #fffbe6 60%, #fffde4 100%);
    position: relative;
    z-index: 2;
    transform: scale(1.08);
}

.slot-machine.grand-prize {
    border: 3px solid #FFD700;
    box-shadow: 0 0 32px 8px rgba(255, 215, 0, 0.25), 0 2px 16px 0 rgba(255, 215, 0, 0.15);
    background: linear-gradient(135deg, #fffbe6 60%, #fffde4 100%);
    position: relative;
    z-index: 2;
    animation: grandPrizeGlow 1.5s infinite alternate;
}

@keyframes grandPrizeGlow {
    0% {
        box-shadow: 0 0 32px 8px rgba(255, 215, 0, 0.25), 0 2px 16px 0 rgba(255, 215, 0, 0.15);
    }

    100% {
        box-shadow: 0 0 48px 16px rgba(255, 215, 0, 0.45), 0 2px 24px 0 rgba(255, 215, 0, 0.25);
    }
}

.grand-prize-label {
    text-align: center;
    font-size: 1.15rem;
    font-weight: bold;
    color: #FFD700;
    margin-top: 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #fffbe6, 0 1px 0 #fffde4;
    animation: grandPrizeLabelPop 1s cubic-bezier(.68, -0.55, .27, 1.55) 1;
}

@keyframes grandPrizeLabelPop {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.reward-result-info.grand-prize-info {
    border: 2px solid #FFD700;
    background: #fffbe6;
    color: #bfa100;
    box-shadow: 0 0 16px 2px rgba(255, 215, 0, 0.15);
    font-weight: bold;
    animation: grandPrizeLabelPop 1s cubic-bezier(.68, -0.55, .27, 1.55) 1;
}

/* --- Inline style replacements for collections/show.blade.php --- */

.grand-prize-container {
    position: relative;
    height: 208px;
}

.grand-prize-reward-name {
    font-size: 1.25rem;
    z-index: 2;
}

.grand-prize-reward-img {
    position: relative;
    z-index: 2;
    padding-bottom: 16px;
}

.grand-prize-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 1em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.grand-prize-img-placeholder {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 1em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hot-drop-badge-stage {
    z-index: 1;
}

.stage-base {
    width: 180px;
    height: 14px;
    background: linear-gradient(90deg, rgba(224, 179, 90, 0.7) 0%, rgba(255, 251, 230, 0.5) 50%, rgba(224, 179, 90, 0.7) 100%);
    border-radius: 0 0 48px 48px/0 0 18px 18px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.22), 0 1.5px 0 0 #fffbe6 inset;
    margin-top: -8px;
    backdrop-filter: blur(2px);
}

.hot-drop-label {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 600;
    line-height: 2;
}

/* User stats button */
.trophy-icon-box {
    background: var(--color-yellow);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Draw info panel */
.collection-header-panel {
    background: #f3f3f3;
}

/* Reward modal image placeholder */
.reward-icon-large {
    width: 120px;
    height: 120px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #2575fc;
    margin: 2rem auto;
}

@media (max-width: 480px) {
  div.congrats-card {
    min-width: 300px !important;
  }
  .reward-level-indicator{
    width:50px;
  }
}
