/* Global RTL adjustments */
[dir="rtl"] .me-1,
[dir="rtl"] .me-2,
[dir="rtl"] .me-3,
[dir="rtl"] .me-4,
[dir="rtl"] .me-5 {
    margin-right: 0 !important;
}

[dir="rtl"] .ms-1,
[dir="rtl"] .ms-2,
[dir="rtl"] .ms-3,
[dir="rtl"] .ms-4,
[dir="rtl"] .ms-5 {
    margin-left: 0 !important;
}

/* Location and route RTL styles */
[dir="rtl"] .location-marker,
[dir="rtl"] .route-location-icon {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .location-divider {
    margin: 0 15px;
}

[dir="rtl"] .location-divider:before {
    right: auto;
    left: -5px;
}

/* Icon spacing RTL fixes */
[dir="rtl"] .transport-icon {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .rating-star {
    margin-right: 0;
    margin-left: 5px;
}

[dir="rtl"] .verified-icon {
    margin-right: 0;
    margin-left: 5px;
}

[dir="rtl"] .info-label {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .reset-filters i {
    margin-right: 0;
    margin-left: 5px;
}

[dir="rtl"] .filter-toggle i {
    margin-right: 0;
    margin-left: 8px;
}

/* Items RTL fixes */
[dir="rtl"] .item-icon {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .item-size {
    margin-left: 0;
    margin-right: 10px;
}

/* Specific icon RTL fixes */
[dir="rtl"] .fas.fa-tag {
    margin-right: 0;
    margin-left: 5px;
}

[dir="rtl"] .fas.fa-arrow-left {
    transform: scaleX(-1);
}

[dir="rtl"] .fas.fa-check-circle {
    margin-right: 0;
    margin-left: 5px;
}

[dir="rtl"] .fas.fa-clock {
    margin-right: 0;
    margin-left: 5px;
}

[dir="rtl"] .fas.fa-weight-hanging {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .fas.fa-chevron-down {
    margin-right: 0;
    margin-left: 5px;
}

/* Review and rating RTL fixes */
[dir="rtl"] .review-avatar {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .rating-value {
    margin-left: 0;
    margin-right: 5px;
}

[dir="rtl"] .rating-stars {
    margin-left: 0;
    margin-right: auto;
}

/* Map RTL fixes */
[dir="rtl"] .custom-div-icon {
    direction: ltr;
    /* Keep map icons in LTR direction */
}

/* Mobile RTL fixes */
@media (max-width: 767.98px) {
    [dir="rtl"] .location-divider {
        margin: 5px 20px 5px 0;
        border-left: none;
        border-right: 2px dashed #ddd;
    }

    [dir="rtl"] .location-divider:before {
        left: auto;
        right: -4px;
    }

    [dir="rtl"] .mobile-location-row .location-marker {
        margin-right: 0;
        margin-left: 10px;
    }

    [dir="rtl"] .route-text {
        align-items: flex-start;
    }
}

/* Additional Bootstrap layout fixes for RTL */
[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Button group and input group RTL fixes */
[dir="rtl"] .btn-group>.btn:not(:last-child):not(.dropdown-toggle),
[dir="rtl"] .btn-group>.btn-group:not(:last-child)>.btn {
    border-radius: 0 0.25rem 0.25rem 0;
}

[dir="rtl"] .btn-group>.btn:not(:first-child),
[dir="rtl"] .btn-group>.btn-group:not(:first-child)>.btn {
    border-radius: 0.25rem 0 0 0.25rem;
}

/* Form and input RTL fixes */
[dir="rtl"] .form-check {
    padding-right: 1.5em;
    padding-left: 0;
}

[dir="rtl"] .form-check .form-check-input {
    float: right;
    margin-right: -1.5em;
    margin-left: 0;
}

/* Dropdown RTL fixes */
[dir="rtl"] .dropdown-menu {
    text-align: right;
}

/* Modal RTL fixes */
[dir="rtl"] .modal-header .btn-close {
    margin: -0.5rem auto -0.5rem -0.5rem;
}

/* Fix capacity badge and price badge spacing for RTL */
[dir="rtl"] .capacity-badge {
    margin-right: 0;
    margin-left: 10px;
}

/* Price and capacity badge base styles */
.price-badge {
    margin-right: 10px;
}

/* RTL-specific overrides */
[dir="rtl"] .price-badge {
    margin-right: 0;
    margin-left: 10px;
}

/* Enhanced Traveler Profile */
.traveler-stats {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.stat-item {
    position: relative;
}

[dir="rtl"] .stat-item:not(:last-child)::after {
    right: auto;
    left: 0;
}

/* Review Form Styles */
.add-review-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-star.fas {
    color: #ffc107;
}

.rating-star:hover {
    transform: scale(1.1);
}

[dir="rtl"] .rating-input {
    flex-direction: row-reverse;
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

.review-form .btn-primary {
    min-width: 150px;
}

/* Improve card appearance */
.details-card {
    transition: box-shadow 0.3s ease;
}

.details-card:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.phone-number {
    unicode-bidi: embed;
    direction: ltr;
}

/* Improve mobile responsiveness for review section */
@media (max-width: 767.98px) {
    .review-header {
        flex-direction: column;
    }

    .rating-stars {
        margin-left: 0;
        margin-top: 10px;
    }

    [dir="rtl"] .rating-stars {
        margin-right: 0;
    }

    .add-review-section {
        padding: 15px;
    }

    .rating-input {
        justify-content: center;
    }
}

/* Animation for star rating */
@keyframes star-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

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

.rating-star.fas {
    animation: star-pulse 0.3s ease-in-out;
}

/* Simplified Step Numbering for RTL/LTR compatibility */
.simplified-steps {
    padding: 0;
    list-style: none;
    counter-reset: step-counter;
}

.simplified-steps li {
    position: relative;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
    margin-bottom: 1.5rem;
    min-height: 3rem;
    counter-increment: step-counter;
}

.simplified-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    border: 2px solid #0d6efd;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

[dir="rtl"] .simplified-steps li::before {
    left: auto;
    right: 0;
}

.simplified-steps li::after {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 2.5rem;
    bottom: -1.5rem;
    width: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

[dir="rtl"] .simplified-steps li::after {
    left: auto;
    right: 1.25rem;
}

.simplified-steps li:last-child::after {
    display: none;
}

.simplified-steps .step-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    display: block;
}

.simplified-steps .step-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Loyalty Points Badge Styles */
.loyalty-points-badge {
    cursor: pointer;
    border: 1px solid #e9ecef !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
}

.loyalty-points-badge:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%) !important;
    border-color: #dee2e6 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.loyalty-points-badge .fas.fa-coins {
    animation: coin-glow 2s ease-in-out infinite alternate;
}

@keyframes coin-glow {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

/* Enhanced Livewire Loyalty Points Styles */
.loyalty-points-dropdown {
    padding-top: 0px;
    margin-top: 10px !important;
    /* border: none; */
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

/* Livewire loading states */
[wire\:loading] {
    opacity: 0.6;
}

[wire\:loading\.delay] {
    opacity: 1;
}

[wire\:loading\.delay\.shortest] {
    opacity: 0.8;
}

/* Load more button enhancements */
.btn-outline-warning {
    border-color: #ffc107;
    color: #ffc107;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-outline-warning:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced transaction item styles for Livewire */
.loyalty-transaction-item {
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    margin: 2px 0;
}

.loyalty-transaction-item:hover {
    background-color: rgba(255, 193, 7, 0.1) !important;
    /* transform: translateX(3px); */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* RTL support for Livewire component */
[dir="rtl"] .loyalty-transaction-item:hover {
    transform: translateX(-3px);
}

/* Mobile responsiveness for Livewire component */
@media (max-width: 767.98px) {
    .loyalty-points-dropdown {
        width: 320px !important;
        max-width: 90vw;
        margin-right: -20px;
    }

    .loyalty-transaction-item {
        padding: 0.75rem !important;
    }

    .loyalty-transaction-item h6 {
        font-size: 0.8rem !important;
    }

    .loyalty-transaction-item p {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }

    .loyalty-transaction-item small {
        font-size: 0.65rem !important;
    }

    .loyalty-transaction-item .rounded-circle {
        width: 35px !important;
        height: 35px !important;
    }

    .loyalty-transaction-item .rounded-circle i {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 575.98px) {
    .loyalty-points-dropdown {
        width: 300px !important;
        margin-right: -10px;
    }

    .loyalty-points-header {
        padding: 0.75rem !important;
    }

    .loyalty-points-header h6 {
        font-size: 0.9rem !important;
    }

    .loyalty-points-header p {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .loyalty-points-dropdown {
        width: 100% !important;
        margin-right: -5px;
    }

    .loyalty-transaction-item:hover {
        transform: none;
        /* Disable hover transform on very small screens */
    }

    [dir="rtl"] .loyalty-transaction-item:hover {
        transform: none;
    }
}

/* Smooth animations for Livewire updates */
[x-cloak] {
    display: none !important;
}

/* Loading spinner for Livewire */
.loyalty-points-loading {
    animation: spin 1s linear infinite;
}

/* Enhanced wire:loading styles */
[wire\:loading\.class="opacity-50"] {
    transition: opacity 0.15s ease-in-out;
}

[wire\:loading\.class\.delay="opacity-75"] {
    transition: opacity 0.2s ease-in-out;
}

/* Pulse animation for loading states */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

[wire\:loading] .loyalty-transaction-item {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Improved focus states for accessibility */
.btn-outline-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.loyalty-points-badge:focus {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

/* Enhanced error states */
.loyalty-points-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem;
}

/* Success states for new transactions */
.loyalty-transaction-success {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
}

/* Improved badge animations */
.badge {
    animation: none;
    /* Reset previous animations */
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

/* Updated Loyalty Points Header Layout */
.loyalty-points-header {
    background: var(--game-bg, linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%));
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin-bottom: 0 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
    animation: slideInDown 0.4s ease-out;
}

.points-main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 1rem !important;
}

.points-content {
    flex: 1 !important;
}

.points-icon {
    flex-shrink: 0 !important;
}

.trophy-icon-container {
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.trophy-icon-container i {
    font-size: 1.8rem !important;
    line-height: 1 !important;
    color: #fff !important;
}

.points-title {
    margin: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    opacity: 0.9 !important;
}

.points-amount {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.points-label {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    opacity: 0.9 !important;
    align-self: flex-end !important;
    margin-bottom: 0.3rem !important;
}

.points-sublabel {
    font-size: 0.75rem !important;
    opacity: 0.8 !important;
    margin-top: 0.25rem !important;
}

.points-stats {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
}

.stat-item {
    text-align: center !important;
    flex: 1 !important;
}

.stat-value {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.stat-label {
    font-size: 0.75rem !important;
    opacity: 0.8 !important;
}

.stat-divider {
    width: 1px !important;
    height: 30px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    margin: 0 1rem !important;
}

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

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

/* Enhanced animation for transaction items */
.loyalty-transaction-item {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s ease forwards;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: default;
    border-radius: 8px;
}

.loyalty-transaction-item:nth-child(1) {
    animation-delay: 0.05s;
}

.loyalty-transaction-item:nth-child(2) {
    animation-delay: 0.1s;
}

.loyalty-transaction-item:nth-child(3) {
    animation-delay: 0.15s;
}

.loyalty-transaction-item:nth-child(4) {
    animation-delay: 0.2s;
}

.loyalty-transaction-item:nth-child(5) {
    animation-delay: 0.25s;
}

.loyalty-transaction-item:nth-child(6) {
    animation-delay: 0.3s;
}

.loyalty-transaction-item:nth-child(7) {
    animation-delay: 0.35s;
}

.loyalty-transaction-item:nth-child(8) {
    animation-delay: 0.4s;
}

.loyalty-transaction-item:nth-child(9) {
    animation-delay: 0.45s;
}

.loyalty-transaction-item:nth-child(10) {
    animation-delay: 0.5s;
}

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

/* Enhanced hover effects */
.loyalty-transaction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.5s;
}

.loyalty-transaction-item:hover {
    background-color: rgba(255, 193, 7, 0.1) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.loyalty-transaction-item:hover::before {
    left: 100%;
}

/* RTL support for transaction items */
[dir="rtl"] .loyalty-transaction-item::before {
    left: auto;
    right: -100%;
    background: linear-gradient(-90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
}

[dir="rtl"] .loyalty-transaction-item:hover::before {
    right: 100%;
}

/* Loading button animation */
.btn[wire\:loading\.attr="disabled"] {
    position: relative;
}

/* Smooth transition for new items */
[wire\:loading\.class\.delay="opacity-50"] {
    transition: opacity 0.3s ease;
}

/* RTL support for loyalty points header */
[dir="rtl"] .points-content .d-flex {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .points-content .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .stat-item .d-flex {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .stat-item .me-1 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

/* Mobile optimizations for loyalty points */
@media (max-width: 576px) {
    .loyalty-points-header {
        padding: 1rem !important;
    }

    .points-main {
        margin-bottom: 0.75rem !important;
    }

    .points-amount {
        font-size: 1.8rem !important;
    }

    .trophy-icon-container {
        width: 50px !important;
        height: 50px !important;
    }

    .trophy-icon-container i {
        font-size: 1.4rem !important;
    }

    .points-stats {
        padding: 0.5rem !important;
    }

    .stat-value {
        font-size: 1rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    .stat-divider {
        height: 25px !important;
        margin: 0 0.5rem !important;
    }

    .loyalty-transaction-item {
        padding: 0.5rem !important;
    }

    .loyalty-transaction-item .rounded-circle {
        width: 32px !important;
        height: 32px !important;
    }

    .loyalty-transaction-item .rounded-circle i {
        font-size: 0.8rem !important;
    }

    .loyalty-transaction-item h6 {
        font-size: 0.75rem !important;
    }

    .loyalty-transaction-item p {
        font-size: 0.7rem !important;
    }

    .loyalty-transaction-item small {
        font-size: 0.6rem !important;
    }

    .badge {
        font-size: 0.65rem !important;
        padding: 0.25em 0.4em !important;
    }
}

/* Enhanced Notifications Dropdown Styles */
.notifications-dropdown {
    padding-top: 0px;
    margin-top: 10px !important;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    animation: slideInDown 0.4s ease-out;
}

/* Notifications badge styles */
.notifications-badge {
    cursor: pointer;
    border: 1px solid #e9ecef !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
}

.notifications-badge:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%) !important;
    border-color: #dee2e6 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notifications-badge .fas.fa-bell {
    animation: bell-ring 2s ease-in-out infinite;
}

@keyframes bell-ring {

    0%,
    50%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }
}

/* Enhanced notification item styles */
.notification-item {
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    margin: 2px 0;
    position: relative;
    overflow: hidden;
}

.notification-item:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-item.unread-notification {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.02) 100%) !important;
    border-left: 4px solid #0d6efd;
}

.notification-item.unread-notification:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15) 0%, rgba(13, 110, 253, 0.08) 100%) !important;
}

/* RTL support for notification items */
[dir="rtl"] .notification-item:hover {
    transform: translateX(-3px);
}

[dir="rtl"] .notification-item.unread-notification {
    border-left: none;
    border-right: 4px solid #0d6efd;
}

/* Loading spinner for notifications */
.notifications-loading {
    animation: spin 1s linear infinite;
}

/* Enhanced animation for notification items */
.notification-item {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s ease forwards;
}

.notification-item:nth-child(1) {
    animation-delay: 0.05s;
}

.notification-item:nth-child(2) {
    animation-delay: 0.1s;
}

.notification-item:nth-child(3) {
    animation-delay: 0.15s;
}

.notification-item:nth-child(4) {
    animation-delay: 0.2s;
}

.notification-item:nth-child(5) {
    animation-delay: 0.25s;
}

.notification-item:nth-child(6) {
    animation-delay: 0.3s;
}

.notification-item:nth-child(7) {
    animation-delay: 0.35s;
}

.notification-item:nth-child(8) {
    animation-delay: 0.4s;
}

.notification-item:nth-child(9) {
    animation-delay: 0.45s;
}

.notification-item:nth-child(10) {
    animation-delay: 0.5s;
}

/* Enhanced hover effects for notifications */
.notification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    transition: left 0.5s;
}

.notification-item:hover::before {
    left: 100%;
}

/* RTL support for notification hover effects */
[dir="rtl"] .notification-item::before {
    left: auto;
    right: -100%;
    background: linear-gradient(-90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
}

[dir="rtl"] .notification-item:hover::before {
    right: 100%;
}

/* Mobile responsiveness for notifications */
@media (max-width: 767.98px) {
    .notifications-dropdown {
        width: 320px !important;
        max-width: 90vw;
        margin-right: -20px;
    }

    .notification-item {
        padding: 0.75rem !important;
    }

    .notification-item h6 {
        font-size: 0.8rem !important;
    }

    .notification-item p {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }

    .notification-item small {
        font-size: 0.65rem !important;
    }

    .notification-item .rounded-circle {
        width: 35px !important;
        height: 35px !important;
    }

    .notification-item .rounded-circle i {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 575.98px) {
    .notifications-dropdown {
        width: 300px !important;
        margin-right: -10px;
    }
}

@media (max-width: 480px) {
    .notifications-dropdown {
        width: 100% !important;
        margin-right: -5px;
    }

    .notification-item:hover {
        transform: none;
        /* Disable hover transform on very small screens */
    }

    [dir="rtl"] .notification-item:hover {
        transform: none;
    }
}

/* Custom Comments Styling */
.exodera-comments-section .exodera-comment-actions .btn {
    border: none;
    padding: 0.25rem 0.5rem;
}

.exodera-comments-section .exodera-edit-comment {
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

/* Mobile responsiveness for comments */
@media (max-width: 767.98px) {
    .exodera-comments-section .exodera-comment-actions .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }

    .exodera-comments-section .exodera-edit-comment {
        padding: 0.75rem;
    }
}

/* Loyalty Store Game-like UI */
:root {
    --game-primary: #6366f1;
    --game-secondary: #8b5cf6;
    --game-accent: #f59e0b;
    --game-success: #10b981;
    --game-bg: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --game-card-bg: rgba(255, 255, 255, 0.95);
    --game-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --game-glow: 0 0 30px rgba(99, 102, 241, 0.3);
}

/* Game-like Hero Section */
.game-hero {
    background: var(--game-bg);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--game-shadow);
}

.game-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'); */
    /* animation: gridMove 20s linear infinite; */
    display: none;
    /* Add this line to hide the grid pseudo-element */
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(10px, 10px);
    }
}

.game-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

/* .game-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #f0f9ff, #ddd6fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
} */

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
}

.game-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.game-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    transition: var(--transition);
}

.game-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    color: var(--game-accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {

    0%,
    100% {
        transform: scale(1);
    }

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

.game-stat-label {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.game-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.game-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.game-feature i {
    font-size: 1.2rem;
    color: var(--game-accent);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.game-feature span {
    font-weight: 600;
    font-size: 0.95rem;
}

.game-cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    align-items: center; /* Center buttons horizontally */
    gap: 1rem; /* Space between buttons */
    justify-content: center;
    width: 100%; /* Allow buttons to take full width if specified */
    margin-top: 2rem; /* Add some space above the buttons */
    padding: 0 1rem; /* Prevent buttons from touching screen edges */
    box-sizing: border-box;
}

.game-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.game-btn:hover::before {
    left: 100%;
}

.game-btn-primary {
    background: linear-gradient(45deg, #fff, #f8fafc);
    color: var(--game-primary);
    border: none; /* Cleaner look, as in the image */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    width: 100%; 
    max-width: 500px; /* Max width for larger screens */
    padding: 1.25rem 2rem; /* Taller button */
    font-size: 1.15rem; /* Slightly larger font */
    text-transform: uppercase; /* Retain from original .game-btn */
    letter-spacing: 0.5px; /* Retain from original .game-btn */
    font-weight: 700; /* Retain from original .game-btn */
    border-radius: 50px; /* Retain from original .game-btn */
    display: inline-flex; /* Retain from original .game-btn */
    align-items: center; /* Retain from original .game-btn */
    justify-content: center; /* Center content within button */
    gap: 0.75rem; /* Retain from original .game-btn */
    text-decoration: none; /* Retain from original .game-btn */
    transition: var(--transition); /* Retain from original .game-btn */
    position: relative; /* Retain from original .game-btn */
    overflow: hidden; /* Retain from original .game-btn */
}

.game-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white; /* Retained from original blade styles */
    backdrop-filter: blur(5px); /* Retained from original blade styles, adjust if needed */
    padding: 0.9rem 2rem; /* Adjusted for consistency */
    font-size: 1rem; /* Adjusted for consistency */
    width: 100%; /* Make secondary button also take full width in flex column */
    max-width: 500px; /* Match primary button's max-width for consistency */
    text-transform: uppercase; /* Retained from original blade styles */
    letter-spacing: 0.5px; /* Retained from original blade styles */
    font-weight: 700; /* Retained from original blade styles */
    border-radius: 50px; /* Retained from original blade styles */
    display: inline-flex; /* Retained from original blade styles */
    align-items: center; /* Retained from original blade styles */
    justify-content: center; /* Retained from original blade styles */
    gap: 0.75rem; /* Retained from original blade styles */
    text-decoration: none; /* Retained from original blade styles */
    transition: var(--transition); /* Assuming --transition is globally defined */
    position: relative; /* Retained from original blade styles */
    overflow: hidden; /* Retained from original blade styles */
}

.game-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Floating particles animation */
.game-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 20%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    left: 30%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    left: 40%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    width: 4px;
    height: 4px;
    left: 50%;
    animation-delay: 8s;
}

.particle:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 60%;
    animation-delay: 10s;
}

.particle:nth-child(7) {
    width: 3px;
    height: 3px;
    left: 70%;
    animation-delay: 12s;
}

.particle:nth-child(8) {
    width: 5px;
    height: 5px;
    left: 80%;
    animation-delay: 14s;
}

.particle:nth-child(9) {
    width: 4px;
    height: 4px;
    left: 90%;
    animation-delay: 16s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Game-style User Type Selector */
.user-type-selector {
    background: var(--game-card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--game-shadow);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.user-type-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--game-primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--game-primary), var(--game-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.user-type-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.user-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.user-type-card:hover {
    transform: translateY(-5px);
    border-color: var(--game-primary);
    box-shadow: var(--game-glow);
}

.user-type-card:hover::before {
    left: 100%;
}

.user-type-icon {
    font-size: 2.5rem;
    color: var(--game-primary);
    margin-bottom: 1rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.user-type-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--game-primary);
    margin-bottom: 0.5rem;
}

.user-type-desc {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.user-type-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-type-benefits li {
    font-size: 0.85rem;
    color: var(--game-success);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-type-benefits li i {
    font-size: 0.8rem;
}

/* Guest User Overlay for Prize Cards */
.guest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
    padding: 1rem;
}

.exodera-prize-card:hover .guest-overlay {
    opacity: 1;
}

.guest-overlay-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.guest-overlay-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.guest-overlay-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.guest-overlay-btn {
    background-color: white;
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.guest-overlay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--primary);
    text-decoration: none;
}

/* Blur effect for non-authenticated users */
.guest-blur .exodera-prize-card-img,
.guest-blur .exodera-prize-card-body {
    filter: blur(1px);
    transition: var(--transition);
}

.guest-blur .exodera-prize-card:hover .exodera-prize-card-img,
.guest-blur .exodera-prize-card:hover .exodera-prize-card-body {
    filter: blur(2px);
}

/* Social Proof Section */
.social-proof {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.social-proof-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.social-proof-stat {
    text-align: center;
}

.social-proof-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.social-proof-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 0.25rem;
}

/* Floating Action Button */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.floating-btn {
    background: var(--register-gradient);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Filter Bar */
.filter-toggle-btn {
    background-color: var(--primary) !important;
    color: white !important;
    border: none;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: none !important;
    border-radius: var(--radius-md);
}

.filter-toggle-btn:hover,
.filter-toggle-btn:focus,
.filter-toggle-btn:active,
.filter-toggle-btn[aria-expanded="true"] {
    background-color: var(--primary-dark) !important;
    box-shadow: none !important;
    outline: none !important;
}

.filter-toggle-btn .fas {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.filter-toggle-btn[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.filter-bar {
    background-color: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.filter-bar .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-bar .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

@media (min-width: 768px) {
    .filter-bar.collapse:not(.show) {
        display: block !important;
    }
}

/* Gamified Filter Toggle Button (Mobile) */
.filter-toggle-btn-gamified {
    background: var(--game-primary, #6366f1) !important;
    color: white !important;
    border: none;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(var(--game-primary-rgb, 99, 102, 241), 0.2) !important;
    border-radius: var(--radius-md);
    transition: var(--transition, all 0.3s ease);
    font-size: 0.95rem;
}

.filter-toggle-btn-gamified:hover,
.filter-toggle-btn-gamified:focus,
.filter-toggle-btn-gamified:active,
.filter-toggle-btn-gamified[aria-expanded="true"] {
    background: var(--game-secondary, #8b5cf6) !important;
    color: white !important;
    box-shadow: 0 6px 15px rgba(var(--game-primary-rgb, 99, 102, 241), 0.3), var(--game-glow, 0 0 20px rgba(99, 102, 241, 0.25)) !important;
    outline: none !important;
    transform: translateY(-2px);
}

.filter-toggle-btn-gamified[aria-expanded="true"] {
    transform: translateY(0);
    /* Reset transform if it's expanded */
}

.filter-toggle-btn-gamified .fas {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

[dir="rtl"] .filter-toggle-btn-gamified .fas {
    margin-left: 0.5rem;
    margin-right: 0;
}

.filter-toggle-btn-gamified[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Gamified Filter Bar */
.filter-bar-gamified {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--game-shadow, 0 15px 30px rgba(0, 0, 0, 0.1));
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--game-primary-rgb, 99, 102, 241), 0.15);
    position: relative;
    z-index: 5;
}

.filter-bar-gamified .form-control,
.filter-bar-gamified .form-select {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(var(--game-primary-rgb, 99, 102, 241), 0.25);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.filter-bar-gamified .form-control::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

.filter-bar-gamified .form-control:focus,
.filter-bar-gamified .form-select:focus {
    background-color: white;
    border-color: var(--game-primary, #6366f1);
    box-shadow: 0 0 0 0.2rem rgba(var(--game-primary-rgb, 99, 102, 241), 0.25), var(--game-glow, 0 0 15px rgba(99, 102, 241, 0.2));
    outline: none;
}

.filter-bar-gamified .form-control-sm,
.filter-bar-gamified .form-select-sm {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
}

.filter-bar-gamified .btn-primary {
    background: var(--game-primary, #6366f1);
    border: none;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition, all 0.3s ease);
    box-shadow: 0 4px 10px rgba(var(--game-primary-rgb, 99, 102, 241), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.filter-bar-gamified .btn-primary i {
    margin-right: 0.5rem;
    font-size: 0.9em;
}

[dir="rtl"] .filter-bar-gamified .btn-primary i {
    margin-left: 0.5rem;
    margin-right: 0;
}

.filter-bar-gamified .btn-primary:hover,
.filter-bar-gamified .btn-primary:focus {
    background: var(--game-secondary, #8b5cf6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--game-primary-rgb, 99, 102, 241), 0.3), var(--game-glow, 0 0 20px rgba(99, 102, 241, 0.25));
    outline: none;
}

.filter-bar-gamified .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(var(--game-primary-rgb, 99, 102, 241), 0.25);
}

.filter-bar-gamified .btn-sm {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
}

.filter-bar-gamified .btn-sm i {
    font-size: 0.85em;
}

.filter-bar-gamified .row.g-3 {
    align-items: center;
}

/* Prize Card Styling */
.exodera-prize-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    transition: var(--transition);
}

.exodera-prize-card-link:hover .exodera-prize-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.exodera-prize-card {
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.exodera-prize-card-img-container {
    position: relative;
    width: 100%;
    height: 200px;
}

.exodera-prize-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Featured badge */
.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--loyalty-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Points required overlay */
.points-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem 1rem 0.5rem;
    font-weight: 600;
    z-index: 1;
}

.points-amount {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.points-amount i {
    margin-left: 0.5rem;
    color: var(--loyalty-gold);
}

.exodera-prize-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exodera-prize-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.exodera-prize-card-title:hover {
    color: var(--primary);
}

.exodera-prize-card-text {
    color: var(--text-medium);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Prize meta information */
.prize-meta-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.prize-meta-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.prize-meta-detail:last-child {
    margin-bottom: 0;
}

.prize-meta-detail i {
    margin-right: 0.5rem;
    color: var(--text-light);
    width: 14px;
    text-align: center;
}

.stock-status.in-stock {
    color: var(--success);
}

.stock-status.low-stock {
    color: var(--warning);
}

.stock-status.out-of-stock {
    color: var(--error);
}

/* Affordability indicator */
.affordability-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.affordable {
    background-color: var(--success);
    color: white;
}

.unaffordable {
    background-color: var(--error);
    color: white;
}

/* No prizes state */
.no-prizes-found {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.no-prizes-found i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-prizes-found p {
    font-size: 1.125rem;
    color: var(--text-medium);
}

/* Navigation links for loyalty store */
.navigation-links {
    text-align: center;
    margin-bottom: 2rem;
}

.loyalty-nav-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    background-color: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.loyalty-nav-link:hover {
    background-color: var(--primary);
    color: white;
    text-decoration: none;
}

.loyalty-nav-link.active {
    background-color: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .loyalty-nav-link {
        display: block;
        margin: 0.25rem 0;
    }

    /* .game-title {
        font-size: 2.5rem;
    } */

    .game-hero-content {
        padding: 2rem 1rem;
    }

    .game-stats {
        gap: 1.5rem;
    }

    .game-stat {
        min-width: 100px;
        padding: 1rem;
    }

    .game-stat-number {
        font-size: 2rem;
    }

    .game-features {
        gap: 1rem;
    }

    .game-feature {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .game-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .game-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .user-types {
        grid-template-columns: 1fr;
    }

    .floating-cta {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .loyalty-nav-link {
        display: block;
        margin: 0.25rem 0;
    }

    /* .game-title {
        font-size: 1.8rem;
    } */

    .game-hero-content {
        padding: 2rem 1rem;
    }

    .game-stats {
        gap: 1.5rem;
    }

    .game-stat {
        min-width: 100px;
        padding: 1rem;
    }

    .game-stat-number {
        font-size: 2rem;
    }

    .game-features {
        gap: 1rem;
    }

    .game-feature {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .game-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .game-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .user-types {
        grid-template-columns: 1fr;
    }

    .floating-cta {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Loyalty Store Show Page Styles */
.prize-detail-section-gamified {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 70%, #f093fb 100%); */
    /* Moved to container */
    min-height: 100vh;
    /* padding: 2rem 0; */
    position: relative;
    overflow: hidden;
    /* Keep for potential particle effects if any are outside container now */
    background-color: var(--neutral-bg);
    /* Standard page background */
}

/* .prize-detail-section-gamified::before { */
/* Moved to container */
/* content: ''; ... */
/* } */

.prize-detail-container-gamified {
    background: var(--game-bg);
    /* Gamified gradient for the container itself */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--game-shadow);
    z-index: 2;
    margin-top: 2rem;
    /* The content INSIDE this container will be on a lighter card */
}

.prize-detail-container-gamified::before {
    /* Grid for the gamified gradient container */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'); */
    /* animation: gridMove 25s linear infinite; */
    z-index: -1;
}

/* Card styling for the content within the gamified container */
.prize-content-card {
    background-color: var(--game-card-bg);
    /* rgba(255, 255, 255, 0.98) - This is the light card */
    border-radius: var(--radius-md);
    /* Slightly smaller radius for an inner card feel */
    padding: 2rem;
    /* Padding for the inner card content */
    margin: 1.5rem;
    /* Margin to show the container's gradient around it */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.prize-image-container-gamified {
    position: relative;
    height: 350px;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    /* border-bottom: 3px solid var(--game-accent); */
    /* Border can be on the image or the content card */
    margin: 1.5rem 1.5rem 0 1.5rem;
    /* Margin to align with content card */
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    /* Rounded top corners */
    overflow: hidden;
    /* To clip the image */
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
    /* Added inner shadow for depth */
}

.featured-badge-gamified {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--loyalty-gradient);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    z-index: 2;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.prize-content-gamified {
    /* This class is now for the main text area within prize-content-card */
    /* padding: 2rem; */
    /* Padding moved to prize-content-card */
    color: var(--text-dark);
    /* Default text color for the light card */
}

.prize-title-gamified {
    font-size: 2.2rem;
    /* Reduced from 2.8rem */
    font-weight: 900;
    color: var(--game-primary);
    /* Game primary color - still good for emphasis */
    margin-bottom: 0.75rem;
    text-shadow: none;
    /* Remove text shadow if on light background */
    /* Keep gradient for title if desired, or simplify to solid color */
    /* background: linear-gradient(45deg, var(--game-primary), var(--game-secondary)); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* background-clip: text; */
    letter-spacing: 0.5px;
}

.status-available-gamified {
    background-color: var(--game-success);
    /* Using game-success variable */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.status-low-stock-gamified {
    background-color: var(--game-accent);
    /* Using game-accent variable (orange/gold) */
    color: white;
}

.status-unavailable-gamified {
    background-color: var(--error);
    /* Using error variable (red) */
    color: white;
}

.prize-description-gamified {
    font-size: 1.1rem;
    color: var(--text-medium);
    /* Good for light background */
    line-height: 1.7;
    margin-bottom: 2rem;
}

.prize-details-grid-gamified {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.detail-card-gamified {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.detail-card-gamified:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.detail-card-title-gamified {
    font-weight: 700;
    color: var(--game-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-card-title-gamified i {
    margin-right: 0.75rem;
    color: var(--game-accent);
    font-size: 1.2rem;
}

.detail-card-value-gamified {
    color: var(--text-dark);
    /* Already dark, good */
    font-size: 1.15rem;
    font-weight: 600;
}

/* Points card still uses dark bg from var(--game-bg) */
.points-required-card-gamified {
    background: var(--game-bg);
    color: white;
    text-align: center;
    border: none;
    box-shadow: var(--game-shadow);
}

.points-required-card-gamified .detail-card-title-gamified i,
.points-required-card-gamified .detail-card-title-gamified {
    color: white;
}

.points-required-amount-gamified {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
    color: var(--game-accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* User Balance and Redemption section will be on the --game-card-bg (light) now */
.user-balance-section-gamified {
    background: rgba(99, 102, 241, 0.08);
    /* Lighter, subtle background */
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
    /* backdrop-filter: blur(5px); */
    /* May not be needed or desirable on light bg */
    display: flex;
    /* Use flex for better layout */
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center items horizontally */
    gap: 1rem;
    /* Space out elements */
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.1);
    /* Subtle shadow */
}

.balance-text-gamified {
    color: var(--text-dark);
    /* Darker text */
    font-size: 1.1rem;
    /* Slightly larger */
    /* margin-bottom: 0.5rem; */
    /* Replaced by gap */
    font-weight: 600;
}

.balance-display-gamified {
    font-size: 2.8rem;
    /* Larger balance display */
    font-weight: 800;
    /* Bolder font */
    color: var(--game-primary);
    /* Use game primary color */
    /* margin-bottom: 0.75rem; */
    /* Replaced by gap */
    text-shadow: none;
    /* Remove shadow */
    line-height: 1;
}

.balance-display-gamified i {
    color: var(--game-accent) !important;
    /* Ensure coin icon is accent */
    font-size: 2.2rem;
    /* Slightly smaller coin icon relative to number */
    margin-left: 0.5rem;
}

.user-balance-section-gamified .balance-status-message {
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.user-balance-section-gamified .balance-status-message.sufficient {
    background-color: rgba(var(--game-success-rgb), 0.1);
    color: var(--game-success);
    border: 1px solid rgba(var(--game-success-rgb), 0.3);
}

.user-balance-section-gamified .balance-status-message.insufficient {
    background-color: rgba(var(--warning-rgb), 0.1);
    color: var(--warning);
    border: 1px solid rgba(var(--warning-rgb), 0.3);
}

.user-balance-section-gamified small {
    /* Fallback or additional text */
    color: var(--text-medium);
    /* Medium text for helper */
}

.points-needed-gamified {
    font-weight: 700;
    /* Bolder */
    color: var(--warning);
    /* Warning color for points needed */
}

.redemption-section-gamified {
    border-top: 1px solid var(--border-light);
    /* Standard border for light card */
    padding-top: 2.5rem;
    margin-top: 2.5rem;
}

.redemption-title-gamified {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    /* Dark text */
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: none;
    /* Remove shadow */
}

.shipping-info-gamified {
    background-color: rgba(0, 0, 0, 0.03);
    /* Very subtle dark bg for input section */
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.shipping-info-gamified .form-label {
    color: var(--text-dark);
    /* Dark text */
    font-weight: 600;
}

.shipping-info-gamified .form-label i {
    color: var(--game-primary);
}

.shipping-info-gamified .form-control {
    background-color: #fff;
    border-color: var(--border-light);
    color: var(--text-dark);
}

.shipping-info-gamified .form-control::placeholder {
    color: var(--text-light);
}

.error-messages-gamified {
    background-color: rgba(229, 62, 62, 0.1);
    /* Lighter error bg */
    border: 1px solid var(--error);
    color: var(--error);
    /* Error text color */
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: none;
}

.instructions-section-gamified {
    background-color: rgba(26, 115, 232, 0.04);
    /* Lighter info bg */
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    /* Dark text for instructions */
}

.instructions-title-gamified {
    color: var(--primary);
    /* Primary color for title */
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instructions-title-gamified i {
    margin-right: 0.75rem;
    font-size: 1.4rem;
}

.login-prompt-gamified {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-dark);
    /* Dark text for login prompt on light card */
}

.login-prompt-gamified h3 {
    color: var(--game-primary);
}

/* Particles for gamified background */
.prize-detail-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* Ensure particles are behind content */
}

.prize-detail-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    /* Slightly more visible particles */
    border-radius: 50%;
    animation: particleFloat 20s infinite linear;
    /* Slower animation */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    /* Subtle glow */
}

.prize-detail-particle:nth-child(1) {
    width: 5px;
    height: 5px;
    left: 8%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.prize-detail-particle:nth-child(2) {
    width: 7px;
    height: 7px;
    left: 18%;
    animation-duration: 22s;
    animation-delay: 1.5s;
}

.prize-detail-particle:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 28%;
    animation-duration: 25s;
    animation-delay: 3s;
}

.prize-detail-particle:nth-child(4) {
    width: 6px;
    height: 6px;
    left: 38%;
    animation-duration: 17s;
    animation-delay: 4.5s;
}

.prize-detail-particle:nth-child(5) {
    width: 5px;
    height: 5px;
    left: 48%;
    animation-duration: 23s;
    animation-delay: 6s;
}

.prize-detail-particle:nth-child(6) {
    width: 8px;
    height: 8px;
    left: 58%;
    animation-duration: 19s;
    animation-delay: 7.5s;
}

.prize-detail-particle:nth-child(7) {
    width: 4px;
    height: 4px;
    left: 68%;
    animation-duration: 26s;
    animation-delay: 9s;
}

.prize-detail-particle:nth-child(8) {
    width: 6px;
    height: 6px;
    left: 78%;
    animation-duration: 16s;
    animation-delay: 10.5s;
}

.prize-detail-particle:nth-child(9) {
    width: 5px;
    height: 5px;
    left: 88%;
    animation-duration: 21s;
    animation-delay: 12s;
}

.prize-detail-particle:nth-child(10) {
    width: 7px;
    height: 7px;
    left: 92%;
    animation-duration: 24s;
    animation-delay: 13.5s;
}


/* Responsive adjustments for gamified show page */
@media (max-width: 992px) {

    /* Target tablets and below */
    .prize-content-card {
        margin: 1rem;
        /* Reduce margin for more content space */
    }

    .prize-title-gamified {
        font-size: 2rem;
        /* Further reduce for tablet */
    }
}

@media (max-width: 768px) {
    .prize-title-gamified {
        font-size: 1.8rem;
        /* Further reduce for mobile */
    }

    .prize-image-container-gamified {
        height: 280px;
        margin: 1rem 1rem 0 1rem;
    }

    .prize-content-card {
        padding: 1.5rem;
        /* Reduce padding on mobile */
        margin: 0.75rem;
        /* Further reduce margin on mobile */
    }

    .points-required-amount-gamified {
        font-size: 2.5rem;
    }

    .balance-display-gamified {
        font-size: 1.5rem;
    }

    .btn-redeem-gamified {
        padding: 0.8rem 1.5rem;
        /* Adjust button padding for mobile */
        font-size: 1rem;
    }

    .prize-details-grid-gamified {
        grid-template-columns: 1fr;
    }

    .redemption-form-gamified {
        max-width: 100%;
        /* Allow form to use full width */
    }
}

@media (max-width: 576px) {
    .prize-title-gamified {
        font-size: 1.6rem;
        /* Smallest size for very small screens */
    }

    .prize-image-container-gamified {
        height: 220px;
        margin: 0.5rem 0.5rem 0 0.5rem;
    }

    .prize-content-card {
        margin: 0.5rem;
        padding: 1rem;
    }

    .featured-badge-gamified {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .detail-card-gamified {
        padding: 1rem;
    }

    .user-balance-section-gamified,
    .shipping-info-gamified,
    .instructions-section-gamified {
        padding: 1rem;
    }

    .btn-redeem-gamified {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    .availability-status-gamified {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Remove original styles that will be replaced or are no longer needed */
/* .prize-detail-section, .prize-detail-container, .prize-image-container, etc. will be handled by gamified versions */

/* Ensure the :root variables are available if not already defined elsewhere or if this is a standalone section */
:root {
    --primary: #1a73e8;
    --primary-light: rgba(26, 115, 232, 0.1);
    --primary-dark: #1565c0;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --neutral-bg: #f7fafc;
    --border-light: #e2e8f0;
    --success: #38a169;
    --warning: #ed8936;
    --error: #e53e3e;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s ease;
    --loyalty-gold: #f59e0b;
    --loyalty-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    /* Add game variables if not present from index.blade.php's CSS import */
    --game-primary: #6366f1;
    --game-secondary: #8b5cf6;
    --game-accent: #f59e0b;
    --game-success: #10b981;
    --game-bg: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --game-card-bg: rgba(255, 255, 255, 0.98);
    /* Slightly more opaque card */
    --game-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Enhanced shadow */
    --game-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --game-success-rgb: 16, 185, 129;
    /* For rgba() usage */
    --warning-rgb: 237, 137, 54;
    /* For rgba() usage */
}

.redemption-form-gamified {
    max-width: 600px;
    /* Increased from 550px for better space use */
    margin: 0 auto;
}

.btn-redeem-gamified {
    background: var(--loyalty-gradient);
    /* Apply loyalty gradient */
    border: none;
    color: white;
    padding: 0.9rem 2rem;
    /* Adjusted padding for better feel */
    border-radius: 50px;
    /* Pill shape */
    font-weight: 700;
    font-size: 1.15rem;
    /* Adjusted font size */
    width: 100%;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.btn-redeem-gamified:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3), 0 4px 10px rgba(245, 158, 11, 0.2);
    /* Enhanced shadow */
    filter: brightness(1.1);
}

.btn-redeem-gamified:disabled {
    background: var(--text-light);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
    filter: grayscale(50%);
}

/* Gamified Modal Styles */
.modal-content-gamified {
    background: var(--game-bg);
    /* Use the game gradient for the modal background */
    border-radius: var(--radius-lg);
    border: none;
    color: white;
    box-shadow: var(--game-shadow);
    overflow: hidden;
    /* To ensure border-radius applies to header/footer */
}

.modal-header-gamified {
    background: rgba(255, 255, 255, 0.1);
    /* Slightly transparent white */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    position: relative;
    /* For custom close button positioning */
}

.modal-title-gamified {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.5rem !important;
}

.modal-title-gamified i {
    color: var(--game-accent);
    font-size: 2rem;
}

.modal-body-gamified {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    background-color: var(--game-card-bg);
    /* Light card background for content */
    color: var(--text-dark);
    /* Dark text for readability */
    margin: 0 1px 0 1px;
    /* Allow gradient border to show */
}

.modal-body-gamified strong {
    color: var(--game-primary);
}

.modal-footer-gamified {
    padding-top: 1.5rem !important;
    background: rgba(0, 0, 0, 0.1);
    /* Slightly transparent dark */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    /* Adjusted padding for more space */
    display: flex;
    justify-content: flex-end;
    /* Align buttons to the right by default */
    gap: 1rem;
    flex-wrap: wrap;
    /* Allow wrapping on very small screens if necessary */
}

.btn-modal-gamified {
    padding: 0.75rem 1.5rem;
    /* Base padding */
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-grow: 0;
    /* Prevent buttons from growing to fill space initially */
    flex-shrink: 0;
    /* Prevent buttons from shrinking too much */
}

.btn-modal-confirm-gamified {
    background: var(--loyalty-gradient);
    color: white;
    border-color: var(--game-accent);
}

.btn-modal-confirm-gamified:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.btn-modal-cancel-gamified {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-modal-cancel-gamified:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.modal-backdrop.show {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.3);
}

.btn-close-gamified {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: var(--transition);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem;
    line-height: 1;
}

.btn-close-gamified:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive adjustments for modal footer buttons */
@media (max-width: 576px) {
    .modal-footer-gamified {
        justify-content: center;
        /* Center buttons on small screens */
        padding: 1rem;
        /* Slightly reduce padding */
    }

    .btn-modal-gamified {
        font-size: 0.9rem;
        /* Slightly smaller font for small screens */
        padding: 0.6rem 1.2rem;
        /* Adjust padding for smaller buttons */
        width: auto;
        /* Ensure buttons take their content size */
        flex-grow: 1;
        /* Allow buttons to grow and share space if needed */
    }

    .modal-footer-gamified .btn-modal-gamified+.btn-modal-gamified {
        margin-left: 0.5rem;
        /* Add a small margin if they are side-by-side and wrap */
    }
}

@media (max-width: 400px) {

    /* For very narrow screens */
    .modal-footer-gamified {
        flex-direction: column;
        /* Stack buttons vertically */
        align-items: stretch;
        /* Make buttons full width */
    }

    .btn-modal-gamified {
        width: 100%;
        /* Make buttons full width when stacked */
    }

    .modal-footer-gamified .btn-modal-gamified+.btn-modal-gamified {
        margin-left: 0;
        margin-top: 0.5rem;
        /* Add space between stacked buttons */
    }
}

/* Loyalty Store - Redemptions Page Gamified Styles */
.redemptions-section-gamified {
    background-color: var(--neutral-bg);
    /* Main page background */
    min-height: 100vh;
    /* padding: var(--spacing-xl) 0; /* Padding handled by .container or specific elements */
}

/* New wrapper for the gamified content area */
.redemptions-main-content-area {
    background: var(--game-bg);
    /* Gamified gradient */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--game-shadow);
    padding: clamp(1.5rem, 4vw, 3rem);
    /* Responsive padding */
    margin-top: 2rem;
    /* Space from top or header */
    margin-bottom: 2rem;
    /* Space from footer */
    z-index: 1;
    /* Ensure it's above page background but below modals etc. */
}

.redemptions-main-content-area::before {
    /* Grid for the gamified gradient container */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'); */
    /* animation: gridMove 25s linear infinite; */
    z-index: -1;
}

.redemptions-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    /* Behind content but above background */
    pointer-events: none;
}

.redemptions-particle {
    /* Re-using prize-detail-particle styles for consistency */
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: particleFloat 20s infinite linear;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.redemptions-particle:nth-child(1) {
    width: 5px;
    height: 5px;
    left: 8%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.redemptions-particle:nth-child(2) {
    width: 7px;
    height: 7px;
    left: 18%;
    animation-duration: 22s;
    animation-delay: 1.5s;
}

.redemptions-particle:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 28%;
    animation-duration: 25s;
    animation-delay: 3s;
}

.redemptions-particle:nth-child(4) {
    width: 6px;
    height: 6px;
    left: 38%;
    animation-duration: 17s;
    animation-delay: 4.5s;
}

.redemptions-particle:nth-child(5) {
    width: 5px;
    height: 5px;
    left: 48%;
    animation-duration: 23s;
    animation-delay: 6s;
}

/* Add more if needed */


.redemptions-header-gamified {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    /* Responsive margin */
    color: white;
    position: relative;
    /* For z-index if particles are under this too */
    z-index: 1;
}

.redemptions-title-gamified {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    /* Adjusted size */
    font-weight: 900;
    margin-bottom: 0.75rem;
    /* Reduced margin */
    background: linear-gradient(45deg, #fff, #f0f9ff, #ddd6fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
    /* Re-use titleGlow */
}

.redemptions-subtitle-gamified {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    /* Adjusted size */
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* User Balance Card - Gamified */
.user-balance-card-gamified {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: clamp(1.5rem, 3vw, 2rem);
    /* Responsive padding */
    border-radius: var(--radius-lg);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    /* Responsive margin */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    /* For z-index */
    z-index: 1;
}

.balance-icon-gamified {
    font-size: clamp(2.5rem, 5vw, 3rem);
    /* Responsive size */
    color: var(--game-accent);
    margin-bottom: 0.75rem;
    /* Reduced margin */
    animation: iconFloat 3s ease-in-out infinite;
    /* Re-use iconFloat */
}

.balance-amount-gamified {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    /* Responsive size */
    font-weight: 900;
    margin-bottom: 0.25rem;
    /* Reduced margin */
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.balance-label-gamified {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    /* Responsive size */
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.75rem;
    /* Reduced margin */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-details-gamified {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    /* Responsive size */
    opacity: 0.8;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    /* Row and column gap */
}

.balance-details-gamified span {
    font-weight: 500;
    /* Normal weight */
}

.balance-details-gamified span strong {
    /* Use strong for numbers */
    font-weight: 700;
    color: var(--game-accent);
}


.redemption-card-gamified {
    background: var(--game-card-bg);
    /* Light card for content */
    border-radius: var(--radius-lg);
    box-shadow: var(--game-shadow);
    padding: clamp(1rem, 3vw, 1.5rem);
    /* Responsive padding */
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    /* Responsive margin */
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    /* For z-index and potential pseudo-elements */
    z-index: 1;
}

.redemption-card-gamified:hover {
    transform: translateY(-5px) scale(1.01);
    /* Subtle scale on hover */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 20px var(--game-glow);
    /* Added glow */
}

.redemption-card-header-gamified {
    display: flex;
    flex-direction: column;
    /* Stack on mobile first */
    gap: 1rem;
    /* Space between elements */
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px) {

    /* Switch to row layout on larger screens */
    .redemption-card-header-gamified {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.redemption-title-link {
    text-decoration: none;
    color: var(--game-primary);
}

.redemption-title-link:hover {
    color: var(--game-secondary);
    text-decoration: underline;
}

.redemption-prize-title {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    /* Responsive size */
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--game-primary);
    transition: color 0.3s ease;
}

.redemption-prize-image {
    width: 60px;
    /* Standardized size */
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    flex-shrink: 0;
    /* Prevent image from shrinking */
}

.redemption-prize-image-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--neutral-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-light);
    border: 2px solid var(--border-light);
    flex-shrink: 0;
}


.redemption-status-badge {
    padding: 0.35rem 0.8rem;
    /* Adjusted padding */
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.7rem;
    /* Adjusted font size */
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    /* Reduced gap */
    border: 1.5px solid;
    /* Thinner border */
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Consistent status styling using CSS variables for colors */
.status-pending-gamified,
.status-processing-gamified {
    /* Processing can share pending style or have its own */
    background-color: rgba(237, 137, 54, 0.1);
    /* var(--warning-rgb) */
    color: #b45309;
    /* Darker warning color text */
    border-color: #f59e0b;
    /* var(--game-accent) or var(--warning) */
}

.status-pending-gamified i,
.status-processing-gamified i {
    color: #f59e0b;
}

.status-completed-gamified,
.status-shipped-gamified {
    /* Shipped can share completed */
    background-color: rgba(16, 185, 129, 0.1);
    /* var(--game-success-rgb) */
    color: #047857;
    /* Darker success color text */
    border-color: var(--game-success);
}

.status-completed-gamified i,
.status-shipped-gamified i {
    color: var(--game-success);
}

.status-cancelled-gamified,
.status-failed-gamified {
    background-color: rgba(220, 38, 38, 0.1);
    /* var(--error-rgb if defined, or literal) */
    color: #991b1b;
    /* Darker error color text */
    border-color: #ef4444;
    /* Lighter red for border */
}

.status-cancelled-gamified i,
.status-failed-gamified i {
    color: #ef4444;
}


.redemption-grid-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Slightly smaller min */
    gap: 0.75rem;
    /* Reduced gap */
    margin-bottom: 1rem;
}

.redemption-detail-item {
    background-color: rgba(0, 0, 0, 0.02);
    /* Very subtle background */
    padding: 0.75rem 1rem;
    /* Adjusted padding */
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
    /* Slightly smaller base font */
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    /* Reduced gap */
    transition: background-color 0.2s ease;
}

.redemption-detail-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.redemption-detail-item i {
    color: var(--game-secondary);
    /* Changed icon color */
    font-size: 1rem;
    /* Standardized icon size */
    width: 16px;
    /* Fixed width for alignment */
    text-align: center;
    margin-top: 0.15em;
    /* Align with first line of text */
    flex-shrink: 0;
}

.redemption-detail-item>div {
    /* Wrapper for label and value */
    flex-grow: 1;
}

.redemption-detail-item .label {
    font-weight: 500;
    color: var(--text-medium);
    font-size: 0.75rem;
    /* Smaller label */
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    /* Ensure it's on its own line if needed */
    margin-bottom: 0.15rem;
}

.redemption-detail-item .value {
    font-weight: 600;
    /* Slightly less bold */
    color: var(--text-dark);
    display: block;
    /* Takes full width of its container */
    line-height: 1.3;
}

.redemption-description-gamified {
    background-color: rgba(var(--game-primary-rgb, 99, 102, 241), 0.05);
    /* Use primary color with alpha */
    border: 1px solid rgba(var(--game-primary-rgb, 99, 102, 241), 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.redemption-description-gamified .label {
    font-weight: 600;
    color: var(--game-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.redemption-description-gamified .value {
    color: var(--text-dark);
    line-height: 1.5;
}

.redemption-description-gamified i {
    /* If an icon is added before label */
    margin-right: 0.5rem;
    color: var(--game-primary);
}


.redemption-attributes-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light);
}

.attributes-title-gamified {
    font-weight: 700;
    color: var(--game-secondary);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    /* Slightly smaller */
    display: flex;
    align-items: center;
}

.attributes-title-gamified i {
    margin-right: 0.5rem;
    /* Reduced margin */
    color: var(--game-accent);
    font-size: 1.1em;
    /* Make icon slightly larger than text */
}

.attribute-item-gamified {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    /* Reduced padding */
    font-size: 0.85rem;
    /* Smaller font */
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
    /* Ensure space between label and value */
}

.attribute-item-gamified:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.attribute-item-gamified:first-child {
    padding-top: 0;
}


.attribute-label-gamified {
    color: var(--text-medium);
    font-weight: 500;
    flex-shrink: 0;
    /* Prevent label from shrinking too much */
    margin-right: 0;
    /* margin-bottom: 0.15rem; */
    /* Space between label and value when stacked */
    flex-basis: auto;
    /* Reset basis for stacked layout */
}

.attribute-value-gamified {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    flex-grow: 1;
    overflow-wrap: break-word;
}

.no-redemptions-gamified {
    background: var(--game-card-bg);
    text-align: center;
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
    /* Responsive padding */
    border-radius: var(--radius-lg);
    box-shadow: var(--game-shadow);
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-dark);
    position: relative;
    /* For z-index */
    z-index: 1;
}

.no-redemptions-gamified i.fa-gift {
    /* Assuming fa-gift, adjust if different */
    font-size: clamp(3rem, 8vw, 4.5rem);
    /* Responsive size */
    color: var(--game-primary);
    margin-bottom: 1rem;
    animation: iconBounce 2s ease-in-out infinite;
    /* Re-use iconBounce */
}

.no-redemptions-gamified p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    /* Responsive size */
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    /* Increased margin */
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-gamified-primary {
    /* Re-using from index.blade.php styles, ensure it's available or redefine */
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, var(--game-primary), var(--game-secondary));
    color: white;
    border-color: transparent;
    /* Remove border or match gradient */
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-gamified-primary:hover {
    background: linear-gradient(45deg, var(--game-secondary), var(--game-primary));
    color: white;
    transform: translateY(-3px) scale(1.03);
    /* Added scale */
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

/* Success Message - Gamified */
.alert-success-gamified {
    background: rgba(var(--game-success-rgb, 16, 185, 129), 0.1);
    /* Use success color with alpha */
    border: 1.5px solid var(--game-success);
    /* Thinner border */
    color: #03543f;
    /* Darker success text for better contrast */
    padding: 1rem 1.25rem;
    /* Adjusted padding */
    border-radius: var(--radius-md);
    /* Consistent radius */
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    font-size: 0.95rem;
    /* Slightly smaller font */
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Reduced gap */
    box-shadow: 0 5px 15px rgba(var(--game-success-rgb, 16, 185, 129), 0.1);
    position: relative;
    /* For z-index */
    z-index: 1;
}

.alert-success-gamified i {
    font-size: 1.3rem;
    /* Slightly smaller icon */
    color: var(--game-success);
    flex-shrink: 0;
}

.redemptions-pagination .pagination {
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.redemptions-pagination .page-item .page-link {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: var(--radius-sm);
    margin: 0 0.25rem;
    transition: var(--transition);
    padding: 0.6rem 1rem;
}

.redemptions-pagination .page-item .page-link:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.redemptions-pagination .page-item.active .page-link {
    background-color: var(--game-accent);
    border-color: var(--game-accent);
    color: white;
    box-shadow: 0 0 15px rgba(var(--game-accent-rgb, 245, 158, 11), 0.5);
    /* Use accent rgb if available */
    font-weight: 600;
}

.redemptions-pagination .page-item.active .page-link:hover {
    filter: brightness(1.1);
}

.redemptions-pagination .page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    /* Ensure it's not clickable */
}

.redemptions-pagination .page-item.disabled .page-link:hover {
    transform: none;
}

/* Responsive Tweaks */
@media (max-width: 768px) {

    .redemption-prize-image,
    .redemption-prize-image-placeholder {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        /* For placeholder icon */
    }

    .redemption-prize-title {
        font-size: clamp(1rem, 2.8vw, 1.25rem);
    }

    .balance-details-gamified {
        gap: 0.25rem 0.75rem;
        /* Smaller gaps on mobile */
    }
}

@media (max-width: 576px) {
    .redemption-grid-details {
        grid-template-columns: 1fr;
        /* Stack details on smallest screens */
    }

    .attribute-item-gamified {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        /* Reduced gap when stacked */
    }

    .attribute-label-gamified {
        margin-right: 0;
        /* margin-bottom: 0.15rem; */
        /* Space between label and value when stacked */
        flex-basis: auto;
        /* Reset basis for stacked layout */
    }

    .attribute-value-gamified {
        text-align: left;
        /* Align left when stacked */
        /* margin-top: 0.15rem; */
        flex-basis: auto;
        /* Reset basis */
    }

    .redemptions-main-content-area {
        padding: clamp(1rem, 3vw, 2rem);
        /* Smaller padding on mobile */
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .redemptions-pagination .page-item .page-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
        min-width: 32px;
    }
}

:root {
    /* ... other root variables ... */
    --game-primary-rgb: 99, 102, 241;
    /* For rgba() usage, match --game-primary */
    --game-accent-rgb: 245, 158, 11;
    /* For rgba() usage, match --game-accent */
    /* Define spacing variables if not already globally defined */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* Gamified Footer Styles */
.gamified-footer {
    background: var(--game-bg, linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%));
    color: #f0f0f0;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    margin-top: auto;
    /* Push footer to bottom if main content is short */
}

.gamified-footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.gamified-footer-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: particleFloatFooter 25s infinite linear alternate;
    /* Added alternate */
}

.gamified-footer-particle:nth-child(1) {
    width: 3px;
    height: 3px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.gamified-footer-particle:nth-child(2) {
    width: 5px;
    height: 5px;
    left: 20%;
    animation-delay: -2s;
    animation-duration: 30s;
}

.gamified-footer-particle:nth-child(3) {
    width: 2px;
    height: 2px;
    left: 30%;
    animation-delay: -4s;
    animation-duration: 28s;
}

.gamified-footer-particle:nth-child(4) {
    width: 4px;
    height: 4px;
    left: 45%;
    animation-delay: -6s;
    animation-duration: 32s;
}

.gamified-footer-particle:nth-child(5) {
    width: 3px;
    height: 3px;
    left: 55%;
    animation-delay: -8s;
    animation-duration: 26s;
}

.gamified-footer-particle:nth-child(6) {
    width: 6px;
    height: 6px;
    left: 70%;
    animation-delay: -10s;
    animation-duration: 29s;
}

.gamified-footer-particle:nth-child(7) {
    width: 2px;
    height: 2px;
    left: 80%;
    animation-delay: -12s;
    animation-duration: 31s;
}

.gamified-footer-particle:nth-child(8) {
    width: 4px;
    height: 4px;
    left: 90%;
    animation-delay: -14s;
    animation-duration: 27s;
}

@keyframes particleFloatFooter {
    0% {
        transform: translateY(105vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg) scale(1);
        opacity: 0;
    }
}

.gamified-footer .container {
    position: relative;
    z-index: 1;
}

.gamified-footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-column-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-column ul li a .fa-fw {
    margin-right: 8px;
    color: var(--game-accent, #f59e0b);
    transition: transform 0.3s ease;
}

[dir="rtl"] .footer-column ul li a .fa-fw {
    margin-left: 8px;
    margin-right: 0;
}

.footer-column ul li a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

[dir="rtl"] .footer-column ul li a:hover {
    transform: translateX(-3px);
}

.footer-column ul li a:hover .fa-fw {
    transform: scale(1.1);
}

.social-icons a {
    color: #e0e0e0;
    font-size: 1.4rem;
    margin-right: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

[dir="rtl"] .social-icons a {
    margin-left: 1rem;
    margin-right: 0;
}

.social-icons a:hover {
    color: var(--game-accent, #f59e0b);
    transform: translateY(-2px) scale(1.05);
}

.social-icons a:last-child {
    margin-right: 0;
}

[dir="rtl"] .social-icons a:last-child {
    margin-left: 0;
}

.newsletter-form {
    display: flex;
    margin-top: 1.2rem;
    border-radius: var(--radius-md, 0.5rem);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: none;
    background-color: transparent;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.newsletter-form button {
    padding: 0.8rem 1.2rem;
    border: none;
    background-color: var(--game-accent, #f59e0b);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.newsletter-form button i {
    margin-right: 0.4rem;
}

[dir="rtl"] .newsletter-form button i {
    margin-left: 0.4rem;
    margin-right: 0;
}

.newsletter-form button:hover {
    background-color: #d97706;
    /* Darker accent */
}

.gamified-footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 1rem;
    font-size: 0.85rem;
}

.gamified-footer-bottom p {
    margin-bottom: 0.6rem;
    opacity: 0.7;
}

.gamified-footer-bottom ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    /* Allow wrapping for bottom links */
}

.gamified-footer-bottom ul li a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gamified-footer-bottom ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive adjustments for Gamified Footer */
@media (max-width: 991px) {
    .footer-column {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 767px) {
    .gamified-footer-top {
        flex-direction: column;
        align-items: flex-start;
        /* Align items to the start (left for LTR, right for RTL) */
        text-align: left;
        /* Default text alignment to left for LTR */
    }

    [dir="rtl"] .gamified-footer-top {
        text-align: right;
        /* Text alignment to right for RTL */
    }

    .footer-column {
        min-width: 100%;
        margin-bottom: 2rem;
        /* Text alignment is inherited from .gamified-footer-top */
    }

    .footer-column ul {
        display: inline-block;
        /* Keeps the list only as wide as its content */
        /* text-align: left; is handled by parent or li */
    }

    /* .footer-column ul li is already text-align: left/right */

    .social-icons {
        justify-content: flex-start;
        /* Align social icons to the start */
        display: flex;
    }

    [dir="rtl"] .social-icons {
        justify-content: flex-end;
        /* Align social icons to the end for RTL */
    }

    .footer-column-title {
        font-size: 1.3rem;
    }

    /* Ensure newsletter form elements align left as well if they were centered before */
    .footer-column .newsletter-form {
        /* If it was centered by margin: auto or similar, this might not be needed if parent is text-align: left */
        /* For flex items, align-self can be used if the parent container is still centering items */
    }
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
        align-items: flex-start;
        /* Align items in column form to the start */
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        border-radius: var(--radius-sm, 0.375rem);
        width: 100%;
        /* They are already full width, this is fine */
    }

    .newsletter-form input[type="email"] {
        margin-bottom: 0.5rem;
        text-align: left;
        /* Ensure placeholder text is left aligned */
    }

    [dir="rtl"] .newsletter-form input[type="email"] {
        text-align: right;
        /* Placeholder text right aligned for RTL */
    }

    .gamified-footer-bottom ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .gamified-footer {
        padding: 3rem 0 1.5rem;
    }
}

/* Gamified Navbar Styles */
.navbar-gamified {
    background: var(--game-bg, linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%));
    box-shadow: var(--game-shadow, 0 10px 25px rgba(0, 0, 0, 0.1));
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-gamified .navbar-brand img.navbar-logo {
    filter: brightness(0) invert(1);
    /* Make logo white if it's dark, adjust if logo is light */
    max-height: 40px;
    /* Consistent logo height */
}

.navbar-gamified .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-gamified .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-gamified .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md, 0.5rem);
    transition: var(--transition, all 0.3s ease);
    position: relative;
    display: flex;
    /* For aligning icons and text */
    align-items: center;
    /* For aligning icons and text */
}

.navbar-gamified .nav-link:hover,
.navbar-gamified .nav-link:focus,
.navbar-gamified .nav-item.show>.nav-link {
    /* For open dropdowns */
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-gamified .nav-link.active {
    /* For current page, if applicable */
    color: var(--game-accent, #f59e0b);
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Special styling for Prize Store link */
.navbar-gamified .nav-link .fa-gift {
    color: var(--game-accent, #f59e0b);
}

.navbar-gamified .nav-link.fw-semibold.text-warning {
    /* For Prize Store specific text */
    color: var(--game-accent, #f59e0b) !important;
    /* Ensure override */
}

.navbar-gamified .nav-link.fw-semibold.text-warning:hover {
    color: white !important;
    background-color: rgba(var(--game-accent-rgb, 245, 158, 11), 0.2);
}

/* Gamified Dropdown Menus (for Explore, User, Language - NOT Loyalty/Notifications) */
.navbar-gamified .dropdown-menu:not(.loyalty-points-dropdown):not(.notifications-dropdown) {
    background-color: var(--game-card-bg, rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--game-shadow, 0 10px 25px rgba(0, 0, 0, 0.1));
    border-radius: var(--radius-lg, 0.75rem);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    /* Add some space from the navbar */
}

.navbar-gamified .dropdown-menu:not(.loyalty-points-dropdown):not(.notifications-dropdown) .dropdown-item {
    color: var(--text-dark, #2d3748);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: var(--transition, all 0.3s ease);
    display: flex;
    align-items: center;
}

.navbar-gamified .dropdown-menu:not(.loyalty-points-dropdown):not(.notifications-dropdown) .dropdown-item:hover,
.navbar-gamified .dropdown-menu:not(.loyalty-points-dropdown):not(.notifications-dropdown) .dropdown-item:focus {
    color: var(--game-primary, #6366f1);
    background-color: rgba(var(--game-primary-rgb, 99, 102, 241), 0.08);
}

.navbar-gamified .dropdown-menu:not(.loyalty-points-dropdown):not(.notifications-dropdown) .dropdown-item:active {
    background-color: rgba(var(--game-primary-rgb, 99, 102, 241), 0.15);
    color: var(--game-primary, #6366f1);
}

.navbar-gamified .dropdown-item img.me-1,
.navbar-gamified .dropdown-item img.me-2 {
    /* For language flags in any dropdown */
    border-radius: 3px;
    height: 18px;
    /* Ensure consistent height */
    width: auto;
}

/* --- Start: Preservation of Loyalty and Notification Dropdowns --- */
/* Ensure Loyalty and Notification dropdowns (the menu part) retain their specific styles */
.navbar-gamified .dropdown-menu.loyalty-points-dropdown,
.navbar-gamified .dropdown-menu.notifications-dropdown {
    /* background-color: white !important; */
    background: var(--game-bg, linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%));
    /* border: 1px solid #e9ecef !important; */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    /* GAMIFIED: Lighter border for dark bg */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;
    /* GAMIFIED: Adjusted shadow */
    border-radius: 12px !important;
    padding-top: 0px !important;
    margin-top: 10px !important;
    /* Any other styles that define their unique look & feel for the dropdown menu itself */
}

/* GAMIFIED: New header style for notifications, similar to loyalty points */
.notifications-header-gamified {
    background: var(--game-bg, linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%));
    border-radius: 12px 12px 0 0 !important;
    /* Match dropdown top radius */
    padding: 1rem !important;
    /* Consistent padding */
    color: white !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
    /* Copied structure from .loyalty-points-header, adjust details as needed */
}

.notifications-header-gamified .d-flex {
    align-items: center;
}

.notifications-header-gamified h6 {
    margin-bottom: 0.25rem !important;
    /* Adjust spacing */
    font-size: 1.1rem;
    /* Slightly larger title */
}

.notifications-header-gamified p {
    font-size: 0.85rem !important;
    /* Adjust spacing */
    opacity: 0.9 !important;
}

.notifications-header-gamified .badge.bg-light.text-primary {
    background-color: rgba(255, 255, 255, 0.9) !important;
    /* Ensure badge is visible on orange */
    color: #d97706 !important;
    /* Darker orange text for badge */
    font-weight: 600;
}

.notifications-header-gamified .fa-bell {
    font-size: 1.75rem !important;
    /* Prominent bell icon */
    opacity: 0.9 !important;
}

/* Styles for the toggles (badges) of Loyalty and Notifications */
.navbar-gamified .loyalty-points-badge,
.navbar-gamified .notifications-badge {
    background: transparent !important;
    /* Override previous gamified nav-link background */
    border: none !important;
    /* Remove border if it was making it look less integrated */
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
    /* Match nav-link text color for base text */
    padding: 0.5rem 0.75rem !important;
    /* Adjust padding to align with other nav-links if needed */
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
    /* Added transform for hover effect */
}

.navbar-gamified .loyalty-points-badge:hover,
.navbar-gamified .notifications-badge:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    /* Standard nav-link hover */
    color: white !important;
    transform: scale(1.05);
    /* Slight scale up on hover */
}

/* Loyalty Points Specifics */
.navbar-gamified .loyalty-points-badge .fa-coins {
    color: var(--game-accent, #f59e0b) !important;
    /* Accent color for coin */
    margin-right: 0.5rem !important;
    /* Consistent spacing */
    font-size: 1.1em;
    /* Slightly larger coin */
}

.navbar-gamified .loyalty-points-badge span.fw-semibold {
    /* This is the points number */
    color: var(--game-accent, #f59e0b) !important;
    /* Accent color for points number */
    font-weight: 700 !important;
    /* Make it bolder */
}

.navbar-gamified .loyalty-points-badge small.text-muted {
    /* This is the "pts" text */
    color: rgba(255, 255, 255, 0.8) !important;
    /* White/light text for "pts" */
    margin-left: 0.25rem;
    font-weight: 500;
}

.navbar-gamified .loyalty-points-badge:hover .fa-coins,
.navbar-gamified .loyalty-points-badge:hover span.fw-semibold {
    filter: brightness(1.1);
    /* Slightly brighten on hover */
}

.navbar-gamified .loyalty-points-badge:hover small.text-muted {
    color: white !important;
}

/* Notifications Badge Specifics */
.navbar-gamified .notifications-badge .fa-bell {
    color: rgba(255, 255, 255, 0.9) !important;
    /* White/light icon */
    margin-right: 0.5rem !important;
    /* Consistent spacing */
}

[dir="rtl"] .navbar-gamified .loyalty-points-badge .fa-coins,
[dir="rtl"] .navbar-gamified .notifications-badge .fa-bell {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

/* Notification count badge */
.navbar-gamified .notifications-badge .badge.bg-danger {
    background-color: var(--game-accent, #f59e0b) !important;
    /* Use game accent for notification count */
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 0.65em;
    /* Adjust size if needed */
    line-height: 1;
    padding: 0.3em 0.5em;
}

/* --- End: Preservation of Loyalty and Notification Dropdowns --- */


/* User Dropdown Icon */
.navbar-gamified .nav-link .fa-user-circle {
    font-size: 1.2em;
    /* Slightly larger user icon */
    margin-right: 0.35rem;
}

[dir="rtl"] .navbar-gamified .nav-link .fa-user-circle {
    margin-left: 0.35rem;
    margin-right: 0;
}

/* Language Selector Flag */
.navbar-gamified .nav-link img[alt="English"],
.navbar-gamified .nav-link img[alt="Arabic"] {
    margin-right: 0.5rem;
    height: 18px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[dir="rtl"] .navbar-gamified .nav-link img[alt="English"],
[dir="rtl"] .navbar-gamified .nav-link img[alt="Arabic"] {
    margin-left: 0.5rem;
    margin-right: 0;
}


/* General style for other icons within nav-links for consistency */
.navbar-gamified .nav-link i.fas:not(.fa-gift):not(.fa-coins):not(.fa-bell):not(.fa-user-circle),
.navbar-gamified .nav-link i.far,
.navbar-gamified .nav-link i.bi {
    margin-right: 0.4rem;
    opacity: 0.8;
    font-size: 1em;
}

[dir="rtl"] .navbar-gamified .nav-link i.fas:not(.fa-gift):not(.fa-coins):not(.fa-bell):not(.fa-user-circle),
[dir="rtl"] .navbar-gamified .nav-link i.far,
[dir="rtl"] .navbar-gamified .nav-link i.bi {
    margin-left: 0.4rem;
    margin-right: 0;
}

.navbar-gamified .nav-link:hover i.fas:not(.fa-gift):not(.fa-coins):not(.fa-bell):not(.fa-user-circle),
.navbar-gamified .nav-link:hover i.far,
.navbar-gamified .nav-link:hover i.bi {
    opacity: 1;
}


/* Mobile Specific Adjustments for Gamified Navbar */
@media (max-width: 767.98px) {
    .navbar-gamified .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.2);
        /* Slight dark overlay for collapsed menu */
        border-radius: var(--radius-md);
        margin-top: 0.5rem;
        padding: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-gamified .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        /* More touch-friendly padding */
        margin-bottom: 0.25rem;
        /* Spacing between items */
    }

    .navbar-gamified .navbar-nav .nav-item.dropdown .dropdown-menu:not(.loyalty-points-dropdown):not(.notifications-dropdown) {
        background-color: var(--game-card-bg, rgba(255, 255, 255, 0.9));
        /* Slightly more opaque for readability */
        box-shadow: none;
        /* Simpler shadow or no shadow on mobile dropdowns */
        border: 1px solid rgba(var(--game-primary-rgb, 99, 102, 241), 0.2);
    }

    /* Ensure loyalty and notification badges/toggles in collapsed menu are distinct but still fit */
    .navbar-gamified .navbar-nav .loyalty-points-badge,
    .navbar-gamified .navbar-nav .notifications-badge {
        justify-content: flex-start;
        /* Align content to start */
        width: 100%;
    }
}

/* Gamified Dropdown Content Styles */

/* Shared styles for the scrollable list areas within dropdowns */
.navbar-gamified .loyalty-points-dropdown .loyalty-points-list,
.navbar-gamified .notifications-dropdown .notifications-list {
    background-color: var(--game-card-bg, rgba(255, 255, 255, 0.98));
    padding: 0.5rem 0;
}

/* Shared styles for individual items in dropdown lists */
.navbar-gamified .loyalty-transaction-item,
.navbar-gamified .notification-item {
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    transition: background-color 0.2s ease-in-out;
    background-color: transparent !important;
}

.navbar-gamified .loyalty-transaction-item:hover,
.navbar-gamified .notification-item:hover {
    background-color: rgba(var(--game-primary-rgb, 99, 102, 241), 0.05) !important;
}

/* Loyalty Transaction Item Specifics - REVISED */
.navbar-gamified .loyalty-transaction-item .rounded-circle {
    background-color: rgba(var(--game-accent-rgb, 245, 158, 11), 0.08) !important;
    /* Lighter accent bg */
    border: 1px solid rgba(var(--game-accent-rgb, 245, 158, 11), 0.15);
}

.navbar-gamified .loyalty-transaction-item .rounded-circle i.text-success {
    color: var(--game-success, #10b981) !important;
}

.navbar-gamified .loyalty-transaction-item .rounded-circle i.text-danger {
    color: var(--error, #e53e3e) !important;
}

.navbar-gamified .loyalty-transaction-item h6.fw-semibold {
    /* Transaction Type Name */
    color: var(--game-primary, #6366f1) !important;
    /* More prominent color */
    font-size: 0.9rem;
}

.navbar-gamified .loyalty-transaction-item .badge.bg-success {
    background-color: var(--game-success, #10b981) !important;
    color: white !important;
    font-size: 0.7rem;
}

.navbar-gamified .loyalty-transaction-item .badge.bg-danger {
    background-color: var(--error, #e53e3e) !important;
    color: white !important;
    font-size: 0.7rem;
}

.navbar-gamified .loyalty-transaction-item p[style*="font-size: 0.8rem"] {
    /* Description */
    color: var(--text-medium, #4a5568) !important;
}

.navbar-gamified .loyalty-transaction-item p.text-primary {
    /* Source Name container */
    color: var(--game-accent, #f59e0b) !important;
    font-weight: 500;
}

.navbar-gamified .loyalty-transaction-item p.text-primary i.fa-tag {
    color: var(--game-accent, #f59e0b) !important;
}

.navbar-gamified .loyalty-transaction-item small.text-muted {
    color: var(--text-light, #718096) !important;
}

/* Notification Item Specifics - REVISED */
.navbar-gamified .notification-item .rounded-circle.bg-primary {
    background-color: var(--game-primary, #6366f1) !important;
}

.navbar-gamified .notification-item .rounded-circle.bg-white {
    background-color: rgba(var(--game-primary-rgb, 99, 102, 241), 0.1) !important;
    /* Lighter primary for read item icon bg */
    border: 1px solid rgba(var(--game-primary-rgb, 99, 102, 241), 0.2);
}

.navbar-gamified .notification-item .rounded-circle i.text-white {
    color: white !important;
}

.navbar-gamified .notification-item .rounded-circle i.text-primary {
    color: var(--game-primary, #6366f1) !important;
}

.navbar-gamified .notification-item.unread-notification {
    border-left-color: var(--game-primary, #6366f1) !important;
}

[dir="rtl"] .navbar-gamified .notification-item.unread-notification {
    border-right-color: var(--game-primary, #6366f1) !important;
    border-left-color: transparent !important;
}

.navbar-gamified .notification-item h6.fw-bold {
    /* Unread title */
    color: var(--game-primary, #6366f1) !important;
    font-size: 0.9rem;
}

.navbar-gamified .notification-item h6.fw-semibold {
    /* Read title */
    color: var(--text-dark, #2d3748) !important;
    font-size: 0.9rem;
}

.navbar-gamified .notification-item .badge.bg-primary {
    /* "New" badge */
    background-color: var(--game-accent, #f59e0b) !important;
    /* Use accent for "New" */
    color: white !important;
    font-size: 0.7rem;
}

.navbar-gamified .notification-item p[style*="font-size: 0.8rem"].text-dark {
    /* Unread body */
    color: var(--text-dark, #2d3748) !important;
}

.navbar-gamified .notification-item p[style*="font-size: 0.8rem"].text-muted {
    /* Read body */
    color: var(--text-medium, #4a5568) !important;
}

.navbar-gamified .notification-item small.text-primary {
    /* "View" link */
    color: var(--game-primary, #6366f1) !important;
    font-weight: 600;
}

.navbar-gamified .notification-item small.text-muted {
    color: var(--text-light, #718096) !important;
}

/* Gamified Buttons within Dropdowns (from previous attempt - generally okay) */
.navbar-gamified .loyalty-points-dropdown .btn-outline-warning,
.navbar-gamified .notifications-dropdown .btn-outline-primary,
.navbar-gamified .notifications-dropdown .btn-outline-secondary {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    transition: var(--transition);
    border-width: 1.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* (button hover styles from previous attempt are generally okay) */

/* Loyalty "Load More" Button */
.navbar-gamified .loyalty-points-dropdown .btn-outline-warning {
    border-color: var(--game-accent, #f59e0b);
    color: var(--game-accent, #f59e0b);
}

.navbar-gamified .loyalty-points-dropdown .btn-outline-warning:hover {
    background-color: var(--game-accent, #f59e0b);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--game-accent-rgb, 245, 158, 11), 0.2);
}

/* Notifications "Load More" Button */
.navbar-gamified .notifications-dropdown .btn-outline-primary {
    background-color: var(--game-accent, #f59e0b);
    color: var(--game-primary, #6366f1);
}

.navbar-gamified .notifications-dropdown .btn-outline-primary:hover {
    background-color: var(--game-accent, #f59e0b);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--game-primary-rgb, 99, 102, 241), 0.2);
}

/* "Mark all as read" button in Notifications Dropdown */
.navbar-gamified .notifications-dropdown .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.6);
    /* Lighter border for better visibility */
    /* color: var(--text-medium, #4a5568); */
    color: white !important;
    /* Ensure text is white */
}

.navbar-gamified .notifications-dropdown .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    /* Lighter background on hover */
    border-color: rgba(255, 255, 255, 0.8);
    /* Brighter border on hover */
    color: white !important;
    /* Ensure text remains white */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Footer area of dropdowns (for load more, view all etc.) */
.navbar-gamified .loyalty-points-dropdown .border-top,
.navbar-gamified .notifications-dropdown .border-top {
    background: var(--game-bg, linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%));
    border-top-color: rgba(255, 255, 255, 0.15) !important;
    /* GAMIFIED: Lighter border for dark bg */
    color: rgba(255, 255, 255, 0.75) !important;
    /* GAMIFIED: Ensure text in this area is light */
    padding-top: 0.75rem !important;
    /* Added padding for better spacing */
    padding-bottom: 0.75rem !important;
    /* Added padding for better spacing */
}

/* Ensure small helper text within these footers is also light */
.navbar-gamified .loyalty-points-dropdown .border-top small.text-muted,
.navbar-gamified .notifications-dropdown .border-top small.text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* "View all notifications" link */
.navbar-gamified .notifications-dropdown .view-all-notifications-link {
    color: white !important;
    /* Ensure color override to white or a light gamified color */
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    opacity: 0.9;
    /* Slightly less prominent than buttons */
}

.navbar-gamified .notifications-dropdown .view-all-notifications-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    /* Subtle hover for light text */
    text-decoration: none;
    opacity: 1;
}

/* Empty/Loading states within dropdowns (from previous attempt - generally okay) */
.navbar-gamified .loyalty-points-dropdown .text-center.py-4,
.navbar-gamified .notifications-dropdown .text-center.py-4 {
    color: var(--text-medium, #4a5568);
}

.navbar-gamified .loyalty-points-dropdown .text-center.py-4 i.fas,
.navbar-gamified .notifications-dropdown .text-center.py-4 i.fas {
    font-size: 2.5rem;
    color: var(--text-light, #718096);
}

.navbar-gamified .loyalty-points-dropdown .spinner-border.text-warning {
    color: var(--game-accent, #f59e0b) !important;
}

.navbar-gamified .notifications-dropdown .spinner-border.text-primary {
    color: var(--game-accent, #f59e0b) !important;
    /* GAMIFIED: Consistent spinner color */
}

/* Modern offers listing styling - Inspired by ads/index.blade.php */
:root {
    --primary: #1a73e8;
    /* Standard primary color */
    --primary-light: rgba(26, 115, 232, 0.1);
    --primary-dark: #1565c0;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --neutral-bg: #f7fafc;
    /* Consistent neutral background */
    --border-light: #e2e8f0;
    --success: #38a169;
    --error: #e53e3e;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s ease;
    --offer-highlight: #fdbb2d;
    /* Offer specific highlight color for title/elements */
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header-title {
    /* Renamed from section-title-offers for clarity */
    font-weight: 700;
    font-size: 2.5rem;
    /* Maintained size */
    color: var(--text-dark);
    /* Using text-dark for better consistency */
    margin-bottom: 0.5rem;
}

.page-header-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* Offer Card Styling - Adopted from exodera-advertisement-card */
.exodera-offer-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    transition: var(--transition);
}

.exodera-offer-card-link:hover .exodera-offer-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.exodera-offer-card {
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    /* For badges and overlays */
}

.exodera-offer-card-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    /* Consistent image height */
}

.exodera-offer-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Engagement stats overlay on image - similar to ads */
.engagement-stats-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: rgba(0, 0, 0, 0.65);
    padding: 0.4rem 0.8rem;
    justify-content: flex-end;
    gap: 0.8rem;
    color: white;
    font-size: 0.8rem;
    z-index: 1;
}

.engagement-stats-overlay .stat-item {
    display: flex;
    align-items: center;
}

.engagement-stats-overlay .stat-item i {
    margin-right: 0.3rem;
    font-size: 0.9em;
}

.engagement-stats-overlay .stat-item .fa-eye {
    color: #60a5fa;
}

.engagement-stats-overlay .stat-item .fa-comments {
    color: #34d399;
}

.engagement-stats-overlay .stat-item .fa-star {
    color: #facc15;
}

.engagement-stats-overlay .stat-item .fa-thumbs-up {
    color: #f87171;
}


.exodera-offer-card-body {
    padding: 1.25rem;
    /* Standardized padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exodera-offer-card-title {
    font-size: 1.2rem;
    /* Adjusted size */
    font-weight: 600;
    color: var(--text-dark);
    /* Consistent title color */
    margin-bottom: 0.5rem;
}

.exodera-offer-card-title:hover {
    color: var(--primary);
    /* Hover effect for title */
}

.exodera-offer-card-text {
    color: var(--text-medium);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.9rem;
    /* Standardized text size */
    line-height: 1.6;
}

/* Meta information at the bottom of the card - similar to ads item-meta */
.offer-meta-info {
    font-size: 0.85rem;
    /* Slightly smaller than ad meta for distinction */
    color: var(--text-light);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.offer-meta-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
    /* Reduced margin */
}

.offer-meta-detail:last-child {
    margin-bottom: 0;
}

.offer-meta-detail i {
    margin-right: 0.5rem;
    /* Consistent icon margin */
    color: var(--text-light);
    /* Subtler icon color for meta */
    width: 14px;
    text-align: center;
}

.offer-meta-detail .status-icon-active {
    color: var(--success);
}

.offer-meta-detail .status-icon-inactive {
    color: var(--error);
}

/* No offers state */
.no-offers-found {
    /* Renamed for clarity */
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: white;
    /* Consistent with card bg */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.no-offers-found i {
    font-size: 3rem;
    color: var(--text-light);
    /* Use text-light for icon */
    margin-bottom: 1rem;
}

.no-offers-found p {
    font-size: 1.125rem;
    /* Consistent empty state text size */
    color: var(--text-medium);
}

/* Modern ads listing styling - Copied and adapted for campaigns */
:root {
    --primary: #1a73e8;
    --primary-light: rgba(26, 115, 232, 0.1);
    --primary-dark: #1565c0;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --neutral-bg: #f7fafc;
    --border-light: #e2e8f0;
    --success: #38a169;
    --warning: #f59e0b;
    /* Added warning color */
    --error: #e53e3e;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s ease;
}

/* Filter Bar styling */
.filter-toggle-btn {
    background-color: var(--primary) !important;
    color: white !important;
    border: none;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: none !important;
    border-radius: var(--radius-md);
}

.filter-toggle-btn:hover,
.filter-toggle-btn:focus,
.filter-toggle-btn:active,
.filter-toggle-btn[aria-expanded="true"] {
    background-color: var(--primary-dark) !important;
    box-shadow: none !important;
    outline: none !important;
}

.filter-toggle-btn .fas {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.filter-toggle-btn[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.filter-bar {
    background-color: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.filter-bar .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-bar .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

@media (min-width: 768px) {
    .filter-bar.collapse:not(.show) {
        display: block !important;
    }
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 2rem;
    /* Added margin */
}

.exodera-campaign-card-link {
    /* Renamed class */
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    transition: var(--transition);
}

.exodera-campaign-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.exodera-campaign-card-link:hover .exodera-campaign-card {
    /* Renamed class */
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.exodera-campaign-card {
    /* Renamed class */
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.exodera-campaign-card-img-container {
    /* Renamed class */
    position: relative;
    width: 100%;
    height: 180px;
    background-color: var(--neutral-bg);
    /* Placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.exodera-campaign-card-img {
    /* Renamed class */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exodera-campaign-card-body {
    /* Renamed class */
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exodera-campaign-card-title {
    /* Renamed class */
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.exodera-campaign-card-text {
    /* Renamed class */
    color: var(--text-medium);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.item-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.item-meta-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-meta-detail:last-child {
    margin-bottom: 0;
}

.item-meta-detail i {
    margin-right: 0.6rem;
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.item-meta-detail .status-icon {
    color: var(--success);
    /* Default to success */
}

/* Add specific status colors if needed */
.item-meta-detail .status-icon.pending {
    color: var(--warning);
}

.item-meta-detail .status-icon.completed {
    color: var(--success);
}

.item-meta-detail .status-icon.cancelled {
    color: var(--error);
}

/* Add more statuses as necessary */


.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: var(--neutral-bg);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1.125rem;
    color: var(--text-medium);
}

/* Engagement stats overlay */
.engagement-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: rgba(0, 0, 0, 0.65);
    padding: 0.4rem 0.8rem;
    justify-content: flex-end;
    gap: 0.8rem;
    color: white;
    font-size: 0.8rem;
    z-index: 1;
}

.statistics-item {
    display: flex;
    align-items: center;
}

.statistics-item i {
    margin-right: 0.3rem;
    font-size: 0.9em;
}

.statistics-views i {
    color: #60a5fa;
}

.statistics-comments i {
    color: #34d399;
}

.statistics-rating i {
    color: #facc15;
}

.statistics-likes i {
    color: #f87171;
}

/* Added color for likes */

/* Modern ads listing styling */
:root {
    --primary: #1a73e8;
    --primary-light: rgba(26, 115, 232, 0.1);
    --primary-dark: #1565c0;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --neutral-bg: #f7fafc;
    --border-light: #e2e8f0;
    --success: #38a169;
    --error: #e53e3e;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s ease;
}

.exodera-listing-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 0;
}

.exodera-advertisement-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    transition: var(--transition);
}

.exodera-advertisement-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.exodera-advertisement-card-link:hover .exodera-advertisement-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.exodera-advertisement-card {
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    /* Keep transition for hover effect */
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Remove hover effect from card directly as it's handled by the link */
/* .exodera-advertisement-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    } */

.exodera-advertisement-card-img-container {
    position: relative;
    width: 100%;
    height: 180px;
    /* Or your desired height */
}

.exodera-advertisement-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exodera-advertisement-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exodera-advertisement-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.exodera-advertisement-card-text {
    color: var(--text-medium);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.item-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: auto;
    /* Pushes meta info to the bottom */
    padding-top: 1rem;
    /* Add some space above meta */
    border-top: 1px solid var(--border-light);
    /* Separator line */
}

.item-meta-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-meta-detail:last-child {
    margin-bottom: 0;
    /* Remove margin from last item */
}

.item-meta-detail i {
    margin-right: 0.6rem;
    color: var(--primary);
    width: 16px;
    /* Ensure icons align */
    text-align: center;
}

.item-meta-detail .status-icon {
    color: var(--success);
    /* Green for active */
}

.item-meta-detail .status-icon.inactive {
    color: var(--error);
    /* Red for inactive */
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: var(--neutral-bg);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1.125rem;
    color: var(--text-medium);
}

/* Removed item-badge styling as it's no longer used */

/* Featured icon */
.featured-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #3182ce;
    color: white;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    z-index: 1;
}

/* Engagement stats overlay */
.engagement-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: rgba(0, 0, 0, 0.65);
    /* Slightly adjusted opacity */
    padding: 0.4rem 0.8rem;
    /* Reduced padding */
    border-bottom-left-radius: 0;
    /* Align with image corners */
    border-bottom-right-radius: 0;
    justify-content: flex-end;
    /* Align items to the right */
    gap: 0.8rem;
    /* Space between items */
    color: white;
    font-size: 0.8rem;
    /* Slightly smaller font */
    z-index: 1;
    /* Above image */
}

.statistics-item {
    display: flex;
    align-items: center;
}

.statistics-item i {
    margin-right: 0.3rem;
    /* Reduced icon margin */
    font-size: 0.9em;
    /* Relative icon size */
}

/* Specific icon colors (can be customized) */
.statistics-views i {
    color: #60a5fa;
}

/* Lighter blue */
.statistics-comments i {
    color: #34d399;
}

/* Green */
.statistics-rating i {
    color: #facc15;
}

/* Yellow */
.statistics-likes i {
    color: #f87171;
}

/* Added color for likes */

/* Filter Bar styling */
.filter-toggle-btn {
    background-color: var(--primary) !important;
    color: white !important;
    border: none;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: none !important;
    border-radius: var(--radius-md);
}

.filter-toggle-btn:hover,
.filter-toggle-btn:focus,
.filter-toggle-btn:active,
.filter-toggle-btn[aria-expanded="true"] {
    background-color: var(--primary-dark) !important;
    box-shadow: none !important;
    outline: none !important;
}

.filter-toggle-btn .fas {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.filter-toggle-btn[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.filter-bar {
    background-color: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.filter-bar .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-bar .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

@media (min-width: 768px) {
    .filter-bar.collapse:not(.show) {
        display: block !important;
    }
}

/* Modern surveys listing styling - Inspired by offers/index.blade.php */
/* :root variables are assumed to be globally available from layouts.app or a shared CSS file */

.surveys-section {
    background-color: var(--neutral-bg, #f7fafc);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header-title {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--text-dark, #2d3748);
    margin-bottom: 0.5rem;
}

.page-header-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium, #4a5568);
}

/* Filter Bar styling (copied and adapted from offers/index.blade.php) */
.filter-toggle-btn {
    background-color: var(--primary, #1a73e8) !important;
    color: white !important;
    border: none;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: none !important;
    border-radius: var(--radius-md, 0.5rem);
}

.filter-toggle-btn:hover,
.filter-toggle-btn:focus,
.filter-toggle-btn:active,
.filter-toggle-btn[aria-expanded="true"] {
    background-color: var(--primary-dark, #1565c0) !important;
    box-shadow: none !important;
    outline: none !important;
}

.filter-toggle-btn .fas {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.filter-toggle-btn[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.filter-bar {
    background-color: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
    margin-bottom: 2rem;
}

.filter-bar .form-control-sm,
.filter-bar .form-select-sm {
    font-size: 0.875rem;
    /* Consistent input size */
}

.filter-bar .btn-primary {
    background-color: var(--primary, #1a73e8);
    border-color: var(--primary, #1a73e8);
    color: white;
    font-weight: 500;
    /* Adjusted font weight */
}

.filter-bar .btn-primary:hover {
    background-color: var(--primary-dark, #1565c0);
    border-color: var(--primary-dark, #1565c0);
}

@media (min-width: 768px) {

    /* md breakpoint */
    .filter-bar.collapse:not(.show) {
        display: block !important;
        /* Keep filters visible on desktop */
    }
}


.exodera-survey-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    transition: var(--transition, all 0.3s ease);
}

.exodera-survey-card-link:hover .exodera-survey-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06));
}

.exodera-survey-card {
    background-color: white;
    border-radius: var(--radius-lg, 0.75rem);
    border: 1px solid var(--border-light, #e2e8f0);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
    transition: var(--transition, all 0.3s ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.exodera-survey-card-img-placeholder {
    width: 100%;
    height: 180px;
    /* Slightly taller placeholder */
    background-color: var(--neutral-bg, #f7fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
}

.exodera-survey-card-img-placeholder i {
    font-size: 3.5rem;
    /* Larger icon */
    color: var(--primary-light, rgba(26, 115, 232, 0.3));
    /* Softer icon color */
}

.exodera-survey-card-body {
    padding: 1.5rem;
    /* Slightly more padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exodera-survey-card-title {
    font-size: 1.15rem;
    /* Adjusted size for better hierarchy */
    font-weight: 600;
    color: var(--text-dark, #2d3748);
    margin-bottom: 0.65rem;
    /* Fine-tuned margin */
}

/* Removed icon from title CSS, as it's in the placeholder. */
.exodera-survey-card-title:hover {
    /* Title hover effect only if the card itself is not the primary link target */
    color: var(--primary, #1a73e8);
}

.exodera-survey-card-text {
    color: var(--text-medium, #4a5568);
    margin-bottom: 1.25rem;
    /* More space before meta/button */
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.btn-view-survey {
    background-color: var(--primary, #1a73e8);
    border-color: var(--primary, #1a73e8);
    color: white;
    padding: 0.5rem 1rem;
    /* Adjusted padding for a sleeker button */
    font-weight: 500;
    /* Slightly less bold */
    font-size: 0.875rem;
    /* Matched to filter inputs */
    border-radius: var(--radius-md, 0.5rem);
    transition: var(--transition, all 0.3s ease);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    /* Pushes to bottom */
}

.btn-view-survey:hover {
    background-color: var(--primary-dark, #1565c0);
    border-color: var(--primary-dark, #1565c0);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
}

.btn-view-survey i {
    margin-inline-start: 0.5rem;
    font-size: 0.9em;
    /* Icon size relative to button font */
}

.survey-meta-info {
    font-size: 0.8rem;
    /* Slightly smaller meta text */
    color: var(--text-light, #718096);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light, #e2e8f0);
    margin-top: 1rem;
    /* Space above meta */
}

.survey-meta-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    /* Tighter spacing */
}

.survey-meta-detail:last-child {
    margin-bottom: 0;
}

.survey-meta-detail i {
    margin-inline-end: 0.4rem;
    /* Adjusted icon margin */
    width: 14px;
    text-align: center;
    color: var(--text-light);
    /* Consistent icon color */
}

.no-surveys-found {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: white;
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
    margin-top: 2rem;
}

.no-surveys-found .icon-placeholder {
    /* Dedicated class for icon */
    font-size: 3.5rem;
    color: var(--primary-light, rgba(26, 115, 232, 0.3));
    margin-bottom: 1rem;
    display: block;
    /* Ensure it takes space */
}

.no-surveys-found .alert-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark, #2d3748);
    margin-bottom: 0.5rem;
}

.no-surveys-found p {
    font-size: 1.1rem;
    color: var(--text-medium, #4a5568);
    margin-bottom: 0;
}

/* RTL specific adjustments */
[dir="rtl"] .exodera-survey-card-body {
    text-align: right;
}

[dir="rtl"] .btn-view-survey i {
    margin-inline-start: 0;
    margin-inline-end: 0.5rem;
}

[dir="rtl"] .survey-meta-detail i {
    margin-inline-end: 0;
    margin-inline-start: 0.5rem;
}

[dir="rtl"] .filter-toggle-btn .fas {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .filter-toggle-btn .fa-chevron-down {
    float: left;
}

[dir="rtl"] .filter-toggle-btn[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(-180deg);
}

/* Gamified Surveys Page Styles */
.surveys-section-gamified {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    /* Light, engaging background */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.survey-hero-gamified {
    background: var(--game-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    /* Default if var not set */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg, 0.75rem);
    margin-bottom: 2.5rem;
    box-shadow: var(--game-shadow, 0 20px 40px rgba(0, 0, 0, 0.1));
    color: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

/* .survey-hero-gamified::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="12" height="12" patternUnits="userSpaceOnUse"><path d="M 12 0 L 0 0 0 12" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        animation: gridMove 25s linear infinite;
    } */

.survey-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #e0e7ff, #d1c4e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2.5s ease-in-out infinite alternate;
}

.survey-hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.survey-hero-cta {
    font-size: 1rem;
    color: var(--game-accent, #f59e0b);
    font-weight: 600;
}

.survey-hero-cta i {
    margin-right: 0.5rem;
    animation: iconFloat 2.5s ease-in-out infinite;
    /* Re-use existing animation */
}

/* Re-using filter styles from loyalty store for consistency */
.filter-toggle-btn-gamified {
    background-color: var(--game-primary, #6366f1) !important;
    color: white !important;
    border: none;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: none !important;
    border-radius: var(--radius-md, 0.5rem);
}

.filter-toggle-btn-gamified:hover,
.filter-toggle-btn-gamified:focus,
.filter-toggle-btn-gamified:active,
.filter-toggle-btn-gamified[aria-expanded="true"] {
    background-color: var(--game-secondary, #8b5cf6) !important;
    box-shadow: none !important;
    outline: none !important;
}

.filter-toggle-btn-gamified .fas {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.filter-toggle-btn-gamified[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.filter-bar-gamified {
    background-color: var(--game-card-bg, rgba(255, 255, 255, 0.95));
    padding: 1.25rem;
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--game-shadow, 0 10px 20px rgba(0, 0, 0, 0.05));
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.filter-bar-gamified .form-control,
.filter-bar-gamified .form-select {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-dark, #2d3748);
    font-size: 0.9rem;
}

.filter-bar-gamified .form-control::placeholder {
    color: var(--text-light, #718096);
}

.filter-bar-gamified .form-control:focus,
.filter-bar-gamified .form-select:focus {
    background-color: white;
    border-color: var(--game-primary, #6366f1);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.filter-bar-gamified .btn-primary {
    background: linear-gradient(45deg, var(--game-primary, #6366f1), var(--game-secondary, #8b5cf6));
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: var(--transition, all 0.3s ease);
}

.filter-bar-gamified .btn-primary i {
    margin-right: 0.35rem;
}

.filter-bar-gamified .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Gamified Survey Card */
.exodera-survey-card-link-gamified {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.exodera-survey-card-gamified {
    background: var(--game-card-bg, rgba(255, 255, 255, 0.95));
    border-radius: var(--radius-lg, 0.75rem);
    border: 1px solid rgba(99, 102, 241, 0.15);
    overflow: hidden;
    box-shadow: var(--game-shadow, 0 10px 25px rgba(0, 0, 0, 0.08));
    transition: var(--transition, all 0.3s ease);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.exodera-survey-card-link-gamified:hover .exodera-survey-card-gamified {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15), var(--game-glow, 0 0 20px rgba(99, 102, 241, 0.2));
}

.exodera-survey-card-gamified-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.exodera-survey-card-gamified-icon {
    font-size: 1.8rem;
    color: var(--game-primary, #6366f1);
    line-height: 1;
}

.exodera-survey-card-gamified-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--game-primary, #6366f1);
    margin-bottom: 0;
    line-height: 1.3;
}

.exodera-survey-card-gamified-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exodera-survey-card-gamified-text {
    color: var(--text-medium, #4a5568);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.survey-meta-info-gamified {
    font-size: 0.8rem;
    color: var(--text-light, #718096);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.survey-meta-detail-gamified {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    gap: 0.5rem;
}

.survey-meta-detail-gamified:last-child {
    margin-bottom: 0;
}

.survey-meta-detail-gamified i {
    color: var(--game-secondary, #8b5cf6);
    width: 14px;
    text-align: center;
    font-size: 0.9em;
}

.btn-view-survey-gamified {
    background: linear-gradient(45deg, var(--game-primary, #6366f1), var(--game-secondary, #8b5cf6));
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    /* To align icon and text */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition, all 0.3s ease);
    margin-top: 1rem;
    /* Spacing from meta info or description */
}

.btn-view-survey-gamified:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.35);
    color: white;
}

.btn-view-survey-gamified i {
    transition: transform 0.2s ease-in-out;
}

.btn-view-survey-gamified:hover i {
    transform: translateX(3px);
}

/* RTL adjustments for gamified survey button */
[dir="rtl"] .btn-view-survey-gamified:hover i {
    transform: translateX(-3px);
}

/* Gamified No Surveys Found */
.no-surveys-found-gamified {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: var(--game-card-bg, rgba(255, 255, 255, 0.95));
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--game-shadow, 0 10px 20px rgba(0, 0, 0, 0.05));
    margin-top: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.no-surveys-found-gamified .icon-placeholder-gamified {
    font-size: 4rem;
    color: var(--game-primary, #6366f1);
    margin-bottom: 1.5rem;
    animation: iconBounce 2s ease-in-out infinite;
    /* Using existing animation */
}

.no-surveys-found-gamified .alert-heading-gamified {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--game-primary, #6366f1);
    margin-bottom: 0.75rem;
}

.no-surveys-found-gamified p {
    font-size: 1rem;
    color: var(--text-medium, #4a5568);
    margin-bottom: 0;
}

/* Ensure keyframes are defined if not already (titleGlow, gridMove, iconFloat, iconBounce) */
@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(12px, 12px);
    }
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.05);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .survey-hero-title {
        font-size: 2.2rem;
    }

    .survey-hero-subtitle {
        font-size: 1rem;
    }

    .exodera-survey-card-gamified-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .survey-hero-gamified {
        padding: 2rem 1rem;
    }

    .survey-hero-title {
        font-size: 1.8rem;
    }

    .filter-bar-gamified .row>div {
        margin-bottom: 0.75rem;
        /* Add spacing for filter items on small screens */
    }

    .filter-bar-gamified .row>div:last-child {
        margin-bottom: 0;
    }

    .btn-view-survey-gamified {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    .no-surveys-found-gamified .icon-placeholder-gamified {
        font-size: 3rem;
    }

    .no-surveys-found-gamified .alert-heading-gamified {
        font-size: 1.25rem;
    }
}

/* Gamified Offers Page Styles */
.offers-section-gamified {
    background: linear-gradient(135deg, #fdfbff 0%, #eef2f7 100%);
    /* Slightly different light background */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.offer-hero-gamified {
    background: var(--game-bg, linear-gradient(135deg, #6a11cb 0%, #2575fc 100%));
    /* Different gradient for offers */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg, 0.75rem);
    margin-bottom: 2.5rem;
    box-shadow: var(--game-shadow, 0 20px 40px rgba(0, 0, 0, 0.1));
    color: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

/* NOTE: No ::before pseudo-element for grid background as per user request */

.offer-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    background: linear-gradient(45deg, #fff, #f0f9ff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2.5s ease-in-out infinite alternate;
    /* Re-use existing animation */
}

.offer-hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.offer-hero-cta {
    font-size: 1rem;
    color: var(--game-accent, #f59e0b);
    font-weight: 600;
}

.offer-hero-cta i {
    margin-right: 0.5rem;
    animation: iconFloat 2.5s ease-in-out infinite;
    /* Re-use existing animation */
}

/* Filter bar and toggle button will reuse .filter-toggle-btn-gamified and .filter-bar-gamified from surveys/loyalty */

/* Gamified Offer Card */
.exodera-offer-card-link-gamified {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.exodera-offer-card-gamified {
    background: var(--game-card-bg, rgba(255, 255, 255, 0.95));
    border-radius: var(--radius-lg, 0.75rem);
    border: 1px solid rgba(106, 17, 203, 0.15);
    /* Adjusted border color to match offer hero */
    overflow: hidden;
    box-shadow: var(--game-shadow, 0 10px 25px rgba(0, 0, 0, 0.08));
    transition: var(--transition, all 0.3s ease);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.exodera-offer-card-link-gamified:hover .exodera-offer-card-gamified {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.15), var(--game-glow, 0 0 20px rgba(106, 17, 203, 0.2));
}

.exodera-offer-card-gamified-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    /* Consistent image height */
    background-color: var(--neutral-bg, #f7fafc);
    /* Fallback bg for image container */
}

.exodera-offer-card-gamified-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Re-using engagement-stats-overlay from existing offers page, can be further gamified if needed */

.exodera-offer-card-gamified-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exodera-offer-card-gamified-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--game-primary, #6a11cb);
    /* Using a color from the offer hero gradient */
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.exodera-offer-card-gamified-title:hover {
    color: var(--game-secondary, #2575fc);
}

.exodera-offer-card-gamified-text {
    color: var(--text-medium, #4a5568);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.offer-meta-info-gamified {
    font-size: 0.8rem;
    color: var(--text-light, #718096);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(106, 17, 203, 0.1);
}

.offer-meta-detail-gamified {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    gap: 0.5rem;
}

.offer-meta-detail-gamified:last-child {
    margin-bottom: 0;
}

.offer-meta-detail-gamified i {
    color: var(--game-secondary, #2575fc);
    /* Using a color from the offer hero gradient */
    width: 14px;
    text-align: center;
    font-size: 0.9em;
}

.offer-meta-detail-gamified .status-icon-active {
    color: var(--game-success, #10b981);
}

.offer-meta-detail-gamified .status-icon-inactive {
    color: var(--error, #e53e3e);
}

/* Gamified No Offers Found */
.no-offers-found-gamified {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: var(--game-card-bg, rgba(255, 255, 255, 0.95));
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--game-shadow, 0 10px 20px rgba(0, 0, 0, 0.05));
    margin-top: 2rem;
    border: 1px solid rgba(106, 17, 203, 0.1);
}

.no-offers-found-gamified .icon-placeholder-gamified {
    font-size: 4rem;
    color: var(--game-primary, #6a11cb);
    margin-bottom: 1.5rem;
    animation: iconBounce 2s ease-in-out infinite;
    /* Re-use existing animation */
}

.no-offers-found-gamified .alert-heading-gamified {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--game-primary, #6a11cb);
    margin-bottom: 0.75rem;
}

.no-offers-found-gamified p {
    font-size: 1rem;
    color: var(--text-medium, #4a5568);
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .offer-hero-title {
        font-size: 2.2rem;
    }

    .offer-hero-subtitle {
        font-size: 1rem;
    }

    .exodera-offer-card-gamified-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .offer-hero-gamified {
        padding: 2rem 1rem;
    }

    .offer-hero-title {
        font-size: 1.8rem;
    }

    .no-offers-found-gamified .icon-placeholder-gamified {
        font-size: 3rem;
    }

    .no-offers-found-gamified .alert-heading-gamified {
        font-size: 1.25rem;
    }
}

/* Gamified Ads Page Styles */
.ads-section-gamified {
    background: linear-gradient(135deg, #e9f0f5 0%, #d8e0e8 100%);
    /* Cool, light background for ads */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.ad-hero-gamified {
    background: var(--game-bg, linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%));
    /* Distinct blue gradient for ads */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg, 0.75rem);
    margin-bottom: 2.5rem;
    box-shadow: var(--game-shadow, 0 20px 40px rgba(0, 0, 0, 0.1));
    color: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

/* No ::before grid for this hero */

.ad-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    background: linear-gradient(45deg, #fff, #e6f0ff, #d6e4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2.5s ease-in-out infinite alternate;
}

.ad-hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ad-hero-cta {
    font-size: 1rem;
    color: var(--game-accent, #f59e0b);
    /* Using accent for CTA consistency */
    font-weight: 600;
}

.ad-hero-cta i {
    margin-right: 0.5rem;
    animation: iconFloat 2.5s ease-in-out infinite;
}

/* Gamified Ad Card - Will adapt .exodera-advertisement-card styles */
.exodera-ad-card-link-gamified {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.exodera-ad-card-gamified {
    background: var(--game-card-bg, rgba(255, 255, 255, 0.95));
    border-radius: var(--radius-lg, 0.75rem);
    border: 1px solid rgba(67, 100, 247, 0.15);
    /* Border color from ad-hero */
    overflow: hidden;
    box-shadow: var(--game-shadow, 0 10px 25px rgba(0, 0, 0, 0.08));
    transition: var(--transition, all 0.3s ease);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.exodera-ad-card-link-gamified:hover .exodera-ad-card-gamified {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(67, 100, 247, 0.15), var(--game-glow, 0 0 20px rgba(67, 100, 247, 0.2));
}

.exodera-ad-card-gamified-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: var(--neutral-bg, #f7fafc);
}

.exodera-ad-card-gamified-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Featured icon for ad card */
.featured-icon-gamified {
    position: absolute;
    top: 10px;
    left: 10px;
    /* Changed from right to left for variety or specific design choice */
    background: linear-gradient(45deg, var(--game-accent, #f59e0b), var(--warning, #ed8936));
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm, 0.375rem);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Engagement stats for ad card (can reuse .engagement-stats if styling is similar enough or create new) */
/* Assuming .engagement-stats from ads/index is suitable for now or will be slightly tweaked if needed */

.exodera-ad-card-gamified-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exodera-ad-card-gamified-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--game-primary, #4364F7);
    /* Color from ad hero */
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.exodera-ad-card-gamified-text {
    color: var(--text-medium, #4a5568);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.ad-meta-info-gamified {
    font-size: 0.8rem;
    color: var(--text-light, #718096);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(67, 100, 247, 0.1);
}

.ad-meta-detail-gamified {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    gap: 0.5rem;
}

.ad-meta-detail-gamified:last-child {
    margin-bottom: 0;
}

.ad-meta-detail-gamified i {
    color: var(--game-secondary, #0052D4);
    /* Color from ad hero */
    width: 14px;
    text-align: center;
    font-size: 0.9em;
}

.ad-meta-detail-gamified .status-icon {
    color: var(--game-success, #10b981);
}

.ad-meta-detail-gamified .status-icon.inactive {
    color: var(--error, #e53e3e);
}

/* Gamified No Ads Found */
.no-ads-found-gamified {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: var(--game-card-bg, rgba(255, 255, 255, 0.95));
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--game-shadow, 0 10px 20px rgba(0, 0, 0, 0.05));
    margin-top: 2rem;
    border: 1px solid rgba(67, 100, 247, 0.1);
}

.no-ads-found-gamified .icon-placeholder-gamified {
    font-size: 4rem;
    color: var(--game-primary, #4364F7);
    margin-bottom: 1.5rem;
    animation: iconBounce 2s ease-in-out infinite;
}

.no-ads-found-gamified .alert-heading-gamified {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--game-primary, #4364F7);
    margin-bottom: 0.75rem;
}

.no-ads-found-gamified p {
    font-size: 1rem;
    color: var(--text-medium, #4a5568);
    margin-bottom: 0;
}

/* Responsive adjustments for Ads */
@media (max-width: 768px) {
    .ad-hero-title {
        font-size: 2.2rem;
    }

    .ad-hero-subtitle {
        font-size: 1rem;
    }

    .exodera-ad-card-gamified-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .ad-hero-gamified {
        padding: 2rem 1rem;
    }

    .ad-hero-title {
        font-size: 1.8rem;
    }

    .no-ads-found-gamified .icon-placeholder-gamified {
        font-size: 3rem;
    }

    .no-ads-found-gamified .alert-heading-gamified {
        font-size: 1.25rem;
    }
}

/* Gamified Campaigns Page Styles */
.campaigns-section-gamified {
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e5ec 100%);
    /* Neutral, clean background for campaigns */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.campaign-hero-gamified {
    background: var(--game-bg, linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%));
    /* Warm, inviting gradient for campaigns */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg, 0.75rem);
    margin-bottom: 2.5rem;
    box-shadow: var(--game-shadow, 0 20px 40px rgba(0, 0, 0, 0.1));
    color: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

/* No ::before grid for this hero */

.campaign-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    background: linear-gradient(45deg, #fff, #ffe8e0, #ffdacc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2.5s ease-in-out infinite alternate;
}

.campaign-hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.campaign-hero-cta {
    font-size: 1rem;
    color: #ffffff;
    /* White CTA text to contrast with warm hero */
    font-weight: 600;
    opacity: 0.95;
}

.campaign-hero-cta i {
    margin-right: 0.5rem;
    animation: iconFloat 2.5s ease-in-out infinite;
}

/* Gamified Campaign Card - Adapting .exodera-campaign-card styles */
.exodera-campaign-card-link-gamified {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.exodera-campaign-card-gamified {
    background: var(--game-card-bg, rgba(255, 255, 255, 0.95));
    border-radius: var(--radius-lg, 0.75rem);
    border: 1px solid rgba(255, 126, 95, 0.2);
    /* Border from campaign-hero */
    overflow: hidden;
    box-shadow: var(--game-shadow, 0 10px 25px rgba(0, 0, 0, 0.08));
    transition: var(--transition, all 0.3s ease);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.exodera-campaign-card-link-gamified:hover .exodera-campaign-card-gamified {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 126, 95, 0.15), var(--game-glow, 0 0 20px rgba(255, 126, 95, 0.25));
}

.exodera-campaign-card-gamified-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: var(--neutral-bg, #f7fafc);
    display: flex;
    /* For placeholder icon centering */
    align-items: center;
    justify-content: center;
}

.exodera-campaign-card-gamified-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exodera-campaign-card-gamified-img-container .fa-bullhorn {
    /* Placeholder styling */
    color: var(--text-light, #718096);
    opacity: 0.7;
}


.exodera-campaign-card-gamified-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exodera-campaign-card-gamified-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--game-primary, #ff7e5f);
    /* Color from campaign hero */
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.exodera-campaign-card-gamified-title:hover {
    color: var(--game-secondary, #feb47b);
}

.exodera-campaign-card-gamified-text {
    color: var(--text-medium, #4a5568);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.campaign-meta-info-gamified {
    font-size: 0.8rem;
    color: var(--text-light, #718096);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 126, 95, 0.15);
}

.campaign-meta-detail-gamified {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    gap: 0.5rem;
}

.campaign-meta-detail-gamified:last-child {
    margin-bottom: 0;
}

.campaign-meta-detail-gamified i {
    color: var(--game-secondary, #feb47b);
    /* Color from campaign hero */
    width: 14px;
    text-align: center;
    font-size: 0.9em;
}

.campaign-meta-detail-gamified .status-icon.pending {
    color: var(--warning, #ed8936);
}

.campaign-meta-detail-gamified .status-icon.completed {
    color: var(--game-success, #10b981);
}

.campaign-meta-detail-gamified .status-icon.active {
    color: var(--game-success, #10b981);
}

/* Added active status */
.campaign-meta-detail-gamified .status-icon.cancelled {
    color: var(--error, #e53e3e);
}

.campaign-meta-detail-gamified .status-icon.on-hold {
    color: var(--text-light, #718096);
}

/* Added on-hold status */


/* Gamified No Campaigns Found */
.no-campaigns-found-gamified {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: var(--game-card-bg, rgba(255, 255, 255, 0.95));
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--game-shadow, 0 10px 20px rgba(0, 0, 0, 0.05));
    margin-top: 2rem;
    border: 1px solid rgba(255, 126, 95, 0.15);
}

.no-campaigns-found-gamified .icon-placeholder-gamified {
    font-size: 4rem;
    color: var(--game-primary, #ff7e5f);
    margin-bottom: 1.5rem;
    animation: iconBounce 2s ease-in-out infinite;
}

.no-campaigns-found-gamified .alert-heading-gamified {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--game-primary, #ff7e5f);
    margin-bottom: 0.75rem;
}

.no-campaigns-found-gamified p {
    font-size: 1rem;
    color: var(--text-medium, #4a5568);
    margin-bottom: 0;
}

/* Responsive adjustments for Campaigns */
@media (max-width: 768px) {
    .campaign-hero-title {
        font-size: 2.2rem;
    }

    .campaign-hero-subtitle {
        font-size: 1rem;
    }

    .exodera-campaign-card-gamified-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .campaign-hero-gamified {
        padding: 2rem 1rem;
    }

    .campaign-hero-title {
        font-size: 1.8rem;
    }

    .no-campaigns-found-gamified .icon-placeholder-gamified {
        font-size: 3rem;
    }

    .no-campaigns-found-gamified .alert-heading-gamified {
        font-size: 1.25rem;
    }
}

/* Homepage Revamp Styles */

/* General Homepage Settings */
.homepage-wrapper {
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

.homepage-section {
    padding: 60px 0;
}

.homepage-section.bg-light-tone {
    background-color: #f8f9fa;
    /* A very light grey for section separation */
}

.homepage-section-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #2c3e50;
    /* Dark blue/grey for titles */
    margin-bottom: 1.5rem;
    text-align: center;
}

.homepage-section-subtitle {
    font-size: 1.15rem;
    color: #7f8c8d;
    /* Muted grey for subtitles */
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-main {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 70%, #9370db 100%);
    /* Engaging purple gradient */
    color: white;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    animation: subtlePatternScroll 40s linear infinite;
}

@keyframes subtlePatternScroll {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-60px, -60px);
    }
}

.hero-main .container {
    position: relative;
    z-index: 1;
}

.hero-main-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-main-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 800px;
}

.hero-main-cta-group {
    margin-top: 2.5rem;
}

.hero-main-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-main-btn-primary {
    background-color: #f59e0b;
    /* Accent gold */
    color: #fff;
    border: 2px solid #f59e0b;
}

.hero-main-btn-primary:hover {
    background-color: #d97706;
    border-color: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: #fff;
}

.hero-main-btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.hero-main-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
    color: white;
}

.hero-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    /* Optional: Add a subtle animation or shadow if desired */
    animation: floatAnimation 4s ease-in-out infinite;
}

@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Benefits Section (Why Choose Us) */
.benefit-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
    /* Placeholder for hover effect */
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.benefit-card-consumer:hover {
    border-top-color: #3498db;
    /* Blue for consumer */
}

.benefit-card-brand:hover {
    border-top-color: #e74c3c;
    /* Red for brand */
}

.benefit-card-creator:hover {
    border-top-color: #2ecc71;
    /* Green for creator */
}

.benefit-icon-wrapper {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.03);
}

.benefit-card-consumer .benefit-icon-wrapper {
    color: #3498db;
}

.benefit-card-brand .benefit-icon-wrapper {
    color: #e74c3c;
}

.benefit-card-creator .benefit-icon-wrapper {
    color: #2ecc71;
}

.benefit-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0.75rem;
}

.benefit-card-text {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Key Features Section */
.key-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.key-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.key-feature-icon {
    font-size: 2rem;
    color: #667eea;
    /* Primary hero color */
    margin-right: 1.5rem;
    min-width: 40px;
    /* Ensure icon alignment */
    text-align: center;
}

.key-feature-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.key-feature-content p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0;
    line-height: 1.5;
}

.key-features-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* How It Works Section */
.how-it-works-step {
    text-align: center;
    padding: 20px;
}

.how-it-works-icon-wrapper {
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    background-color: #f59e0b;
    /* Accent gold */
    color: white;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.how-it-works-step h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.how-it-works-step p {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Step connectors for larger screens */
@media (min-width: 768px) {
    .how-it-works-step {
        position: relative;
    }

    .how-it-works-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50px;
        /* Vertically center with icon */
        right: -40%;
        /* Adjust as needed based on column gap */
        width: 80%;
        /* Adjust as needed */
        height: 2px;
        background: repeating-linear-gradient(90deg, #f59e0b, #f59e0b 5px, transparent 5px, transparent 10px);
        z-index: -1;
    }

    .col-md-4:last-child .how-it-works-step::after {
        display: none;
        /* No connector after the last step */
    }
}

/* Final CTA Section */
.final-cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 80px 0;
    border-radius: 10px;
    /* Rounded corners if standalone, or adjust for full-width */
}

.final-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.final-cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-btn {
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    background-color: #f59e0b;
    color: white;
    border: 2px solid #f59e0b;
    transition: all 0.3s ease;
}

.final-cta-btn:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: white;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-main {
        padding: 80px 0;
        min-height: auto;
        text-align: center;
    }

    .hero-main-title {
        font-size: 2.5rem;
    }

    .hero-main-subtitle {
        font-size: 1.1rem;
    }

    .hero-main-image {
        margin-top: 2rem;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .key-features-image {
        margin-top: 2rem;
    }

    .how-it-works-step:not(:last-child)::after {
        display: none;
        /* Hide connectors on smaller screens */
    }
}

@media (max-width: 767px) {
    .homepage-section {
        padding: 40px 0;
    }

    .homepage-section-title {
        font-size: 2rem;
    }

    .homepage-section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-main {
        padding: 60px 0;
    }

    .hero-main-title {
        font-size: 2rem;
    }

    .hero-main-subtitle {
        font-size: 1rem;
    }

    .hero-main-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .benefit-card {
        padding: 20px;
        margin-bottom: 1.5rem;
    }

    .benefit-icon-wrapper {
        font-size: 2.2rem;
        width: 65px;
        height: 65px;
        line-height: 65px;
    }

    .benefit-card-title {
        font-size: 1.2rem;
    }

    .key-feature-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .key-feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .how-it-works-icon-wrapper {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 2rem;
    }

    .final-cta-section {
        padding: 50px 0;
    }

    .final-cta-title {
        font-size: 2rem;
    }

    .final-cta-subtitle {
        font-size: 1rem;
    }
}

/* === Styles for Reactions and Reviews within Gamified Context === */

/* Reactions Styling (Adapted for Gamified Offer Page) */
.prize-content-gamified .exodera-reactions-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.prize-content-gamified .reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    /* Slightly larger padding */
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background-color: white;
    color: var(--text-medium);
    font-size: 0.9rem;
    /* Slightly larger font */
    font-weight: 600;
    /* Bolder */
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.prize-content-gamified .reaction-button:hover:not(.disabled) {
    background-color: var(--neutral-bg);
    border-color: #cbd5e1;
    /* Slightly darker border on hover */
    transform: translateY(-2px);
    /* More noticeable hover effect */
    box-shadow: var(--shadow-md);
}

.prize-content-gamified .reaction-button.liked {
    background-color: var(--primary-light);
    border-color: var(--game-primary);
    /* Use game primary color */
    color: var(--game-primary);
    font-weight: 700;
}

.prize-content-gamified .reaction-button.liked i {
    color: var(--game-primary);
}

.prize-content-gamified .reaction-button.disliked {
    background-color: rgba(var(--error-rgb, 229, 62, 62), 0.1);
    /* Use error color with alpha */
    border-color: var(--error);
    color: var(--error);
    font-weight: 700;
}

.prize-content-gamified .reaction-button.disliked i {
    color: var(--error);
}

.prize-content-gamified .reaction-button.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

.prize-content-gamified .reaction-button i {
    font-size: 1.1rem;
    /* Slightly larger icon */
    line-height: 1;
}

.prize-content-gamified .reaction-count {
    min-width: 12px;
    /* Adjust if needed */
    text-align: center;
    font-weight: 700;
}

/* Review System Styling (Adapted for Gamified Offer Page) */
.prize-content-gamified .exodera-review-system .section-title {
    margin-bottom: 1.5rem;
    /* Standardized margin */
}

/* Styles for displaying average rating and individual review stars */
.prize-content-gamified .stars-display {
    color: #d1d5db;
    /* Default empty star color */
    font-size: 1rem;
    /* Default star size */
    line-height: 1;
}

.prize-content-gamified .stars-display.large-stars {
    /* For average rating display */
    font-size: 1.35rem;
    /* Slightly smaller than original example */
    margin-bottom: 0.25rem;
}

.prize-content-gamified .stars-display i.fas.fa-star.filled,
.prize-content-gamified .stars-display i.fas.fa-star-half-alt.filled {
    /* Added half star */
    color: var(--game-accent, #f59e0b);
    /* Gamified gold for filled stars */
}

.prize-content-gamified .stars-display i.far.fa-star {
    /* Ensure empty stars are consistent */
    color: #d1d5db;
}


/* Interactive Star Rating Input for submitting reviews */
.prize-content-gamified .star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    /* Stars fill from right to left */
    justify-content: flex-end;
    /* Align to the right if container is wider */
    margin-bottom: 1rem;
    /* Space below stars */
}

.prize-content-gamified .star-rating-input input[type="radio"] {
    display: none;
    /* Hide actual radio buttons */
}

.prize-content-gamified .star-rating-input label {
    font-size: 1.85rem;
    /* Size of clickable stars */
    color: #dcdcdc;
    /* Color of unselected stars */
    cursor: pointer;
    padding: 0 0.12em;
    /* Spacing between stars */
    transition: color 0.2s ease-in-out, transform 0.15s ease;
}

/* Hover and checked states for interactive stars */
.prize-content-gamified .star-rating-input label:hover,
.prize-content-gamified .star-rating-input label:hover~label,
/* Style preceding stars on hover */
.prize-content-gamified .star-rating-input input[type="radio"]:checked~label {
    color: var(--game-accent, #f59e0b);
    /* Gamified gold for selected/hovered stars */
}

.prize-content-gamified .star-rating-input label:hover {
    transform: scale(1.15);
    /* Slight zoom on hover */
}

/* Styling for the "Your Review" section in the review form */
.prize-content-gamified .exodera-review-system .card-body .mb-2 {
    /* Targeting "Your Review:" text if it\'s in a p or div with mb-2 */
    font-weight: 600;
    color: var(--text-dark);
}

/* Ensure review items and existing reviews also pick up gamified context if needed */
.prize-content-gamified .review-item {
    border-left-color: var(--game-accent, #f59e0b) !important;
    /* Use important if needed to override */
}

.prize-content-gamified .user-existing-review {
    border-left: 4px solid var(--game-primary) !important;
    /* Use important if needed */
    background-color: rgba(var(--game-primary-rgb), 0.03);
    padding: 1rem;
    border-radius: var(--radius-md);
}

/* Apply general gamified card look to comment and review sections if they are separate cards */
.exodera-comments-section,
.exodera-review-system {
    background-color: var(--game-card-bg, rgba(255, 255, 255, 0.95));
    padding: 1.5rem;
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--game-shadow, 0 10px 20px rgba(0, 0, 0, 0.05));
    border: 1px solid rgba(var(--game-primary-rgb, 99, 102, 241), 0.1);
    margin-bottom: 1.5rem;
    /* Ensure spacing if stacked */
}

.exodera-comments-section .section-title,
.exodera-review-system .section-title {
    color: var(--game-primary);
    /* Match gamified titles */
    font-size: 1.4rem;
    /* Adjust size as needed */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(var(--game-primary-rgb), 0.1);
}

.prize-content-gamified .exodera-review-system .card-body .mb-2 {
    /* Targeting "Your Review:" text if it\'s in a p or div with mb-2 */
    font-weight: 600;
    color: var(--text-dark);
    /* Ensure good contrast */
    font-size: 1.1rem;
    /* Slightly larger */
}

.prize-content-gamified .review-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    background-color: rgba(var(--game-primary-rgb), 0.03);
    /* Very subtle background */
    border: 1px solid rgba(var(--game-primary-rgb), 0.1);
}

.prize-content-gamified .user-existing-review {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background-color: rgba(var(--game-tertiary-rgb), 0.05);
    border: 1px solid rgba(var(--game-tertiary-rgb), 0.2);
    box-shadow: 0 2px 10px rgba(var(--game-tertiary-rgb), 0.1);
}


/* Styles for Gamified Tabs in Offer Show Page */
.gamified-tabs {
    border-bottom: none;
    /* Remove default bootstrap border */
    gap: 0.5rem;
    /* Space between tabs */
}

.gamified-tabs .nav-item {
    margin-bottom: -2px;
    /* Overlap slightly with content for a more integrated look */
}

.gamified-tabs .nav-link {
    background-color: rgba(var(--game-secondary-rgb), 0.1);
    /* Light, semi-transparent background */
    border: 2px solid transparent;
    border-bottom: 2px solid rgba(var(--game-primary-rgb), 0.2);
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    /* Rounded top corners */
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gamified-tabs .nav-link:hover,
.gamified-tabs .nav-link:focus {
    color: var(--game-primary);
    border-color: rgba(var(--game-primary-rgb), 0.2);
    background-color: rgba(var(--game-primary-rgb), 0.05);
    border-bottom-color: var(--game-primary);
}

.gamified-tabs .nav-link.active {
    color: var(--game-accent);
    background-color: var(--game-primary);
    border-color: var(--game-primary);
    border-bottom-color: var(--game-primary);
    /* Ensure bottom border matches */
    box-shadow: 0 -2px 5px rgba(var(--game-primary-rgb), 0.2), 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    /* Slight lift effect */
}

.gamified-tabs .nav-link.active i {
    color: var(--game-accent);
    /* Ensure icon color matches text on active */
}

.gamified-tabs .nav-link i {
    margin-right: 0.5rem;
    color: var(--text-muted);
    /* Default icon color */
    transition: color 0.3s ease;
}

.gamified-tabs .nav-link:hover i,
.gamified-tabs .nav-link:focus i {
    color: var(--game-accent);
}

.tab-content>.tab-pane {
    padding: 1.5rem;
    border: 2px solid rgba(var(--game-primary-rgb), 0.2);
    border-top: none;
    /* Remove top border as nav-link handles it */
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    /* Rounded bottom corners */
    background-color: var(--white);
    /* Or a very light bg like --bs-body-bg */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* End Styles for Gamified Tabs */


.exodera-comments-section,
.exodera-review-system {
    /* Remove any specific card-like styling from these containers if they had any */
    /* This ensures they don't look like cards themselves */
    background-color: transparent;
    border: none;
    padding: 0;
    /* Reset padding if previously set */
    box-shadow: none;
}

    .exodera-comments-section .section-title,
    .prize-content-gamified .exodera-comments-section .section-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--game-primary-dark, #4f46e5);
        margin-bottom: 1rem;
       /* display: none; /* Hide individual titles if the tab system has a main one */
    }

/* Gamified Login Page Styles */
:root {
    --game-primary: #6366f1; /* Indigo */
    --game-secondary: #8b5cf6; /* Violet */
    --game-accent: #f59e0b; /* Amber */
    --game-bg-start: #667eea; /* Light Indigo */
    --game-bg-end: #764ba2; /* Darker Violet/Purple */
    --game-card-bg: rgba(255, 255, 255, 0.95);
    --game-input-bg: rgba(255, 255, 255, 0.9);
    --game-input-border: rgba(99, 102, 241, 0.3); /* primary with opacity */
    --game-input-focus-border: var(--game-primary);
    --game-text-dark: #1f2937; /* Gray 800 */
    --game-text-medium: #4b5563; /* Gray 600 */
    --game-text-light: #6b7280; /* Gray 500 */
}

.game-login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--game-bg-start), var(--game-bg-end));
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.game-login-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='rgba(255,255,255,0.03)' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    animation: subtleGridMove 20s linear infinite;
}

@keyframes subtleGridMove {
    0% { transform: translate(0,0); }
    50% { transform: translate(30px,30px); }
    100% { transform: translate(0,0); }
}

.game-login-container {
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.game-login-card {
    background-color: var(--game-card-bg);
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.game-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-login-logo {
    max-width: 180px;
    margin-bottom: 0.75rem;
}

.game-login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--game-primary);
    margin-bottom: 0.25rem;
}

.game-login-subtitle {
    font-size: 0.95rem;
    color: var(--game-text-medium);
}

.game-form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.game-form-group .form-label {
    font-weight: 600;
    color: var(--game-text-dark);
    font-size: 0.875rem;
    margin-bottom: 0.3rem;
    display: block;
}

.game-form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--game-text-dark);
    background-color: var(--game-input-bg);
    background-clip: padding-box;
    border: 1px solid var(--game-input-border);
    appearance: none;
    border-radius: 0.5rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.game-form-control:focus {
    color: var(--game-text-dark);
    background-color: #fff;
    border-color: var(--game-input-focus-border);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.game-form-control::placeholder {
    color: var(--game-text-light);
    opacity: 1;
}

.game-input-icon {
    position: absolute;
    left: 0.85rem;
    top: calc(0.75rem + 0.3rem + 0.4rem);
    color: var(--game-text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.game-form-group .form-label + .game-input-icon {
     top: 0.85rem;
}

.game-form-control:focus + .game-input-icon {
    color: var(--game-primary);
}

.game-form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.game-form-check-input {
    padding:0;
    height: initial;
    width: initial;
    margin-bottom: 0;
    display: none;
    cursor: pointer;
}

.game-form-check-label {
    position: relative;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--game-text-medium);
    padding-left: 1.75rem;
    user-select: none;
}

.game-form-check-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid var(--game-input-border);
    border-radius: 0.25rem;
    background-color: var(--game-input-bg);
    transition: all 0.2s;
}

.game-form-check-label::after {
    content: "\\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: 10px;
    color: white;
    transition: transform 0.2s ease-in-out;
}

.game-form-check-input:checked + .game-form-check-label::before {
    background-color: var(--game-primary);
    border-color: var(--game-primary);
}

.game-form-check-input:checked + .game-form-check-label::after {
    transform: translateY(-50%) scale(1);
}

.game-form-check-input:focus + .game-form-check-label::before {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.game-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--game-primary), var(--game-secondary));
    border: 2px solid white; /* Retained from original blade styles */border: none;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 4px 15px -3px rgba(99, 102, 241, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* .game-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--game-secondary), var(--game-primary));
    box-shadow: 0 6px 20px -3px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
} */

.game-btn-primary:active:not(:disabled) {
    transform: translateY(0px);
    box-shadow: 0 2px 10px -3px rgba(99, 102, 241, 0.5);
}

.game-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.game-login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.game-login-footer a {
    color: var(--game-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.game-login-footer a:hover {
    color: var(--game-secondary);
    text-decoration: underline;
}

.game-alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.game-alert-danger .fas {
    color: #842029;
}

.game-alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.game-alert-success .fas {
    color: #0f5132;
}

.game-input-with-icon {
    position: relative;
}

.game-input-with-icon .game-form-control {
    padding-left: 2.75rem;
}

.password-toggle-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--game-text-light);
    cursor: pointer;
    padding: 0.25rem;
}

.game-form-group .form-label ~ .game-input-with-icon .password-toggle-icon {
    top: calc(50% + 0.6rem);
}

.password-toggle-icon:hover {
    color: var(--game-primary);
}

@media (max-width: 576px) {
    .game-login-card {
        padding: 2rem 1.5rem;
    }
    .game-login-title {
        font-size: 1.5rem;
    }
    .game-form-control, .game-btn-primary {
        font-size: 0.9rem;
    }
    .game-login-logo {
        max-width: 150px;
    }
}

[dir="rtl"] .game-input-icon {
    left: auto;
    right: 0.85rem;
}

[dir="rtl"] .game-form-control {
    padding-left: 1rem;
    padding-right: 2.5rem;
}

[dir="rtl"] .game-form-check-label {
    padding-left: 0;
    padding-right: 1.75rem;
}

[dir="rtl"] .game-form-check-label::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .game-form-check-label::after {
    left: auto;
    right: 3px;
}

[dir="rtl"] .game-input-with-icon .game-form-control {
    padding-left: 1rem;
    padding-right: 2.75rem;
}

[dir="rtl"] .password-toggle-icon {
    right: auto;
    left: 1rem;
}

/* Select2 Gamified Styling */
.select2-container {
    width: 100% !important;
    font-family: inherit;
}

.select2-container *:focus {
    outline: none !important;
}

.select2-container--default .select2-selection--single {
    height: auto !important;
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: var(--game-text-dark) !important;
    background-color: var(--game-input-bg) !important;
    background-clip: padding-box !important;
    border: 2px solid var(--game-input-border) !important;
    border-radius: 0.5rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out !important;
    backdrop-filter: blur(5px) !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: var(--game-primary) !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--game-input-focus-border) !important;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--game-text-dark) !important;
    line-height: 1.5 !important;
    padding-left: 0 !important;
    padding-right: 30px !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    height: auto !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--game-text-light) !important;
    opacity: 1 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 1rem !important;
    top: 0 !important;
    width: 20px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--game-text-light) transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 6px 6px 0 6px !important;
    height: 0 !important;
    left: 50% !important;
    margin-left: -6px !important;
    margin-top: -3px !important;
    position: absolute !important;
    top: 50% !important;
    width: 0 !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--game-text-light) transparent !important;
    border-width: 0 6px 6px 6px !important;
}

.select2-dropdown {
    background-color: var(--game-card-bg) !important;
    border: 2px solid var(--game-input-focus-border) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(10px) !important;
    margin-top: 4px !important;
    z-index: 9999 !important;
}

.select2-container--default .select2-search--dropdown {
    padding: 0.75rem !important;
    background: transparent !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    border: 2px solid var(--game-input-border) !important;
    border-radius: 0.375rem !important;
    background-color: var(--game-input-bg) !important;
    color: var(--game-text-dark) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--game-input-focus-border) !important;
    box-shadow: 0 0 0 0.15rem rgba(99, 102, 241, 0.25) !important;
    outline: none !important;
}

.select2-container--default .select2-results__options {
    max-height: 200px !important;
    overflow-y: auto !important;
}

.select2-container--default .select2-results__option {
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    color: var(--game-text-dark) !important;
    background-color: transparent !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease-in-out !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1) !important;
}

.select2-container--default .select2-results__option:last-child {
    border-bottom: none !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option:hover {
    background-color: rgba(99, 102, 241, 0.1) !important;
    color: var(--game-primary) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--game-primary) !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected=true]:hover {
    background-color: var(--game-secondary) !important;
}

.select2-container--default .select2-results__message {
    padding: 1rem !important;
    color: var(--game-text-medium) !important;
    text-align: center !important;
    font-style: italic !important;
}

/* RTL Support for Select2 */
[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 0 !important;
    padding-left: 30px !important;
    text-align: right !important;
}

[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 1rem !important;
    right: auto !important;
}

/* Custom scrollbar for Select2 dropdown */
.select2-container--default .select2-results__options::-webkit-scrollbar {
    width: 6px;
}

.select2-container--default .select2-results__options::-webkit-scrollbar-track {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 3px;
}

.select2-container--default .select2-results__options::-webkit-scrollbar-thumb {
    background: var(--game-primary);
    border-radius: 3px;
}

.select2-container--default .select2-results__options::-webkit-scrollbar-thumb:hover {
    background: var(--game-secondary);
}

/* Enhanced validation states for Select2 */
.select2-container--default .select2-selection--single.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.select2-container--default .select2-selection--single.is-valid {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

/*
================================================================================
|                                                                              |
|                      CAMPAIGN SHOW PAGE - GAMIFIED STYLES                    |
|                                                                              |
================================================================================
*/

/* Main section, exactly like prize-detail-section-gamified */
.campaign-show-section-gamified {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: var(--neutral-bg);
}

/* Particles for Campaign Show Page - Similar to prize-detail-particles */
.campaign-show-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.campaign-show-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particleFloat 20s infinite linear alternate;
    opacity: 0;
}

.campaign-show-particle:nth-child(1) { width: 60px; height: 60px; left: 5%; animation-duration: 22s; animation-delay: 0s; }
.campaign-show-particle:nth-child(2) { width: 80px; height: 80px; left: 15%; animation-duration: 25s; animation-delay: -3s; }
.campaign-show-particle:nth-child(3) { width: 40px; height: 40px; left: 30%; animation-duration: 18s; animation-delay: -6s; }
.campaign-show-particle:nth-child(4) { width: 100px; height: 100px; left: 45%; animation-duration: 30s; animation-delay: -9s; }
.campaign-show-particle:nth-child(5) { width: 70px; height: 70px; left: 60%; animation-duration: 20s; animation-delay: -12s; }
.campaign-show-particle:nth-child(6) { width: 50px; height: 50px; left: 75%; animation-duration: 26s; animation-delay: -15s; }
.campaign-show-particle:nth-child(7) { width: 90px; height: 90px; left: 85%; animation-duration: 23s; animation-delay: -18s; }
.campaign-show-particle:nth-child(8) { width: 30px; height: 30px; left: 95%; animation-duration: 19s; animation-delay: -20s; }
.campaign-show-particle:nth-child(9) { width: 110px; height: 110px; left: 25%; top: 70%; animation-duration: 32s; animation-delay: -5s; }
.campaign-show-particle:nth-child(10) { width: 65px; height: 65px; left: 65%; top: 60%; animation-duration: 27s; animation-delay: -10s; }

/* Main container, exactly like prize-detail-container-gamified */
.campaign-show-container-gamified {
    background: var(--game-bg);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--game-shadow);
    z-index: 2;
    margin-top: 2rem;
}

/* Image container, exactly like prize-image-container-gamified */
.campaign-show-image-container-gamified {
    position: relative;
    height: 350px;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 1.5rem 0 1.5rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

.campaign-show-image-gamified {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

.campaign-show-image-container-gamified:hover .campaign-show-image-gamified {
    transform: scale(1.05);
}

.campaign-show-image-placeholder-gamified {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: var(--game-primary-light, #a5b4fc);
}

.campaign-show-image-placeholder-gamified i {
    font-size: 4rem;
}

/* Content card, exactly like prize-content-card */
.campaign-show-content-card {
    background-color: var(--game-card-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.campaign-show-content-gamified {
    color: var(--text-dark);
}

.campaign-show-main-title-gamified {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--game-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

/* Section titles within campaign content */
.campaign-show-content-gamified .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--game-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--game-accent-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Campaign details grid, exactly like prize-details-grid-gamified */
.campaign-show-details-grid-gamified {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Specific icon colors for campaign detail cards */
.campaign-show-details-grid-gamified .views-card .detail-card-title-gamified i { color: #3b82f6; }
.campaign-show-details-grid-gamified .comments-card .detail-card-title-gamified i { color: #10b981; }
.campaign-show-details-grid-gamified .rating-card .detail-card-title-gamified i { color: #f59e0b; }
.campaign-show-details-grid-gamified .duration-card .detail-card-title-gamified i { color: #8b5cf6; }
.campaign-show-details-grid-gamified .budget-card .detail-card-title-gamified i { color: #ef4444; }
.campaign-show-details-grid-gamified .ads-count-card .detail-card-title-gamified i { color: #6366f1; }
.campaign-show-details-grid-gamified .creator-card .detail-card-title-gamified i { color: #475569; }

/* Status specific colors */
.campaign-show-details-grid-gamified .status-card.status-active .detail-card-title-gamified i, 
.campaign-show-details-grid-gamified .status-card.status-active .detail-card-value-gamified {
    color: var(--game-success, #10b981);
}
.campaign-show-details-grid-gamified .status-card.status-pending .detail-card-title-gamified i,
.campaign-show-details-grid-gamified .status-card.status-pending .detail-card-value-gamified {
    color: var(--game-warning, #f59e0b);
}
.campaign-show-details-grid-gamified .status-card.status-inactive .detail-card-title-gamified i,
.campaign-show-details-grid-gamified .status-card.status-inactive .detail-card-value-gamified,
.campaign-show-details-grid-gamified .status-card.status-cancelled .detail-card-title-gamified i,
.campaign-show-details-grid-gamified .status-card.status-cancelled .detail-card-value-gamified {
    color: var(--game-error, #ef4444);
}
.campaign-show-details-grid-gamified .status-card.status-completed .detail-card-title-gamified i,
.campaign-show-details-grid-gamified .status-card.status-completed .detail-card-value-gamified {
    color: var(--game-info, #3b82f6);
}

/* Campaign Ads List Section */
.campaign-show-ads-list-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--game-border-light, rgba(0,0,0,0.1));
}

.campaign-show-ads-list-section .exodera-ad-card-gamified {
    margin-bottom: 0;
}

/* Campaign Show Like/Dislike Buttons - Exact same styling as offers show page */
.campaign-show-content-gamified .exodera-reactions-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.campaign-show-content-gamified .reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    /* Slightly larger padding */
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background-color: white;
    color: var(--text-medium);
    font-size: 0.9rem;
    /* Slightly larger font */
    font-weight: 600;
    /* Bolder */
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.campaign-show-content-gamified .reaction-button:hover:not(.disabled) {
    background-color: var(--neutral-bg);
    border-color: #cbd5e1;
    /* Slightly darker border on hover */
    transform: translateY(-2px);
    /* More noticeable hover effect */
    box-shadow: var(--shadow-md);
}

.campaign-show-content-gamified .reaction-button.liked {
    background-color: var(--primary-light);
    border-color: var(--game-primary);
    /* Use game primary color */
    color: var(--game-primary);
    font-weight: 700;
}

.campaign-show-content-gamified .reaction-button.liked i {
    color: var(--game-primary);
}

.campaign-show-content-gamified .reaction-button.disliked {
    background-color: rgba(var(--error-rgb, 229, 62, 62), 0.1);
    /* Use error color with alpha */
    border-color: var(--error);
    color: var(--error);
    font-weight: 700;
}

.campaign-show-content-gamified .reaction-button.disliked i {
    color: var(--error);
}

.campaign-show-content-gamified .reaction-button.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

.campaign-show-content-gamified .reaction-button i {
    font-size: 1.1rem;
    /* Slightly larger icon */
    line-height: 1;
}

.campaign-show-content-gamified .reaction-count {
    min-width: 12px;
    /* Adjust if needed */
    text-align: center;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .campaign-show-content-gamified {
        padding: 1.5rem 2rem;
    }
    .campaign-show-main-title-gamified {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .campaign-show-main-title-gamified {
        font-size: 1.75rem;
    }
    .campaign-show-image-container-gamified {
        height: 300px;
    }
    .campaign-show-content-gamified {
        padding: 1.25rem 1.5rem;
    }
    .campaign-show-details-grid-gamified {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .campaign-show-main-title-gamified {
        font-size: 1.5rem;
    }
    .campaign-show-image-container-gamified {
        height: 250px;
    }
    .campaign-show-content-gamified {
        padding: 1rem 1.25rem;
    }
    .campaign-show-details-grid-gamified {
        grid-template-columns: 1fr;
    }
    .campaign-show-details-grid-gamified .detail-card-gamified {
        padding: 0.75rem;
    }
}

/* Ad Detail Page Gamified Styles */
.ad-detail-section-gamified {
    background: var(--game-bg-subtle, linear-gradient(135deg, #f4f7fc 0%, #e9edf4 100%)); /* Softer gradient */
    position: relative;
    overflow: hidden; /* To contain particles */
    padding-bottom: 3rem; /* More space at bottom */
}

/* Particles for Campaign Show Page - Similar to prize-detail-particles */
.ad-detail-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ad-detail-particle {
    position: absolute;
    background: rgba(var(--game-primary-rgb), 0.1); /* Primary color with low opacity */
    border-radius: 50%;
    animation: particleFloat 20s infinite linear alternate;
    opacity: 0;
}

.ad-detail-particle:nth-child(1) { width: 60px; height: 60px; left: 5%; animation-duration: 22s; animation-delay: 0s; }
.ad-detail-particle:nth-child(2) { width: 80px; height: 80px; left: 15%; animation-duration: 25s; animation-delay: -3s; }
.ad-detail-particle:nth-child(3) { width: 40px; height: 40px; left: 30%; animation-duration: 18s; animation-delay: -6s; }
.ad-detail-particle:nth-child(4) { width: 100px; height: 100px; left: 45%; animation-duration: 30s; animation-delay: -9s; }
.ad-detail-particle:nth-child(5) { width: 70px; height: 70px; left: 60%; animation-duration: 20s; animation-delay: -12s; }
.ad-detail-particle:nth-child(6) { width: 50px; height: 50px; left: 75%; animation-duration: 26s; animation-delay: -15s; }
.ad-detail-particle:nth-child(7) { width: 90px; height: 90px; left: 85%; animation-duration: 23s; animation-delay: -18s; }
.ad-detail-particle:nth-child(8) { width: 30px; height: 30px; left: 95%; animation-duration: 19s; animation-delay: -20s; }
.ad-detail-particle:nth-child(9) { width: 110px; height: 110px; left: 25%; top: 70%; animation-duration: 32s; animation-delay: -5s; }
.ad-detail-particle:nth-child(10) { width: 65px; height: 65px; left: 65%; top: 60%; animation-duration: 27s; animation-delay: -10s; }


.ad-detail-container-gamified {
    background-color: rgba(255, 255, 255, 0.85); /* Slightly transparent white */
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl, 1.5rem);
    box-shadow: var(--game-shadow-lg, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
    overflow: hidden;
    margin-top: 1rem; /* Spacing from top if needed */
    position: relative; /* For z-index stacking */
    z-index: 1;
}

.ad-image-container-gamified {
    position: relative;
    height: 400px; /* Adjust as needed */
    background-color: var(--neutral-light, #eef2f7);
    overflow: hidden;
}

.ad-image-gamified {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

.ad-image-container-gamified:hover .ad-image-gamified {
    transform: scale(1.05);
}

.ad-image-placeholder-gamified {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: var(--game-primary-light, #a5b4fc);
}

.ad-image-placeholder-gamified i {
    font-size: 4rem; /* Larger icon for placeholder */
}

.ad-content-card {
    /* This acts as a container for the main content, similar to prize-content-card */
    padding: 0; /* Reset padding, will be on child */
}

.ad-content-gamified {
    padding: 2rem 2.5rem; /* Consistent padding */
}

.ad-title-gamified {
    font-size: 2.5rem; /* Large, impactful title */
    font-weight: 800;
    color: var(--game-primary-dark, #4338ca);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Re-using .section-title from offers/show.blade.php if it fits */
/* If specific styling is needed for campaign show's section titles: */
.ad-content-gamified .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--game-secondary, #7c3aed);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--game-accent-light, #fcd34d);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.ad-details-grid-gamified {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Styling for individual detail cards - extending .detail-card-gamified */
.ad-details-grid-gamified .detail-card-gamified {
    background-color: var(--game-card-bg, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--game-border-light, rgba(0,0,0,0.08));
    /* padding: 1rem; */ /* Already defined in base .detail-card-gamified */
    /* border-radius: var(--radius-lg, 0.75rem); */
    /* box-shadow: var(--game-shadow-sm, 0 4px 10px rgba(0,0,0,0.05)); */
    /* transition: all 0.3s ease; */
}

.ad-details-grid-gamified .detail-card-gamified:hover {
    /* transform: translateY(-4px); */ /* Already defined */
    /* box-shadow: var(--game-shadow-md, 0 8px 20px rgba(0,0,0,0.1)); */
}

.ad-details-grid-gamified .detail-card-title-gamified {
    /* font-size: 0.8rem; */ /* Already defined */
    /* color: var(--game-text-medium, #64748b); */
    /* margin-bottom: 0.35rem; */
    /* text-transform: uppercase; */
    /* letter-spacing: 0.05em; */
}

.ad-details-grid-gamified .detail-card-title-gamified i {
    margin-right: 0.5rem;
    /* color: var(--game-primary, #6366f1); */ /* Defined by specific card types */
}

.ad-details-grid-gamified .detail-card-value-gamified {
    /* font-size: 1.4rem; */ /* Already defined */
    /* font-weight: 700; */
    /* color: var(--game-text-dark, #1e293b); */
    line-height: 1.2;
}

/* Specific icon colors for campaign detail cards */
.ad-details-grid-gamified .views-card .detail-card-title-gamified i { color: #3b82f6; /* blue-500 */ }
.ad-details-grid-gamified .comments-card .detail-card-title-gamified i { color: #10b981; /* emerald-500 */ }
.ad-details-grid-gamified .rating-card .detail-card-title-gamified i { color: #f59e0b; /* amber-500 */ }
.ad-details-grid-gamified .duration-card .detail-card-title-gamified i { color: #8b5cf6; /* violet-500 */ }
.ad-details-grid-gamified .budget-card .detail-card-title-gamified i { color: #ef4444; /* red-500 */ }
.ad-details-grid-gamified .ads-count-card .detail-card-title-gamified i { color: #6366f1; /* indigo-500 */ }
.ad-details-grid-gamified .creator-card .detail-card-title-gamified i { color: #475569; /* slate-600 */ }

/* Status specific colors */
.ad-details-grid-gamified .status-card.status-active .detail-card-title-gamified i, 
.ad-details-grid-gamified .status-card.status-active .detail-card-value-gamified {
    color: var(--game-success, #10b981);
}
.ad-details-grid-gamified .status-card.status-pending .detail-card-title-gamified i,
.ad-details-grid-gamified .status-card.status-pending .detail-card-value-gamified {
    color: var(--game-warning, #f59e0b);
}
.ad-details-grid-gamified .status-card.status-inactive .detail-card-title-gamified i,
.ad-details-grid-gamified .status-card.status-inactive .detail-card-value-gamified,
.ad-details-grid-gamified .status-card.status-cancelled .detail-card-title-gamified i,
.ad-details-grid-gamified .status-card.status-cancelled .detail-card-value-gamified {
    color: var(--game-error, #ef4444);
}
.ad-details-grid-gamified .status-card.status-completed .detail-card-title-gamified i,
.ad-details-grid-gamified .status-card.status-completed .detail-card-value-gamified {
    color: var(--game-info, #3b82f6); /* Or a specific color for completed */
}

/* Campaign Show Ads List Section */
.ad-ads-list-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--game-border-light, rgba(0,0,0,0.1));
}

.ad-ads-list-section .exodera-ad-card-gamified {
    /* Ensure it uses the gamified ad card style. */
    /* Minor adjustments if needed for this specific context */
    margin-bottom: 0; /* Reset margin if row g-4 handles it */
}

.ad-ads-list-section .exodera-ad-card-gamified-img-container.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--neutral-bg, #f8fafc);
    color: var(--text-light, #718096);
}

.ad-ads-list-section .exodera-ad-card-gamified-img-container.placeholder i {
    font-size: 2.5rem;
}

/* No Ads Found - Gamified */
.no-ads-found-gamified .icon-placeholder-gamified i {
    font-size: 3rem;
    color: var(--game-primary-light, #a5b4fc);
}
.no-ads-found-gamified .alert-heading-gamified {
    color: var(--game-secondary, #7c3aed);
}

/* Make sure engagement stats on ad cards are visible and styled */
.ad-ads-list-section .engagement-stats-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    justify-content: flex-start; /* Align to start */
    gap: 0.75rem;
}

.ad-ads-list-section .engagement-stats-overlay .stat-item i {
    margin-right: 0.3rem;
}


/* Tab styling for comments/reviews */
/* Using existing .gamified-tabs from offers/show.blade.php */

/* Ensure Livewire components for reactions, comments, reviews integrate well */
.ad-content-gamified .exodera-reactions-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    /* background-color: rgba(var(--game-primary-rgb), 0.05); */
    /* border-radius: var(--radius-md); */
    /* justify-content: center; */
}

.ad-content-gamified .exodera-interactive-section {
    /* Styles from offers/show.blade.php - exodera-interactive-section */
    /* background-color: rgba(255,255,255,0.7); */
    /* backdrop-filter: blur(5px); */
    /* padding: 2rem; */
    /* border-radius: var(--radius-lg); */
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.07); */
}

/* Gamified Alert for success messages */
.gamified-alert.gamified-alert-success {
    background-color: var(--game-success-light, #d1fae5);
    border-color: var(--game-success, #10b981);
    color: var(--game-success-dark, #065f46);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    position: relative;
    z-index: 10;
}

.gamified-alert .alert-icon {
    font-size: 1.25rem;
}

.gamified-alert .btn-close-white {
    filter: invert(0) grayscale(100%) brightness(200%);
}

/* Responsive adjustments for campaign show page */
@media (max-width: 992px) {
    .ad-content-gamified {
        padding: 1.5rem 2rem;
    }
    .ad-title-gamified {
        font-size: 2rem;
    }
    .ad-details-grid-gamified {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .ad-image-container-gamified {
        height: 300px;
    }
    .ad-content-gamified {
        padding: 1.5rem;
    }
    .ad-title-gamified {
        font-size: 1.75rem;
    }
    .ad-details-grid-gamified .detail-card-value-gamified {
        font-size: 1.2rem;
    }
    .ad-details-grid-gamified .detail-card-title-gamified {
        font-size: 0.75rem;
    }
     .ad-ads-list-section .row-cols-lg-3 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    @media (min-width: 576px) and (max-width: 767px) {
         .ad-ads-list-section .row-cols-lg-3 > .col {
            flex: 0 0 50%;
            max-width: 50%;
        }
    }
}

@media (max-width: 576px) {
    .ad-image-container-gamified {
        height: 250px;
    }
    .ad-content-gamified {
        padding: 1rem;
    }
    .ad-title-gamified {
        font-size: 1.5rem;
    }
    .ad-details-grid-gamified {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .ad-details-grid-gamified .detail-card-gamified {
        padding: 0.75rem;
    }
    .ad-content-gamified .section-title {
        font-size: 1.25rem;
    }
    .ad-content-gamified .gamified-tabs .nav-link {
        padding: 0.5rem 0.75rem; 
        font-size: 0.85rem;
    }

    .ad-ads-list-section .exodera-ad-card-gamified-title {
        font-size: 1rem;
    }
    .ad-ads-list-section .exodera-ad-card-gamified-text {
        font-size: 0.8rem;
    }
    .ad-ads-list-section .engagement-stats-overlay {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        gap: 0.5rem;
    }
}



.engagement-icon-gamified.views {
    color: #3b82f6;
}

.engagement-icon-gamified.comments {
    color: #10b981;
}

.engagement-icon-gamified.rating {
    color: #f59e0b;
}

.engagement-icon-gamified.likes {
    color: #ef4444;
}

.engagement-number-gamified {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.engagement-label-gamified {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Gamified Tabs for Comments/Reviews */
.gamified-tabs-ad {
    border: none;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 2rem;
}

.gamified-tabs-ad .nav-item {
    flex: 1;
}

.gamified-tabs-ad .nav-link {
    background: transparent;
    border: none;
    color: #6b7280;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gamified-tabs-ad .nav-link:hover,
.gamified-tabs-ad .nav-link:focus {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-1px);
}

.gamified-tabs-ad .nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.gamified-tabs-ad .nav-link.active i {
    color: white;
}

.gamified-tabs-ad .nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.gamified-tabs-ad .nav-link:hover i,
.gamified-tabs-ad .nav-link:focus i {
    transform: scale(1.1);
}

/* QR Code Modal */
.qr-modal-gamified .modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.qr-modal-gamified .modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.qr-modal-gamified .modal-title {
    font-weight: 700;
}

.qr-modal-gamified .btn-close {
    filter: brightness(0) invert(1);
}

.qr-modal-gamified .modal-body {
    padding: 2rem;
    text-align: center;
}

.qr-code-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .ad-content-card {
        margin-bottom: 2rem;
    }
    
    .ad-title-gamified {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .ad-title-gamified {
        font-size: 1.75rem;
    }
    
    .ad-image-container-gamified {
        min-height: 300px;
    }
    
    .ad-content-card {
        border-radius: 10px;
        margin-bottom: 1.5rem;
    }
    
    .engagement-grid-gamified {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ad-details-grid-gamified {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gamified-tabs-ad .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .ad-title-gamified {
        font-size: 1.5rem;
    }
    
    .ad-image-container-gamified {
        min-height: 250px;
    }
    
    .ad-content-card {
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .featured-badge-gamified {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .detail-card-gamified {
        padding: 1rem;
    }
    
    .engagement-stats-gamified,
    .ad-content-gamified {
        padding: 1.5rem;
    }
    
    .engagement-grid-gamified {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .gamified-tabs-ad {
        padding: 0.25rem;
    }
    
    .gamified-tabs-ad .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .gamified-tabs-ad .nav-link i {
        margin-right: 0.25rem;
        font-size: 1rem;
    }
}

/* RTL Support for Ad Detail */
[dir="rtl"] .detail-card-title-gamified i {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .engagement-title-gamified i {
    margin-right: 0;
    margin-left: 0.75rem;
}

[dir="rtl"] .gamified-tabs-ad .nav-link i {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .featured-badge-gamified {
    right: auto;
    left: 15px;
}

@media (max-width: 576px) {
    [dir="rtl"] .featured-badge-gamified {
        left: 10px;
    }
    
    [dir="rtl"] .gamified-tabs-ad .nav-link i {
        margin-left: 0.25rem;
    }
}

/* Ad Content Gamified Reactions CSS */
.ad-content-gamified .exodera-reactions-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0;
}

.ad-content-gamified .reaction-button {
    background: var(--game-btn-bg, #ffffff);
    color: var(--game-btn-text, #4a5568);
    border: 1px solid var(--game-btn-border, #cbd5e0);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md, 0.375rem);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Ensure no underline from <a> tag if used */
}

.ad-content-gamified .reaction-button:hover:not(.disabled) {
    background: var(--game-btn-hover-bg, #f8fafc);
    border-color: var(--game-btn-hover-border, #a0aec0);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.ad-content-gamified .reaction-button.liked {
    background-color: var(--game-like-bg, #dcfce7); /* Light green */
    color: var(--game-like-text, #16a34a); /* Darker green */
    border-color: var(--game-like-border, #86efac); /* Softer green border */
}
.ad-content-gamified .reaction-button.liked i {
    color: var(--game-like-icon, #22c55e); /* Bright green icon */
}

.ad-content-gamified .reaction-button.disliked {
    background-color: var(--game-dislike-bg, #fee2e2); /* Light red */
    color: var(--game-dislike-text, #dc2626); /* Darker red */
    border-color: var(--game-dislike-border, #fca5a5); /* Softer red border */
}
.ad-content-gamified .reaction-button.disliked i {
    color: var(--game-dislike-icon, #ef4444); /* Bright red icon */
}

.ad-content-gamified .reaction-button.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--game-btn-disabled-bg, #e2e8f0);
    border-color: var(--game-btn-disabled-border, #e2e8f0);
}

.ad-content-gamified .reaction-button i {
    margin-right: 0.5rem;
    font-size: 1.1em;
    transition: transform 0.2s ease-in-out;
}

.ad-content-gamified .reaction-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--game-text-secondary, #718096);
    margin-left: 0.3rem;
}

/* RTL support for reactions */
[dir="rtl"] .ad-content-gamified .reaction-button i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .ad-content-gamified .reaction-count {
    margin-right: 0.3rem;
    margin-left: 0;
}

/*
================================================================================
  Gamified Survey Form Styles (from survey-form.blade.php)
================================================================================
*/

/* NEW Step Progress Indicator Styling */
div.step-indicator-container {
    display: flex !important;
    align-items: flex-start !important; /* Align items to the top for multi-line text */
    justify-content: space-between !important;
    margin-bottom: 2.5rem !important;
    padding: 1rem 0 !important;
    overflow-x: auto !important; /* Allow horizontal scroll on small screens */
    white-space: nowrap !important; /* Prevent wrapping of steps */
    visibility: visible !important;
}
.step-item {
    display: flex;
    flex-direction: column; /* Stack icon/number and text vertically */
    align-items: center;
    text-align: center;
    position: relative;
    flex: 1 1 0px; /* Allow steps to grow and shrink but base on 0 */
    min-width: 80px; /* Minimum width for each step */
}
.step-item:not(:last-child) .step-node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(50% + 18px); /* Start after the node */
    width: calc(100% - 36px); /* Connect to next node, adjust based on node size */
    height: 2px;
    background-color: var(--border-light, #e2e8f0);
    transform: translateY(-50%);
    z-index: -1;
}
[dir="rtl"] .step-item:not(:last-child) .step-node::after {
    left: auto;
    right: calc(50% + 18px);
}
.step-item.completed:not(:last-child) .step-node::after {
    background-color: var(--primary, #1a73e8);
}
.step-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid var(--border-light, #e2e8f0);
    color: var(--text-light, #718096);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem; /* Space between node and text */
    transition: all 0.3s ease;
    position: relative; /* For the ::after pseudo-element */
    z-index: 1; /* Ensure node is above the line */
}
.step-item.current .step-node {
    border-color: var(--primary, #1a73e8);
    background-color: var(--primary-light, rgba(26,115,232,0.1));
    color: var(--primary, #1a73e8);
}
.step-item.completed .step-node {
    background-color: var(--primary, #1a73e8);
    border-color: var(--primary, #1a73e8);
    color: white;
}
.step-label {
    font-size: 0.8rem;
    color: var(--text-medium, #4a5568);
    max-width: 100px; /* Prevent overly wide labels */
    white-space: normal; /* Allow label text to wrap */
}
.step-item.current .step-label {
    color: var(--text-dark, #2d3748);
    font-weight: 600;
}

/* Question Area Styling Update */
.survey-question-area {
    padding: 1.5rem 0.5rem;
    margin-bottom: 1.5rem;
}
.survey-question-area .question-header {
    margin-bottom: 1.5rem;
}
.survey-question-area .question-step-text {
    font-size: 1rem;
    color: var(--text-medium, #4a5568);
    margin-bottom: 0.35rem;
    font-weight: 500;
}
.survey-question-area .question-step-text i {
    margin-inline-end: 0.5rem; /* RTL-friendly margin */
}
.survey-question-area .question-main-text {
    font-size: 1.5rem;
    color: var(--text-dark, #2d3748);
    font-weight: 600;
    line-height: 1.4;
}
.survey-question-area .question-content-body {
    padding: 0;
}
/* Input/form styling */
.survey-question-area .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.survey-question-area .form-control, .survey-question-area .form-select { border-radius: var(--radius-md); border-color: var(--border-light); padding: 0.75rem 1rem; }
.survey-question-area .form-control:focus, .survey-question-area .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.survey-question-area .invalid-feedback { color: #e53e3e; }

/* REVISED Step Progress Bar StyLING */
.survey-progress-bar-container {
    padding: 0.75rem 1rem;
    background-color: var(--neutral-bg, #f8fafc);
    border-radius: var(--radius-md, 0.5rem);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
}
.survey-progress-bar-custom {
    display: flex;
    height: 30px;
    border-radius: var(--radius-sm, 0.375rem);
    overflow: hidden;
    background-color: var(--border-light, #e2e8f0);
    width: 100%;
}
.progress-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light, #718096);
    border-right: 1px solid var(--neutral-bg, #f8fafc);
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    white-space: nowrap;
    padding: 0 0.25rem;
    width: calc(100% / var(--total-segments, 10));
}
[dir="rtl"] .progress-segment {
    border-right: none;
    border-left: 1px solid var(--neutral-bg, #f8fafc);
}
.progress-segment:last-child {
    border-right: none;
}
[dir="rtl"] .progress-segment:last-child {
    border-left: none;
}
.progress-segment.completed {
    background-color: var(--success, #38a169);
    color: white;
}
.progress-segment.current {
    background-color: var(--primary, #1a73e8);
    color: white;
    font-weight: 700;
}
.progress-segment.finish-step {
     background-color: #0dcaf0;
     color: var(--text-dark, #212529);
}
.progress-segment.finish-step.current {
    background-color: color-mix(in srgb, #0dcaf0 80%, black) !important;
    color: white;
}
.progress-segment .fa-check {
    margin-inline-end: 0.3em;
    font-size: 0.8em;
}

.border-danger-soft {
    border: 1px solid #f8d7da;
    border-left: 3px solid #e53e3e !important;
    padding-left: calc(0.5rem - 2px);
    border-radius: var(--radius-md);
}
[dir="rtl"] .border-danger-soft {
    border-left: 1px solid #f8d7da !important;
    border-right: 3px solid #e53e3e !important;
    padding-left: 0.5rem;
    padding-right: calc(0.5rem - 2px);
}

/* Original step indicator is visible but styled differently */
/* .step-indicator-header, .step-indicator-container { display: none; } */

/* RTL-specific adjustments for Survey Form */
[dir="rtl"] .survey-question-area,
[dir="rtl"] .survey-progress-bar-container,
[dir="rtl"] .survey-alert-success,
[dir="rtl"] .form-check {
    text-align: right;
}

[dir="rtl"] .invalid-feedback {
    text-align: right;
}

[dir="rtl"] .form-check {
    padding-right: 1.5em;
    padding-left: 0;
}

[dir="rtl"] .form-check .form-check-input {
    float: right;
    margin-right: -1.5em;
    margin-left: 0;
}

[dir="rtl"] .form-check-label {
  margin-right: 0.5em;
}

[dir="rtl"] .survey-question-area .question-step-text i {
    margin-left: 8px;
    margin-right: 0;
}

/* RTL Fixes that might be related to survey_show.blade.php context */
[dir="rtl"] .survey-show-container .detail-item p,
[dir="rtl"] .card-footer span {
    display: flex;
    align-items: center;
}

[dir="rtl"] .card-footer span i,
[dir="rtl"] .detail-item p i {
    margin-left: 8px;
    margin-right: 0;
}

/* Next button proper styling */
.btn-next {
    background-color: var(--primary);
    color: white;
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: var(--radius-md, 0.5rem);
    transition: all 0.2s ease-in-out;
}

.btn-next:hover {
    background-color: color-mix(in srgb, var(--primary) 90%, black);
    color: white;
}

[dir="rtl"] .btn-next i {
    transform: scaleX(-1);
    margin-right: 0;
    margin-left: 0;
}

/* Fix Back to Surveys button */
.back-to-surveys {
    color: var(--text-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

[dir="rtl"] .back-to-surveys i {
    transform: scaleX(-1);
    margin-left: 8px;
    margin-right: 0;
}

/*
================================================================================
  Survey Show Page Gamified Styles
================================================================================
*/

/* Main Container and Card Styling */
.survey-show-container .card {
    border: none;
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05));
    border-radius: var(--radius-xl, 1rem);
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    position: relative;
}

/* Decorative top bar with gradient */
.survey-show-container .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary, #1a73e8), var(--info, #0dcaf0));
    z-index: 1;
}

/* Card Header */
.survey-show-container .card-header {
    background-color: #ffffff;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    position: relative;
}

/* Survey Title with gradient text effect */
.survey-show-container .card-header .survey-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark, #2d3748);
    margin-bottom: 0.5rem;
    background: linear-gradient(120deg, var(--primary, #1a73e8), var(--info, #0dcaf0));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Card Body */
.survey-show-container .card-body {
    padding: 2rem;
    background-color: #ffffff;
}

/* Survey Description */
.survey-show-container .survey-description {
    font-size: 1.125rem;
    color: var(--text-medium, #4a5568);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Details Grid with Gradient Background */
.survey-show-container .details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(to bottom right, var(--primary-light, rgba(26,115,232,0.1)), var(--info-light, rgba(13,202,240,0.1)));
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

/* Decorative elements for gamified design */
.survey-show-container .details-grid::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.5;
    border-radius: 50%;
}

/* Detail Items (Status, Dates, etc.) */
.survey-show-container .detail-item {
    font-size: 0.95rem;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: var(--radius-md, 0.5rem);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.survey-show-container .detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.survey-show-container .detail-item p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.survey-show-container .detail-item p:last-child {
    margin-bottom: 0;
}

.survey-show-container .detail-item strong {
    color: var(--text-dark, #2d3748);
    margin-inline-end: 0.35rem;
}

.survey-show-container .detail-item .badge {
    font-size: 0.9rem;
    padding: 0.4em 0.7em;
}

.survey-show-container .detail-item i {
    color: var(--primary, #1a73e8);
    margin-inline-end: 0.5rem;
}

/* Section Heading (Participate) */
.survey-show-container .section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark, #2d3748);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light, rgba(26, 115, 232, 0.1));
    display: flex;
    align-items: center;
}

.survey-show-container .section-heading i {
    margin-inline-end: 0.75rem;
    color: var(--primary, #1a73e8);
    background: var(--primary-light, rgba(26, 115, 232, 0.1));
    padding: 0.5rem;
    border-radius: var(--radius-md, 0.5rem);
}

/* Card Footer */
.survey-show-container .card-footer {
    background-color: var(--neutral-bg, #f8fafc);
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-light, #e2e8f0);
}

/* Share Button */
.btn-share-qr {
    background: linear-gradient(to right, rgba(26,115,232,0.1), rgba(13,202,240,0.1));
    color: var(--primary, #1a73e8);
    border: none;
    border-radius: var(--radius-md, 0.5rem);
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
}

.btn-share-qr:hover {
    background: linear-gradient(to right, rgba(26,115,232,0.2), rgba(13,202,240,0.2));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06));
}

.btn-share-qr i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* RTL Support */
[dir="rtl"] .survey-show-container .detail-item p {
    flex-direction: row-reverse;
}

[dir="rtl"] .survey-show-container .detail-item i {
    margin-inline-start: 0.5rem;
    margin-inline-end: 0;
}

[dir="rtl"] .survey-show-container .detail-item .badge {
    margin-inline-end: 0.5rem;
}

[dir="rtl"] .survey-show-container .section-heading {
    flex-direction: row-reverse;
}

[dir="rtl"] .survey-show-container .section-heading i {
    margin-inline-start: 0.75rem;
    margin-inline-end: 0;
}

[dir="rtl"] .survey-show-container .card-header,
[dir="rtl"] .survey-show-container .card-body,
[dir="rtl"] .survey-show-container .card-footer,
[dir="rtl"] .survey-show-container .detail-item {
    text-align: right;
}

[dir="rtl"] .btn-share-qr i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/*================================================================================
  Survey Form Gamified Styles
================================================================================*/

.survey-form-gamified {
    --survey-primary: #6366f1; /* Similar to game-primary */
    --survey-secondary: #8b5cf6; /* Similar to game-secondary */
    --survey-accent: #f59e0b; /* Similar to game-accent */
    --survey-bg: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); /* Similar to game-bg */
    --survey-card-bg: rgba(255, 255, 255, 0.95); /* Similar to game-card-bg */
    --survey-text-light: #f8fafc;
    --survey-text-dark: #1f2937;
    --survey-border-light: rgba(255, 255, 255, 0.2);
    --survey-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --survey-radius: 0.75rem;
    --survey-success: #10b981;
    --survey-error: #ef4444;
    --survey-info: #3b82f6;
    --survey-warning: #f59e0b;
}

.survey-content-wrapper-gamified {
    background: var(--survey-bg);
    position: relative;
    overflow: hidden;
    border-radius: var(--survey-radius);
    box-shadow: var(--survey-shadow);
    padding: clamp(1.5rem, 4vw, 3rem);
    z-index: 1;
    color: var(--survey-text-light);
}

.survey-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Behind content */
}

.survey-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particleFloat 20s infinite linear; /* Use existing particleFloat */
    opacity: 0;
}

/* Staggered particle animations */
.survey-particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-delay: 0s; }
.survey-particle:nth-child(2) { width: 6px; height: 6px; left: 20%; animation-delay: -2s; }
.survey-particle:nth-child(3) { width: 3px; height: 3px; left: 30%; animation-delay: -4s; }
.survey-particle:nth-child(4) { width: 5px; height: 5px; left: 40%; animation-delay: -6s; }
.survey-particle:nth-child(5) { width: 4px; height: 4px; left: 50%; animation-delay: -8s; }
.survey-particle:nth-child(6) { width: 7px; height: 7px; left: 60%; animation-delay: -10s; }
.survey-particle:nth-child(7) { width: 3px; height: 3px; left: 70%; animation-delay: -12s; }
.survey-particle:nth-child(8) { width: 5px; height: 5px; left: 80%; animation-delay: -14s; }
.survey-particle:nth-child(9) { width: 4px; height: 4px; left: 90%; animation-delay: -16s; }
.survey-particle:nth-child(10) { width: 6px; height: 6px; left: 55%; animation-delay: -18s; }


/* Loyalty Points Banner */
.survey-rewards-banner-gamified {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--survey-border-light);
    border-radius: var(--survey-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.survey-rewards-banner-gamified:hover {
    transform: translateY(-3px);
}

.banner-icon-gamified {
    font-size: 2.5rem;
    color: var(--survey-accent);
    animation: iconBounce 2s ease-in-out infinite; /* Use existing iconBounce */
}

.banner-content-gamified h5.banner-title-gamified {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--survey-text-light);
}

.banner-content-gamified p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--survey-text-light);
}
.banner-content-gamified a {
    color: var(--survey-accent);
    text-decoration: underline;
}
.banner-content-gamified a:hover {
    color: #fff;
}


/* Gamified Progress Bar */
.survey-progress-bar-container-gamified {
    background: rgba(0,0,0,0.15);
    padding: 1.25rem;
    border-radius: var(--survey-radius);
    margin-bottom: 2.5rem; /* Increased margin */
}

.survey-progress-title-gamified {
    font-weight: 700;
    color: var(--survey-text-light);
    font-size: 1.1rem;
}
.survey-progress-title-gamified i {
    color: var(--survey-accent);
}

.survey-progress-indicator-gamified {
    background: rgba(255,255,255,0.15);
    color: var(--survey-text-light);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}
.survey-progress-indicator-gamified.success {
    background: var(--survey-success);
    color: #fff;
}
.survey-progress-indicator-gamified i {
    margin-right: 0.35rem;
}

.survey-progress-bar-custom-gamified {
    display: grid;
    grid-template-columns: repeat(var(--total-segments, 5), 1fr);
    gap: 0.5rem; /* Gap between segments */
    height: 28px; /* Increased height */
    background: rgba(0,0,0,0.2);
    border-radius: 25px;
    padding: 0.35rem;
    border: 1px solid var(--survey-border-light);
}

.progress-segment-gamified {
    background-color: rgba(255,255,255,0.2);
    border-radius: 20px; /* Rounded segments */
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}
.progress-segment-gamified .segment-number {
    z-index: 1;
}
.progress-segment-gamified .segment-check,
.progress-segment-gamified .segment-icon {
    display: none; /* Hidden by default */
    z-index: 1;
}

.progress-segment-gamified::before { /* Shimmer effect */
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.progress-segment-gamified.completed {
    background-color: var(--survey-accent);
    color: var(--survey-text-dark);
}
.progress-segment-gamified.completed .segment-number {
    display: none;
}
.progress-segment-gamified.completed .segment-check {
    display: inline-block;
    font-size: 0.9em;
}

.progress-segment-gamified.current {
    background-color: var(--survey-primary);
    color: white;
    box-shadow: 0 0 15px rgba(var(--survey-primary-rgb, 99, 102, 241), 0.7); /* Primary color with RGB for opacity */
    transform: scale(1.05);
}
.progress-segment-gamified.current::before {
    left: 100%;
}

.progress-segment-gamified.finish-step {
    background-color: rgba(13,202,240,0.3); /* Light cyan */
}
.progress-segment-gamified.finish-step .segment-number {
    display: none;
}
.progress-segment-gamified.finish-step .segment-icon {
    display: inline-block;
    font-size: 1em;
    color: #0dcaf0;
}
.progress-segment-gamified.finish-step.current {
    background-color: #0dcaf0; /* Cyan */
    color: white;
    box-shadow: 0 0 15px rgba(13,202,240,0.7);
}
.progress-segment-gamified.finish-step.current .segment-icon {
    color: white;
}

/* Survey Question Card */
.survey-question-card-gamified {
    background: var(--survey-card-bg);
    border-radius: var(--survey-radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--survey-shadow);
    border: 1px solid rgba(99, 102, 241, 0.1); /* Primary light border */
    color: var(--survey-text-dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.survey-question-card-gamified::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--survey-primary), var(--survey-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.survey-question-card-gamified:hover::before {
    opacity: 1;
}
.survey-question-card-gamified.error {
    border-left: 5px solid var(--survey-error);
    background: linear-gradient(135deg, var(--survey-card-bg) 0%, rgba(var(--survey-error-rgb, 239, 68, 68), 0.02) 100%);
}
.survey-question-card-gamified:hover {
    transform: translateY(-3px); /* Reduced for better UX */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.question-header-gamified {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(var(--survey-primary-rgb, 99, 102, 241), 0.1);
    position: relative;
}
.question-header-gamified::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--survey-primary), var(--survey-secondary));
    border-radius: 1px;
}

.question-step-text-gamified {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.25rem !important; /* Override Bootstrap */
}
.text-primary-gamified { /* Custom primary color for survey text */
    color: var(--survey-primary) !important;
}
.required-indicator-gamified {
    color: var(--survey-error);
    font-size: 0.85rem;
    font-weight: 600;
}

.question-main-text-gamified {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--survey-primary);
    line-height: 1.4;
}

.question-content-body-gamified {
    /* Styles for form elements inside the card */
}

/* Gamified Form Controls */
.form-control-gamified {
    width: 100%; /* Ensure full width */
    background-color: #fff;
    border: 2px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-sm, 0.5rem);
    padding: 0.875rem 1.125rem; /* Slightly more padding for better touch targets */
    color: var(--text-dark, #1f2937);
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
    display: block; /* Ensure block display for full width */
}
.form-control-gamified:focus {
    border-color: var(--survey-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(var(--survey-primary-rgb, 99, 102, 241), 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    outline: none;
    transform: translateY(-1px); /* Subtle lift effect */
}
.form-control-gamified:hover:not(:focus) {
    border-color: var(--survey-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.form-control-gamified.is-invalid {
    border-color: var(--survey-error);
    background-color: rgba(var(--survey-error-rgb, 239, 68, 68), 0.02);
}
.form-control-gamified.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(var(--survey-error-rgb, 239, 68, 68), 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}
.form-control-gamified::placeholder {
    color: var(--text-light, #9ca3af);
    opacity: 0.8;
    font-style: italic;
}

textarea.form-control-gamified {
    min-height: 140px; /* Increased for better UX */
    resize: vertical; /* Allow vertical resize only */
    font-family: inherit; /* Ensure consistent font */
}

/* Gamified Checkbox/Radio */
.form-check-gamified {
    padding-left: 0; /* Reset Bootstrap padding */
    margin-bottom: 1.25rem !important; /* More spacing for better readability */
    position: relative;
}
.form-check-input-gamified {
    display: none; /* Hide original input */
}
.form-check-label-gamified {
    position: relative;
    padding-left: 2.5rem; /* More space for custom control */
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-medium, #4a5568);
    line-height: 1.6; /* Better line height for readability */
    transition: all 0.2s ease;
    display: block; /* Ensure block display */
    min-height: 24px; /* Minimum touch target */
    padding-top: 0.125rem; /* Align text with control */
    padding-bottom: 0.125rem;
}
.form-check-label-gamified:hover {
    color: var(--survey-primary);
    padding-left: 2.6rem; /* Subtle animation on hover */
}
.form-check-label-gamified::before { /* Custom box/circle */
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px; /* Larger for better accessibility */
    height: 24px;
    border: 2px solid var(--border-light, #e2e8f0);
    background-color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.form-check-label-gamified:hover::before {
    border-color: var(--survey-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) scale(1.05); /* Subtle scale on hover */
}
.form-check-input-gamified[type="radio"] + .form-check-label-gamified::before {
    border-radius: 50%;
}
.form-check-input-gamified[type="checkbox"] + .form-check-label-gamified::before {
    border-radius: var(--radius-sm, 0.5rem);
}
.form-check-input-gamified:checked + .form-check-label-gamified::before {
    background-color: var(--survey-primary);
    border-color: var(--survey-primary);
    box-shadow: 0 2px 8px rgba(var(--survey-primary-rgb, 99, 102, 241), 0.3);
}
.form-check-label-gamified::after { /* Custom checkmark/dot */
    content: '';
    position: absolute;
    left: 8px; /* Centered in the 24px box */
    top: 50%;
    transform: translateY(-50%) rotate(45deg) scale(0);
    width: 8px;
    height: 14px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transition: all 0.2s ease;
}
.form-check-input-gamified[type="radio"]:checked + .form-check-label-gamified::after {
    left: 8px; /* Centered in the 24px box */
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    border-width: 0; /* No border for radio dot */
    transform: translateY(-50%) scale(1);
}
.form-check-input-gamified[type="checkbox"]:checked + .form-check-label-gamified::after {
    transform: translateY(-60%) rotate(45deg) scale(1); /* Fine tune checkbox mark */
}
.form-check-input-gamified:checked + .form-check-label-gamified {
    color: var(--survey-primary);
    font-weight: 500; /* Slightly bolder when selected */
}
.form-check-input-gamified.is-invalid + .form-check-label-gamified::before {
    border-color: var(--survey-error);
    background-color: rgba(var(--survey-error-rgb, 239, 68, 68), 0.02);
}
.form-check-input-gamified.is-invalid + .form-check-label-gamified {
    color: var(--survey-error);
}

/* Text Muted / Warning / Error Feedback */
.text-muted-gamified {
    color: var(--text-light, #9ca3af);
    font-style: italic;
}
.text-warning-gamified small {
    color: var(--survey-warning);
    background: rgba(var(--survey-warning-rgb, 245,158,11), 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm, 0.5rem);
    display: inline-block;
    border: 1px solid rgba(var(--survey-warning-rgb, 245,158,11), 0.2);
    font-weight: 500;
}
.error-feedback-gamified {
    color: var(--survey-error);
    font-size: 0.875em;
    margin-top: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(var(--survey-error-rgb, 239, 68, 68), 0.05);
    border: 1px solid rgba(var(--survey-error-rgb, 239, 68, 68), 0.2);
    border-radius: var(--radius-sm, 0.5rem);
    line-height: 1.4;
}
.error-feedback-gamified i {
    margin-top: 0.125rem; /* Align with first line of text */
    flex-shrink: 0;
}

/* Navigation Buttons */
.survey-navigation-gamified {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Changed from center to stretch for consistent height */
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--survey-border-light);
    min-height: 60px; /* Consistent height even with one button */
}

.survey-navigation-gamified > div {
    display: flex;
    align-items: center; /* Center buttons vertically within their containers */
}

/* When only Previous button exists (last step) */
.survey-navigation-gamified > div:first-child:last-child {
    justify-content: flex-start;
}

/* When only Next button exists (first step) */
.survey-navigation-gamified > div:last-child:first-child {
    justify-content: flex-end;
}

.btn-survey-action-gamified {
    padding: 0.875rem 2rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-width: 140px; /* Consistent button width */
    height: 48px; /* Fixed height for perfect alignment */
    white-space: nowrap;
}
.btn-survey-action-gamified:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--survey-primary-rgb, 99, 102, 241), 0.3);
}
.btn-survey-action-gamified::before { /* Shimmer effect */
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.7s;
}
.btn-survey-action-gamified:hover::before {
    left: 100%;
}
.btn-survey-action-gamified:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.btn-survey-action-gamified:disabled::before {
    display: none; /* No shimmer on disabled */
}

.btn-survey-action-gamified.next {
    background: linear-gradient(45deg, var(--survey-primary), var(--survey-secondary));
    color: white;
    border-color: transparent; /* Next button has solid fill */
    box-shadow: 0 6px 20px rgba(var(--survey-primary-rgb, 99,102,241), 0.3);
    order: 2; /* Ensure next button comes second in DOM order for accessibility */
}
.btn-survey-action-gamified.next:hover:not(:disabled) {
    box-shadow: 0 10px 30px rgba(var(--survey-primary-rgb, 99,102,241), 0.4);
}

.btn-survey-action-gamified.previous {
    background: transparent;
    color: var(--survey-text-light);
    border-color: var(--survey-border-light);
    order: 1; /* Ensure previous button comes first in DOM order for accessibility */
}
.btn-survey-action-gamified.previous:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--survey-text-light);
    color: var(--survey-text-light);
}
.btn-survey-action-gamified.previous:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}
.btn-survey-action-gamified.primary { /* For retry submission, etc. */
    background: linear-gradient(45deg, var(--survey-accent), #d97706); /* Orange/gold gradient */
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(var(--survey-accent-rgb, 245,158,11), 0.3);
}
.btn-survey-action-gamified.primary:hover:not(:disabled) {
    box-shadow: 0 10px 30px rgba(var(--survey-accent-rgb, 245,158,11), 0.4);
}
.btn-survey-action-gamified.tertiary { /* For back to surveys, etc. */
    background: rgba(255,255,255,0.1);
    color: var(--survey-text-light);
    border-color: var(--survey-border-light);
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}
.btn-survey-action-gamified.tertiary:hover:not(:disabled) {
    background: rgba(255,255,255,0.2);
    border-color: var(--survey-text-light);
}


/* Finalizing Survey Card */
.survey-finalizing-card-gamified {
    background: var(--survey-card-bg);
    border-radius: var(--survey-radius);
    padding: 2.5rem;
    text-align: center;
    color: var(--survey-text-dark);
    box-shadow: var(--survey-shadow);
}
.survey-finalizing-card-gamified.error {
    border-top: 5px solid var(--survey-error);
}
.survey-finalizing-card-gamified.info {
    border-top: 5px solid var(--survey-info);
}

.finalizing-icon-gamified .fa-times-circle {
    font-size: 3.5rem;
    color: var(--survey-error);
}
.finalizing-icon-gamified .spinner-border {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--survey-primary) !important; /* Ensure spinner color */
}
.finalizing-title-gamified {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 1rem !important;
}
.survey-finalizing-card-gamified.error .finalizing-title-gamified {
    color: var(--survey-error);
}
.finalizing-lead-text-gamified {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 0.75rem !important;
}
.finalizing-error-details-gamified {
    background-color: rgba(var(--survey-error-rgb, 239, 68, 68), 0.05);
    border: 1px solid rgba(var(--survey-error-rgb, 239, 68, 68), 0.2);
    border-radius: var(--radius-sm);
    color: var(--survey-error);
}
.finalizing-error-details-gamified ul li {
    margin-bottom: 0.25rem;
}

/* Message Cards (Success, Error, Info for survey level messages) */
.survey-message-card-gamified {
    background: var(--survey-card-bg);
    border-radius: var(--survey-radius);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start; /* Align icon to top if text wraps */
    color: var(--survey-text-dark);
    box-shadow: var(--survey-shadow);
}

.message-icon-gamified {
    font-size: 2.5rem;
    flex-shrink: 0;
}
.message-content-gamified .message-title-gamified {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.message-content-gamified p {
    color: var(--text-medium);
    line-height: 1.6;
}

.survey-message-card-gamified.success-message {
    border-left: 5px solid var(--survey-success);
}
.survey-message-card-gamified.success-message .message-icon-gamified {
    color: var(--survey-success);
}
.survey-message-card-gamified.success-message .message-title-gamified {
    color: var(--survey-success);
}

.survey-message-card-gamified.error-message {
    border-left: 5px solid var(--survey-error);
}
.survey-message-card-gamified.error-message .message-icon-gamified {
    color: var(--survey-error);
}
.survey-message-card-gamified.error-message .message-title-gamified {
    color: var(--survey-error);
}

.survey-message-card-gamified.info-message {
    border-left: 5px solid var(--survey-info);
}
.survey-message-card-gamified.info-message .message-icon-gamified {
    color: var(--survey-info);
}
.survey-message-card-gamified.info-message .message-title-gamified {
    color: var(--survey-info);
}
.survey-message-card-gamified.info-message.text-center { /* For no questions message */
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.survey-message-card-gamified.info-message.text-center .message-icon-gamified {
    margin-bottom: 1rem;
}

/* RGB Variables for RGBA fallbacks if needed elsewhere or for easier use */
:root {
    --survey-primary-rgb: 99, 102, 241;
    --survey-accent-rgb: 245, 158, 11;
    --survey-error-rgb: 239, 68, 68;
    --survey-success-rgb: 16, 185, 129;
    --survey-info-rgb: 59, 130, 246;
    --survey-warning-rgb: 245,158,11; /* same as accent for now */
}

@media (max-width: 768px) {
    .survey-rewards-banner-gamified {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .banner-icon-gamified {
        font-size: 2rem;
    }
    .banner-content-gamified h5.banner-title-gamified {
        font-size: 1.15rem;
    }
    .banner-content-gamified p {
        font-size: 0.9rem;
    }

    .survey-progress-bar-container-gamified {
        padding: 1rem;
    }
    .survey-progress-title-gamified {
        font-size: 1rem;
    }
    .survey-progress-indicator-gamified {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    .survey-progress-bar-custom-gamified {
        height: 24px;
        gap: 0.3rem;
        padding: 0.25rem;
    }
    .progress-segment-gamified .segment-number,
    .progress-segment-gamified .segment-check,
    .progress-segment-gamified.finish-step .segment-icon {
        font-size: 0.8em;
    }

    .survey-question-card-gamified {
        padding: 1.5rem;
    }
    .question-main-text-gamified {
        font-size: 1.3rem;
    }
    .btn-survey-action-gamified {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-width: 120px;
        flex: 1; /* Allow buttons to grow equally */
        max-width: 160px; /* Prevent buttons from getting too wide */
    }
    .survey-navigation-gamified {
        flex-direction: row; /* Keep buttons on same line */
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
    }
    .survey-navigation-gamified > div {
        flex: 1; /* Equal width containers */
        display: flex;
    }
    .survey-navigation-gamified > div:first-child {
        justify-content: flex-start; /* Previous button on left */
    }
    .survey-navigation-gamified > div:last-child {
        justify-content: flex-end; /* Next button on right */
    }
    /* When only one button is present, center it */
    .survey-navigation-gamified > div:only-child {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .survey-content-wrapper-gamified {
        padding: 1.5rem;
    }
    .survey-question-card-gamified {
        padding: 1.75rem;
        margin-bottom: 2rem;
    }
    .question-main-text-gamified {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    .question-header-gamified {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    .form-control-gamified {
        padding: 0.75rem 1rem;
        font-size: 1rem; /* Prevent zoom on iOS */
    }
    .form-check-label-gamified {
        font-size: 0.95rem;
        padding-left: 2.25rem;
        line-height: 1.5;
    }
    .form-check-label-gamified::before {
        width: 22px;
        height: 22px;
    }
    .form-check-label-gamified::after {
        left: 7px; /* Adjust for smaller size */
    }
    .form-check-input-gamified[type="checkbox"]:checked + .form-check-label-gamified::after {
        width: 7px;
        height: 12px;
    }
    .form-check-input-gamified[type="radio"]:checked + .form-check-label-gamified::after {
        width: 7px;
        height: 7px;
        left: 7px;
    }
    .btn-survey-action-gamified {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-width: 100px;
        min-height: 44px;
        flex: 1; /* Allow buttons to grow equally on mobile */
        max-width: 140px; /* Prevent buttons from getting too wide on mobile */
    }
    .survey-navigation-gamified {
        gap: 0.75rem; /* Slightly smaller gap on mobile */
    }
    .survey-message-card-gamified {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .message-icon-gamified {
        margin-bottom: 0.5rem;
    }
    .message-content-gamified .message-title-gamified {
        font-size: 1.25rem;
    }
}

/* Extra small screens - ensure buttons remain usable */
@media (max-width: 400px) {
    .btn-survey-action-gamified {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: 90px;
        max-width: 120px;
    }
    .survey-navigation-gamified {
        gap: 0.5rem;
        padding-top: 1.25rem;
    }
    .survey-question-card-gamified {
        padding: 1.5rem;
    }
}

/* RTL Specific adjustments for Survey Form if needed */
[dir="rtl"] .survey-rewards-banner-gamified {
    /* Adjust gap or icon position if flex direction changes */
}
[dir="rtl"] .banner-icon-gamified {
    /* margin-left: 1.5rem; margin-right: 0; if not using gap */
}
[dir="rtl"] .survey-progress-indicator-gamified i {
    margin-left: 0.35rem;
    margin-right: 0;
}
[dir="rtl"] .survey-progress-title-gamified i {
    margin-left: 0.5rem;
    margin-right: 0;
}
[dir="rtl"] .required-indicator-gamified {
    margin-right: 0.25rem; /* ms-1 equivalent */
    margin-left: 0;
}
[dir="rtl"] .form-check-label-gamified {
    padding-right: 2.25rem;
    padding-left: 0;
}
[dir="rtl"] .form-check-label-gamified::before {
    right: 0;
    left: auto;
}
[dir="rtl"] .form-check-input-gamified[type="checkbox"]:checked + .form-check-label-gamified::after {
    /* Checkmark might need slight repositioning for RTL */
    right: 7px; /* Adjust as needed */
    left: auto;
    transform: translateY(-60%) rotate(45deg) scale(1); /* Keep rotation same or adjust */
}
[dir="rtl"] .form-check-input-gamified[type="radio"]:checked + .form-check-label-gamified::after {
    right: 7px; /* Adjust as needed */
    left: auto;
}
[dir="rtl"] .error-feedback-gamified i {
    margin-left: 0.25rem;
    margin-right: 0;
}
[dir="rtl"] .btn-survey-action-gamified i {
    /* If icons are consistently on one side, might need ms/me class in HTML or specific here */
}
[dir="rtl"] .btn-survey-action-gamified.next i {
    margin-right: 0.75rem; /* ms-2 equivalent */
    margin-left: 0;
}
[dir="rtl"] .btn-survey-action-gamified.previous i {
    margin-left: 0.75rem; /* me-2 equivalent */
    margin-right: 0;
}