/* ============================================================================
   DAILY REWARDS MODULE - DARK STYLE
   ============================================================================ */

/* === ROOT === */
.dr-root {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* === HEADER BANNER === */
.dr-header {
    background-color: var(--card);
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.dr-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.dr-header > * {
    position: relative;
    z-index: 1;
}

.dr-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.dr-header-title h1 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.dr-header-subtitle {
    color: #aaa;
    font-size: 0.95rem;
    margin: 0;
}

.dr-header-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.dr-stat-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
}

.dr-stat-icon {
    font-size: 2rem;
    line-height: 1;
}

.dr-stat-value {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
}

.dr-stat-label {
    color: var(--text-custom);
    font-size: 0.85rem;
}

/* === REWARDS GRID === */
.dr-rewards {
    margin-bottom: 15px;
}

.dr-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.dr-reward-card {
    background-color: var(--card);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

.dr-reward-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dr-reward-card.dr-current {
    border-color: var(--button);
    border-width: 2px;
    background-color: rgba(99, 102, 241, 0.1);
}

.dr-reward-card.dr-claimed {
    opacity: 0.5;
}

.dr-reward-card.dr-locked {
    opacity: 0.3;
}

.dr-premium-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fbbf24;
    color: #000;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.dr-reward-day {
    color: var(--text-custom);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.dr-reward-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dr-reward-icon img {
    max-width: 100%;
    max-height: 100%;
}

.dr-reward-icon-placeholder {
    font-size: 2.5rem;
}

.dr-reward-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dr-claim-btn {
    width: 100%;
    padding: 10px;
    background: var(--button);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dr-claim-btn:hover {
    background-color: background-color: var(--button-hover);;
}

.dr-claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dr-reward-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.dr-claimed-status {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.dr-locked-status {
    background: rgba(255, 255, 255, 0.05);
    color: var(--span);
}

/* === INFO SECTION === */
.dr-info {
    margin-bottom: 15px;
}

.dr-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.dr-info-card {
    background-color: var(--card);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.dr-info-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.dr-info-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.dr-info-card p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* === LEADERBOARD === */
.dr-leaderboard {
    background-color: var(--card);
    border-radius: 16px;
    padding: 20px;
}

.dr-section-title {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
}

.dr-top-users {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dr-top-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.2s;
}

.dr-top-user:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dr-top-rank {
    color: #aaa;
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 50px;
}

.dr-top-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    flex-shrink: 0;
    display: block;
}

.dr-top-avatar:hover {
    border-color: var(--button);
    transform: scale(1.05);
}

.dr-top-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dr-top-info {
    flex: 1;
}

.dr-top-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}

.dr-top-name:hover {
    color: var(--button);
}

.dr-top-stats {
    color: var(--text-custom);
    font-size: 0.85rem;
    display: flex;
    gap: 15px;
}

.dr-loading, .dr-no-data {
    text-align: center;
    padding: 30px;/* cs2land */
    color: var(--span);
}

/* === MODAL === */
.dr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.dr-modal-content {
    background: var(--card);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.dr-modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dr-modal-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
}

.dr-modal-close {
    background: none;
    border: none;
    color: var(--text-custom);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.dr-modal-close:hover {
    color: #fff;
}

.dr-modal-body {
    padding: 20px;
    text-align: center;
}

.dr-success-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.dr-reward-display h4 {
    color: var(--button);
    font-size: 1.3rem;
    margin: 0 0 10px 0;
}

.dr-streak-display {
    color: #aaa;
    font-size: 1.1rem;
}

.dr-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.dr-modal-text {
    margin-bottom: 12px;
    color: #bdbdbd;
    line-height: 1.5;
}

.dr-vip-current {
    font-size: 14px;
    color: var(--span);
    margin-bottom: 8px;
}

.dr-success-message {
    margin-top: 10px;
    color: #81c784;
    font-weight: 500;
}

.dr-vip-extended {
    margin-top: 6px;
    color: #a5d6a7;
    font-size: 0.95rem;
}

.dr-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dr-btn-primary {
    background: var(--button);
    color: #fff;
}

.dr-btn-primary:hover {
    background-color: var(--button-hover);
}

.dr-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dr-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* === SERVER SELECTION === */
.dr-servers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dr-server-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dr-server-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--button);
}

.dr-server-name {
    color: #fff;
    font-weight: 600;
}

.dr-server-ip {
    color: var(--text-custom);
    font-size: 0.85rem;
}

.dr-vip-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* === PROGRESS INDICATOR === */
.dr-progress-indicator {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dr-progress-text {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: center;
}

.dr-progress-hint {
    color: var(--text-custom);
    font-size: 0.85rem;
    font-weight: 400;
}

.dr-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.dr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--button), #8b5cf6);
    border-radius: 16px;
    transition: width 0.5s ease;
    position: relative;
}

.dr-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* === BANNED WARNING === */
.dr-banned-warning {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(233, 30, 99, 0.05));
    border: 2px solid rgba(244, 67, 54, 0.3);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(244, 67, 54, 0.2);
}

.dr-banned-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: dr-pulse 2s infinite;
}

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

.dr-banned-warning h2 {
    color: #f44336;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.dr-banned-warning > p {
    color: #ef5350;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.dr-banned-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
}

.dr-banned-info p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.dr-banned-info p:last-child {
    margin-bottom: 0;
}

/* === ADMIN BUTTON === */
.dr-admin-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--button);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.dr-admin-btn:hover {
    background-color: var(--button-hover);
    transform: scale(1.1);
}

/* === ERROR PAGE === */
.dr-error-container {
    max-width: 700px;
    margin: 50px auto;
    padding: 20px;
}

.dr-error-card {
    background-color: var(--card);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.dr-error-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.dr-error-card h2 {
    color: #ef4444;
    margin-bottom: 10px;
}

.dr-error-card p {
    color: #aaa;
}

.dr-error-steps {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
    margin-top: 15px;
    text-align: left;
}

.dr-error-steps h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.dr-error-steps ol {
    color: #aaa;
    margin: 10px 0 0 20px;
}

.dr-error-steps li {
    margin: 8px 0;
}

.dr-error-steps code {
    background: rgba(255, 255, 255, 0.1);
    color: var(--button);
    padding: 2px 6px;
    border-radius: 4px; /* marafon */
}

.dr-error-steps strong {
    color: var(--button);
}

/* === ADMIN PANEL === */
.dr-admin-root {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dr-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.dr-admin-header h1 {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
}

.dr-alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-left: 3px solid #22c55e;
    padding: 12px 15px;
    border-radius: 8px;
}

.dr-admin-tabs {
    display: flex;
    gap: 5px;
    background-color: var(--card);
    border-radius: 16px;
    padding: 5px;
}

.dr-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-custom);
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}

.dr-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.dr-tab.active {
    color: #fff;
    background: var(--button);
}

.dr-tab-content {
    display: none;
}

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

.dr-admin-card {
    background-color: var(--card);
    border-radius: 16px;
    padding: 20px;
}

.dr-admin-card h2 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
}

.dr-admin-form {
    max-width: 600px;
}

.dr-form-group {
    margin-bottom: 15px;
}

.dr-form-group label {
    display: block;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.dr-form-group small {
    display: block;
    color: var(--span);
    font-size: 0.8rem;
    margin-top: 4px;
}

.dr-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.dr-input:focus {
    outline: none;
    border-color: var(--button);
}

.dr-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
}

.dr-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.dr-rewards-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.dr-reward-admin-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 15px;
}

.dr-reward-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dr-reward-day-label {
    color: var(--button);
    font-weight: 700;
    font-size: 1rem;
}

.dr-premium-badge-small {
    background: #fbbf24;
    color: #000;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.dr-form-group-small {
    margin-bottom: 10px;
}

.dr-form-group-small label {
    display: block;
    color: #aaa;
    margin-bottom: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.dr-input-small {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
}

.dr-form-checkboxes {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.dr-checkbox-label-small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #aaa;
    font-size: 0.85rem;
    cursor: pointer;
}

.dr-btn-small {
    padding: 8px 16px;
    background: var(--button);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dr-btn-small:hover {
    background-color: var(--button-hover);
}

.dr-admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.dr-stat-card-large {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.dr-stat-icon-large {
    font-size: 3rem;
    margin-bottom: 10px;
}

.dr-stat-value-large {
    color: var(--button);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.dr-stat-label-large {
    color: var(--text-custom);
    font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .dr-header {
        padding: 15px 20px;
    }
    
    .dr-header-title h1 {
        font-size: 1.5rem;
    }
    
    .dr-rewards-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    
    .dr-info-grid {
        grid-template-columns: 1fr;
    }
    
    .dr-rewards-admin-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   NEW DAILY REWARDS STRUCTURE STYLES
   ============================================================================ */

/* === HEADER === */
.dailyrewards__header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.dailyrewards__header svg {
    width: 40px;
    height: 40px;
    margin: 10px auto;
    display: block;
    fill: var(--button);
    opacity: 0.6;
}

.dailyrewards__h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.dailyrewards__description {
    color: #aaa;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* === STATS BAR === */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: var(--card);
    border-radius: 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.stat-item svg {
    width: 24px;
    height: 24px;
    fill: var(--span);
    opacity: 0.8;
}

.stat-value {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

/* === PLAYTIME REQUIREMENT === */
.dr-playtime-requirement {
    background-color: var(--card);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.dr-playtime-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #fff;
}

.dr-playtime-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.dr-playtime-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dr-playtime-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dr-playtime-item.remaining {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.dr-playtime-item.success {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    justify-content: center;
}

.dr-playtime-label {
    color: #aaa;
    font-size: 0.9rem;
}

.dr-playtime-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.dr-playtime-value.required {
    color: #ffc107;
}

.dr-playtime-value.current {
    color: #4caf50;
}

.dr-playtime-value.remaining {
    color: #ff9800;
}

.dr-playtime-success {
    color: #4caf50;
    font-weight: 600;
    font-size: 0.95rem;
}
    line-height: 1;
}

.stat-label {
    color: var(--text-custom);
    font-size: 0.85rem;
    text-align: center;
}

.divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* === CONTENT WRAPPER === */
.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column {
    display: flex;
    flex-direction: column;
}

/* === REWARDS SECTION === */
.rewards-section {
    background-color: var(--card);
    border-radius: 16px;
    padding: 25px;
}

.rewards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    color: var(--text-custom);
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title svg {
    width: 24px;
    height: 24px;
    fill: var(--text-custom);
}

.all-rewards-btn {
    background: var(--span-middle);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--button);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.all-rewards-btn:hover {
    filter: brightness(1.2);
}

.all-rewards-btn.active {
    background: var(--input-form);
    color: #fff;
    border-color: var(--button);
}

.rewards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

/* === REWARD CARD === */
.reward-card {
    background-color: var(--span-10);
    border: 1px solid var(--span);
    border-radius: 16px;
    padding: 15px 15px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reward-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reward-card.current {
    border-color: var(--button);
    border-width: 2px;
    background: var(--span-middle);
}

.reward-card.claimed {
    opacity: 0.5;
}

.reward-card.locked {
    opacity: 0.4;
    filter: grayscale(0.5);
}

.reward-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.reward-day {
    color: var(--text-custom);
    font-size: 0.85rem;
    font-weight: 600;
}

.current-badge {
    background: var(--button);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.reward-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.reward-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 5px 0;
}

.reward-type {
    color: var(--text-custom);
    font-size: 16px;
    letter-spacing: 0.5px;
}

.reward-status {
    margin-top: 10px;
}

.status-claimed {
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-available {
    color: var(--button);
    font-size: 0.85rem;
    font-weight: 600;
}

.status-locked {
    color: var(--span);
    font-size: 0.85rem;
    font-weight: 600;
}

.claim-btn {
    width: 100%;
    padding: 10px;
    background: var(--button);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.claim-btn:hover {
    background-color: var(--button-hover);
    transform: scale(1.05);
}

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

/* === INSTRUCTIONS SECTION === */
.instructions-section {
    background-color: var(--card);
    border-radius: 16px;
    padding: 25px;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.instruction-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.instruction-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--span-middle);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instruction-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--button);
}

.instruction-text h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 0px 0;
}

.instruction-text p {
    color: var(--text-custom);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* === TOP PLAYERS SECTION === */
.top-players-section {
    background-color: var(--card);
    border-radius: 16px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    background: var(--input-form);
}

.player-row:hover {
}

.player-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
    overflow: hidden;
}

.player-background img,
.player-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-rank {
    position: relative;
    z-index: 1;
    min-width: 30px;
    text-align: center;
}

.rank-1, .rank-2, .rank-3 {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-1 {
    background: linear-gradient(135deg, var(--top-one, #ffdb5c), var(--orange, #f6b949));
    color: #000;
}

.rank-2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
}

.rank-other {
    color: var(--text-custom);
    font-weight: 600;
    font-size: 0.9rem;
}

.player-avatar {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--br-8);
    overflow: hidden;
    transition: all 0.3s;
}

.player-row:hover .player-avatar {
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-info {
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.player-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-name a {
    color: var(--span);
    text-decoration: none;
    transition: color 0.2s;
}

.player-name a:hover {
    color: var(--span);
}

.player-streak {
    color: var(--text-custom);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.player-streak svg {
    width: 14px;
    height: 14px;
    fill: #fbbf24;
}

.player-total {
    position: relative;
    z-index: 1;
    text-align: right;
}

.total-rewards {
    color: var(--text-custom);
    font-size: 0.85rem;
}

/* === MODAL OVERLAY === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-custom);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.rewards-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item {
    text-align: center;
}

.summary-value {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-label {
    color: var(--text-custom);
    font-size: 0.85rem;
}

.all-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 25px 30px;
}

.all-reward-item {
    background: var(--span-low);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.all-reward-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.all-reward-item.available {
    border-color: var(--button);
    background: var(--span-middle);
}

.all-reward-item.claimed {
    opacity: 0.5;
}

.all-reward-item.locked {
    opacity: 0.4;
    filter: grayscale(0.5);
}

.all-reward-day {
    color: var(--text-custom);
    font-size: 0.8rem;
    font-weight: 600;
}

.all-reward-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto;
}

.all-reward-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.all-reward-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.available {
    background: rgba(99, 102, 241, 0.2);
    color: var(--button);
}

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

.status-badge.locked {
    background: rgba(255, 255, 255, 0.05);
    color: var(--span);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.statistics_line {
    width: 2px;
    height: 35px;
    background: var(--input-form);
}

/* === RESPONSIVE FOR NEW STRUCTURE === */
@media (max-width: 768px) {
    .dailyrewards__h2 {
        font-size: 1.5rem;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .divider {
        width: 100%;
        height: 1px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .rewards-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .rewards-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .all-rewards-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .top-players-section {
        position: static;
    }
}
