.icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
}

.icon-wrap.icon-wrap-micro {
    width: 24px;
    height: 24px;
}

.icon-wrap.icon-wrap-small {
    width: 38px;
    height: 38px;
}

.icon-wrap.icon-wrap-large {
    width: 92px;
    height: 92px;
}

.text-gold {
    color: linear-gradient(45deg, #BF953F, #FCF6BA, #B38728) !important;
}

.bg-gold {
    background-color: linear-gradient(45deg, #BF953F, #FCF6BA, #B38728) !important;
}

.box {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
    background-color: #ffffff;
    border-radius: 5px;
    padding: 0px;
    -webkit-transition: .5s;
    transition: .5s;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-shadow: 0 0 35px 0 rgba(154, 161, 171, 0.15);
    box-shadow: 0 0 35px 0 rgba(154, 161, 171, 0.15);
}

.box-body {
    padding: 1.5rem;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    border-radius: 5px;
}

.best-choice-badge {
    position: absolute;
    top: 25px;
    right: -10px;
    transform: rotate(45deg);
    transform-origin: center;
    padding: 5px 30px;
    border-bottom-left-radius: 8px;
    border-top-left-radius: 0;
    border-bottom-right-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.z-index-2 {
    z-index: 2;
}

.package-card {
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.package-card:hover {
    transform: translateY(-5px);
}

.package-card-h:hover {
    transform: translateY(-5px);
}

.package-card-header {
    background: linear-gradient(135deg, #50c9c3, #96deda);

    position: relative;
    overflow: hidden;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.package-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.package-card-header>* {
    position: relative;
    z-index: 2;
}

.icon-wrap {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.icon-wrap img {
    display: block;
}


.bg-dark-gradient {
    background: linear-gradient(90deg, #343a40, #212529);
    color: white;
}


.list-unstyled li {
    margin-bottom: 0.75rem;
}

.list-unstyled li:last-child {
    margin-bottom: 0;
}

.text-sm {
    font-size: 0.875rem;
}

/* Lottery Hero Card Styles */
.lottery-hero-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    min-height: 600px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

.lottery-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.9;
}

.z-index-1 {
    z-index: 1;
}

/* Floating Decorations */
.lottery-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.floating-icon-1 {
    top: 10%;
    left: 85%;
    animation-delay: 0s;
}

.floating-icon-2 {
    top: 60%;
    left: 5%;
    animation-delay: 2s;
}

.floating-icon-3 {
    top: 20%;
    left: 10%;
    animation-delay: 4s;
}

.floating-icon-4 {
    top: 80%;
    left: 90%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Header Styles */
.lottery-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lottery-title {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.lottery-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Prize Info Cards */
.prize-info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    color: white;
}

.prize-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.prize-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.prize-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prize-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.prize-sparkle {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* User Ticket Card */
.user-ticket-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    color: white;
}

.ticket-success-icon {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.ticket-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ticket-number-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.ticket-label {
    opacity: 0.8;
    font-size: 0.9rem;
}

.ticket-number {
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffd700;
    margin-left: 0.5rem;
}

.ticket-message {
    opacity: 0.9;
    margin-bottom: 0;
}

.ticket-confetti {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enter Lottery Button */
.lottery-enter-btn {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    border: none;
    border-radius: 60px;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
}

.lottery-enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
    color: white;
}

.lottery-enter-btn::before {
    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.5s;
}

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

.btn-icon {
    font-size: 1.5rem;
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.lottery-enter-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.lottery-prompt {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1.5rem;
    font-size: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal Styles */
.lottery-modal .modal-content {
    border: none;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.lottery-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lottery-modal-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.header-sparkle {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

.header-coin {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.lottery-modal-title {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.lottery-modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Detail Cards */
.detail-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.detail-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
    margin-top: 0.25rem;
}

/* Form Styles */
.form-label-custom {
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.amount-display-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.amount-icon {
    font-size: 1.5rem;
}

.amount-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
}

.form-select-custom {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    width: 100%;
    backdrop-filter: blur(10px);
}

.form-select-custom:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.form-select-custom option {
    background: #2d3748;
    color: white;
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    color: #fecaca;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Submit Button */
.lottery-submit-btn {
    background: linear-gradient(45deg, #4ade80, #22c55e);
    border: none;
    border-radius: 15px;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.4);
}

.lottery-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(74, 222, 128, 0.6);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Footer */
.lottery-modal-footer {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lottery-cancel-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    color: #fecaca;
    transition: all 0.3s ease;
}

.lottery-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .lottery-hero-card {
        min-height: 550px;
    }

    .lottery-title {
        font-size: 2.5rem;
    }

    .floating-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .lottery-hero-card {
        min-height: 500px;
    }

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

    .lottery-description {
        font-size: 1.1rem;
        max-width: 500px;
    }

    .prize-info-card {
        padding: 1.75rem;
        margin-bottom: 1rem;
    }

    .prize-amount {
        font-size: 1.8rem;
    }

    .floating-icon {
        font-size: 1.6rem;
    }

    .lottery-enter-btn {
        padding: 1.4rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .lottery-hero-card {
        min-height: 450px;
        border-radius: 20px;
        margin: 0 0.5rem;
    }

    .lottery-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .lottery-description {
        font-size: 1rem;
        max-width: 400px;
        padding: 0 1rem;
    }

    .lottery-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .prize-info-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .prize-amount {
        font-size: 1.5rem;
    }

    .prize-icon {
        font-size: 2rem;
    }

    .prize-sparkle {
        font-size: 1.2rem;
    }

    .lottery-enter-btn {
        padding: 1.25rem 2rem;
        font-size: 1rem;
        border-radius: 50px;
    }

    .user-ticket-card {
        padding: 2rem;
        margin: 0 1rem;
        border-radius: 16px;
    }

    .ticket-success-icon {
        font-size: 3rem;
    }

    .ticket-title {
        font-size: 1.3rem;
    }

    .floating-icon {
        font-size: 1.4rem;
    }

    /* Hide some floating icons on mobile for cleaner look */
    .floating-icon-3,
    .floating-icon-4 {
        display: none;
    }

    /* Modal responsive adjustments */
    .lottery-modal-title {
        font-size: 1.6rem;
    }

    .lottery-modal-header {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .lottery-hero-card {
        min-height: 400px;
        border-radius: 16px;
        margin: 0 0.25rem;
    }

    .position-relative.z-index-1 {
        padding: 1.5rem !important;
    }

    .lottery-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .lottery-description {
        font-size: 0.9rem;
        max-width: 300px;
        line-height: 1.4;
    }

    .lottery-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
        margin-bottom: 1rem;
    }

    /* Stack prize cards on extra small screens */
    .row.g-4 {
        gap: 0.75rem !important;
    }

    .prize-info-card {
        padding: 1.25rem;
        border-radius: 14px;
        text-align: center;
    }

    .prize-amount {
        font-size: 1.3rem;
    }

    .prize-icon {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .prize-label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .lottery-enter-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 40px;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        max-width: 280px;
    }

    .btn-icon {
        font-size: 1.2rem;
    }

    .btn-arrow {
        font-size: 1.2rem;
    }

    .lottery-prompt {
        font-size: 0.9rem;
        margin-top: 1rem;
        padding: 0 1rem;
    }

    .user-ticket-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 14px;
    }

    .ticket-success-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .ticket-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .ticket-number-display {
        padding: 0.75rem;
        border-radius: 12px;
        margin-bottom: 0.75rem;
    }

    .ticket-number {
        font-size: 1.1rem;
    }

    .ticket-message {
        font-size: 0.9rem;
    }

    /* Hide remaining floating icons on very small screens */
    .floating-icon-1,
    .floating-icon-2 {
        display: none;
    }

    /* Modal adjustments for small screens */
    .lottery-modal .modal-dialog {
        margin: 0.5rem;
    }

    .lottery-modal-content {
        border-radius: 20px;
    }

    .lottery-modal-title {
        font-size: 1.4rem;
    }

    .lottery-modal-subtitle {
        font-size: 0.9rem;
    }

    .detail-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .form-label-custom {
        font-size: 0.9rem;
    }

    .form-select-custom {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .lottery-submit-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .lottery-hero-card {
        min-height: 380px;
        margin: 0;
    }

    .position-relative.z-index-1 {
        padding: 1.25rem !important;
    }

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

    .lottery-description {
        font-size: 0.85rem;
        max-width: 250px;
    }

    .prize-info-card {
        padding: 1rem;
    }

    .prize-amount {
        font-size: 1.2rem;
    }

    .lottery-enter-btn {
        padding: 0.9rem 1.25rem;
        font-size: 0.85rem;
        max-width: 240px;
    }

    .user-ticket-card {
        padding: 1.25rem;
        margin: 0 0.25rem;
    }

    .ticket-title {
        font-size: 1rem;
    }
}

.draw-date-text {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #ffd700 !important;
    line-height: 1.2;
}

.draw-time-text {
    font-size: 0.9rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
    font-weight: 500;
}

.draw-date-card:hover .draw-time-text {
    opacity: 1;
}

@media (max-width: 768px) {
    .draw-date-text {
        font-size: 1.2rem !important;
    }

    .draw-time-text {
        font-size: 0.8rem;
    }
}


    /* No Lottery Available Styles */
    .no-lottery-container {
        min-height: 60vh;

    }

    .no-lottery-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 24px;
        padding: 4rem 3rem;
        text-align: center;
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
        position: relative;
        overflow: hidden;
    }

    .no-lottery-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
        opacity: 0.9;
        z-index: 0;
    }

    .no-lottery-card>* {
        position: relative;
        z-index: 1;
    }

    .no-lottery-icon {
        font-size: 5rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 2rem;
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {

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

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

    .no-lottery-title {
        color: white;
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .no-lottery-description {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .no-lottery-actions {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .btn-back-dashboard {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50px;
        padding: 1rem 2rem;
        color: white;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-back-dashboard:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        color: white;
        text-decoration: none;
    }

    /* Responsive Design for No Lottery */
    @media (max-width: 992px) {
        .no-lottery-card {
            padding: 3.5rem 2.5rem;
            margin: 0 1rem;
        }

        .no-lottery-title {
            font-size: 2.2rem;
        }

        .no-lottery-icon {
            font-size: 4.5rem;
        }

        .no-lottery-description {
            font-size: 1.1rem;
            max-width: 400px;
        }
    }

    @media (max-width: 768px) {
        .no-lottery-container {
            min-height: 50vh;
        }

        .no-lottery-card {
            padding: 3rem 2rem;
            margin: 1rem;
            border-radius: 20px;
        }

        .no-lottery-title {
            font-size: 2rem;
            margin-bottom: 1.25rem;
        }

        .no-lottery-description {
            font-size: 1rem;
            max-width: 350px;
            margin-bottom: 2rem;
        }

        .no-lottery-icon {
            font-size: 4rem;
            margin-bottom: 1.75rem;
        }

        .btn-back-dashboard {
            padding: 0.875rem 1.75rem;
            font-size: 0.95rem;
            border-radius: 40px;
        }
    }

    @media (max-width: 576px) {
        .no-lottery-container {
            min-height: 45vh;
        }

        .no-lottery-card {
            padding: 2.5rem 1.5rem;
            margin: 0.5rem;
            border-radius: 16px;
        }

        .no-lottery-title {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            line-height: 1.2;
        }

        .no-lottery-description {
            font-size: 0.95rem;
            max-width: 300px;
            margin-bottom: 1.75rem;
            line-height: 1.5;
        }

        .no-lottery-icon {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
        }

        .btn-back-dashboard {
            padding: 0.8rem 1.5rem;
            font-size: 0.9rem;
            border-radius: 35px;
            width: 100%;
            max-width: 280px;
        }

        .no-lottery-actions {
            display: flex;
            justify-content: center;
        }
    }

    @media (max-width: 375px) {
        .no-lottery-card {
            padding: 2rem 1rem;
            margin: 0.25rem;
        }

        .no-lottery-title {
            font-size: 1.6rem;
        }

        .no-lottery-description {
            font-size: 0.9rem;
            max-width: 260px;
            padding: 0 0.5rem;
        }

        .no-lottery-icon {
            font-size: 3rem;
        }

        .btn-back-dashboard {
            padding: 0.75rem 1.25rem;
            font-size: 0.85rem;
            max-width: 240px;
        }
    }

    /* Winners Display Styles */
    .winners-container {
        margin-top: 2rem;
    }

    .winners-card {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        border-radius: 24px;
        padding: 3rem 2.5rem;
        box-shadow: 0 20px 40px rgba(240, 147, 251, 0.3);
        position: relative;
        overflow: hidden;
    }

    .winners-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
        opacity: 0.95;
        z-index: 0;
    }

    .winners-card>* {
        position: relative;
        z-index: 1;
    }

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

    .winners-icon {
        font-size: 4rem;
        color: #ffd700;
        margin-bottom: 1rem;
        animation: bounce 2s ease-in-out infinite;
    }

    @keyframes bounce {

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

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

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

    .winners-title {
        color: white;
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .winners-subtitle {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.2rem;
        font-weight: 500;
    }

    .winners-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .winner-item {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 1.5rem;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        transition: all 0.3s ease;
    }

    .winner-item:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .winner-position {
        flex-shrink: 0;
    }

    .position-number {
        background: linear-gradient(135deg, #ffd700, #ffed4e);
        color: #333;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 1.2rem;
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    }

    .winner-details {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .winner-name,
    .winner-ticket {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: white;
        font-weight: 600;
    }

    .winner-name {
        font-size: 1.1rem;
    }

    .winner-ticket {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .winner-celebration {
        flex-shrink: 0;
        color: #ffd700;
        font-size: 1.5rem;
        animation: sparkle 1.5s ease-in-out infinite;
    }

    @keyframes sparkle {

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

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

    /* Responsive Design for Winners */
    @media (max-width: 992px) {
        .winners-card {
            padding: 2.5rem 2rem;
            margin: 0 1rem;
        }

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

        .winners-icon {
            font-size: 3.5rem;
        }

        .winner-item {
            padding: 1.25rem;
            gap: 1.25rem;
        }

        .position-number {
            width: 45px;
            height: 45px;
            font-size: 1.1rem;
        }
    }

    @media (max-width: 768px) {
        .winners-card {
            padding: 2rem 1.5rem;
            margin: 1rem;
            border-radius: 20px;
        }

        .winners-title {
            font-size: 2rem;
        }

        .winners-subtitle {
            font-size: 1.1rem;
        }

        .winners-icon {
            font-size: 3rem;
            margin-bottom: 1.5rem;
        }

        .winner-item {
            padding: 1rem;
            gap: 1rem;
            flex-direction: column;
            text-align: center;
            border-radius: 14px;
        }

        .winner-details {
            align-items: center;
            gap: 0.75rem;
        }

        .winner-name,
        .winner-ticket {
            justify-content: center;
            font-size: 0.95rem;
        }

        .position-number {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }

        .winner-celebration {
            position: static;
            margin-top: 0.5rem;
        }
    }

    @media (max-width: 576px) {
        .winners-container {
            margin-top: 1.5rem;
        }

        .winners-card {
            padding: 1.5rem 1rem;
            margin: 0.5rem;
            border-radius: 16px;
        }

        .winners-header {
            margin-bottom: 2rem;
        }

        .winners-title {
            font-size: 1.8rem;
            margin-bottom: 0.75rem;
        }

        .winners-subtitle {
            font-size: 1rem;
        }

        .winners-icon {
            font-size: 2.5rem;
            margin-bottom: 1.25rem;
        }

        .winners-list {
            gap: 0.75rem;
        }

        .winner-item {
            padding: 1rem 0.75rem;
            border-radius: 12px;
        }

        .winner-name,
        .winner-ticket {
            font-size: 0.9rem;
            gap: 0.4rem;
        }

        .winner-name i,
        .winner-ticket i {
            font-size: 0.8rem;
        }

        .position-number {
            width: 35px;
            height: 35px;
            font-size: 0.9rem;
        }

        .winner-celebration {
            font-size: 1.2rem;
        }
    }

    @media (max-width: 375px) {
        .winners-card {
            padding: 1.25rem 0.75rem;
            margin: 0.25rem;
        }

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

        .winners-subtitle {
            font-size: 0.9rem;
        }

        .winners-icon {
            font-size: 2.2rem;
        }

        .winner-item {
            padding: 0.875rem 0.5rem;
        }

        .winner-name,
        .winner-ticket {
            font-size: 0.85rem;
        }

        .position-number {
            width: 32px;
            height: 32px;
            font-size: 0.85rem;
        }
    }

    /* Winning Ticket Styles */
    .winning-ticket-card {
        background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ff6b6b 100%);
        border-radius: 24px;
        padding: 3rem 2.5rem;
        box-shadow: 0 25px 50px rgba(255, 215, 0, 0.4);
        position: relative;
        overflow: hidden;
        animation: victory-pulse 2s ease-in-out infinite;
    }

    @keyframes victory-pulse {

        0%,
        100% {
            transform: scale(1);
            box-shadow: 0 25px 50px rgba(255, 215, 0, 0.4);
        }

        50% {
            transform: scale(1.02);
            box-shadow: 0 30px 60px rgba(255, 215, 0, 0.6);
        }
    }

    .winning-ticket-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 50%, #4ecdc4 100%);
        opacity: 0.9;
        z-index: 0;
    }

    .winning-ticket-card>* {
        position: relative;
        z-index: 1;
    }

    .winning-ticket-animation {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
    }

    .celebration-fireworks,
    .celebration-confetti,
    .celebration-trophy {
        position: absolute;
        font-size: 2rem;
        animation: float-celebrate 3s ease-in-out infinite;
    }

    .celebration-fireworks {
        top: 10%;
        left: 15%;
        animation-delay: 0s;
    }

    .celebration-confetti {
        top: 20%;
        right: 15%;
        animation-delay: 1s;
    }

    .celebration-trophy {
        bottom: 20%;
        left: 20%;
        animation-delay: 2s;
    }

    @keyframes float-celebrate {

        0%,
        100% {
            transform: translateY(0px) rotate(0deg);
            opacity: 0.7;
        }

        50% {
            transform: translateY(-20px) rotate(180deg);
            opacity: 1;
        }
    }

    .winning-ticket-icon {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .winning-ticket-icon i {
        font-size: 4rem;
        color: #333;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        animation: crown-shine 2s ease-in-out infinite;
    }

    @keyframes crown-shine {

        0%,
        100% {
            transform: scale(1);
            filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
        }

        50% {
            transform: scale(1.1);
            filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
        }
    }

    .winning-ticket-content {
        text-align: center;
    }

    .winning-ticket-title {
        color: #333;
        font-size: 1.8rem;
        font-weight: 800;
        margin-bottom: 1rem;
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    }

    .winning-ticket-number-display {
        background: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 16px;
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
        display: inline-block;
    }

    .winning-ticket-label {
        color: #333;
        font-weight: 600;
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    .winning-ticket-number {
        color: #333;
        font-weight: 800;
        font-size: 1.4rem;
        background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .winning-ticket-message {
        color: #333;
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 2rem;
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    }

    .contact-support-btn {
        background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
        border: none;
        border-radius: 50px;
        padding: 1rem 2rem;
        color: white;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
    }

    .contact-support-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
        color: white;
        text-decoration: none;
    }

    /* Responsive Design for Winning Ticket */
    @media (max-width: 992px) {
        .winning-ticket-card {
            padding: 2.5rem 2rem;
            margin: 0 1rem;
        }

        .winning-ticket-title {
            font-size: 1.6rem;
        }

        .winning-ticket-icon i {
            font-size: 3.5rem;
        }

        .celebration-fireworks,
        .celebration-confetti,
        .celebration-trophy {
            font-size: 1.8rem;
        }

        .contact-support-btn {
            padding: 0.9rem 1.8rem;
            font-size: 1rem;
        }
    }

    @media (max-width: 768px) {
        .winning-ticket-card {
            padding: 2rem 1.5rem;
            margin: 1rem;
            border-radius: 20px;
        }

        .winning-ticket-title {
            font-size: 1.5rem;
            margin-bottom: 1.25rem;
        }

        .winning-ticket-icon {
            margin-bottom: 1.25rem;
        }

        .winning-ticket-icon i {
            font-size: 3rem;
        }

        .winning-ticket-number-display {
            padding: 0.875rem 1.25rem;
            margin: 1.25rem 0;
            border-radius: 14px;
        }

        .winning-ticket-number {
            font-size: 1.2rem;
        }

        .winning-ticket-message {
            font-size: 1rem;
            margin-bottom: 1.75rem;
        }

        .contact-support-btn {
            padding: 0.875rem 1.5rem;
            font-size: 0.95rem;
            border-radius: 40px;
        }

        .celebration-fireworks,
        .celebration-confetti,
        .celebration-trophy {
            font-size: 1.5rem;
        }
    }

    @media (max-width: 576px) {
        .winning-ticket-card {
            padding: 1.5rem 1rem;
            margin: 0.5rem;
            border-radius: 16px;
        }

        .winning-ticket-title {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            line-height: 1.3;
        }

        .winning-ticket-icon {
            margin-bottom: 1rem;
        }

        .winning-ticket-icon i {
            font-size: 2.5rem;
        }

        .winning-ticket-number-display {
            padding: 0.75rem 1rem;
            margin: 1rem 0;
            border-radius: 12px;
        }

        .winning-ticket-label {
            font-size: 0.9rem;
        }

        .winning-ticket-number {
            font-size: 1.1rem;
        }

        .winning-ticket-message {
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
            padding: 0 0.5rem;
        }

        .contact-support-btn {
            padding: 0.8rem 1.25rem;
            font-size: 0.9rem;
            border-radius: 35px;
            width: 100%;
            max-width: 280px;
        }

        .celebration-fireworks,
        .celebration-confetti,
        .celebration-trophy {
            font-size: 1.25rem;
        }

        /* Adjust celebration positions for smaller screens */
        .celebration-fireworks {
            top: 5%;
            left: 10%;
        }

        .celebration-confetti {
            top: 15%;
            right: 10%;
        }

        .celebration-trophy {
            bottom: 15%;
            left: 15%;
        }
    }

    @media (max-width: 375px) {
        .winning-ticket-card {
            padding: 1.25rem 0.75rem;
            margin: 0.25rem;
        }

        .winning-ticket-title {
            font-size: 1.2rem;
        }

        .winning-ticket-icon i {
            font-size: 2.2rem;
        }

        .winning-ticket-number-display {
            padding: 0.6rem 0.8rem;
        }

        .winning-ticket-label {
            font-size: 0.85rem;
        }

        .winning-ticket-number {
            font-size: 1rem;
        }

        .winning-ticket-message {
            font-size: 0.9rem;
            padding: 0 0.25rem;
        }

        .contact-support-btn {
            padding: 0.75rem 1rem;
            font-size: 0.85rem;
            max-width: 240px;
        }

        .celebration-fireworks,
        .celebration-confetti,
        .celebration-trophy {
            font-size: 1rem;
        }
    }

    /* Lottery Image Responsiveness */
    .lottery-image-container {
        text-align: center;
        margin-bottom: 2rem;
    }

    .lottery-main-image {
        object-fit: cover;
        border-radius: 20px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
        transition: transform 0.3s ease;
    }

    .lottery-main-image:hover {
        transform: scale(1.02);
    }

    @media (max-width: 992px) {
        .lottery-main-image {
            max-height: 350px;
            border-radius: 16px !important;
        }
    }

    @media (max-width: 768px) {
        .lottery-image-container {
            margin-bottom: 1.5rem;
            padding: 0 1rem;
        }

        .lottery-main-image {
            max-height: 300px;
            border-radius: 14px !important;
            width: 100%;
            object-fit: cover;
        }
    }

    @media (max-width: 576px) {
        .lottery-image-container {
            margin-bottom: 1rem;
            padding: 0 0.5rem;
        }

        .lottery-main-image {
            max-height: 250px;
            border-radius: 12px !important;
        }
    }

    @media (max-width: 375px) {
        .lottery-image-container {
            padding: 0 0.25rem;
        }

        .lottery-main-image {
            max-height: 220px;
            border-radius: 10px !important;
        }
    }

    /* Content Container Responsiveness */
    @media (max-width: 768px) {
        .content {
            padding: 0.5rem;
        }

        .row.align-items-center.g-3 {
            gap: 1rem !important;
        }
    }

    @media (max-width: 576px) {
        .content {
            padding: 0.25rem;
        }

        .row.align-items-center.g-3 {
            gap: 0.75rem !important;
        }

        section.pb-5 {
            padding-bottom: 2rem !important;
        }
    }


/* AI Agents Page Styles */
.content {
    padding: 2rem 1rem;
}

/* Tab Navigation */
.ai-tabs-container {
    margin-bottom: 3rem;
}

.ai-tabs-nav {
    display: flex;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 16px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
}

.ai-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ai-tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-1px);
}

.ai-tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ai-tab-btn.active .tab-indicator {
    transform: scaleX(1);
}

/* Tab Content */
.ai-tab-content {
    display: none;
}

.ai-tab-content.active {
    display: block;
}

/* Section Headers */
.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Create Agent Button */
.btn-create-agent {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-create-agent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Agent Cards */
.agent-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.agent-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.agent-status-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.agent-status-badge.idle {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.agent-status-badge i {
    font-size: 0.6rem;
}

.agent-avatar {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.agent-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.agent-level {
    position: absolute;
    bottom: -5px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.agent-info {
    text-align: center;
    margin-bottom: 2rem;
}

.agent-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.agent-type {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.agent-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.stat {
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-value.positive {
    color: #22c55e;
}

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

.btn-agent-action {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.btn-agent-action.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-agent-action.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-agent-action.secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.btn-agent-action.secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

/* Empty State */
.empty-agents-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 20px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.loading-game-indicator {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 20px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.empty-icon {
    font-size: 4rem;
    color: rgba(102, 126, 234, 0.3);
    margin-bottom: 1.5rem;
}

.loading-icon {
    font-size: 2rem;
    color: #FF4F79;
    margin-bottom: 10px;
}

.empty-agents-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.empty-agents-card p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-browse-marketplace {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-browse-marketplace:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Marketplace Filters */
.marketplace-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    background: white;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #1f2937;
    min-width: 180px;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Featured Banner */
.featured-banner {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.featured-banner::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="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.featured-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.featured-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.featured-text p {
    opacity: 0.9;
    font-size: 1rem;
}

.featured-agents-preview {
    display: flex;
    gap: 0.5rem;
}

.featured-agent-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.featured-agent-mini:hover {
    transform: scale(1.1);
}

.featured-agent-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Marketplace Grid */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Marketplace Cards */
.marketplace-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.marketplace-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.marketplace-card.premium {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 237, 78, 0.05));
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.premium-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.popular-badge {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
}

.free-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.new-badge {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
}

.agent-preview {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.agent-preview img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transition: transform 0.3s ease;
}

.marketplace-card:hover .agent-preview img {
    transform: scale(1.05);
}

.agent-rating {
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffd700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.marketplace-info {
    text-align: center;
    margin-bottom: 2rem;
}

.marketplace-agent-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.8rem;
}

.marketplace-agent-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.agent-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pricing-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
}

.price.free {
    color: #22c55e;
    font-size: 1.2rem;
}

.price-period {
    color: #6b7280;
    font-size: 0.9rem;
}

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

.btn-purchase, .btn-preview {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.btn-purchase {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-purchase:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-purchase.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.btn-purchase.premium:hover {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    color: #333;
}

.btn-purchase.free {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.btn-purchase.free:hover {
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    color: white;
}

.btn-preview {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.btn-preview:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1rem 2rem;
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .agents-grid,
    .marketplace-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }

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

    .marketplace-filters {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 1rem 0.5rem;
    }

    .ai-tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ai-tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .section-header .d-flex {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }

    .section-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .section-subtitle {
        text-align: center;
    }

    .btn-create-agent {
        width: 100%;
    }

    .agents-grid,
    .marketplace-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .agent-card,
    .marketplace-card {
        padding: 1.5rem;
    }

    .featured-banner {
        padding: 1.5rem;
    }

    .featured-text h3 {
        font-size: 1.3rem;
    }

    .agent-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .agent-actions,
    .marketplace-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 0.5rem 0.25rem;
    }

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

    .agent-card,
    .marketplace-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .empty-agents-card {
        padding: 3rem 1rem;
    }

    .empty-icon {
        font-size: 3rem;
    }

    .featured-banner {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .featured-agents-preview {
        gap: 0.3rem;
    }

    .featured-agent-mini {
        width: 35px;
        height: 35px;
    }
}


        #chart-loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #5B507A 0%, #4E4C67 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 1;
            transition: opacity 0.5s ease-out;
        }

        #chart-loading.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .loading-content {
            text-align: center;
            color: white;
            padding: 40px;
            margin: 10px;
            background: #4E4C67;
            border-radius: 20px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid #fff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading-content h3 {
            margin: 0 0 10px;
            font-size: 24px;
            font-weight: 600;
        }

        .loading-content p {
            margin: 0 0 20px;
            font-size: 16px;
            opacity: 0.9;
        }

        .progress-bar-alt {
            width: 200px;
            height: 8px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            margin: 20px auto;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: #fff;
            border-radius: 4px;
            width: 0%;
            transition: width 1s ease;
        }

        .countdown {
            font-size: 48px;
            font-weight: bold;
            color: #fff;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            animation: pulse 1s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.8; }
        }

