.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.task-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
}

.task-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.task-card .task-reward {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-green);
}

.task-card .task-provider-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f0f9ff;
    color: var(--accent-cyan);
    border: 1px solid #bae6fd;
}

.task-card .task-progress {
    margin-top: 0.75rem;
}

.task-card .task-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.task-card .task-progress-fill {
    height: 100%;
    background: var(--accent-green);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.claim-container {
    max-width: 480px;
    margin: 2rem auto;
    text-align: center;
}

.countdown-ring {
    width: 120px;
    height: 120px;
    margin: 1.5rem auto;
    position: relative;
}

.countdown-ring svg {
    transform: rotate(-90deg);
}

.countdown-ring .ring-bg {
    stroke: #e2e8f0;
}

.countdown-ring .ring-progress {
    stroke: #0f172a;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
}

.product-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.product-card .product-image {
    width: 100%;
    height: 175px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-subtle);
}

.product-card .product-info {
    padding: 1.25rem;
}

.product-card .product-price {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.product-card .stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.stock-badge.out-of-stock {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.balance-display {
    font-family: var(--font-mono);
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.balance-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-subtle);
}

.vietqr-container {
    text-align: center;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: inline-block;
}

.vietqr-container img {
    max-width: 240px;
    border-radius: 6px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.history-table th {
    padding: 0.75rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8fafc;
}

.history-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.history-table tr:hover td {
    background: #f8fafc;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

.status-badge.status-pending {
    background: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
}

.status-badge.status-approved,
.status-badge.status-verified,
.status-badge.status-completed {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-badge.status-rejected,
.status-badge.status-expired {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.status-badge.status-processing {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s ease;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    border-left: 3px solid #0f172a;
    background: #f8fafc;
}

.notification-item .notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .task-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .balance-display {
        font-size: 1.75rem;
    }
}


.avatar-frame-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    cursor: pointer;
    line-height: 0;
}

.avatar-frame-box:hover {
    transform: scale(1.08);
}

.avatar-inner-circle {
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    background: #1e293b;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.avatar-frame-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.cyber-navbar .avatar-frame-box {
    width: 28px !important;
    height: 28px !important;
    margin: 0 0.2rem !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cyber-navbar .avatar-inner-circle {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
}
.cyber-navbar .avatar-frame-overlay {
    max-width: 44px !important;
    max-height: 44px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.frame-tier-1 {
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.35));
}
.frame-tier-2 {
    filter: drop-shadow(0 2px 10px rgba(6, 182, 212, 0.4));
}
.frame-tier-3 {
    filter: drop-shadow(0 2px 12px rgba(14, 165, 233, 0.45));
}
.frame-tier-4 {
    filter: drop-shadow(0 2px 14px rgba(234, 179, 8, 0.55));
}

.nav-avatar-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem;
    flex-shrink: 0;
}

.upload-avatar-zone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}
.upload-avatar-zone:hover {
    border-color: #0f172a;
    background: #f1f5f9;
}

