.tasks-grid {
    background: transparent;
    border: none;
    display: block;
    min-height: auto;
}

.cyber-card {
    position: relative;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid #333;
    padding: 1px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cyber-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 62, 0, 0.1);
}

.task-card-inner {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}

.card-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    z-index: 3;
}

.cyber-card:hover .card-corner {
    border-color: var(--primary);
}

.top-left {
    top: 0;
    left: 0;
    border-top: 2px solid #444;
    border-left: 2px solid #444;
}

.top-right {
    top: 0;
    right: 0;
    border-top: 2px solid #444;
    border-right: 2px solid #444;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid #444;
    border-left: 2px solid #444;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid #444;
    border-right: 2px solid #444;
}

.task-icon-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}

.task-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 62, 0, 0.1);
    border: 1px solid rgba(255, 62, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 62, 0, 0.1);
    transition: all 0.3s ease;
}

.cyber-card:hover .task-icon {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 62, 0, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.task-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.task-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.task-reward {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.task-reward i {
    font-size: 0.9rem;
}

.task-action {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-claim-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-claim-form .task-link {
    order: 1;
}

.task-claim-form .task-claim-btn {
    order: 2;
}

.task-completed {
    background: rgba(0, 200, 100, 0.15) !important;
    border-color: rgba(0, 200, 100, 0.5) !important;
    color: #00c864 !important;
    cursor: default;
    opacity: 0.9;
}

.task-login-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.task-login-hint a {
    color: var(--primary);
    text-decoration: none;
}

.glitch-btn {
    position: relative;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.glitch-btn .btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glitch-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 62, 0, 0.4);
}

.glitch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.glitch-btn:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .tasks-grid {
        grid-template-columns: 1fr;
    }

    .task-card-inner {
        padding: 1.2rem;
    }
}