.arya-reward-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.arya-reward-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.arya-reward-popup-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    z-index: 2;
    overflow-y: auto;
    overflow-x: hidden;
}

.arya-reward-popup-overlay.active .arya-reward-popup-content {
    transform: scale(1);
}

.arya-reward-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f2f6;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.2s;
    z-index: 10;
}

.arya-reward-popup-close:hover {
    background: #e74c3c;
    color: #fff;
}

.arya-reward-popup-header {
    margin-bottom: 20px;
}

.arya-reward-popup-icon {
    font-size: 50px;
    margin-bottom: 10px;
    display: inline-block;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
    animation: popupBounce 2s infinite;
}

@keyframes popupBounce {

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

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

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

.arya-reward-popup-title {
    font-size: 20px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.arya-reward-popup-subtitle {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
}

.arya-reward-list {
    max-height: 250px;
    overflow-y: auto;
    text-align: right;
    margin-bottom: 20px;
    padding: 0 5px;
}

.arya-reward-list::-webkit-scrollbar {
    width: 4px;
}

.arya-reward-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.arya-reward-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.arya-reward-item > .arya-reward-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.arya-reward-item > .arya-reward-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.arya-reward-item:hover {
    border-color: #3498db;
}

.arya-reward-details-btn {
    background: #95a5a6;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.arya-reward-details-btn:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(149, 165, 166, 0.3);
}

.arya-reward-details-content {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.arya-reward-info {
    display: flex;
    flex-direction: column;
}

.arya-reward-title {
    font-size: 13px;
    font-weight: bold;
    color: #34495e;
    margin-bottom: 3px;
}

.arya-reward-value {
    font-size: 12px;
    color: #27ae60;
    font-weight: bold;
}

.arya-reward-claim-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
    transition: all 0.2s;
    min-width: 80px;
}

.arya-reward-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(52, 152, 219, 0.4);
}

.arya-reward-claim-btn.loading {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.arya-reward-claim-btn.claimed {
    background: #27ae60;
    cursor: default;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

.arya-reward-claim-btn.error {
    background: #e74c3c;
}

.arya-reward-popup-link {
    display: inline-block;
    color: #95a5a6;
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px dashed #95a5a6;
    margin-top: 5px;
}

.arya-reward-popup-link:hover {
    color: #34495e;
    border-color: #34495e;
}

/* Confetti */
.arya-confetti-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    border-radius: 20px;
}

.arya-confetti {
    position: absolute;
    width: 8px;
    height: 12px;
    top: -20px;
    animation: confettiDrop 4s linear forwards;
}

@keyframes confettiDrop {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

/* Pending Missions Section */
.arya-pending-missions-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
    text-align: right;
}

.arya-pending-missions-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-align: center;
}

.arya-pending-missions-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0 5px;
}

.arya-pending-missions-list::-webkit-scrollbar {
    width: 4px;
}

.arya-pending-missions-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.arya-pending-mission-item {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 1px solid #ffe0e0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.arya-pending-mission-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.15);
    border-color: #ff6b6b;
}

.arya-pending-mission-info {
    width: 100%;
}

.arya-pending-mission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.arya-pending-mission-name {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    flex: 1;
    min-width: 150px;
}

.arya-pending-mission-reward {
    font-size: 12px;
    font-weight: 600;
    color: #27ae60;
    background: #e8f8f5;
    padding: 4px 10px;
    border-radius: 15px;
    white-space: nowrap;
}

.arya-pending-mission-progress {
    margin-bottom: 8px;
}

.arya-pending-mission-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.arya-pending-mission-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.arya-pending-mission-count {
    font-size: 11px;
    color: #7f8c8d;
    font-weight: 600;
    display: block;
    text-align: left;
}

.arya-pending-mission-message {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 600;
    margin: 8px 0 0 0;
    padding: 8px;
    background: #fff5f5;
    border-radius: 8px;
    border-right: 3px solid #e74c3c;
    text-align: right;
    line-height: 1.5;
}

/* Compact Mission List */
.arya-pending-missions-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0 5px;
}

.arya-pending-missions-list-compact::-webkit-scrollbar {
    width: 4px;
}

.arya-pending-missions-list-compact::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.arya-pending-mission-item-compact {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s;
}

.arya-pending-mission-item-compact:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.arya-mission-compact-left {
    flex: 1;
    min-width: 0;
}

.arya-mission-compact-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arya-mission-compact-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.arya-mission-compact-progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    min-width: 60px;
}

.arya-mission-compact-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.arya-mission-compact-count {
    font-size: 11px;
    color: #7f8c8d;
    font-weight: 600;
    white-space: nowrap;
    min-width: 45px;
    text-align: left;
}

.arya-mission-compact-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.arya-mission-compact-reward {
    font-size: 12px;
    font-weight: 600;
    color: #27ae60;
    white-space: nowrap;
}

.arya-mission-details-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.arya-mission-details-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.arya-mission-details-content {
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid #eee;
    margin-top: 12px;
}

/* Details Popup */
.arya-details-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.arya-details-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.arya-details-popup-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    padding: 30px;
    border-radius: 20px;
    text-align: right;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2;
    overflow-y: auto;
    overflow-x: hidden;
}

.arya-details-popup-overlay.active .arya-details-popup-content {
    transform: scale(1);
}

.arya-details-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f2f6;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.2s;
    z-index: 10;
}

.arya-details-popup-close:hover {
    background: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}

.arya-details-popup-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.arya-details-popup-title {
    font-size: 22px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
    text-align: right;
}

.arya-details-popup-body {
    text-align: right;
    line-height: 1.8;
    color: #34495e;
}

.arya-details-popup-body::-webkit-scrollbar {
    width: 6px;
}

.arya-details-popup-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.arya-details-popup-body .arya-mission-instructions {
    margin-top: 0 !important;
}

.arya-details-popup-body .arya-referral-link-section {
    margin-bottom: 20px;
}

.arya-details-popup-body ul {
    margin: 10px 0;
    padding-right: 20px;
}

.arya-details-popup-body li {
    margin-bottom: 10px;
}

.arya-details-popup-body a {
    word-break: break-word;
}