/* ==============================================
   استایل سورپرایز روزانه - نسخه 10.2
   ============================================== */

.sd-box-container, .sd-credits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sd-glass-card {
    background: rgba(20, 20, 40, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ===== جعبه امروز ===== */
.sd-today-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 20px;
    margin-bottom: 25px;
}

.sd-today-card .sd-persian-title {
    background: #ff8c00;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 8px 25px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
}

.sd-today-card h2 {
    color: #1a1a2e;
    font-size: 22px;
    margin-bottom: 10px;
}

.sd-today-card p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
}

.sd-today-img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    margin: 10px auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.sd-btn-download {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    color: white;
    padding: 10px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin: 12px 0;
    transition: all 0.3s;
}

.sd-btn-download:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #ffa500, #ffcc00);
}

.sd-timer {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    margin-right: 10px;
}

/* ===== جعبه فردا ===== */
.sd-tomorrow-card {
    text-align: center;
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 25px;
    margin-bottom: 25px;
}

.sd-tomorrow-card h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 10px;
}

.sd-tomorrow-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.sd-tomorrow-img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

/* ===== کلیدها و پلن‌های خرید ===== */
.sd-credits-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.85), rgba(42, 42, 94, 0.85));
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 25px;
    margin-bottom: 25px;
}

.sd-credits-card h3 {
    color: #ffa500;
    font-size: 24px;
    margin-bottom: 15px;
}

.sd-credits-number {
    font-size: 56px;
    font-weight: bold;
    color: #ffa500;
    margin: 10px 0;
}

.sd-keys-packs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sd-key-pack {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    min-width: 140px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sd-key-pack:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.sd-key-pack-price {
    font-size: 20px;
    font-weight: bold;
    color: #ffa500;
    margin-bottom: 5px;
}

.sd-key-pack-amount {
    font-size: 16px;
    color: white;
    margin-bottom: 15px;
}

.sd-buy-keys-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.sd-buy-keys-btn:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #ffa500, #ffcc00);
}

.sd-unlock-note {
    font-size: 12px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== لیبل سطح جعبه ===== */
.sd-rarity-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    margin: 8px 0;
}

.sd-rarity-bronze, .sd-archive-item.bronze .sd-rarity-badge {
    background: rgba(205, 127, 50, 0.25);
    color: #cd7f32;
    border: 1px solid #cd7f32;
}
.sd-rarity-silver, .sd-archive-item.silver .sd-rarity-badge {
    background: rgba(192, 192, 192, 0.25);
    color: #c0c0c0;
    border: 1px solid #c0c0c0;
}
.sd-rarity-gold, .sd-archive-item.gold .sd-rarity-badge {
    background: rgba(255, 215, 0, 0.25);
    color: #ffd700;
    border: 1px solid #ffd700;
}
.sd-rarity-diamond, .sd-archive-item.diamond .sd-rarity-badge {
    background: rgba(0, 191, 255, 0.25);
    color: #00bfff;
    border: 1px solid #00bfff;
}

/* ===== آرشیو ===== */
.sd-archive-title {
    font-size: 26px;
    color: #ffa500;
    text-align: center;
    margin-bottom: 25px;
}

.sd-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.sd-archive-item {
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sd-archive-item.bronze { background: rgba(205, 127, 50, 0.35); border-color: rgba(205, 127, 50, 0.3); }
.sd-archive-item.silver { background: rgba(192, 192, 192, 0.35); border-color: rgba(192, 192, 192, 0.3); }
.sd-archive-item.gold { background: rgba(255, 215, 0, 0.35); border-color: rgba(255, 215, 0, 0.3); }
.sd-archive-item.diamond { background: rgba(0, 191, 255, 0.35); border-color: rgba(0, 191, 255, 0.3); }

.sd-archive-item:hover {
    transform: translateY(-5px);
}

.sd-archive-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 10px;
}

/* عنوان و کپشن در آرشیو */
.sd-archive-title-text {
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    margin: 8px 0 4px;
    line-height: 1.4;
}

.sd-archive-caption-text {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    line-height: 1.4;
}

.sd-archive-item h4 {
    color: white;
    margin: 8px 0;
    font-size: 13px;
}

/* دکمه پیش‌نمایش */
.sd-preview-btn {
    background: rgba(0,0,0,0.6);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 12px;
    margin: 5px 0;
    transition: all 0.3s;
    display: inline-block;
}
.sd-preview-btn:hover { background: #ff8c00; border-color: #ff8c00; }

.sd-archive-btn {
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 5px;
}
.sd-archive-btn:hover { transform: scale(1.02); background: linear-gradient(135deg, #ffa500, #ffcc00); }

/* ===== صفحه‌بندی ===== */
.sd-pagination-wrapper {
    margin-top: 30px;
    text-align: center;
}

.sd-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sd-pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.sd-page-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.sd-page-btn:hover {
    background: #ff8c00;
    border-color: #ff8c00;
}

.sd-page-btn.active {
    background: #ff8c00;
    border-color: #ff8c00;
}

.sd-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sd-pagination span {
    color: white;
    padding: 0 5px;
}

.sd-page-input-wrapper {
    display: flex;
    gap: 5px;
    align-items: center;
}

#sd-page-input {
    width: 70px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: white;
    text-align: center;
}

#sd-page-input:focus {
    outline: none;
    border-color: #ff8c00;
}

.sd-go-btn {
    background: #ff8c00;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.sd-loading {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.6);
}

/* ===== مودال پاپ‌آپ ===== */
.sd-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.sd-preview-modal-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.sd-preview-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.sd-preview-modal-close:hover { color: #ff8c00; }

#sd-modal-video {
    width: 100%;
    display: block;
}

/* ===== موبایل ===== */
@media (max-width: 768px) {
    .sd-box-container, .sd-credits-container { padding: 15px; }
    .sd-glass-card { padding: 20px; }
    .sd-today-img { max-width: 220px; max-height: 220px; }
    .sd-tomorrow-img { max-width: 220px; max-height: 220px; }
    .sd-archive-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 15px; }
    .sd-credits-number { font-size: 42px; }
    .sd-key-pack { min-width: 110px; padding: 12px; }
    .sd-key-pack-price { font-size: 16px; }
    .sd-key-pack-amount { font-size: 13px; }
    .sd-preview-modal-content { width: 95%; }
    .sd-archive-title-text { font-size: 12px; }
    .sd-archive-caption-text { font-size: 10px; }
    .sd-pagination { gap: 8px; }
    .sd-page-btn { padding: 4px 8px; font-size: 12px; }
    #sd-page-input { width: 60px; padding: 4px 6px; }
    .sd-go-btn { padding: 4px 10px; }
}