.max-widget {
    --max-bg: #1a1d27;
    --max-border: rgba(255,255,255,0.07);
    --max-text-primary: #f0f0f0;
    --max-text-secondary: #8a8fa8;
    --max-accent-glow: rgba(0, 136, 255, 0.18);
    --max-btn-bg: #0088ff;
    --max-btn-hover: #1a9bff;
    --max-radius: 18px;
    --max-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.04) inset;

    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: var(--max-bg);
    border: 1px solid var(--max-border);
    border-radius: var(--max-radius);
    padding: 16px 20px;
    width: 100%;
    box-shadow: var(--max-shadow);
    overflow: hidden;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.max-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 50px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.06) inset;
}

.max-widget::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--max-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.max-widget__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.max-widget__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 136, 255, 0.35);
    background: #252836;
    display: block;
    transition: border-color 0.3s ease;
}

.max-widget:hover .max-widget__avatar {
    border-color: rgba(0, 136, 255, 0.6);
}

.max-widget__verified {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: #0088ff;
    border-radius: 50%;
    border: 2px solid var(--max-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.max-widget__verified svg {
    width: 9px;
    height: 9px;
    fill: #fff;
}

.max-widget__info {
    flex: 1;
    min-width: 0;
}

.max-widget__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--max-text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.max-widget__stats {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--max-text-secondary);
    font-size: 12px;
}

.max-widget__stats-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.max-widget__stats-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--max-text-primary);
}

.max-widget__stats-label {
    color: var(--max-text-secondary);
}

.max-widget__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--max-btn-bg);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 136, 255, 0.3);
    flex-shrink: 0;
}

.max-widget__btn:hover,
.max-widget__btn:focus {
    background: var(--max-btn-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 136, 255, 0.45);
}

.max-widget__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 136, 255, 0.25);
}

.max-widget__btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .max-widget {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 14px 16px;
    }
    .max-widget__info {
        flex-basis: calc(100% - 66px);
    }
    .max-widget__btn {
        flex-basis: 100%;
        margin-top: 4px;
    }
}
