/* Clean Lottery Page Styles */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body.lottery-page-body {
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Hide WordPress elements */
#wpadminbar,
.admin-bar,
header,
footer,
.site-header,
.site-footer,
nav,
.navigation,
.woodmart-header,
.woodmart-footer,
.main-nav,
.breadcrumbs,
.woocommerce-breadcrumb {
    display: none !important;
}

.site-content,
.content-area,
.site-main {
    margin: 0 !important;
    padding: 0 !important;
}

/* Main container */
.cj-lottery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content grid */
.cj-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    flex: 1;
    align-items: start;
}

/* Header */
.cj-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cj-title {
    margin: 0 0 15px 0;
    font-size: 3rem;
    font-weight: 700;
    color: #333;
}

.cj-description {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
    color: #666;
}

/* Lottery blind box section */
.cj-blindbox-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(240, 248, 255, 0.95) 50%, 
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 100%;
    height: 100%;
}

/* 添加星光背景效果 */
.cj-blindbox-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90% 40%, #fff, transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 80% 10%, #fff, transparent);
    background-size: 200px 200px;
    animation: sparkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.cj-blindbox-container {
    position: relative;
    margin-bottom: 30px;
    perspective: 1000px;
    z-index: 100;
}

.cj-blindbox {
    position: relative;
    width: 400px;
    height: 400px;
    cursor: pointer;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    z-index: 200;
    overflow: visible;
}

.cj-blindbox:hover {
    transform: scale(1.05) rotateY(5deg);
    filter: brightness(1.1);
}

.cj-blindbox-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    overflow: visible;
}

.cj-blindbox-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: linear-gradient(135deg, 
        #4a90e2 0%, 
        #357abd 25%, 
        #2e5f8f 50%, 
        #357abd 75%, 
        #4a90e2 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="50" text-anchor="middle" x="50">📦</text></svg>');
    background-size: 100px 100px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(74, 144, 226, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 2px 20px rgba(255, 255, 255, 0.3),
        inset 0 -2px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
}

/* 如果要使用gif图片，可以添加这个类 */
.cj-blindbox-front.use-gif {
    background-image: url('../images/box.gif');
    background-size: 150%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    position: relative;
    overflow: visible;
}

/* 移除gif的遮罩层，保持纯净的白色背景 */
.cj-blindbox-front.use-gif::before {
    display: none;
}

/* 隐藏默认的图标和文字，当使用gif时 */
.cj-blindbox-front.use-gif .cj-blindbox-icon,
.cj-blindbox-front.use-gif .cj-blindbox-text {
    display: none;
}

/* 调整gif盲盒的光泽效果 */
.cj-blindbox-front.use-gif .cj-blindbox-shine {
    z-index: 2;
}

/* 盲盒内部装饰 */
.cj-blindbox-front::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
}

.cj-blindbox-front::after {
    content: '✨';
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: twinkle 2s ease-in-out infinite;
}

.cj-blindbox-icon {
    font-size: 5rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    z-index: 2;
    position: relative;
}

.cj-blindbox-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    position: relative;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cj-blindbox-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 70%);
    animation: shine 3s ease-in-out infinite;
    z-index: 1;
}

.cj-blindbox-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* 炸开动画 */
.cj-blindbox.exploding .cj-blindbox-inner {
    animation: explode 1.2s ease-out forwards;
}

.cj-blindbox.exploding .cj-blindbox-front {
    animation: boxBreak 1.2s ease-out forwards;
}

.cj-blindbox.exploding .cj-blindbox-particles {
    animation: particles 1.5s ease-out forwards;
}

/* 炸开粒子效果 */
.cj-blindbox.exploding .cj-blindbox-particles .particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: particle 1.5s ease-out forwards;
}

/* 奖品揭示效果 */
.cj-blindbox.revealing .cj-blindbox-inner {
    animation: reveal 0.8s ease-out forwards;
}

.cj-prize-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 252, 0.98) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(74, 144, 226, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.8);
    border: 3px solid rgba(74, 144, 226, 0.5);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(180deg);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
}

.cj-prize-reveal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.cj-prize-reveal:hover {
    transform: translate(-50%, -50%) scale(1.08) rotate(0deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(74, 144, 226, 0.7),
        inset 0 2px 10px rgba(255, 255, 255, 0.8);
}

.cj-prize-reveal::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, 
        #4a90e2, #357abd, #2e5f8f, #357abd, #4a90e2);
    border-radius: 28px;
    z-index: -1;
    animation: borderGlow 2s ease-in-out infinite;
}

.cj-prize-reveal::after {
    content: 'Click for details 👆';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(74, 144, 226, 0.95);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    opacity: 0;
    animation: clickHint 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2001;
}

.cj-prize-reveal img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.cj-prize-reveal img:hover {
    transform: scale(1.05);
}

.cj-prize-reveal .prize-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cj-prize-reveal .prize-grade {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cj-blindbox-instruction {
    text-align: center;
    margin-top: 25px;
    z-index: 2;
    position: relative;
}

.cj-blindbox-instruction p {
    margin: 0;
    font-size: 1.2rem;
    color: #4a90e2;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 新增动画定义 */
@keyframes sparkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

@keyframes borderGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes clickHint {
    0%, 60%, 100% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(0); 
    }
    10%, 50% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(-8px); 
    }
}

/* 动画定义 */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes explode {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.1) rotate(5deg); }
    40% { transform: scale(1.3) rotate(-5deg); }
    60% { transform: scale(0.9) rotate(10deg); }
    80% { transform: scale(0.5) rotate(-10deg); }
    100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

@keyframes boxBreak {
    0% { transform: scale(1); opacity: 1; }
    30% { transform: scale(1.1); opacity: 0.8; }
    60% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes particles {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes particle {
    0% { 
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(var(--random-x, 50px), var(--random-y, -50px)) scale(0);
        opacity: 0;
    }
}

@keyframes reveal {
    0% { 
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% { 
        transform: rotateY(90deg);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .cj-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cj-blindbox {
        width: 300px;
        height: 300px;
    }
    
    .cj-blindbox-icon {
        font-size: 4.5rem;
    }
    
    .cj-blindbox-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .cj-lottery-container {
        padding: 15px;
    }
    
    .cj-title {
        font-size: 2.2rem;
    }
    
    .cj-blindbox-section,
    .cj-prizes-section {
        padding: 25px;
        min-height: auto;
        height: auto;
    }
    
    .cj-blindbox {
        width: 350px;
        height: 350px;
    }
    
    .cj-blindbox-icon {
        font-size: 4rem;
    }
    
    .cj-blindbox-text {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .cj-prize-reveal {
        width: 240px;
        height: 240px;
    }
    
    .cj-prize-reveal::after {
        bottom: -45px;
        font-size: 0.9rem;
        padding: 8px 16px;
        content: 'Click for details 👆';
    }
    
    .cj-prize-reveal img {
        width: 100px;
        height: 100px;
    }
    
    .cj-grade-items {
        grid-template-columns: 1fr;
    }
    
    .cj-modal {
        padding: 10px;
    }
    
    .cj-modal-content {
        max-width: none;
        width: 100%;
        max-height: calc(100vh - 20px);
    }
    
    .cj-modal-header,
    .cj-modal-body,
    .cj-modal-footer {
        padding: 20px;
    }
    
    .cj-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .cj-result-prize-name {
        font-size: 1.4rem;
    }
    
    .cj-result-message {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .cj-blindbox {
        width: 300px;
        height: 300px;
    }
    
    .cj-blindbox-icon {
        font-size: 3.5rem;
    }
    
    .cj-blindbox-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .cj-prize-reveal {
        width: 220px;
        height: 220px;
    }
    
    .cj-prize-reveal::after {
        bottom: -40px;
        font-size: 0.8rem;
        padding: 6px 12px;
        content: 'Click for details 👆';
    }
    
    .cj-prize-reveal img {
        width: 80px;
        height: 80px;
    }
    
    .cj-prize-reveal .prize-name {
        font-size: 1rem;
    }
    
    .cj-title {
        font-size: 1.8rem;
    }
    
    .cj-btn {
        padding: 12px 24px;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .cj-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .cj-result-prize-name {
        font-size: 1.2rem;
    }
    
    .cj-result-message {
        font-size: 1.1rem;
    }
    
    .cj-modal-footer .cj-btn {
        min-width: 200px;
        font-size: 0.9rem;
    }
}

/* Button styles */
.cj-btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: nowrap;
    min-width: 200px;
}

.cj-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cj-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cj-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.cj-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.cj-prize-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Button enhancements */
.cj-btn span {
    margin-right: 8px;
}

.cj-btn:hover span {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Action section */
.cj-action-section {
    text-align: center;
    width: 100%;
}

/* Login prompt */
.cj-login-prompt {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.cj-prompt-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.cj-login-prompt h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.cj-login-prompt p {
    margin: 0 0 20px 0;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Draw section */
.cj-draw-section {
    padding: 30px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    text-align: center;
}

.cj-draw-note {
    margin: 15px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Purchase section */
.cj-purchase-section {
    padding: 30px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    text-align: center;
}

.cj-product-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.cj-product-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.cj-product-desc {
    margin: 10px 0 20px 0;
    opacity: 0.9;
    font-style: italic;
}

.cj-purchase-benefits {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: left;
}

.cj-purchase-benefits p {
    margin: 0 0 10px 0;
    font-weight: 600;
    text-align: center;
}

.cj-purchase-benefits ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cj-purchase-benefits li {
    margin: 8px 0;
    padding-left: 0;
    font-size: 0.9rem;
}

.cj-unavailable {
    text-align: center;
}

.cj-unavailable p {
    margin: 10px 0;
    opacity: 0.9;
}

/* Prizes section */
.cj-prizes-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cj-prizes-header {
    text-align: center;
    margin-bottom: 30px;
}

.cj-prizes-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
}

.cj-prizes-header p {
    margin: 0;
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

.cj-prizes-grid {
    space-y: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cj-grade-section {
    margin-bottom: 30px;
}

.cj-grade-title {
    margin: 0 0 20px 0;
    text-align: center;
}

.cj-grade-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cj-grade-s {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333 !important;
}

.cj-grade-a {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #333 !important;
}

.cj-grade-b {
    background: linear-gradient(135deg, #cd7f32 0%, #d4944a 100%);
}

.cj-grade-c {
    background: linear-gradient(135deg, #666 0%, #888 100%);
}

.cj-grade-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.cj-prize-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cj-prize-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cj-prize-image-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.cj-prize-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.cj-grade-mini {
    font-size: 0.8rem;
}

.cj-prize-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.7;
}

.cj-prize-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.cj-prize-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

/* Empty state */
.cj-empty {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: #666;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cj-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.cj-empty h2 {
    margin: 0 0 15px 0;
    font-size: 2rem;
    color: #333;
}

.cj-empty p {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modal */
.cj-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.cj-modal.show {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.cj-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    margin: auto;
    position: relative;
}

.cj-modal.show .cj-modal-content {
    transform: scale(1) translateY(0);
}

.cj-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.cj-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cj-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: all 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cj-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.cj-modal-body {
    padding: 30px;
}

.cj-result-content {
    text-align: center;
    padding: 20px;
}

.cj-result-image {
    margin-bottom: 20px;
}

.cj-result-image img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cj-result-image img:hover {
    transform: scale(1.05);
}

.cj-result-message {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #27ae60;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cj-result-prize-name {
    margin: 0 0 20px 0;
    font-size: 1.6rem;
    color: #333;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cj-result-grade {
    margin-bottom: 20px;
}

.cj-result-orders {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cj-order-links {
    margin: 15px 0;
}

.cj-order-links a {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 124, 186, 0.3);
}

.cj-order-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.4);
}

/* Prize order specific styling */
.cj-order-links a.prize-order {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

.cj-order-links a.prize-order:hover {
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

/* Lottery order specific styling */
.cj-order-links a.lottery-order {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow: 0 2px 10px rgba(155, 89, 182, 0.3);
}

.cj-order-links a.lottery-order:hover {
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.cj-order-note {
    margin: 15px 0 0 0;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.cj-modal-footer {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.cj-modal-footer .cj-btn {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: none;
    min-width: 250px;
    font-size: 1rem;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.cj-modal-footer .cj-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Error states */
.cj-error {
    text-align: center;
    padding: 60px 20px;
    background: rgba(231, 76, 60, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Loading states */
.cj-btn.loading {
    position: relative;
    color: transparent;
}

.cj-btn.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive design */